VpcIpamPool

class VpcIpamPool : KotlinCustomResource

Provides an IP address pool resource for IPAM.

Example Usage

Basic usage:

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.inputs.GetRegionArgs;
import com.pulumi.aws.ec2.VpcIpam;
import com.pulumi.aws.ec2.VpcIpamArgs;
import com.pulumi.aws.ec2.inputs.VpcIpamOperatingRegionArgs;
import com.pulumi.aws.ec2.VpcIpamPool;
import com.pulumi.aws.ec2.VpcIpamPoolArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var current = AwsFunctions.getRegion();
var exampleVpcIpam = new VpcIpam("exampleVpcIpam", VpcIpamArgs.builder()
.operatingRegions(VpcIpamOperatingRegionArgs.builder()
.regionName(current.applyValue(getRegionResult -> getRegionResult.name()))
.build())
.build());
var exampleVpcIpamPool = new VpcIpamPool("exampleVpcIpamPool", VpcIpamPoolArgs.builder()
.addressFamily("ipv4")
.ipamScopeId(exampleVpcIpam.privateDefaultScopeId())
.locale(current.applyValue(getRegionResult -> getRegionResult.name()))
.build());
}
}

Import

IPAMs can be imported using the ipam pool id, e.g.

$ pulumi import aws:ec2/vpcIpamPool:VpcIpamPool example ipam-pool-0958f95207d978e1e

Properties

Link copied to clipboard
val addressFamily: Output<String>

The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.

Link copied to clipboard

A default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16 (unless you provide a different netmask value when you create the new allocation).

Link copied to clipboard

The maximum netmask length that will be required for CIDR allocations in this pool.

Link copied to clipboard

The minimum netmask length that will be required for CIDR allocations in this pool.

Link copied to clipboard

Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant.

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of IPAM

Link copied to clipboard
val autoImport: Output<Boolean>?

If you include this argument, IPAM automatically imports any VPCs you have in your scope that fall within the CIDR range in the pool.

Link copied to clipboard
val awsService: Output<String>?

Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values: ec2.

Link copied to clipboard
val description: Output<String>?

A description for the IPAM pool.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ipamScopeId: Output<String>

The ID of the scope in which you would like to create the IPAM pool.

Link copied to clipboard
val ipamScopeType: Output<String>
Link copied to clipboard
val locale: Output<String>?

The locale in which you would like to create the IPAM pool. Locale is the Region where you want to make an IPAM pool available for allocations. You can only create pools with locales that match the operating Regions of the IPAM. You can only create VPCs from a pool whose locale matches the VPC's Region. Possible values: Any AWS region, such as us-east-1.

Link copied to clipboard
val poolDepth: Output<Int>
Link copied to clipboard
val publicIpSource: Output<String>?

The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Valid values are byoip or amazon. Default is byoip.

Link copied to clipboard

Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if address_family = "ipv6" and public_ip_source = "byoip", default is false. This option is not available for IPv4 pool space or if public_ip_source = "amazon".

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sourceIpamPoolId: Output<String>?

The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.

Link copied to clipboard
val state: Output<String>

The ID of the IPAM

Link copied to clipboard
val tags: Output<Map<String, String>>?

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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>