Class: AWSCDK::EC2::CfnLocalGatewayRouteProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLocalGatewayRouteProps
- Defined in:
- ec2/cfn_local_gateway_route_props.rb
Overview
Properties for defining a CfnLocalGatewayRoute.
Instance Attribute Summary collapse
-
#destination_cidr_block ⇒ String
readonly
The CIDR block used for destination matches.
-
#local_gateway_route_table_id ⇒ String
readonly
The ID of the local gateway route table.
-
#local_gateway_virtual_interface_group_id ⇒ String?
readonly
The ID of the virtual interface group.
-
#network_interface_id ⇒ String?
readonly
The ID of the network interface.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination_cidr_block:, local_gateway_route_table_id:, local_gateway_virtual_interface_group_id: nil, network_interface_id: nil) ⇒ CfnLocalGatewayRouteProps
constructor
A new instance of CfnLocalGatewayRouteProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination_cidr_block:, local_gateway_route_table_id:, local_gateway_virtual_interface_group_id: nil, network_interface_id: nil) ⇒ CfnLocalGatewayRouteProps
Returns a new instance of CfnLocalGatewayRouteProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'ec2/cfn_local_gateway_route_props.rb', line 13 def initialize(destination_cidr_block:, local_gateway_route_table_id:, local_gateway_virtual_interface_group_id: nil, network_interface_id: nil) @destination_cidr_block = destination_cidr_block Jsii::Type.check_type(@destination_cidr_block, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationCidrBlock") @local_gateway_route_table_id = local_gateway_route_table_id Jsii::Type.check_type(@local_gateway_route_table_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localGatewayRouteTableId") @local_gateway_virtual_interface_group_id = local_gateway_virtual_interface_group_id Jsii::Type.check_type(@local_gateway_virtual_interface_group_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localGatewayVirtualInterfaceGroupId") unless @local_gateway_virtual_interface_group_id.nil? @network_interface_id = network_interface_id Jsii::Type.check_type(@network_interface_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkInterfaceId") unless @network_interface_id.nil? end |
Instance Attribute Details
#destination_cidr_block ⇒ String (readonly)
The CIDR block used for destination matches.
28 29 30 |
# File 'ec2/cfn_local_gateway_route_props.rb', line 28 def destination_cidr_block @destination_cidr_block end |
#local_gateway_route_table_id ⇒ String (readonly)
The ID of the local gateway route table.
33 34 35 |
# File 'ec2/cfn_local_gateway_route_props.rb', line 33 def local_gateway_route_table_id @local_gateway_route_table_id end |
#local_gateway_virtual_interface_group_id ⇒ String? (readonly)
The ID of the virtual interface group.
38 39 40 |
# File 'ec2/cfn_local_gateway_route_props.rb', line 38 def local_gateway_virtual_interface_group_id @local_gateway_virtual_interface_group_id end |
#network_interface_id ⇒ String? (readonly)
The ID of the network interface.
43 44 45 |
# File 'ec2/cfn_local_gateway_route_props.rb', line 43 def network_interface_id @network_interface_id end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'ec2/cfn_local_gateway_route_props.rb', line 45 def self.jsii_properties { :destination_cidr_block => "destinationCidrBlock", :local_gateway_route_table_id => "localGatewayRouteTableId", :local_gateway_virtual_interface_group_id => "localGatewayVirtualInterfaceGroupId", :network_interface_id => "networkInterfaceId", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'ec2/cfn_local_gateway_route_props.rb', line 54 def to_jsii result = {} result.merge!({ "destinationCidrBlock" => @destination_cidr_block, "localGatewayRouteTableId" => @local_gateway_route_table_id, "localGatewayVirtualInterfaceGroupId" => @local_gateway_virtual_interface_group_id, "networkInterfaceId" => @network_interface_id, }) result.compact end |