Class: AWSCDK::GlobalAccelerator::CfnCrossAccountAttachmentProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GlobalAccelerator::CfnCrossAccountAttachmentProps
- Defined in:
- global_accelerator/cfn_cross_account_attachment_props.rb
Overview
Properties for defining a CfnCrossAccountAttachment.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the cross-account attachment.
-
#principals ⇒ Array<String>?
readonly
The principals included in the cross-account attachment.
-
#resources ⇒ AWSCDK::IResolvable, ...
readonly
The resources included in the cross-account attachment.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Add tags for a cross-account attachment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, principals: nil, resources: nil, tags: nil) ⇒ CfnCrossAccountAttachmentProps
constructor
A new instance of CfnCrossAccountAttachmentProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, principals: nil, resources: nil, tags: nil) ⇒ CfnCrossAccountAttachmentProps
Returns a new instance of CfnCrossAccountAttachmentProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'global_accelerator/cfn_cross_account_attachment_props.rb', line 13 def initialize(name:, principals: nil, resources: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @principals = principals Jsii::Type.check_type(@principals, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "principals") unless @principals.nil? @resources = resources Jsii::Type.check_type(@resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ2xvYmFsYWNjZWxlcmF0b3IuQ2ZuQ3Jvc3NBY2NvdW50QXR0YWNobWVudC5SZXNvdXJjZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "resources") unless @resources.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
#name ⇒ String (readonly)
The name of the cross-account attachment.
28 29 30 |
# File 'global_accelerator/cfn_cross_account_attachment_props.rb', line 28 def name @name end |
#principals ⇒ Array<String>? (readonly)
The principals included in the cross-account attachment.
33 34 35 |
# File 'global_accelerator/cfn_cross_account_attachment_props.rb', line 33 def principals @principals end |
#resources ⇒ AWSCDK::IResolvable, ... (readonly)
The resources included in the cross-account attachment.
38 39 40 |
# File 'global_accelerator/cfn_cross_account_attachment_props.rb', line 38 def resources @resources end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Add tags for a cross-account attachment.
For more information, see Tagging in AWS Global Accelerator in the AWS Global Accelerator Developer Guide .
45 46 47 |
# File 'global_accelerator/cfn_cross_account_attachment_props.rb', line 45 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'global_accelerator/cfn_cross_account_attachment_props.rb', line 47 def self.jsii_properties { :name => "name", :principals => "principals", :resources => "resources", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'global_accelerator/cfn_cross_account_attachment_props.rb', line 56 def to_jsii result = {} result.merge!({ "name" => @name, "principals" => @principals, "resources" => @resources, "tags" => @tags, }) result.compact end |