Interface CfnTransitGatewayVpcAttachmentProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTransitGatewayVpcAttachmentProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.128Z") @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();
 
  • Method Details

    • getSubnetIds

      @Stability(Stable) @NotNull List<String> getSubnetIds()
      The IDs of the subnets.
    • getTransitGatewayId

      @Stability(Stable) @NotNull String getTransitGatewayId()
      The ID of the transit gateway.
    • getVpcId

      @Stability(Stable) @NotNull String getVpcId()
      The ID of the VPC.
    • getAddSubnetIds

      @Stability(Stable) @Nullable default List<String> getAddSubnetIds()
      The IDs of one or more subnets to add.

      You can specify at most one subnet per Availability Zone.

    • getOptions

      @Stability(Stable) @Nullable default Object getOptions()
      The VPC attachment options, in JSON or YAML.

      • ApplianceModeSupport - Set to enable or disable . The default is disable .
      • DnsSupport - Set to enable or disable . The default is enable .
      • Ipv6Support - Set to enable or disable . The default is disable .
    • getRemoveSubnetIds

      @Stability(Stable) @Nullable default List<String> getRemoveSubnetIds()
      The IDs of one or more subnets to remove.
    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      The tags for the VPC attachment.
    • builder

      @Stability(Stable) static CfnTransitGatewayVpcAttachmentProps.Builder builder()
      Returns:
      a CfnTransitGatewayVpcAttachmentProps.Builder of CfnTransitGatewayVpcAttachmentProps