Class TransitGatewayVpcAttachment
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.ec2.alpha.TransitGatewayVpcAttachment
- All Implemented Interfaces:
IResource,ITransitGatewayAttachment,ITransitGatewayVpcAttachment,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:49.834Z")
@Stability(Experimental)
public class TransitGatewayVpcAttachment
extends Resource
implements ITransitGatewayVpcAttachment, ITransitGatewayAttachment
(experimental) Creates a Transit Gateway VPC Attachment.
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.alpha.*;
import software.amazon.awscdk.services.ec2.*;
Subnet subnet;
TransitGateway transitGateway;
ITransitGatewayVpcAttachmentOptions transitGatewayVpcAttachmentOptions;
Vpc vpc;
TransitGatewayVpcAttachment transitGatewayVpcAttachment = TransitGatewayVpcAttachment.Builder.create(this, "MyTransitGatewayVpcAttachment")
.subnets(List.of(subnet))
.transitGateway(transitGateway)
.vpc(vpc)
// the properties below are optional
.transitGatewayAttachmentName("transitGatewayAttachmentName")
.vpcAttachmentOptions(transitGatewayVpcAttachmentOptions)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forTransitGatewayVpcAttachment.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.alpha.ITransitGatewayAttachment
ITransitGatewayAttachment.Jsii$Default, ITransitGatewayAttachment.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.alpha.ITransitGatewayVpcAttachment
ITransitGatewayVpcAttachment.Jsii$Default, ITransitGatewayVpcAttachment.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransitGatewayVpcAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedTransitGatewayVpcAttachment(software.amazon.jsii.JsiiObjectRef objRef) TransitGatewayVpcAttachment(software.constructs.Construct scope, String id, TransitGatewayVpcAttachmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubnets(List<ISubnet> subnets) (experimental) Add additional subnets to this attachment.(experimental) The ID of the transit gateway attachment.voidremoveSubnets(List<ISubnet> subnets) (experimental) Remove additional subnets to this attachment.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
TransitGatewayVpcAttachment
protected TransitGatewayVpcAttachment(software.amazon.jsii.JsiiObjectRef objRef) -
TransitGatewayVpcAttachment
protected TransitGatewayVpcAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
TransitGatewayVpcAttachment
@Stability(Experimental) public TransitGatewayVpcAttachment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TransitGatewayVpcAttachmentProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
addSubnets
(experimental) Add additional subnets to this attachment.- Specified by:
addSubnetsin interfaceITransitGatewayVpcAttachment- Parameters:
subnets- This parameter is required.
-
removeSubnets
(experimental) Remove additional subnets to this attachment.- Specified by:
removeSubnetsin interfaceITransitGatewayVpcAttachment- Parameters:
subnets- This parameter is required.
-
getTransitGatewayAttachmentId
(experimental) The ID of the transit gateway attachment.- Specified by:
getTransitGatewayAttachmentIdin interfaceITransitGatewayAttachment
-