Class: AWSCDK::Config::CfnAggregationAuthorizationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Config::CfnAggregationAuthorizationProps
- Defined in:
- config/cfn_aggregation_authorization_props.rb
Overview
Properties for defining a CfnAggregationAuthorization.
Instance Attribute Summary collapse
-
#authorized_account_id ⇒ String
readonly
The 12-digit account ID of the account authorized to aggregate data.
-
#authorized_aws_region ⇒ String
readonly
The region authorized to collect aggregated data.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of tag object.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(authorized_account_id:, authorized_aws_region:, tags: nil) ⇒ CfnAggregationAuthorizationProps
constructor
A new instance of CfnAggregationAuthorizationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(authorized_account_id:, authorized_aws_region:, tags: nil) ⇒ CfnAggregationAuthorizationProps
Returns a new instance of CfnAggregationAuthorizationProps.
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 = Jsii::Type.check_type(@authorized_aws_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizedAwsRegion") @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
#authorized_account_id ⇒ String (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_region ⇒ String (readonly)
The region authorized to collect aggregated data.
30 31 32 |
# File 'config/cfn_aggregation_authorization_props.rb', line 30 def @authorized_aws_region end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of tag object.
35 36 37 |
# File 'config/cfn_aggregation_authorization_props.rb', line 35 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |