interface RouteTargetProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ec2.Alpha.RouteTargetProps |
Go | github.com/aws/aws-cdk-go/awsec2alpha/v2#RouteTargetProps |
Java | software.amazon.awscdk.services.ec2.alpha.RouteTargetProps |
Python | aws_cdk.aws_ec2_alpha.RouteTargetProps |
TypeScript (source) | @aws-cdk/aws-ec2-alpha » RouteTargetProps |
The type of endpoint or gateway being targeted by the route.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2_alpha from '@aws-cdk/aws-ec2-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const routeTarget: ec2_alpha.IRouteTarget;
declare const vpcEndpoint: ec2.VpcEndpoint;
const routeTargetProps: ec2_alpha.RouteTargetProps = {
endpoint: vpcEndpoint,
gateway: routeTarget,
};
Properties
Name | Type | Description |
---|---|---|
endpoint? | IVpc | The endpoint route target. |
gateway? | IRoute | The gateway route target. |
endpoint?
Type:
IVpc
(optional, default: target is not set to an endpoint, in this case a gateway is needed.)
The endpoint route target.
This is used for targets such as VPC endpoints.
gateway?
Type:
IRoute
(optional, default: target is not set to a gateway, in this case an endpoint is needed.)
The gateway route target.
This is used for targets such as egress-only internet gateway or VPC peering connection.