Class TransitGatewayVpcAttachment
(experimental) Creates a Transit Gateway VPC Attachment.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ec2.Alpha
Assembly: Amazon.CDK.AWS.ec2.Alpha.dll
Syntax (csharp)
public class TransitGatewayVpcAttachment : Resource, ITransitGatewayVpcAttachment, ITransitGatewayAttachment, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class TransitGatewayVpcAttachment Inherits Resource Implements ITransitGatewayVpcAttachment, ITransitGatewayAttachment, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
Stability: Experimental
Resource: AWS::EC2::TransitGatewayAttachment
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;
Subnet subnet;
TransitGateway transitGateway;
ITransitGatewayVpcAttachmentOptions transitGatewayVpcAttachmentOptions;
Vpc vpc;
var transitGatewayVpcAttachment = new TransitGatewayVpcAttachment(this, "MyTransitGatewayVpcAttachment", new TransitGatewayVpcAttachmentProps {
Subnets = new [] { subnet },
TransitGateway = transitGateway,
Vpc = vpc,
// the properties below are optional
TransitGatewayAttachmentName = "transitGatewayAttachmentName",
VpcAttachmentOptions = transitGatewayVpcAttachmentOptions
});
Synopsis
Constructors
| TransitGatewayVpcAttachment(Construct, string, ITransitGatewayVpcAttachmentProps) | (experimental) Creates a Transit Gateway VPC Attachment. |
Properties
| PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
| TransitGatewayAttachmentId | (experimental) The ID of the transit gateway attachment. |
Methods
| AddSubnets(ISubnet[]) | (experimental) Add additional subnets to this attachment. |
| RemoveSubnets(ISubnet[]) | (experimental) Remove additional subnets to this attachment. |
Constructors
TransitGatewayVpcAttachment(Construct, string, ITransitGatewayVpcAttachmentProps)
(experimental) Creates a Transit Gateway VPC Attachment.
public TransitGatewayVpcAttachment(Construct scope, string id, ITransitGatewayVpcAttachmentProps props)
Parameters
- scope Construct
- id string
- props ITransitGatewayVpcAttachmentProps
Remarks
Stability: Experimental
Properties
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
TransitGatewayAttachmentId
(experimental) The ID of the transit gateway attachment.
public virtual string TransitGatewayAttachmentId { get; }
Property Value
Remarks
Stability: Experimental
Methods
AddSubnets(ISubnet[])
(experimental) Add additional subnets to this attachment.
public virtual void AddSubnets(ISubnet[] subnets)
Parameters
- subnets ISubnet[]
Remarks
Stability: Experimental
RemoveSubnets(ISubnet[])
(experimental) Remove additional subnets to this attachment.
public virtual void RemoveSubnets(ISubnet[] subnets)
Parameters
- subnets ISubnet[]
Remarks
Stability: Experimental