Interface CfnTransitGatewayAttachmentProps

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

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

    • getSubnetIds

      @Stability(Stable) @NotNull List<String> 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.

    • getTransitGatewayId

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

      @Stability(Stable) @NotNull String getVpcId()
      The ID of the VPC.
    • 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 .
    • getTags

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

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