Class: AWSCDK::EC2::CfnInternetGatewayProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_internet_gateway_props.rb

Overview

Properties for defining a CfnInternetGateway.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tags: nil) ⇒ CfnInternetGatewayProps

Returns a new instance of CfnInternetGatewayProps.

Parameters:

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

    Any tags to assign to the internet gateway.



10
11
12
13
# File 'ec2/cfn_internet_gateway_props.rb', line 10

def initialize(tags: nil)
  @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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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