Class: AWSCDK::EC2::CfnTransitGatewayRouteProps

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

Overview

Properties for defining a CfnTransitGatewayRoute.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_cidr_block:, transit_gateway_route_table_id:, blackhole: nil, transit_gateway_attachment_id: nil) ⇒ CfnTransitGatewayRouteProps

Returns a new instance of CfnTransitGatewayRouteProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'ec2/cfn_transit_gateway_route_props.rb', line 13

def initialize(destination_cidr_block:, transit_gateway_route_table_id:, blackhole: nil, transit_gateway_attachment_id: nil)
  @destination_cidr_block = destination_cidr_block
  Jsii::Type.check_type(@destination_cidr_block, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationCidrBlock")
  @transit_gateway_route_table_id = transit_gateway_route_table_id
  Jsii::Type.check_type(@transit_gateway_route_table_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVRyYW5zaXRHYXRld2F5Um91dGVUYWJsZVJlZiJ9XX19")), "transitGatewayRouteTableId")
  @blackhole = blackhole
  Jsii::Type.check_type(@blackhole, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "blackhole") unless @blackhole.nil?
  @transit_gateway_attachment_id = transit_gateway_attachment_id
  Jsii::Type.check_type(@transit_gateway_attachment_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVRyYW5zaXRHYXRld2F5QXR0YWNobWVudFJlZiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuaW50ZXJmYWNlcy5hd3NfZWMyLklUcmFuc2l0R2F0ZXdheVBlZXJpbmdBdHRhY2htZW50UmVmIn1dfX0=")), "transitGatewayAttachmentId") unless @transit_gateway_attachment_id.nil?
end

Instance Attribute Details

#blackholeBoolean, ... (readonly)

Indicates whether to drop traffic that matches this route.



38
39
40
# File 'ec2/cfn_transit_gateway_route_props.rb', line 38

def blackhole
  @blackhole
end

#destination_cidr_blockString (readonly)

The CIDR block used for destination matches.



28
29
30
# File 'ec2/cfn_transit_gateway_route_props.rb', line 28

def destination_cidr_block
  @destination_cidr_block
end

#transit_gateway_attachment_idString, ... (readonly)

The ID of the attachment.



43
44
45
# File 'ec2/cfn_transit_gateway_route_props.rb', line 43

def transit_gateway_attachment_id
  @transit_gateway_attachment_id
end

#transit_gateway_route_table_idString, AWSCDK::Interfaces::AWSEC2::ITransitGatewayRouteTableRef (readonly)

The ID of the transit gateway route table.



33
34
35
# File 'ec2/cfn_transit_gateway_route_props.rb', line 33

def transit_gateway_route_table_id
  @transit_gateway_route_table_id
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'ec2/cfn_transit_gateway_route_props.rb', line 45

def self.jsii_properties
  {
    :destination_cidr_block => "destinationCidrBlock",
    :transit_gateway_route_table_id => "transitGatewayRouteTableId",
    :blackhole => "blackhole",
    :transit_gateway_attachment_id => "transitGatewayAttachmentId",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'ec2/cfn_transit_gateway_route_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "destinationCidrBlock" => @destination_cidr_block,
    "transitGatewayRouteTableId" => @transit_gateway_route_table_id,
    "blackhole" => @blackhole,
    "transitGatewayAttachmentId" => @transit_gateway_attachment_id,
  })
  result.compact
end