Interface CfnTransitGatewayVpcAttachmentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTransitGatewayVpcAttachmentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:35.136Z")
@Stability(Stable)
public interface CfnTransitGatewayVpcAttachmentProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnTransitGatewayVpcAttachment.
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;
CfnTransitGatewayVpcAttachmentProps cfnTransitGatewayVpcAttachmentProps = CfnTransitGatewayVpcAttachmentProps.builder()
.subnetIds(List.of("subnetIds"))
.transitGatewayId("transitGatewayId")
.vpcId("vpcId")
// the properties below are optional
.addSubnetIds(List.of("addSubnetIds"))
.options(options)
.removeSubnetIds(List.of("removeSubnetIds"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTransitGatewayVpcAttachmentPropsstatic final classAn implementation forCfnTransitGatewayVpcAttachmentProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSubnetIds
The IDs of the subnets.- See Also:
-
getTransitGatewayId
The ID of the transit gateway.Returns union: either
StringorITransitGatewayRef- See Also:
-
getVpcId
The ID of the VPC.- See Also:
-
getAddSubnetIds
The IDs of one or more subnets to add.You can specify at most one subnet per Availability Zone.
- See Also:
-
getOptions
The VPC attachment options.- See Also:
-
getRemoveSubnetIds
The IDs of one or more subnets to remove.- See Also:
-
getTags
The tags for the VPC attachment.- See Also:
-
builder
-