Class: AWSCDK::EC2::CfnInternetGatewayProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnInternetGatewayProps
- Defined in:
- ec2/cfn_internet_gateway_props.rb
Overview
Properties for defining a CfnInternetGateway.
Instance Attribute Summary collapse
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Any tags to assign to the internet gateway.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tags: nil) ⇒ CfnInternetGatewayProps
constructor
A new instance of CfnInternetGatewayProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(tags: nil) ⇒ CfnInternetGatewayProps
Returns a new instance of CfnInternetGatewayProps.
10 11 12 13 |
# File 'ec2/cfn_internet_gateway_props.rb', line 10 def initialize(tags: 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
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Any tags to assign to the internet gateway.
19 20 21 |
# File 'ec2/cfn_internet_gateway_props.rb', line 19 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
21 22 23 24 25 |
# File 'ec2/cfn_internet_gateway_props.rb', line 21 def self.jsii_properties { :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
27 28 29 30 31 32 33 |
# File 'ec2/cfn_internet_gateway_props.rb', line 27 def to_jsii result = {} result.merge!({ "tags" => @tags, }) result.compact end |