Class RouteTargetProps
(experimental) The type of endpoint or gateway being targeted by the route.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ec2.Alpha
Assembly: Amazon.CDK.AWS.ec2.Alpha.dll
Syntax (csharp)
public class RouteTargetProps : Object, IRouteTargetProps
Syntax (vb)
Public Class RouteTargetProps
Inherits Object
Implements IRouteTargetProps
Remarks
Stability: Experimental
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ec2.Alpha;
using Amazon.CDK.AWS.EC2;
IRouteTarget routeTarget;
VpcEndpoint vpcEndpoint;
var routeTargetProps = new RouteTargetProps {
Endpoint = vpcEndpoint,
Gateway = routeTarget
};
Synopsis
Constructors
Route |
Properties
Endpoint | (experimental) The endpoint route target. |
Gateway | (experimental) The gateway route target. |
Constructors
RouteTargetProps()
public RouteTargetProps()
Properties
Endpoint
(experimental) The endpoint route target.
public IVpcEndpoint Endpoint { get; set; }
Property Value
Remarks
This is used for targets such as VPC endpoints.
Default: - target is not set to an endpoint, in this case a gateway is needed.
Stability: Experimental
Gateway
(experimental) The gateway route target.
public IRouteTarget Gateway { get; set; }
Property Value
Remarks
This is used for targets such as egress-only internet gateway or VPC peering connection.
Default: - target is not set to a gateway, in this case an endpoint is needed.
Stability: Experimental