Class CfnTransitGatewayAttachmentProps
Properties for defining a CfnTransitGatewayAttachment
.
Inheritance
System.Object
CfnTransitGatewayAttachmentProps
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnTransitGatewayAttachmentProps : Object, ICfnTransitGatewayAttachmentProps
Syntax (vb)
Public Class CfnTransitGatewayAttachmentProps
Inherits Object
Implements ICfnTransitGatewayAttachmentProps
Remarks
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 options;
var cfnTransitGatewayAttachmentProps = new CfnTransitGatewayAttachmentProps {
SubnetIds = new [] { "subnetIds" },
TransitGatewayId = "transitGatewayId",
VpcId = "vpcId",
// the properties below are optional
Options = options,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnTransitGatewayAttachmentProps() |
Properties
Options | The VPC attachment options, in JSON or YAML. |
SubnetIds | The IDs of one or more subnets. |
Tags | The tags for the attachment. |
TransitGatewayId | The ID of the transit gateway. |
VpcId | The ID of the VPC. |
Constructors
CfnTransitGatewayAttachmentProps()
public CfnTransitGatewayAttachmentProps()
Properties
Options
The VPC attachment options, in JSON or YAML.
public object Options { get; set; }
Property Value
System.Object
Remarks
SubnetIds
The IDs of one or more subnets.
public string[] SubnetIds { get; set; }
Property Value
System.String[]
Remarks
You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.
Tags
TransitGatewayId
The ID of the transit gateway.
public string TransitGatewayId { get; set; }
Property Value
System.String
Remarks
VpcId
The ID of the VPC.
public string VpcId { get; set; }
Property Value
System.String