Class CfnTransitGatewayAttachment.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayAttachment.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayAttachment>
Enclosing class:
CfnTransitGatewayAttachment

@Stability(Stable) public static final class CfnTransitGatewayAttachment.Builder extends Object implements software.amazon.jsii.Builder<CfnTransitGatewayAttachment>
A fluent builder for CfnTransitGatewayAttachment.
  • Method Details

    • create

      @Stability(Stable) public static CfnTransitGatewayAttachment.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnTransitGatewayAttachment.Builder.
    • subnetIds

      @Stability(Stable) public CfnTransitGatewayAttachment.Builder subnetIds(List<String> subnetIds)
      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.

      Parameters:
      subnetIds - The IDs of one or more subnets. This parameter is required.
      Returns:
      this
    • transitGatewayId

      @Stability(Stable) public CfnTransitGatewayAttachment.Builder transitGatewayId(String transitGatewayId)
      The ID of the transit gateway.

      Parameters:
      transitGatewayId - The ID of the transit gateway. This parameter is required.
      Returns:
      this
    • vpcId

      @Stability(Stable) public CfnTransitGatewayAttachment.Builder vpcId(String vpcId)
      The ID of the VPC.

      Parameters:
      vpcId - The ID of the VPC. This parameter is required.
      Returns:
      this
    • options

      @Stability(Stable) public CfnTransitGatewayAttachment.Builder options(Object options)
      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 .

      Parameters:
      options - The VPC attachment options, in JSON or YAML. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnTransitGatewayAttachment.Builder tags(List<? extends CfnTag> tags)
      The tags for the attachment.

      Parameters:
      tags - The tags for the attachment. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnTransitGatewayAttachment build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnTransitGatewayAttachment>
      Returns:
      a newly built instance of CfnTransitGatewayAttachment.