Class: AWSCDK::ObservabilityAdmin::CfnOrganizationCentralizationRuleProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
observability_admin/cfn_organization_centralization_rule_props.rb

Overview

Properties for defining a CfnOrganizationCentralizationRule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rule:, rule_name:, tags: nil) ⇒ CfnOrganizationCentralizationRuleProps

Returns a new instance of CfnOrganizationCentralizationRuleProps.

Parameters:



12
13
14
15
16
17
18
19
# File 'observability_admin/cfn_organization_centralization_rule_props.rb', line 12

def initialize(rule:, rule_name:, tags: nil)
  @rule = rule.is_a?(Hash) ? ::AWSCDK::ObservabilityAdmin::CfnOrganizationCentralizationRule::CentralizationRuleProperty.new(**rule.transform_keys(&:to_sym)) : rule
  Jsii::Type.check_type(@rule, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vYnNlcnZhYmlsaXR5YWRtaW4uQ2ZuT3JnYW5pemF0aW9uQ2VudHJhbGl6YXRpb25SdWxlLkNlbnRyYWxpemF0aW9uUnVsZVByb3BlcnR5In1dfX0=")), "rule")
  @rule_name = rule_name
  Jsii::Type.check_type(@rule_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ruleName")
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#rule_nameString (readonly)

The name of the organization centralization rule.



28
29
30
# File 'observability_admin/cfn_organization_centralization_rule_props.rb', line 28

def rule_name
  @rule_name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

A key-value pair to filter resources based on tags associated with the resource.

For more information about tags, see What are tags?



35
36
37
# File 'observability_admin/cfn_organization_centralization_rule_props.rb', line 35

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'observability_admin/cfn_organization_centralization_rule_props.rb', line 37

def self.jsii_properties
  {
    :rule => "rule",
    :rule_name => "ruleName",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'observability_admin/cfn_organization_centralization_rule_props.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "rule" => @rule,
    "ruleName" => @rule_name,
    "tags" => @tags,
  })
  result.compact
end