Class: AWSCDK::Config::CfnConfigurationAggregator::OrganizationAggregationSourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
config/cfn_configuration_aggregator.rb

Overview

This object contains regions to set up the aggregator and an IAM role to retrieve organization details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role_arn:, all_aws_regions: nil, aws_regions: nil) ⇒ OrganizationAggregationSourceProperty

Returns a new instance of OrganizationAggregationSourceProperty.

Parameters:

  • role_arn (String)

    ARN of the IAM role used to retrieve AWS Organizations details associated with the aggregator account.

  • all_aws_regions (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    If true, aggregate existing AWS Config regions and future regions.

  • aws_regions (Array<String>, nil) (defaults to: nil)

    The source regions being aggregated.



612
613
614
615
616
617
618
619
# File 'config/cfn_configuration_aggregator.rb', line 612

def initialize(role_arn:, all_aws_regions: nil, aws_regions: nil)
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
  @all_aws_regions = all_aws_regions
  Jsii::Type.check_type(@all_aws_regions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "allAwsRegions") unless @all_aws_regions.nil?
  @aws_regions = aws_regions
  Jsii::Type.check_type(@aws_regions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "awsRegions") unless @aws_regions.nil?
end

Instance Attribute Details

#all_aws_regionsBoolean, ... (readonly)

If true, aggregate existing AWS Config regions and future regions.



630
631
632
# File 'config/cfn_configuration_aggregator.rb', line 630

def all_aws_regions
  @all_aws_regions
end

#aws_regionsArray<String>? (readonly)

The source regions being aggregated.



635
636
637
# File 'config/cfn_configuration_aggregator.rb', line 635

def aws_regions
  @aws_regions
end

#role_arnString (readonly)

ARN of the IAM role used to retrieve AWS Organizations details associated with the aggregator account.



625
626
627
# File 'config/cfn_configuration_aggregator.rb', line 625

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



637
638
639
640
641
642
643
# File 'config/cfn_configuration_aggregator.rb', line 637

def self.jsii_properties
  {
    :role_arn => "roleArn",
    :all_aws_regions => "allAwsRegions",
    :aws_regions => "awsRegions",
  }
end

Instance Method Details

#to_jsiiObject



645
646
647
648
649
650
651
652
653
# File 'config/cfn_configuration_aggregator.rb', line 645

def to_jsii
  result = {}
  result.merge!({
    "roleArn" => @role_arn,
    "allAwsRegions" => @all_aws_regions,
    "awsRegions" => @aws_regions,
  })
  result.compact
end