AnalysisRouteTableRouteProperty Struct
Describes a route table route.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const analysisRouteTableRouteProperty: ec2.CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty = {
destinationCidr: 'destinationCidr',
destinationPrefixListId: 'destinationPrefixListId',
egressOnlyInternetGatewayId: 'egressOnlyInternetGatewayId',
gatewayId: 'gatewayId',
instanceId: 'instanceId',
natGatewayId: 'natGatewayId',
networkInterfaceId: 'networkInterfaceId',
origin: 'origin',
state: 'state',
transitGatewayId: 'transitGatewayId',
vpcPeeringConnectionId: 'vpcPeeringConnectionId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
analysis_route_table_route_property = ec2.CfnNetworkInsightsAnalysis.AnalysisRouteTableRouteProperty(
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"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
AnalysisRouteTableRouteProperty analysisRouteTableRouteProperty = AnalysisRouteTableRouteProperty.builder()
.destinationCidr("destinationCidr")
.destinationPrefixListId("destinationPrefixListId")
.egressOnlyInternetGatewayId("egressOnlyInternetGatewayId")
.gatewayId("gatewayId")
.instanceId("instanceId")
.natGatewayId("natGatewayId")
.networkInterfaceId("networkInterfaceId")
.origin("origin")
.state("state")
.transitGatewayId("transitGatewayId")
.vpcPeeringConnectionId("vpcPeeringConnectionId")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var analysisRouteTableRouteProperty = new AnalysisRouteTableRouteProperty {
DestinationCidr = "destinationCidr",
DestinationPrefixListId = "destinationPrefixListId",
EgressOnlyInternetGatewayId = "egressOnlyInternetGatewayId",
GatewayId = "gatewayId",
InstanceId = "instanceId",
NatGatewayId = "natGatewayId",
NetworkInterfaceId = "networkInterfaceId",
Origin = "origin",
State = "state",
TransitGatewayId = "transitGatewayId",
VpcPeeringConnectionId = "vpcPeeringConnectionId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
analysisRouteTableRouteProperty := &AnalysisRouteTableRouteProperty{
DestinationCidr: jsii.String("destinationCidr"),
DestinationPrefixListId: jsii.String("destinationPrefixListId"),
EgressOnlyInternetGatewayId: jsii.String("egressOnlyInternetGatewayId"),
GatewayId: jsii.String("gatewayId"),
InstanceId: jsii.String("instanceId"),
NatGatewayId: jsii.String("natGatewayId"),
NetworkInterfaceId: jsii.String("networkInterfaceId"),
Origin: jsii.String("origin"),
State: jsii.String("state"),
TransitGatewayId: jsii.String("transitGatewayId"),
VpcPeeringConnectionId: jsii.String("vpcPeeringConnectionId"),
}
Properties
destinationCidroptionalstringdestination_cidroptionalstrdestinationCidroptionalStringDestinationCidroptionalstringDestinationCidroptional*string #The destination IPv4 address, in CIDR notation.
destinationPrefixListIdoptionalstringdestination_prefix_list_idoptionalstrdestinationPrefixListIdoptionalStringDestinationPrefixListIdoptionalstringDestinationPrefixListIdoptional*string #The prefix of the AWS service.
egressOnlyInternetGatewayIdoptionalstringegress_only_internet_gateway_idoptionalstregressOnlyInternetGatewayIdoptionalStringEgressOnlyInternetGatewayIdoptionalstringEgressOnlyInternetGatewayIdoptional*string #The ID of an egress-only internet gateway.
gatewayIdoptionalstringgateway_idoptionalstrgatewayIdoptionalStringGatewayIdoptionalstringGatewayIdoptional*string #The ID of the gateway, such as an internet gateway or virtual private gateway.
instanceIdoptionalstringinstance_idoptionalstrinstanceIdoptionalStringInstanceIdoptionalstringInstanceIdoptional*string #The ID of the instance, such as a NAT instance.
natGatewayIdoptionalstringnat_gateway_idoptionalstrnatGatewayIdoptionalStringNatGatewayIdoptionalstringNatGatewayIdoptional*string #The ID of a NAT gateway.
networkInterfaceIdoptionalstringnetwork_interface_idoptionalstrnetworkInterfaceIdoptionalStringNetworkInterfaceIdoptionalstringNetworkInterfaceIdoptional*string #The ID of a network interface.
originoptionalstringoriginoptionalstroriginoptionalStringOriginoptionalstringOriginoptional*string #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.
The state. The following are the possible values:.
- active
- blackhole
transitGatewayIdoptionalstringtransit_gateway_idoptionalstrtransitGatewayIdoptionalStringTransitGatewayIdoptionalstringTransitGatewayIdoptional*string #The ID of a transit gateway.
vpcPeeringConnectionIdoptionalstringvpc_peering_connection_idoptionalstrvpcPeeringConnectionIdoptionalStringVpcPeeringConnectionIdoptionalstringVpcPeeringConnectionIdoptional*string #The ID of a VPC peering connection.