Class: AWSCDK::EC2::CfnNetworkInsightsAnalysis::AnalysisRouteTableRouteProperty

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

Overview

Describes a route table route.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_cidr: nil, destination_prefix_list_id: nil, egress_only_internet_gateway_id: nil, gateway_id: nil, instance_id: nil, nat_gateway_id: nil, network_interface_id: nil, origin: nil, state: nil, transit_gateway_id: nil, vpc_peering_connection_id: nil) ⇒ AnalysisRouteTableRouteProperty

Returns a new instance of AnalysisRouteTableRouteProperty.

Parameters:

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

    The destination IPv4 address, in CIDR notation.

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

    The prefix of the AWS service.

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

    The ID of an egress-only internet gateway.

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

    The ID of the gateway, such as an internet gateway or virtual private gateway.

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

    The ID of the instance, such as a NAT instance.

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

    The ID of a NAT gateway.

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

    The ID of a network interface.

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

    Describes how the route was created. The following are the possible values:.

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

    The state. The following are the possible values:.

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

    The ID of a transit gateway.

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

    The ID of a VPC peering connection.



1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
# File 'ec2/cfn_network_insights_analysis.rb', line 1102

def initialize(destination_cidr: nil, destination_prefix_list_id: nil, egress_only_internet_gateway_id: nil, gateway_id: nil, instance_id: nil, nat_gateway_id: nil, network_interface_id: nil, origin: nil, state: nil, transit_gateway_id: nil, vpc_peering_connection_id: nil)
  @destination_cidr = destination_cidr
  Jsii::Type.check_type(@destination_cidr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationCidr") unless @destination_cidr.nil?
  @destination_prefix_list_id = destination_prefix_list_id
  Jsii::Type.check_type(@destination_prefix_list_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationPrefixListId") unless @destination_prefix_list_id.nil?
  @egress_only_internet_gateway_id = egress_only_internet_gateway_id
  Jsii::Type.check_type(@egress_only_internet_gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "egressOnlyInternetGatewayId") unless @egress_only_internet_gateway_id.nil?
  @gateway_id = gateway_id
  Jsii::Type.check_type(@gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayId") unless @gateway_id.nil?
  @instance_id = instance_id
  Jsii::Type.check_type(@instance_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceId") unless @instance_id.nil?
  @nat_gateway_id = nat_gateway_id
  Jsii::Type.check_type(@nat_gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "natGatewayId") unless @nat_gateway_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?
  @origin = origin
  Jsii::Type.check_type(@origin, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "origin") unless @origin.nil?
  @state = state
  Jsii::Type.check_type(@state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "state") unless @state.nil?
  @transit_gateway_id = transit_gateway_id
  Jsii::Type.check_type(@transit_gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "transitGatewayId") unless @transit_gateway_id.nil?
  @vpc_peering_connection_id = vpc_peering_connection_id
  Jsii::Type.check_type(@vpc_peering_connection_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcPeeringConnectionId") unless @vpc_peering_connection_id.nil?
end

Instance Attribute Details

#destination_cidrString? (readonly)

The destination IPv4 address, in CIDR notation.



1131
1132
1133
# File 'ec2/cfn_network_insights_analysis.rb', line 1131

def destination_cidr
  @destination_cidr
end

#destination_prefix_list_idString? (readonly)

The prefix of the AWS service.



1136
1137
1138
# File 'ec2/cfn_network_insights_analysis.rb', line 1136

def destination_prefix_list_id
  @destination_prefix_list_id
end

#egress_only_internet_gateway_idString? (readonly)

The ID of an egress-only internet gateway.



1141
1142
1143
# File 'ec2/cfn_network_insights_analysis.rb', line 1141

def egress_only_internet_gateway_id
  @egress_only_internet_gateway_id
end

#gateway_idString? (readonly)

The ID of the gateway, such as an internet gateway or virtual private gateway.



1146
1147
1148
# File 'ec2/cfn_network_insights_analysis.rb', line 1146

def gateway_id
  @gateway_id
end

#instance_idString? (readonly)

The ID of the instance, such as a NAT instance.



1151
1152
1153
# File 'ec2/cfn_network_insights_analysis.rb', line 1151

def instance_id
  @instance_id
end

#nat_gateway_idString? (readonly)

The ID of a NAT gateway.



1156
1157
1158
# File 'ec2/cfn_network_insights_analysis.rb', line 1156

def nat_gateway_id
  @nat_gateway_id
end

#network_interface_idString? (readonly)

The ID of a network interface.



1161
1162
1163
# File 'ec2/cfn_network_insights_analysis.rb', line 1161

def network_interface_id
  @network_interface_id
end

#originString? (readonly)

Describes how the route was created. The following are the possible values:.

  • CreateRouteTable - The route was automatically created when the route table was created.
  • CreateRoute - The route was manually added to the route table.
  • EnableVgwRoutePropagation - The route was propagated by route propagation.


1170
1171
1172
# File 'ec2/cfn_network_insights_analysis.rb', line 1170

def origin
  @origin
end

#stateString? (readonly)

The state. The following are the possible values:.

  • active
  • blackhole


1178
1179
1180
# File 'ec2/cfn_network_insights_analysis.rb', line 1178

def state
  @state
end

#transit_gateway_idString? (readonly)

The ID of a transit gateway.



1183
1184
1185
# File 'ec2/cfn_network_insights_analysis.rb', line 1183

def transit_gateway_id
  @transit_gateway_id
end

#vpc_peering_connection_idString? (readonly)

The ID of a VPC peering connection.



1188
1189
1190
# File 'ec2/cfn_network_insights_analysis.rb', line 1188

def vpc_peering_connection_id
  @vpc_peering_connection_id
end

Class Method Details

.jsii_propertiesObject



1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
# File 'ec2/cfn_network_insights_analysis.rb', line 1190

def self.jsii_properties
  {
    :destination_cidr => "destinationCidr",
    :destination_prefix_list_id => "destinationPrefixListId",
    :egress_only_internet_gateway_id => "egressOnlyInternetGatewayId",
    :gateway_id => "gatewayId",
    :instance_id => "instanceId",
    :nat_gateway_id => "natGatewayId",
    :network_interface_id => "networkInterfaceId",
    :origin => "origin",
    :state => "state",
    :transit_gateway_id => "transitGatewayId",
    :vpc_peering_connection_id => "vpcPeeringConnectionId",
  }
end

Instance Method Details

#to_jsiiObject



1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
# File 'ec2/cfn_network_insights_analysis.rb', line 1206

def to_jsii
  result = {}
  result.merge!({
    "destinationCidr" => @destination_cidr,
    "destinationPrefixListId" => @destination_prefix_list_id,
    "egressOnlyInternetGatewayId" => @egress_only_internet_gateway_id,
    "gatewayId" => @gateway_id,
    "instanceId" => @instance_id,
    "natGatewayId" => @nat_gateway_id,
    "networkInterfaceId" => @network_interface_id,
    "origin" => @origin,
    "state" => @state,
    "transitGatewayId" => @transit_gateway_id,
    "vpcPeeringConnectionId" => @vpc_peering_connection_id,
  })
  result.compact
end