Class: AWSCDK::Config::CfnConfigurationAggregatorProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Config::CfnConfigurationAggregatorProps
- Defined in:
- config/cfn_configuration_aggregator_props.rb
Overview
Properties for defining a CfnConfigurationAggregator.
Instance Attribute Summary collapse
-
#account_aggregation_sources ⇒ AWSCDK::IResolvable, ...
readonly
Provides a list of source accounts and regions to be aggregated.
-
#configuration_aggregator_name ⇒ String?
readonly
The name of the aggregator.
-
#organization_aggregation_source ⇒ AWSCDK::IResolvable, ...
readonly
Provides an organization and list of regions to be aggregated.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of tag object.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_aggregation_sources: nil, configuration_aggregator_name: nil, organization_aggregation_source: nil, tags: nil) ⇒ CfnConfigurationAggregatorProps
constructor
A new instance of CfnConfigurationAggregatorProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account_aggregation_sources: nil, configuration_aggregator_name: nil, organization_aggregation_source: nil, tags: nil) ⇒ CfnConfigurationAggregatorProps
Returns a new instance of CfnConfigurationAggregatorProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'config/cfn_configuration_aggregator_props.rb', line 13 def initialize(account_aggregation_sources: nil, configuration_aggregator_name: nil, organization_aggregation_source: nil, tags: nil) @account_aggregation_sources = account_aggregation_sources Jsii::Type.check_type(@account_aggregation_sources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29uZmlnLkNmbkNvbmZpZ3VyYXRpb25BZ2dyZWdhdG9yLkFjY291bnRBZ2dyZWdhdGlvblNvdXJjZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "accountAggregationSources") unless @account_aggregation_sources.nil? @configuration_aggregator_name = configuration_aggregator_name Jsii::Type.check_type(@configuration_aggregator_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "configurationAggregatorName") unless @configuration_aggregator_name.nil? @organization_aggregation_source = organization_aggregation_source.is_a?(Hash) ? ::AWSCDK::Config::CfnConfigurationAggregator::OrganizationAggregationSourceProperty.new(**organization_aggregation_source.transform_keys(&:to_sym)) : organization_aggregation_source Jsii::Type.check_type(@organization_aggregation_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25maWcuQ2ZuQ29uZmlndXJhdGlvbkFnZ3JlZ2F0b3IuT3JnYW5pemF0aW9uQWdncmVnYXRpb25Tb3VyY2VQcm9wZXJ0eSJ9XX19")), "organizationAggregationSource") unless @organization_aggregation_source.nil? @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
#account_aggregation_sources ⇒ AWSCDK::IResolvable, ... (readonly)
Provides a list of source accounts and regions to be aggregated.
28 29 30 |
# File 'config/cfn_configuration_aggregator_props.rb', line 28 def account_aggregation_sources @account_aggregation_sources end |
#configuration_aggregator_name ⇒ String? (readonly)
The name of the aggregator.
33 34 35 |
# File 'config/cfn_configuration_aggregator_props.rb', line 33 def configuration_aggregator_name @configuration_aggregator_name end |
#organization_aggregation_source ⇒ AWSCDK::IResolvable, ... (readonly)
Provides an organization and list of regions to be aggregated.
38 39 40 |
# File 'config/cfn_configuration_aggregator_props.rb', line 38 def organization_aggregation_source @organization_aggregation_source end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of tag object.
43 44 45 |
# File 'config/cfn_configuration_aggregator_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'config/cfn_configuration_aggregator_props.rb', line 45 def self.jsii_properties { :account_aggregation_sources => "accountAggregationSources", :configuration_aggregator_name => "configurationAggregatorName", :organization_aggregation_source => "organizationAggregationSource", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'config/cfn_configuration_aggregator_props.rb', line 54 def to_jsii result = {} result.merge!({ "accountAggregationSources" => @account_aggregation_sources, "configurationAggregatorName" => @configuration_aggregator_name, "organizationAggregationSource" => @organization_aggregation_source, "tags" => @tags, }) result.compact end |