Class: AWSCDK::ObservabilityAdmin::CfnOrganizationCentralizationRuleProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ObservabilityAdmin::CfnOrganizationCentralizationRuleProps
- Defined in:
- observability_admin/cfn_organization_centralization_rule_props.rb
Overview
Properties for defining a CfnOrganizationCentralizationRule.
Instance Attribute Summary collapse
- #rule ⇒ AWSCDK::IResolvable, AWSCDK::ObservabilityAdmin::CfnOrganizationCentralizationRule::CentralizationRuleProperty readonly
-
#rule_name ⇒ String
readonly
The name of the organization centralization rule.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A key-value pair to filter resources based on tags associated with the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rule:, rule_name:, tags: nil) ⇒ CfnOrganizationCentralizationRuleProps
constructor
A new instance of CfnOrganizationCentralizationRuleProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(rule:, rule_name:, tags: nil) ⇒ CfnOrganizationCentralizationRuleProps
Returns a new instance of CfnOrganizationCentralizationRuleProps.
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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#rule ⇒ AWSCDK::IResolvable, AWSCDK::ObservabilityAdmin::CfnOrganizationCentralizationRule::CentralizationRuleProperty (readonly)
23 24 25 |
# File 'observability_admin/cfn_organization_centralization_rule_props.rb', line 23 def rule @rule end |
#rule_name ⇒ String (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 |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |