Interface CfnTransitGatewayAttachmentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTransitGatewayAttachmentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:09.037Z")
@Stability(Stable)
public interface CfnTransitGatewayAttachmentProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnTransitGatewayAttachment.
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTransitGatewayAttachmentPropsstatic final classAn implementation forCfnTransitGatewayAttachmentProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSubnetIds
The IDs of one or more subnets.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.
Returns union: Listinvalid input: '<'either
StringorISubnetRef>- See Also:
-
getTransitGatewayId
The ID of the transit gateway.Returns union: either
StringorITransitGatewayRef- See Also:
-
getVpcId
- See Also:
-
getOptions
The VPC attachment options.- See Also:
-
getTags
The tags for the attachment.- See Also:
-
builder
-