Class NatGatewayState.Builder

  • Enclosing class:
    NatGatewayState

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

      • Builder

        public Builder()
    • Method Detail

      • allocationId

        public NatGatewayState.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 NatGatewayState.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
      • associationId

        public NatGatewayState.Builder associationId​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> associationId)
        Parameters:
        associationId - Association ID of the Elastic IP address.
        Returns:
        builder
      • associationId

        public NatGatewayState.Builder associationId​(java.lang.String associationId)
        Parameters:
        associationId - Association ID of the Elastic IP address.
        Returns:
        builder
      • autoProvisionZones

        public NatGatewayState.Builder autoProvisionZones​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> autoProvisionZones)
        Parameters:
        autoProvisionZones - (regional NAT gateways only) Indicates whether AWS automatically manages AZ coverage.
        Returns:
        builder
      • autoProvisionZones

        public NatGatewayState.Builder autoProvisionZones​(java.lang.String autoProvisionZones)
        Parameters:
        autoProvisionZones - (regional NAT gateways only) Indicates whether AWS automatically manages AZ coverage.
        Returns:
        builder
      • autoScalingIps

        public NatGatewayState.Builder autoScalingIps​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> autoScalingIps)
        Parameters:
        autoScalingIps - (regional NAT gateways only) Indicates whether AWS automatically allocates additional Elastic IP addresses (EIPs) in an AZ when the NAT gateway needs more ports due to increased concurrent connections to a single destination from that AZ.
        Returns:
        builder
      • autoScalingIps

        public NatGatewayState.Builder autoScalingIps​(java.lang.String autoScalingIps)
        Parameters:
        autoScalingIps - (regional NAT gateways only) Indicates whether AWS automatically allocates additional Elastic IP addresses (EIPs) in an AZ when the NAT gateway needs more ports due to increased concurrent connections to a single destination from that AZ.
        Returns:
        builder
      • availabilityMode

        public NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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
      • networkInterfaceId

        public NatGatewayState.Builder networkInterfaceId​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> networkInterfaceId)
        Parameters:
        networkInterfaceId - ID of the network interface.
        Returns:
        builder
      • networkInterfaceId

        public NatGatewayState.Builder networkInterfaceId​(java.lang.String networkInterfaceId)
        Parameters:
        networkInterfaceId - ID of the network interface.
        Returns:
        builder
      • privateIp

        public NatGatewayState.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 NatGatewayState.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
      • publicIp

        public NatGatewayState.Builder publicIp​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> publicIp)
        Parameters:
        publicIp - Public IP address.
        Returns:
        builder
      • publicIp

        public NatGatewayState.Builder publicIp​(java.lang.String publicIp)
        Parameters:
        publicIp - Public IP address.
        Returns:
        builder
      • region

        public NatGatewayState.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 NatGatewayState.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
      • regionalNatGatewayAddresses

        public NatGatewayState.Builder regionalNatGatewayAddresses​(@Nullable
                                                                   com.pulumi.core.Output<java.util.List<NatGatewayRegionalNatGatewayAddressArgs>> regionalNatGatewayAddresses)
        Parameters:
        regionalNatGatewayAddresses - (regional NAT gateways only) Repeatable blocks for information about the IP addresses and network interface associated with the regional NAT gateway.
        Returns:
        builder
      • regionalNatGatewayAddresses

        public NatGatewayState.Builder regionalNatGatewayAddresses​(java.util.List<NatGatewayRegionalNatGatewayAddressArgs> regionalNatGatewayAddresses)
        Parameters:
        regionalNatGatewayAddresses - (regional NAT gateways only) Repeatable blocks for information about the IP addresses and network interface associated with the regional NAT gateway.
        Returns:
        builder
      • regionalNatGatewayAddresses

        public NatGatewayState.Builder regionalNatGatewayAddresses​(NatGatewayRegionalNatGatewayAddressArgs... regionalNatGatewayAddresses)
        Parameters:
        regionalNatGatewayAddresses - (regional NAT gateways only) Repeatable blocks for information about the IP addresses and network interface associated with the regional NAT gateway.
        Returns:
        builder
      • regionalNatGatewayAutoMode

        public NatGatewayState.Builder regionalNatGatewayAutoMode​(@Nullable
                                                                  com.pulumi.core.Output<java.lang.String> regionalNatGatewayAutoMode)
      • regionalNatGatewayAutoMode

        public NatGatewayState.Builder regionalNatGatewayAutoMode​(java.lang.String regionalNatGatewayAutoMode)
      • routeTableId

        public NatGatewayState.Builder routeTableId​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> routeTableId)
        Parameters:
        routeTableId - (regional NAT gateways only) ID of the automatically created route table.
        Returns:
        builder
      • routeTableId

        public NatGatewayState.Builder routeTableId​(java.lang.String routeTableId)
        Parameters:
        routeTableId - (regional NAT gateways only) ID of the automatically created route table.
        Returns:
        builder
      • secondaryAllocationIds

        public NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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 NatGatewayState.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
      • tagsAll

        public NatGatewayState.Builder tagsAll​(@Nullable
                                               com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public NatGatewayState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • vpcId

        public NatGatewayState.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 NatGatewayState.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