Class VpcState.Builder

  • Enclosing class:
    VpcState

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

      • Builder

        public Builder()
      • Builder

        public Builder​(VpcState defaults)
    • Method Detail

      • arn

        public VpcState.Builder arn​(@Nullable
                                    com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of VPC.
        Returns:
        builder
      • arn

        public VpcState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of VPC.
        Returns:
        builder
      • assignGeneratedIpv6CidrBlock

        public VpcState.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 `ipv6IpamPoolId`.
        Returns:
        builder
      • assignGeneratedIpv6CidrBlock

        public VpcState.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 `ipv6IpamPoolId`.
        Returns:
        builder
      • cidrBlock

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

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

        public VpcState.Builder defaultNetworkAclId​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> defaultNetworkAclId)
        Parameters:
        defaultNetworkAclId - ID of the network ACL created by default on VPC creation.
        Returns:
        builder
      • defaultNetworkAclId

        public VpcState.Builder defaultNetworkAclId​(java.lang.String defaultNetworkAclId)
        Parameters:
        defaultNetworkAclId - ID of the network ACL created by default on VPC creation.
        Returns:
        builder
      • defaultRouteTableId

        public VpcState.Builder defaultRouteTableId​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> defaultRouteTableId)
        Parameters:
        defaultRouteTableId - ID of the route table created by default on VPC creation.
        Returns:
        builder
      • defaultRouteTableId

        public VpcState.Builder defaultRouteTableId​(java.lang.String defaultRouteTableId)
        Parameters:
        defaultRouteTableId - ID of the route table created by default on VPC creation.
        Returns:
        builder
      • defaultSecurityGroupId

        public VpcState.Builder defaultSecurityGroupId​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> defaultSecurityGroupId)
        Parameters:
        defaultSecurityGroupId - ID of the security group created by default on VPC creation.
        Returns:
        builder
      • defaultSecurityGroupId

        public VpcState.Builder defaultSecurityGroupId​(java.lang.String defaultSecurityGroupId)
        Parameters:
        defaultSecurityGroupId - ID of the security group created by default on VPC creation.
        Returns:
        builder
      • dhcpOptionsId

        public VpcState.Builder dhcpOptionsId​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> dhcpOptionsId)
        Parameters:
        dhcpOptionsId - DHCP options ID of the desired VPC.
        Returns:
        builder
      • dhcpOptionsId

        public VpcState.Builder dhcpOptionsId​(java.lang.String dhcpOptionsId)
        Parameters:
        dhcpOptionsId - DHCP options ID of the desired VPC.
        Returns:
        builder
      • enableDnsHostnames

        public VpcState.Builder enableDnsHostnames​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Boolean> enableDnsHostnames)
        Parameters:
        enableDnsHostnames - Whether to enable DNS hostnames in the VPC. Defaults to `false`.
        Returns:
        builder
      • enableDnsHostnames

        public VpcState.Builder enableDnsHostnames​(java.lang.Boolean enableDnsHostnames)
        Parameters:
        enableDnsHostnames - Whether to enable DNS hostnames in the VPC. Defaults to `false`.
        Returns:
        builder
      • enableDnsSupport

        public VpcState.Builder enableDnsSupport​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Boolean> enableDnsSupport)
        Parameters:
        enableDnsSupport - Whether to enable DNS support in the VPC. Defaults to `true`.
        Returns:
        builder
      • enableDnsSupport

        public VpcState.Builder enableDnsSupport​(java.lang.Boolean enableDnsSupport)
        Parameters:
        enableDnsSupport - Whether to enable DNS support in the VPC. Defaults to `true`.
        Returns:
        builder
      • enableNetworkAddressUsageMetrics

        public VpcState.Builder enableNetworkAddressUsageMetrics​(@Nullable
                                                                 com.pulumi.core.Output<java.lang.Boolean> enableNetworkAddressUsageMetrics)
        Parameters:
        enableNetworkAddressUsageMetrics - Whether to enable Network Address Usage metrics for your VPC. Defaults to `false`.
        Returns:
        builder
      • enableNetworkAddressUsageMetrics

        public VpcState.Builder enableNetworkAddressUsageMetrics​(java.lang.Boolean enableNetworkAddressUsageMetrics)
        Parameters:
        enableNetworkAddressUsageMetrics - Whether to enable Network Address Usage metrics for your VPC. Defaults to `false`.
        Returns:
        builder
      • instanceTenancy

        public VpcState.Builder instanceTenancy​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> instanceTenancy)
        Parameters:
        instanceTenancy - 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 VpcState.Builder instanceTenancy​(java.lang.String instanceTenancy)
        Parameters:
        instanceTenancy - 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 VpcState.Builder ipv4IpamPoolId​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> ipv4IpamPoolId)
        Parameters:
        ipv4IpamPoolId - 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 VpcState.Builder ipv4IpamPoolId​(java.lang.String ipv4IpamPoolId)
        Parameters:
        ipv4IpamPoolId - 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 VpcState.Builder ipv4NetmaskLength​(@Nullable
                                                  com.pulumi.core.Output<java.lang.Integer> ipv4NetmaskLength)
        Parameters:
        ipv4NetmaskLength - Netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a `ipv4IpamPoolId`.
        Returns:
        builder
      • ipv4NetmaskLength

        public VpcState.Builder ipv4NetmaskLength​(java.lang.Integer ipv4NetmaskLength)
        Parameters:
        ipv4NetmaskLength - Netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a `ipv4IpamPoolId`.
        Returns:
        builder
      • ipv6AssociationId

        public VpcState.Builder ipv6AssociationId​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> ipv6AssociationId)
        Parameters:
        ipv6AssociationId - Association ID for the IPv6 CIDR block.
        Returns:
        builder
      • ipv6AssociationId

        public VpcState.Builder ipv6AssociationId​(java.lang.String ipv6AssociationId)
        Parameters:
        ipv6AssociationId - Association ID for the IPv6 CIDR block.
        Returns:
        builder
      • ipv6CidrBlock

        public VpcState.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 `ipv6NetmaskLength`.
        Returns:
        builder
      • ipv6CidrBlock

        public VpcState.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 `ipv6NetmaskLength`.
        Returns:
        builder
      • ipv6CidrBlockNetworkBorderGroup

        public VpcState.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 ipv6CidrBlockNetworkBorderGroup 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 VpcState.Builder ipv6CidrBlockNetworkBorderGroup​(java.lang.String ipv6CidrBlockNetworkBorderGroup)
        Parameters:
        ipv6CidrBlockNetworkBorderGroup - By default when an IPv6 CIDR is assigned to a VPC a default ipv6CidrBlockNetworkBorderGroup 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 VpcState.Builder ipv6IpamPoolId​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> ipv6IpamPoolId)
        Parameters:
        ipv6IpamPoolId - IPAM Pool ID for a IPv6 pool. Conflicts with `assignGeneratedIpv6CidrBlock`.
        Returns:
        builder
      • ipv6IpamPoolId

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

        public VpcState.Builder ipv6NetmaskLength​(@Nullable
                                                  com.pulumi.core.Output<java.lang.Integer> ipv6NetmaskLength)
        Parameters:
        ipv6NetmaskLength - Netmask length to request from IPAM Pool. Conflicts with `ipv6CidrBlock`. This can be omitted if IPAM pool as a `allocationDefaultNetmaskLength` set. Valid values are from `44` to `60` in increments of 4.
        Returns:
        builder
      • ipv6NetmaskLength

        public VpcState.Builder ipv6NetmaskLength​(java.lang.Integer ipv6NetmaskLength)
        Parameters:
        ipv6NetmaskLength - Netmask length to request from IPAM Pool. Conflicts with `ipv6CidrBlock`. This can be omitted if IPAM pool as a `allocationDefaultNetmaskLength` set. Valid values are from `44` to `60` in increments of 4.
        Returns:
        builder
      • mainRouteTableId

        public VpcState.Builder mainRouteTableId​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> mainRouteTableId)
        Parameters:
        mainRouteTableId - ID of the main route table associated with this VPC. Note that you can change a VPC's main route table by using an `aws.ec2.MainRouteTableAssociation`.
        Returns:
        builder
      • mainRouteTableId

        public VpcState.Builder mainRouteTableId​(java.lang.String mainRouteTableId)
        Parameters:
        mainRouteTableId - ID of the main route table associated with this VPC. Note that you can change a VPC's main route table by using an `aws.ec2.MainRouteTableAssociation`.
        Returns:
        builder
      • ownerId

        public VpcState.Builder ownerId​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> ownerId)
        Parameters:
        ownerId - ID of the AWS account that owns the VPC.
        Returns:
        builder
      • ownerId

        public VpcState.Builder ownerId​(java.lang.String ownerId)
        Parameters:
        ownerId - ID of the AWS account that owns the VPC.
        Returns:
        builder
      • region

        public VpcState.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 VpcState.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
      • tags

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

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