Class TransitGatewayRoute
(experimental) Create a Transit Gateway Active Route.
Inherited Members
Namespace: Amazon.CDK.AWS.ec2.Alpha
Assembly: Amazon.CDK.AWS.ec2.Alpha.dll
Syntax (csharp)
public class TransitGatewayRoute : Resource, ITransitGatewayRoute, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class TransitGatewayRoute Inherits Resource Implements ITransitGatewayRoute, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
Stability: Experimental
Resource: AWS::EC2::TransitGatewayRoute
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;
ITransitGatewayAttachment transitGatewayAttachment;
TransitGatewayRouteTable transitGatewayRouteTable;
var transitGatewayRoute = new TransitGatewayRoute(this, "MyTransitGatewayRoute", new TransitGatewayRouteProps {
DestinationCidrBlock = "destinationCidrBlock",
TransitGatewayAttachment = transitGatewayAttachment,
TransitGatewayRouteTable = transitGatewayRouteTable,
// the properties below are optional
TransitGatewayRouteName = "transitGatewayRouteName"
});
Synopsis
Constructors
| TransitGatewayRoute(Construct, string, ITransitGatewayRouteProps) | (experimental) Create a Transit Gateway Active Route. |
Properties
| DestinationCidrBlock | (experimental) The destination CIDR block for this route. |
| PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
| Resource | (experimental) The AWS CloudFormation resource representing the Transit Gateway Route. |
| RouteTable | (experimental) The transit gateway route table this route belongs to. |
Constructors
TransitGatewayRoute(Construct, string, ITransitGatewayRouteProps)
(experimental) Create a Transit Gateway Active Route.
public TransitGatewayRoute(Construct scope, string id, ITransitGatewayRouteProps props)
Parameters
- scope Construct
- id string
- props ITransitGatewayRouteProps
Remarks
Stability: Experimental
Properties
DestinationCidrBlock
(experimental) The destination CIDR block for this route.
public virtual string DestinationCidrBlock { get; }
Property Value
Remarks
Destination Cidr cannot overlap for static routes but is allowed for propagated routes. When overlapping occurs, static routes take precedence over propagated routes.
Stability: Experimental
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
Resource
(experimental) The AWS CloudFormation resource representing the Transit Gateway Route.
public virtual CfnTransitGatewayRoute Resource { get; }
Property Value
Remarks
Stability: Experimental
RouteTable
(experimental) The transit gateway route table this route belongs to.
public virtual ITransitGatewayRouteTable RouteTable { get; }
Property Value
Remarks
Stability: Experimental