Show / Hide Table of Contents

Class RouteTargetProps

(experimental) The type of endpoint or gateway being targeted by the route.

Inheritance
object
RouteTargetProps
Implements
IRouteTargetProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.ec2.Alpha
Assembly: Amazon.CDK.AWS.ec2.Alpha.dll
Syntax (csharp)
public class RouteTargetProps : IRouteTargetProps
Syntax (vb)
Public Class RouteTargetProps 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

RouteTargetProps()

(experimental) The type of endpoint or gateway being targeted by the route.

Properties

Endpoint

(experimental) The endpoint route target.

Gateway

(experimental) The gateway route target.

Constructors

RouteTargetProps()

(experimental) The type of endpoint or gateway being targeted by the route.

public RouteTargetProps()
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
             };

Properties

Endpoint

(experimental) The endpoint route target.

public IVpcEndpoint? Endpoint { get; set; }
Property Value

IVpcEndpoint

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

IRouteTarget

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

Implements

IRouteTargetProps
Back to top Generated by DocFX