Class NatGatewayArgs.Builder

  • Enclosing class:
    NatGatewayArgs

    public static final class NatGatewayArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • allocationId

        public NatGatewayArgs.Builder allocationId​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> allocationId)
        Parameters:
        allocationId - The Allocation ID of the Elastic IP address for the NAT Gateway. Required when `connectivityType` is set to `public` and `availabilityMode` is set to `zonal`. When `availabilityMode` is set to `regional`, this must not be set; instead, use the `availabilityZoneAddress` block to specify EIPs for each AZ.
        Returns:
        builder
      • allocationId

        public NatGatewayArgs.Builder allocationId​(java.lang.String allocationId)
        Parameters:
        allocationId - The Allocation ID of the Elastic IP address for the NAT Gateway. Required when `connectivityType` is set to `public` and `availabilityMode` is set to `zonal`. When `availabilityMode` is set to `regional`, this must not be set; instead, use the `availabilityZoneAddress` block to specify EIPs for each AZ.
        Returns:
        builder
      • availabilityMode

        public NatGatewayArgs.Builder availabilityMode​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> availabilityMode)
        Parameters:
        availabilityMode - Specifies whether to create a zonal (single-AZ) or regional (multi-AZ) NAT gateway. Valid values are `zonal` and `regional`. Defaults to `zonal`.
        Returns:
        builder
      • availabilityMode

        public NatGatewayArgs.Builder availabilityMode​(java.lang.String availabilityMode)
        Parameters:
        availabilityMode - Specifies whether to create a zonal (single-AZ) or regional (multi-AZ) NAT gateway. Valid values are `zonal` and `regional`. Defaults to `zonal`.
        Returns:
        builder
      • availabilityZoneAddresses

        public NatGatewayArgs.Builder availabilityZoneAddresses​(@Nullable
                                                                com.pulumi.core.Output<java.util.List<NatGatewayAvailabilityZoneAddressArgs>> availabilityZoneAddresses)
        Parameters:
        availabilityZoneAddresses - Repeatable configuration block for the Elastic IP addresses (EIPs) and availability zones for the regional NAT gateway. When not specified, the regional NAT gateway will automatically expand to new AZs and associate EIPs upon detection of an elastic network interface (auto mode). When specified, auto-expansion is disabled (manual mode). See `availabilityZoneAddress` below for details.
        Returns:
        builder
      • availabilityZoneAddresses

        public NatGatewayArgs.Builder availabilityZoneAddresses​(java.util.List<NatGatewayAvailabilityZoneAddressArgs> availabilityZoneAddresses)
        Parameters:
        availabilityZoneAddresses - Repeatable configuration block for the Elastic IP addresses (EIPs) and availability zones for the regional NAT gateway. When not specified, the regional NAT gateway will automatically expand to new AZs and associate EIPs upon detection of an elastic network interface (auto mode). When specified, auto-expansion is disabled (manual mode). See `availabilityZoneAddress` below for details.
        Returns:
        builder
      • availabilityZoneAddresses

        public NatGatewayArgs.Builder availabilityZoneAddresses​(NatGatewayAvailabilityZoneAddressArgs... availabilityZoneAddresses)
        Parameters:
        availabilityZoneAddresses - Repeatable configuration block for the Elastic IP addresses (EIPs) and availability zones for the regional NAT gateway. When not specified, the regional NAT gateway will automatically expand to new AZs and associate EIPs upon detection of an elastic network interface (auto mode). When specified, auto-expansion is disabled (manual mode). See `availabilityZoneAddress` below for details.
        Returns:
        builder
      • connectivityType

        public NatGatewayArgs.Builder connectivityType​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> connectivityType)
        Parameters:
        connectivityType - Connectivity type for the NAT Gateway. Valid values are `private` and `public`. When `availabilityMode` is set to `regional`, this must be set to `public`. Defaults to `public`.
        Returns:
        builder
      • connectivityType

        public NatGatewayArgs.Builder connectivityType​(java.lang.String connectivityType)
        Parameters:
        connectivityType - Connectivity type for the NAT Gateway. Valid values are `private` and `public`. When `availabilityMode` is set to `regional`, this must be set to `public`. Defaults to `public`.
        Returns:
        builder
      • privateIp

        public NatGatewayArgs.Builder privateIp​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> privateIp)
        Parameters:
        privateIp - The private IPv4 address to assign to the NAT Gateway. If you don't provide an address, a private IPv4 address will be automatically assigned.
        Returns:
        builder
      • privateIp

        public NatGatewayArgs.Builder privateIp​(java.lang.String privateIp)
        Parameters:
        privateIp - The private IPv4 address to assign to the NAT Gateway. If you don't provide an address, a private IPv4 address will be automatically assigned.
        Returns:
        builder
      • region

        public NatGatewayArgs.Builder region​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public NatGatewayArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • secondaryAllocationIds

        public NatGatewayArgs.Builder secondaryAllocationIds​(@Nullable
                                                             com.pulumi.core.Output<java.util.List<java.lang.String>> secondaryAllocationIds)
        Parameters:
        secondaryAllocationIds - A list of secondary allocation EIP IDs for this NAT Gateway. To remove all secondary allocations an empty list should be specified.
        Returns:
        builder
      • secondaryAllocationIds

        public NatGatewayArgs.Builder secondaryAllocationIds​(java.util.List<java.lang.String> secondaryAllocationIds)
        Parameters:
        secondaryAllocationIds - A list of secondary allocation EIP IDs for this NAT Gateway. To remove all secondary allocations an empty list should be specified.
        Returns:
        builder
      • secondaryAllocationIds

        public NatGatewayArgs.Builder secondaryAllocationIds​(java.lang.String... secondaryAllocationIds)
        Parameters:
        secondaryAllocationIds - A list of secondary allocation EIP IDs for this NAT Gateway. To remove all secondary allocations an empty list should be specified.
        Returns:
        builder
      • secondaryPrivateIpAddressCount

        public NatGatewayArgs.Builder secondaryPrivateIpAddressCount​(@Nullable
                                                                     com.pulumi.core.Output<java.lang.Integer> secondaryPrivateIpAddressCount)
        Parameters:
        secondaryPrivateIpAddressCount - The number of secondary private IPv4 addresses you want to assign to the NAT Gateway.
        Returns:
        builder
      • secondaryPrivateIpAddressCount

        public NatGatewayArgs.Builder secondaryPrivateIpAddressCount​(java.lang.Integer secondaryPrivateIpAddressCount)
        Parameters:
        secondaryPrivateIpAddressCount - The number of secondary private IPv4 addresses you want to assign to the NAT Gateway.
        Returns:
        builder
      • secondaryPrivateIpAddresses

        public NatGatewayArgs.Builder secondaryPrivateIpAddresses​(@Nullable
                                                                  com.pulumi.core.Output<java.util.List<java.lang.String>> secondaryPrivateIpAddresses)
        Parameters:
        secondaryPrivateIpAddresses - A list of secondary private IPv4 addresses to assign to the NAT Gateway. To remove all secondary private addresses an empty list should be specified.
        Returns:
        builder
      • secondaryPrivateIpAddresses

        public NatGatewayArgs.Builder secondaryPrivateIpAddresses​(java.util.List<java.lang.String> secondaryPrivateIpAddresses)
        Parameters:
        secondaryPrivateIpAddresses - A list of secondary private IPv4 addresses to assign to the NAT Gateway. To remove all secondary private addresses an empty list should be specified.
        Returns:
        builder
      • secondaryPrivateIpAddresses

        public NatGatewayArgs.Builder secondaryPrivateIpAddresses​(java.lang.String... secondaryPrivateIpAddresses)
        Parameters:
        secondaryPrivateIpAddresses - A list of secondary private IPv4 addresses to assign to the NAT Gateway. To remove all secondary private addresses an empty list should be specified.
        Returns:
        builder
      • subnetId

        public NatGatewayArgs.Builder subnetId​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> subnetId)
        Parameters:
        subnetId - The Subnet ID of the subnet in which to place the NAT Gateway. Required when `availabilityMode` is set to `zonal`. Must not be set when `availabilityMode` is set to `regional`.
        Returns:
        builder
      • subnetId

        public NatGatewayArgs.Builder subnetId​(java.lang.String subnetId)
        Parameters:
        subnetId - The Subnet ID of the subnet in which to place the NAT Gateway. Required when `availabilityMode` is set to `zonal`. Must not be set when `availabilityMode` is set to `regional`.
        Returns:
        builder
      • tags

        public NatGatewayArgs.Builder tags​(@Nullable
                                           com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public NatGatewayArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • vpcId

        public NatGatewayArgs.Builder vpcId​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> vpcId)
        Parameters:
        vpcId - VPC ID where this NAT Gateway will be created. Required when `availabilityMode` is set to `regional`.
        Returns:
        builder
      • vpcId

        public NatGatewayArgs.Builder vpcId​(java.lang.String vpcId)
        Parameters:
        vpcId - VPC ID where this NAT Gateway will be created. Required when `availabilityMode` is set to `regional`.
        Returns:
        builder