Class: AWSCDK::EC2::CfnNetworkInsightsAnalysis::TransitGatewayRouteTableRouteProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnNetworkInsightsAnalysis::TransitGatewayRouteTableRouteProperty
- Defined in:
- ec2/cfn_network_insights_analysis.rb
Overview
Describes a route in a transit gateway route table.
Instance Attribute Summary collapse
-
#attachment_id ⇒ String?
readonly
The ID of the route attachment.
-
#destination_cidr ⇒ String?
readonly
The CIDR block used for destination matches.
-
#prefix_list_id ⇒ String?
readonly
The ID of the prefix list.
-
#resource_id ⇒ String?
readonly
The ID of the resource for the route attachment.
-
#resource_type ⇒ String?
readonly
The resource type for the route attachment.
-
#route_origin ⇒ String?
readonly
The route origin.
-
#state ⇒ String?
readonly
The state of the route.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attachment_id: nil, destination_cidr: nil, prefix_list_id: nil, resource_id: nil, resource_type: nil, route_origin: nil, state: nil) ⇒ TransitGatewayRouteTableRouteProperty
constructor
A new instance of TransitGatewayRouteTableRouteProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attachment_id: nil, destination_cidr: nil, prefix_list_id: nil, resource_id: nil, resource_type: nil, route_origin: nil, state: nil) ⇒ TransitGatewayRouteTableRouteProperty
Returns a new instance of TransitGatewayRouteTableRouteProperty.
2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 |
# File 'ec2/cfn_network_insights_analysis.rb', line 2098 def initialize(attachment_id: nil, destination_cidr: nil, prefix_list_id: nil, resource_id: nil, resource_type: nil, route_origin: nil, state: nil) @attachment_id = Jsii::Type.check_type(@attachment_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attachmentId") unless @attachment_id.nil? @destination_cidr = destination_cidr Jsii::Type.check_type(@destination_cidr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationCidr") unless @destination_cidr.nil? @prefix_list_id = prefix_list_id Jsii::Type.check_type(@prefix_list_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefixListId") unless @prefix_list_id.nil? @resource_id = resource_id Jsii::Type.check_type(@resource_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceId") unless @resource_id.nil? @resource_type = resource_type Jsii::Type.check_type(@resource_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceType") unless @resource_type.nil? @route_origin = route_origin Jsii::Type.check_type(@route_origin, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "routeOrigin") unless @route_origin.nil? @state = state Jsii::Type.check_type(@state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "state") unless @state.nil? end |
Instance Attribute Details
#attachment_id ⇒ String? (readonly)
The ID of the route attachment.
2119 2120 2121 |
# File 'ec2/cfn_network_insights_analysis.rb', line 2119 def @attachment_id end |
#destination_cidr ⇒ String? (readonly)
The CIDR block used for destination matches.
2124 2125 2126 |
# File 'ec2/cfn_network_insights_analysis.rb', line 2124 def destination_cidr @destination_cidr end |
#prefix_list_id ⇒ String? (readonly)
The ID of the prefix list.
2129 2130 2131 |
# File 'ec2/cfn_network_insights_analysis.rb', line 2129 def prefix_list_id @prefix_list_id end |
#resource_id ⇒ String? (readonly)
The ID of the resource for the route attachment.
2134 2135 2136 |
# File 'ec2/cfn_network_insights_analysis.rb', line 2134 def resource_id @resource_id end |
#resource_type ⇒ String? (readonly)
The resource type for the route attachment.
2139 2140 2141 |
# File 'ec2/cfn_network_insights_analysis.rb', line 2139 def resource_type @resource_type end |
#route_origin ⇒ String? (readonly)
The route origin. The following are the possible values:.
- static
- propagated
2147 2148 2149 |
# File 'ec2/cfn_network_insights_analysis.rb', line 2147 def route_origin @route_origin end |
#state ⇒ String? (readonly)
The state of the route.
2152 2153 2154 |
# File 'ec2/cfn_network_insights_analysis.rb', line 2152 def state @state end |
Class Method Details
.jsii_properties ⇒ Object
2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 |
# File 'ec2/cfn_network_insights_analysis.rb', line 2154 def self.jsii_properties { :attachment_id => "attachmentId", :destination_cidr => "destinationCidr", :prefix_list_id => "prefixListId", :resource_id => "resourceId", :resource_type => "resourceType", :route_origin => "routeOrigin", :state => "state", } end |
Instance Method Details
#to_jsii ⇒ Object
2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 |
# File 'ec2/cfn_network_insights_analysis.rb', line 2166 def to_jsii result = {} result.merge!({ "attachmentId" => @attachment_id, "destinationCidr" => @destination_cidr, "prefixListId" => @prefix_list_id, "resourceId" => @resource_id, "resourceType" => @resource_type, "routeOrigin" => @route_origin, "state" => @state, }) result.compact end |