Class CfnTransitGatewayRouteTableAssociation
A CloudFormation AWS::EC2::TransitGatewayRouteTableAssociation
.
Inheritance
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnTransitGatewayRouteTableAssociation : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnTransitGatewayRouteTableAssociation
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Associates the specified attachment with the specified transit gateway route table. You can associate one route table with an attachment.
Before you can update the route table associated with an attachment, you must disassociate the transit gateway route table that is currently associated with the attachment. First update the stack to remove the associated transit gateway route table, and then update the stack with the ID of the new transit gateway route table to associate.
CloudformationResource: AWS::EC2::TransitGatewayRouteTableAssociation
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;
var cfnTransitGatewayRouteTableAssociation = new CfnTransitGatewayRouteTableAssociation(this, "MyCfnTransitGatewayRouteTableAssociation", new CfnTransitGatewayRouteTableAssociationProps {
TransitGatewayAttachmentId = "transitGatewayAttachmentId",
TransitGatewayRouteTableId = "transitGatewayRouteTableId"
});
Synopsis
Constructors
CfnTransitGatewayRouteTableAssociation(Construct, String, ICfnTransitGatewayRouteTableAssociationProps) | Create a new |
CfnTransitGatewayRouteTableAssociation(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnTransitGatewayRouteTableAssociation(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
TransitGatewayAttachmentId | The ID of the attachment. |
TransitGatewayRouteTableId | The ID of the route table for the transit gateway. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnTransitGatewayRouteTableAssociation(Construct, String, ICfnTransitGatewayRouteTableAssociationProps)
Create a new AWS::EC2::TransitGatewayRouteTableAssociation
.
public CfnTransitGatewayRouteTableAssociation(Construct scope, string id, ICfnTransitGatewayRouteTableAssociationProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnTransitGatewayRouteTableAssociationProps
- resource properties.
CfnTransitGatewayRouteTableAssociation(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnTransitGatewayRouteTableAssociation(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnTransitGatewayRouteTableAssociation(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnTransitGatewayRouteTableAssociation(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
TransitGatewayAttachmentId
The ID of the attachment.
public virtual string TransitGatewayAttachmentId { get; set; }
Property Value
System.String
Remarks
TransitGatewayRouteTableId
The ID of the route table for the transit gateway.
public virtual string TransitGatewayRouteTableId { get; set; }
Property Value
System.String
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>