@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.347Z") @Stability(value=Stable) public interface CfnTransitGatewayAttachmentProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
Object options;
CfnTransitGatewayAttachmentProps cfnTransitGatewayAttachmentProps = CfnTransitGatewayAttachmentProps.builder()
.subnetIds(List.of("subnetIds"))
.transitGatewayId("transitGatewayId")
.vpcId("vpcId")
// the properties below are optional
.options(options)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnTransitGatewayAttachmentProps.Builder
A builder for
CfnTransitGatewayAttachmentProps |
static class |
CfnTransitGatewayAttachmentProps.Jsii$Proxy
An implementation for
CfnTransitGatewayAttachmentProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnTransitGatewayAttachmentProps.Builder |
builder() |
default Object |
getOptions()
`AWS::EC2::TransitGatewayAttachment.Options`.
|
List<String> |
getSubnetIds()
The IDs of one or more subnets.
|
default List<CfnTag> |
getTags()
The tags for the attachment.
|
String |
getTransitGatewayId()
The ID of the transit gateway.
|
String |
getVpcId()
The ID of the VPC.
|
@Stability(value=Stable) @NotNull List<String> getSubnetIds()
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.
@Stability(value=Stable) @NotNull String getTransitGatewayId()
@Stability(value=Stable) @NotNull String getVpcId()
@Stability(value=Stable) @Nullable default Object getOptions()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) static CfnTransitGatewayAttachmentProps.Builder builder()
Copyright © 2022. All rights reserved.