Class: AWSCDK::EC2::CfnNetworkInsightsAnalysis::TransitGatewayRouteTableRouteProperty

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

Overview

Describes a route in a transit gateway route table.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • attachment_id (String, nil) (defaults to: nil)

    The ID of the route attachment.

  • destination_cidr (String, nil) (defaults to: nil)

    The CIDR block used for destination matches.

  • prefix_list_id (String, nil) (defaults to: nil)

    The ID of the prefix list.

  • resource_id (String, nil) (defaults to: nil)

    The ID of the resource for the route attachment.

  • resource_type (String, nil) (defaults to: nil)

    The resource type for the route attachment.

  • route_origin (String, nil) (defaults to: nil)

    The route origin. The following are the possible values:.

  • state (String, nil) (defaults to: nil)

    The state of the route.



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 = 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_idString? (readonly)

The ID of the route attachment.



2119
2120
2121
# File 'ec2/cfn_network_insights_analysis.rb', line 2119

def attachment_id
  @attachment_id
end

#destination_cidrString? (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_idString? (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_idString? (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_typeString? (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_originString? (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

#stateString? (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_propertiesObject



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_jsiiObject



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