Class: AWSCDK::EC2::CfnSubnetRouteTableAssociationProps

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

Overview

Properties for defining a CfnSubnetRouteTableAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(route_table_id:, subnet_id:) ⇒ CfnSubnetRouteTableAssociationProps

Returns a new instance of CfnSubnetRouteTableAssociationProps.

Parameters:



11
12
13
14
15
16
# File 'ec2/cfn_subnet_route_table_association_props.rb', line 11

def initialize(route_table_id:, subnet_id:)
  @route_table_id = route_table_id
  Jsii::Type.check_type(@route_table_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVJvdXRlVGFibGVSZWYifV19fQ==")), "routeTableId")
  @subnet_id = subnet_id
  Jsii::Type.check_type(@subnet_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVN1Ym5ldFJlZiJ9XX19")), "subnetId")
end

Instance Attribute Details

#route_table_idString, AWSCDK::Interfaces::AWSEC2::IRouteTableRef (readonly)

The ID of the route table.

The physical ID changes when the route table ID is changed.



24
25
26
# File 'ec2/cfn_subnet_route_table_association_props.rb', line 24

def route_table_id
  @route_table_id
end

#subnet_idString, AWSCDK::Interfaces::AWSEC2::ISubnetRef (readonly)

The ID of the subnet.



29
30
31
# File 'ec2/cfn_subnet_route_table_association_props.rb', line 29

def subnet_id
  @subnet_id
end

Class Method Details

.jsii_propertiesObject



31
32
33
34
35
36
# File 'ec2/cfn_subnet_route_table_association_props.rb', line 31

def self.jsii_properties
  {
    :route_table_id => "routeTableId",
    :subnet_id => "subnetId",
  }
end

Instance Method Details

#to_jsiiObject



38
39
40
41
42
43
44
45
# File 'ec2/cfn_subnet_route_table_association_props.rb', line 38

def to_jsii
  result = {}
  result.merge!({
    "routeTableId" => @route_table_id,
    "subnetId" => @subnet_id,
  })
  result.compact
end