Class: AWSCDK::Config::CfnAggregationAuthorizationProps

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

Overview

Properties for defining a CfnAggregationAuthorization.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authorized_account_id:, authorized_aws_region:, tags: nil) ⇒ CfnAggregationAuthorizationProps

Returns a new instance of CfnAggregationAuthorizationProps.

Parameters:

  • authorized_account_id (String)

    The 12-digit account ID of the account authorized to aggregate data.

  • authorized_aws_region (String)

    The region authorized to collect aggregated data.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    An array of tag object.



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

def initialize(authorized_account_id:, authorized_aws_region:, tags: nil)
  @authorized_account_id = 
  Jsii::Type.check_type(@authorized_account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizedAccountId")
  @authorized_aws_region = authorized_aws_region
  Jsii::Type.check_type(@authorized_aws_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizedAwsRegion")
  @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

#authorized_account_idString (readonly)

The 12-digit account ID of the account authorized to aggregate data.



25
26
27
# File 'config/cfn_aggregation_authorization_props.rb', line 25

def 
  @authorized_account_id
end

#authorized_aws_regionString (readonly)

The region authorized to collect aggregated data.



30
31
32
# File 'config/cfn_aggregation_authorization_props.rb', line 30

def authorized_aws_region
  @authorized_aws_region
end

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

An array of tag object.



35
36
37
# File 'config/cfn_aggregation_authorization_props.rb', line 35

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'config/cfn_aggregation_authorization_props.rb', line 37

def self.jsii_properties
  {
    :authorized_account_id => "authorizedAccountId",
    :authorized_aws_region => "authorizedAwsRegion",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "authorizedAccountId" => @authorized_account_id,
    "authorizedAwsRegion" => @authorized_aws_region,
    "tags" => @tags,
  })
  result.compact
end