TransitGatewayRouteTableRouteProperty Struct
Describes a route in a transit gateway route table.
| 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 transitGatewayRouteTableRouteProperty: ec2.CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty = {
attachmentId: 'attachmentId',
destinationCidr: 'destinationCidr',
prefixListId: 'prefixListId',
resourceId: 'resourceId',
resourceType: 'resourceType',
routeOrigin: 'routeOrigin',
state: 'state',
};
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
transit_gateway_route_table_route_property = ec2.CfnNetworkInsightsAnalysis.TransitGatewayRouteTableRouteProperty(
attachment_id="attachmentId",
destination_cidr="destinationCidr",
prefix_list_id="prefixListId",
resource_id="resourceId",
resource_type="resourceType",
route_origin="routeOrigin",
state="state"
)
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.*;
TransitGatewayRouteTableRouteProperty transitGatewayRouteTableRouteProperty = TransitGatewayRouteTableRouteProperty.builder()
.attachmentId("attachmentId")
.destinationCidr("destinationCidr")
.prefixListId("prefixListId")
.resourceId("resourceId")
.resourceType("resourceType")
.routeOrigin("routeOrigin")
.state("state")
.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 transitGatewayRouteTableRouteProperty = new TransitGatewayRouteTableRouteProperty {
AttachmentId = "attachmentId",
DestinationCidr = "destinationCidr",
PrefixListId = "prefixListId",
ResourceId = "resourceId",
ResourceType = "resourceType",
RouteOrigin = "routeOrigin",
State = "state"
};
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"
transitGatewayRouteTableRouteProperty := &TransitGatewayRouteTableRouteProperty{
AttachmentId: jsii.String("attachmentId"),
DestinationCidr: jsii.String("destinationCidr"),
PrefixListId: jsii.String("prefixListId"),
ResourceId: jsii.String("resourceId"),
ResourceType: jsii.String("resourceType"),
RouteOrigin: jsii.String("routeOrigin"),
State: jsii.String("state"),
}
Properties
attachmentIdoptionalstringattachment_idoptionalstrattachmentIdoptionalStringAttachmentIdoptionalstringAttachmentIdoptional*string #The ID of the route attachment.
destinationCidroptionalstringdestination_cidroptionalstrdestinationCidroptionalStringDestinationCidroptionalstringDestinationCidroptional*string #The CIDR block used for destination matches.
prefixListIdoptionalstringprefix_list_idoptionalstrprefixListIdoptionalStringPrefixListIdoptionalstringPrefixListIdoptional*string #The ID of the prefix list.
resourceIdoptionalstringresource_idoptionalstrresourceIdoptionalStringResourceIdoptionalstringResourceIdoptional*string #The ID of the resource for the route attachment.
resourceTypeoptionalstringresource_typeoptionalstrresourceTypeoptionalStringResourceTypeoptionalstringResourceTypeoptional*string #The resource type for the route attachment.
routeOriginoptionalstringroute_originoptionalstrrouteOriginoptionalStringRouteOriginoptionalstringRouteOriginoptional*string #The route origin. The following are the possible values:.
- static
- propagated
The state of the route.