Show / Hide Table of Contents

Class Route

(experimental) Creates a new route with added functionality.

Inheritance
object
Resource
Route
Implements
IRouteV2
IResource
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.ec2.Alpha
Assembly: Amazon.CDK.AWS.ec2.Alpha.dll
Syntax (csharp)
public class Route : Resource, IRouteV2, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class Route Inherits Resource Implements IRouteV2, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks

Stability: Experimental

Resource: AWS::EC2::Route

ExampleMetadata: infused

Examples
var myVpc = new VpcV2(this, "Vpc");
             var routeTable = new RouteTable(this, "RouteTable", new RouteTableProps {
                 Vpc = myVpc
             });
             var subnet = new SubnetV2(this, "Subnet", new SubnetV2Props {
                 Vpc = myVpc,
                 AvailabilityZone = "eu-west-2a",
                 Ipv4CidrBlock = new IpCidr("10.0.0.0/24"),
                 SubnetType = SubnetType.PRIVATE_ISOLATED
             });

             var natgw = new NatGateway(this, "NatGW", new NatGatewayProps {
                 Subnet = subnet,
                 Vpc = myVpc,
                 ConnectivityType = NatConnectivityType.PRIVATE,
                 PrivateIpAddress = "10.0.0.42"
             });
             new Route(this, "NatGwRoute", new RouteProps {
                 RouteTable = routeTable,
                 Destination = "0.0.0.0/0",
                 Target = new Dictionary<string, IRouteTarget?> { { "gateway", natgw } }
             });

Synopsis

Constructors

Route(Construct, string, IRouteProps)

(experimental) Creates a new route with added functionality.

Properties

Destination

(experimental) The IPv4 or IPv6 CIDR block used for the destination match.

PROPERTY_INJECTION_ID

(experimental) Uniquely identifies this class.

Resource

(experimental) The route CFN resource.

RouteTable

(experimental) The route table for the route.

Target

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

TargetRouterType

(experimental) The type of router the route is targeting.

Constructors

Route(Construct, string, IRouteProps)

(experimental) Creates a new route with added functionality.

public Route(Construct scope, string id, IRouteProps props)
Parameters
scope Construct
id string
props IRouteProps
Remarks

Stability: Experimental

Properties

Destination

(experimental) The IPv4 or IPv6 CIDR block used for the destination match.

public virtual string Destination { get; }
Property Value

string

Remarks

Routing decisions are based on the most specific match.

Stability: Experimental

PROPERTY_INJECTION_ID

(experimental) Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

Stability: Experimental

Resource

(experimental) The route CFN resource.

public virtual CfnRoute? Resource { get; }
Property Value

CfnRoute

Remarks

Stability: Experimental

RouteTable

(experimental) The route table for the route.

public virtual IRouteTable RouteTable { get; }
Property Value

IRouteTable

Remarks

Stability: Experimental

Attribute: routeTable

Target

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

public virtual RouteTargetType Target { get; }
Property Value

RouteTargetType

Remarks

Stability: Experimental

TargetRouterType

(experimental) The type of router the route is targeting.

public virtual RouterType TargetRouterType { get; }
Property Value

RouterType

Remarks

Stability: Experimental

Implements

IRouteV2
IResource
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX