Class VpcArgs.Builder

  • Enclosing class:
    VpcArgs

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

      • Builder

        public Builder()
      • Builder

        public Builder​(VpcArgs defaults)
    • Method Detail

      • assignGeneratedIpv6CidrBlock

        public VpcArgs.Builder assignGeneratedIpv6CidrBlock​(@Nullable
                                                            com.pulumi.core.Output<java.lang.Boolean> assignGeneratedIpv6CidrBlock)
        Parameters:
        assignGeneratedIpv6CidrBlock - Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is `false`. Conflicts with `ipv6_ipam_pool_id`
        Returns:
        builder
      • assignGeneratedIpv6CidrBlock

        public VpcArgs.Builder assignGeneratedIpv6CidrBlock​(java.lang.Boolean assignGeneratedIpv6CidrBlock)
        Parameters:
        assignGeneratedIpv6CidrBlock - Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is `false`. Conflicts with `ipv6_ipam_pool_id`
        Returns:
        builder
      • cidrBlock

        public VpcArgs.Builder cidrBlock​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> cidrBlock)
        Parameters:
        cidrBlock - The IPv4 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using `ipv4_netmask_length`.
        Returns:
        builder
      • cidrBlock

        public VpcArgs.Builder cidrBlock​(java.lang.String cidrBlock)
        Parameters:
        cidrBlock - The IPv4 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using `ipv4_netmask_length`.
        Returns:
        builder
      • enableDnsHostnames

        public VpcArgs.Builder enableDnsHostnames​(@Nullable
                                                  com.pulumi.core.Output<java.lang.Boolean> enableDnsHostnames)
        Parameters:
        enableDnsHostnames - A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false.
        Returns:
        builder
      • enableDnsHostnames

        public VpcArgs.Builder enableDnsHostnames​(java.lang.Boolean enableDnsHostnames)
        Parameters:
        enableDnsHostnames - A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false.
        Returns:
        builder
      • enableDnsSupport

        public VpcArgs.Builder enableDnsSupport​(@Nullable
                                                com.pulumi.core.Output<java.lang.Boolean> enableDnsSupport)
        Parameters:
        enableDnsSupport - A boolean flag to enable/disable DNS support in the VPC. Defaults to true.
        Returns:
        builder
      • enableDnsSupport

        public VpcArgs.Builder enableDnsSupport​(java.lang.Boolean enableDnsSupport)
        Parameters:
        enableDnsSupport - A boolean flag to enable/disable DNS support in the VPC. Defaults to true.
        Returns:
        builder
      • enableNetworkAddressUsageMetrics

        public VpcArgs.Builder enableNetworkAddressUsageMetrics​(@Nullable
                                                                com.pulumi.core.Output<java.lang.Boolean> enableNetworkAddressUsageMetrics)
        Parameters:
        enableNetworkAddressUsageMetrics - Indicates whether Network Address Usage metrics are enabled for your VPC. Defaults to false.
        Returns:
        builder
      • enableNetworkAddressUsageMetrics

        public VpcArgs.Builder enableNetworkAddressUsageMetrics​(java.lang.Boolean enableNetworkAddressUsageMetrics)
        Parameters:
        enableNetworkAddressUsageMetrics - Indicates whether Network Address Usage metrics are enabled for your VPC. Defaults to false.
        Returns:
        builder
      • instanceTenancy

        public VpcArgs.Builder instanceTenancy​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> instanceTenancy)
        Parameters:
        instanceTenancy - A tenancy option for instances launched into the VPC. Default is `default`, which ensures that EC2 instances launched in this VPC use the EC2 instance tenancy attribute specified when the EC2 instance is launched. The only other option is `dedicated`, which ensures that EC2 instances launched in this VPC are run on dedicated tenancy instances regardless of the tenancy attribute specified at launch. This has a dedicated per region fee of $2 per hour, plus an hourly per instance usage fee.
        Returns:
        builder
      • instanceTenancy

        public VpcArgs.Builder instanceTenancy​(java.lang.String instanceTenancy)
        Parameters:
        instanceTenancy - A tenancy option for instances launched into the VPC. Default is `default`, which ensures that EC2 instances launched in this VPC use the EC2 instance tenancy attribute specified when the EC2 instance is launched. The only other option is `dedicated`, which ensures that EC2 instances launched in this VPC are run on dedicated tenancy instances regardless of the tenancy attribute specified at launch. This has a dedicated per region fee of $2 per hour, plus an hourly per instance usage fee.
        Returns:
        builder
      • ipv4IpamPoolId

        public VpcArgs.Builder ipv4IpamPoolId​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> ipv4IpamPoolId)
        Parameters:
        ipv4IpamPoolId - The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization.
        Returns:
        builder
      • ipv4IpamPoolId

        public VpcArgs.Builder ipv4IpamPoolId​(java.lang.String ipv4IpamPoolId)
        Parameters:
        ipv4IpamPoolId - The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization.
        Returns:
        builder
      • ipv4NetmaskLength

        public VpcArgs.Builder ipv4NetmaskLength​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Integer> ipv4NetmaskLength)
        Parameters:
        ipv4NetmaskLength - The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a `ipv4_ipam_pool_id`.
        Returns:
        builder
      • ipv4NetmaskLength

        public VpcArgs.Builder ipv4NetmaskLength​(java.lang.Integer ipv4NetmaskLength)
        Parameters:
        ipv4NetmaskLength - The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a `ipv4_ipam_pool_id`.
        Returns:
        builder
      • ipv6CidrBlock

        public VpcArgs.Builder ipv6CidrBlock​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> ipv6CidrBlock)
        Parameters:
        ipv6CidrBlock - IPv6 CIDR block to request from an IPAM Pool. Can be set explicitly or derived from IPAM using `ipv6_netmask_length`.
        Returns:
        builder
      • ipv6CidrBlock

        public VpcArgs.Builder ipv6CidrBlock​(java.lang.String ipv6CidrBlock)
        Parameters:
        ipv6CidrBlock - IPv6 CIDR block to request from an IPAM Pool. Can be set explicitly or derived from IPAM using `ipv6_netmask_length`.
        Returns:
        builder
      • ipv6CidrBlockNetworkBorderGroup

        public VpcArgs.Builder ipv6CidrBlockNetworkBorderGroup​(@Nullable
                                                               com.pulumi.core.Output<java.lang.String> ipv6CidrBlockNetworkBorderGroup)
        Parameters:
        ipv6CidrBlockNetworkBorderGroup - By default when an IPv6 CIDR is assigned to a VPC a default ipv6_cidr_block_network_border_group will be set to the region of the VPC. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones.
        Returns:
        builder
      • ipv6CidrBlockNetworkBorderGroup

        public VpcArgs.Builder ipv6CidrBlockNetworkBorderGroup​(java.lang.String ipv6CidrBlockNetworkBorderGroup)
        Parameters:
        ipv6CidrBlockNetworkBorderGroup - By default when an IPv6 CIDR is assigned to a VPC a default ipv6_cidr_block_network_border_group will be set to the region of the VPC. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones.
        Returns:
        builder
      • ipv6IpamPoolId

        public VpcArgs.Builder ipv6IpamPoolId​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> ipv6IpamPoolId)
        Parameters:
        ipv6IpamPoolId - IPAM Pool ID for a IPv6 pool. Conflicts with `assign_generated_ipv6_cidr_block`.
        Returns:
        builder
      • ipv6IpamPoolId

        public VpcArgs.Builder ipv6IpamPoolId​(java.lang.String ipv6IpamPoolId)
        Parameters:
        ipv6IpamPoolId - IPAM Pool ID for a IPv6 pool. Conflicts with `assign_generated_ipv6_cidr_block`.
        Returns:
        builder
      • ipv6NetmaskLength

        public VpcArgs.Builder ipv6NetmaskLength​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Integer> ipv6NetmaskLength)
        Parameters:
        ipv6NetmaskLength - Netmask length to request from IPAM Pool. Conflicts with `ipv6_cidr_block`. This can be omitted if IPAM pool as a `allocation_default_netmask_length` set. Valid values: `56`.
        Returns:
        builder
      • ipv6NetmaskLength

        public VpcArgs.Builder ipv6NetmaskLength​(java.lang.Integer ipv6NetmaskLength)
        Parameters:
        ipv6NetmaskLength - Netmask length to request from IPAM Pool. Conflicts with `ipv6_cidr_block`. This can be omitted if IPAM pool as a `allocation_default_netmask_length` set. Valid values: `56`.
        Returns:
        builder
      • tags

        public VpcArgs.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 `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public VpcArgs.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 `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder