aws.ec2.VpcIpamPool
Explore with Pulumi AI
Provides an IP address pool resource for IPAM.
Example Usage
Basic usage:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const current = aws.getRegion({});
const example = new aws.ec2.VpcIpam("example", {operatingRegions: [{
regionName: current.then(current => current.name),
}]});
const exampleVpcIpamPool = new aws.ec2.VpcIpamPool("example", {
addressFamily: "ipv4",
ipamScopeId: example.privateDefaultScopeId,
locale: current.then(current => current.name),
});
import pulumi
import pulumi_aws as aws
current = aws.get_region()
example = aws.ec2.VpcIpam("example", operating_regions=[{
"region_name": current.name,
}])
example_vpc_ipam_pool = aws.ec2.VpcIpamPool("example",
address_family="ipv4",
ipam_scope_id=example.private_default_scope_id,
locale=current.name)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := aws.GetRegion(ctx, nil, nil)
if err != nil {
return err
}
example, err := ec2.NewVpcIpam(ctx, "example", &ec2.VpcIpamArgs{
OperatingRegions: ec2.VpcIpamOperatingRegionArray{
&ec2.VpcIpamOperatingRegionArgs{
RegionName: pulumi.String(current.Name),
},
},
})
if err != nil {
return err
}
_, err = ec2.NewVpcIpamPool(ctx, "example", &ec2.VpcIpamPoolArgs{
AddressFamily: pulumi.String("ipv4"),
IpamScopeId: example.PrivateDefaultScopeId,
Locale: pulumi.String(current.Name),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var current = Aws.GetRegion.Invoke();
var example = new Aws.Ec2.VpcIpam("example", new()
{
OperatingRegions = new[]
{
new Aws.Ec2.Inputs.VpcIpamOperatingRegionArgs
{
RegionName = current.Apply(getRegionResult => getRegionResult.Name),
},
},
});
var exampleVpcIpamPool = new Aws.Ec2.VpcIpamPool("example", new()
{
AddressFamily = "ipv4",
IpamScopeId = example.PrivateDefaultScopeId,
Locale = current.Apply(getRegionResult => getRegionResult.Name),
});
});
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 example = new VpcIpam("example", VpcIpamArgs.builder()
.operatingRegions(VpcIpamOperatingRegionArgs.builder()
.regionName(current.applyValue(getRegionResult -> getRegionResult.name()))
.build())
.build());
var exampleVpcIpamPool = new VpcIpamPool("exampleVpcIpamPool", VpcIpamPoolArgs.builder()
.addressFamily("ipv4")
.ipamScopeId(example.privateDefaultScopeId())
.locale(current.applyValue(getRegionResult -> getRegionResult.name()))
.build());
}
}
resources:
example:
type: aws:ec2:VpcIpam
properties:
operatingRegions:
- regionName: ${current.name}
exampleVpcIpamPool:
type: aws:ec2:VpcIpamPool
name: example
properties:
addressFamily: ipv4
ipamScopeId: ${example.privateDefaultScopeId}
locale: ${current.name}
variables:
current:
fn::invoke:
Function: aws:getRegion
Arguments: {}
Nested Pools:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const current = aws.getRegion({});
const example = new aws.ec2.VpcIpam("example", {operatingRegions: [{
regionName: current.then(current => current.name),
}]});
const parent = new aws.ec2.VpcIpamPool("parent", {
addressFamily: "ipv4",
ipamScopeId: example.privateDefaultScopeId,
});
const parentTest = new aws.ec2.VpcIpamPoolCidr("parent_test", {
ipamPoolId: parent.id,
cidr: "172.20.0.0/16",
});
const child = new aws.ec2.VpcIpamPool("child", {
addressFamily: "ipv4",
ipamScopeId: example.privateDefaultScopeId,
locale: current.then(current => current.name),
sourceIpamPoolId: parent.id,
});
const childTest = new aws.ec2.VpcIpamPoolCidr("child_test", {
ipamPoolId: child.id,
cidr: "172.20.0.0/24",
});
import pulumi
import pulumi_aws as aws
current = aws.get_region()
example = aws.ec2.VpcIpam("example", operating_regions=[{
"region_name": current.name,
}])
parent = aws.ec2.VpcIpamPool("parent",
address_family="ipv4",
ipam_scope_id=example.private_default_scope_id)
parent_test = aws.ec2.VpcIpamPoolCidr("parent_test",
ipam_pool_id=parent.id,
cidr="172.20.0.0/16")
child = aws.ec2.VpcIpamPool("child",
address_family="ipv4",
ipam_scope_id=example.private_default_scope_id,
locale=current.name,
source_ipam_pool_id=parent.id)
child_test = aws.ec2.VpcIpamPoolCidr("child_test",
ipam_pool_id=child.id,
cidr="172.20.0.0/24")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := aws.GetRegion(ctx, nil, nil)
if err != nil {
return err
}
example, err := ec2.NewVpcIpam(ctx, "example", &ec2.VpcIpamArgs{
OperatingRegions: ec2.VpcIpamOperatingRegionArray{
&ec2.VpcIpamOperatingRegionArgs{
RegionName: pulumi.String(current.Name),
},
},
})
if err != nil {
return err
}
parent, err := ec2.NewVpcIpamPool(ctx, "parent", &ec2.VpcIpamPoolArgs{
AddressFamily: pulumi.String("ipv4"),
IpamScopeId: example.PrivateDefaultScopeId,
})
if err != nil {
return err
}
_, err = ec2.NewVpcIpamPoolCidr(ctx, "parent_test", &ec2.VpcIpamPoolCidrArgs{
IpamPoolId: parent.ID(),
Cidr: pulumi.String("172.20.0.0/16"),
})
if err != nil {
return err
}
child, err := ec2.NewVpcIpamPool(ctx, "child", &ec2.VpcIpamPoolArgs{
AddressFamily: pulumi.String("ipv4"),
IpamScopeId: example.PrivateDefaultScopeId,
Locale: pulumi.String(current.Name),
SourceIpamPoolId: parent.ID(),
})
if err != nil {
return err
}
_, err = ec2.NewVpcIpamPoolCidr(ctx, "child_test", &ec2.VpcIpamPoolCidrArgs{
IpamPoolId: child.ID(),
Cidr: pulumi.String("172.20.0.0/24"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var current = Aws.GetRegion.Invoke();
var example = new Aws.Ec2.VpcIpam("example", new()
{
OperatingRegions = new[]
{
new Aws.Ec2.Inputs.VpcIpamOperatingRegionArgs
{
RegionName = current.Apply(getRegionResult => getRegionResult.Name),
},
},
});
var parent = new Aws.Ec2.VpcIpamPool("parent", new()
{
AddressFamily = "ipv4",
IpamScopeId = example.PrivateDefaultScopeId,
});
var parentTest = new Aws.Ec2.VpcIpamPoolCidr("parent_test", new()
{
IpamPoolId = parent.Id,
Cidr = "172.20.0.0/16",
});
var child = new Aws.Ec2.VpcIpamPool("child", new()
{
AddressFamily = "ipv4",
IpamScopeId = example.PrivateDefaultScopeId,
Locale = current.Apply(getRegionResult => getRegionResult.Name),
SourceIpamPoolId = parent.Id,
});
var childTest = new Aws.Ec2.VpcIpamPoolCidr("child_test", new()
{
IpamPoolId = child.Id,
Cidr = "172.20.0.0/24",
});
});
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 com.pulumi.aws.ec2.VpcIpamPoolCidr;
import com.pulumi.aws.ec2.VpcIpamPoolCidrArgs;
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 example = new VpcIpam("example", VpcIpamArgs.builder()
.operatingRegions(VpcIpamOperatingRegionArgs.builder()
.regionName(current.applyValue(getRegionResult -> getRegionResult.name()))
.build())
.build());
var parent = new VpcIpamPool("parent", VpcIpamPoolArgs.builder()
.addressFamily("ipv4")
.ipamScopeId(example.privateDefaultScopeId())
.build());
var parentTest = new VpcIpamPoolCidr("parentTest", VpcIpamPoolCidrArgs.builder()
.ipamPoolId(parent.id())
.cidr("172.20.0.0/16")
.build());
var child = new VpcIpamPool("child", VpcIpamPoolArgs.builder()
.addressFamily("ipv4")
.ipamScopeId(example.privateDefaultScopeId())
.locale(current.applyValue(getRegionResult -> getRegionResult.name()))
.sourceIpamPoolId(parent.id())
.build());
var childTest = new VpcIpamPoolCidr("childTest", VpcIpamPoolCidrArgs.builder()
.ipamPoolId(child.id())
.cidr("172.20.0.0/24")
.build());
}
}
resources:
example:
type: aws:ec2:VpcIpam
properties:
operatingRegions:
- regionName: ${current.name}
parent:
type: aws:ec2:VpcIpamPool
properties:
addressFamily: ipv4
ipamScopeId: ${example.privateDefaultScopeId}
parentTest:
type: aws:ec2:VpcIpamPoolCidr
name: parent_test
properties:
ipamPoolId: ${parent.id}
cidr: 172.20.0.0/16
child:
type: aws:ec2:VpcIpamPool
properties:
addressFamily: ipv4
ipamScopeId: ${example.privateDefaultScopeId}
locale: ${current.name}
sourceIpamPoolId: ${parent.id}
childTest:
type: aws:ec2:VpcIpamPoolCidr
name: child_test
properties:
ipamPoolId: ${child.id}
cidr: 172.20.0.0/24
variables:
current:
fn::invoke:
Function: aws:getRegion
Arguments: {}
Create VpcIpamPool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcIpamPool(name: string, args: VpcIpamPoolArgs, opts?: CustomResourceOptions);
@overload
def VpcIpamPool(resource_name: str,
args: VpcIpamPoolArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcIpamPool(resource_name: str,
opts: Optional[ResourceOptions] = None,
address_family: Optional[str] = None,
ipam_scope_id: Optional[str] = None,
allocation_min_netmask_length: Optional[int] = None,
allocation_max_netmask_length: Optional[int] = None,
allocation_resource_tags: Optional[Mapping[str, str]] = None,
auto_import: Optional[bool] = None,
aws_service: Optional[str] = None,
cascade: Optional[bool] = None,
description: Optional[str] = None,
allocation_default_netmask_length: Optional[int] = None,
locale: Optional[str] = None,
public_ip_source: Optional[str] = None,
publicly_advertisable: Optional[bool] = None,
source_ipam_pool_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewVpcIpamPool(ctx *Context, name string, args VpcIpamPoolArgs, opts ...ResourceOption) (*VpcIpamPool, error)
public VpcIpamPool(string name, VpcIpamPoolArgs args, CustomResourceOptions? opts = null)
public VpcIpamPool(String name, VpcIpamPoolArgs args)
public VpcIpamPool(String name, VpcIpamPoolArgs args, CustomResourceOptions options)
type: aws:ec2:VpcIpamPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcIpamPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpcIpamPoolArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpcIpamPoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcIpamPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcIpamPoolArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vpcIpamPoolResource = new Aws.Ec2.VpcIpamPool("vpcIpamPoolResource", new()
{
AddressFamily = "string",
IpamScopeId = "string",
AllocationMinNetmaskLength = 0,
AllocationMaxNetmaskLength = 0,
AllocationResourceTags =
{
{ "string", "string" },
},
AutoImport = false,
AwsService = "string",
Cascade = false,
Description = "string",
AllocationDefaultNetmaskLength = 0,
Locale = "string",
PublicIpSource = "string",
PubliclyAdvertisable = false,
SourceIpamPoolId = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := ec2.NewVpcIpamPool(ctx, "vpcIpamPoolResource", &ec2.VpcIpamPoolArgs{
AddressFamily: pulumi.String("string"),
IpamScopeId: pulumi.String("string"),
AllocationMinNetmaskLength: pulumi.Int(0),
AllocationMaxNetmaskLength: pulumi.Int(0),
AllocationResourceTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
AutoImport: pulumi.Bool(false),
AwsService: pulumi.String("string"),
Cascade: pulumi.Bool(false),
Description: pulumi.String("string"),
AllocationDefaultNetmaskLength: pulumi.Int(0),
Locale: pulumi.String("string"),
PublicIpSource: pulumi.String("string"),
PubliclyAdvertisable: pulumi.Bool(false),
SourceIpamPoolId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var vpcIpamPoolResource = new VpcIpamPool("vpcIpamPoolResource", VpcIpamPoolArgs.builder()
.addressFamily("string")
.ipamScopeId("string")
.allocationMinNetmaskLength(0)
.allocationMaxNetmaskLength(0)
.allocationResourceTags(Map.of("string", "string"))
.autoImport(false)
.awsService("string")
.cascade(false)
.description("string")
.allocationDefaultNetmaskLength(0)
.locale("string")
.publicIpSource("string")
.publiclyAdvertisable(false)
.sourceIpamPoolId("string")
.tags(Map.of("string", "string"))
.build());
vpc_ipam_pool_resource = aws.ec2.VpcIpamPool("vpcIpamPoolResource",
address_family="string",
ipam_scope_id="string",
allocation_min_netmask_length=0,
allocation_max_netmask_length=0,
allocation_resource_tags={
"string": "string",
},
auto_import=False,
aws_service="string",
cascade=False,
description="string",
allocation_default_netmask_length=0,
locale="string",
public_ip_source="string",
publicly_advertisable=False,
source_ipam_pool_id="string",
tags={
"string": "string",
})
const vpcIpamPoolResource = new aws.ec2.VpcIpamPool("vpcIpamPoolResource", {
addressFamily: "string",
ipamScopeId: "string",
allocationMinNetmaskLength: 0,
allocationMaxNetmaskLength: 0,
allocationResourceTags: {
string: "string",
},
autoImport: false,
awsService: "string",
cascade: false,
description: "string",
allocationDefaultNetmaskLength: 0,
locale: "string",
publicIpSource: "string",
publiclyAdvertisable: false,
sourceIpamPoolId: "string",
tags: {
string: "string",
},
});
type: aws:ec2:VpcIpamPool
properties:
addressFamily: string
allocationDefaultNetmaskLength: 0
allocationMaxNetmaskLength: 0
allocationMinNetmaskLength: 0
allocationResourceTags:
string: string
autoImport: false
awsService: string
cascade: false
description: string
ipamScopeId: string
locale: string
publicIpSource: string
publiclyAdvertisable: false
sourceIpamPoolId: string
tags:
string: string
VpcIpamPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The VpcIpamPool resource accepts the following input properties:
- Address
Family string - The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.
- Ipam
Scope stringId - The ID of the scope in which you would like to create the IPAM pool.
- Allocation
Default intNetmask Length - 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).
- Allocation
Max intNetmask Length - The maximum netmask length that will be required for CIDR allocations in this pool.
- Allocation
Min intNetmask Length - The minimum netmask length that will be required for CIDR allocations in this pool.
- Dictionary<string, string>
- 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.
- Auto
Import bool - If you include this argument, IPAM automatically imports any VPCs you have in your scope that fall within the CIDR range in the pool.
- Aws
Service string - Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values:
ec2
. - Cascade bool
- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.
- Description string
- A description for the IPAM pool.
- Locale 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
. - Public
Ip stringSource - 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
oramazon
. Default isbyoip
. - Publicly
Advertisable bool - Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if
address_family = "ipv6"
andpublic_ip_source = "byoip"
, default isfalse
. This option is not available for IPv4 pool space or ifpublic_ip_source = "amazon"
. - Source
Ipam stringPool Id - The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.
- Dictionary<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.
- Address
Family string - The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.
- Ipam
Scope stringId - The ID of the scope in which you would like to create the IPAM pool.
- Allocation
Default intNetmask Length - 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).
- Allocation
Max intNetmask Length - The maximum netmask length that will be required for CIDR allocations in this pool.
- Allocation
Min intNetmask Length - The minimum netmask length that will be required for CIDR allocations in this pool.
- map[string]string
- 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.
- Auto
Import bool - If you include this argument, IPAM automatically imports any VPCs you have in your scope that fall within the CIDR range in the pool.
- Aws
Service string - Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values:
ec2
. - Cascade bool
- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.
- Description string
- A description for the IPAM pool.
- Locale 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
. - Public
Ip stringSource - 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
oramazon
. Default isbyoip
. - Publicly
Advertisable bool - Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if
address_family = "ipv6"
andpublic_ip_source = "byoip"
, default isfalse
. This option is not available for IPv4 pool space or ifpublic_ip_source = "amazon"
. - Source
Ipam stringPool Id - The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.
- 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.
- address
Family String - The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.
- ipam
Scope StringId - The ID of the scope in which you would like to create the IPAM pool.
- allocation
Default IntegerNetmask Length - 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).
- allocation
Max IntegerNetmask Length - The maximum netmask length that will be required for CIDR allocations in this pool.
- allocation
Min IntegerNetmask Length - The minimum netmask length that will be required for CIDR allocations in this pool.
- Map<String,String>
- 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.
- auto
Import 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.
- aws
Service String - Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values:
ec2
. - cascade Boolean
- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.
- description String
- A description for the IPAM pool.
- locale 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
. - public
Ip StringSource - 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
oramazon
. Default isbyoip
. - publicly
Advertisable Boolean - Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if
address_family = "ipv6"
andpublic_ip_source = "byoip"
, default isfalse
. This option is not available for IPv4 pool space or ifpublic_ip_source = "amazon"
. - source
Ipam StringPool Id - The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.
- 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.
- address
Family string - The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.
- ipam
Scope stringId - The ID of the scope in which you would like to create the IPAM pool.
- allocation
Default numberNetmask Length - 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).
- allocation
Max numberNetmask Length - The maximum netmask length that will be required for CIDR allocations in this pool.
- allocation
Min numberNetmask Length - The minimum netmask length that will be required for CIDR allocations in this pool.
- {[key: string]: string}
- 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.
- auto
Import 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.
- aws
Service string - Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values:
ec2
. - cascade boolean
- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.
- description string
- A description for the IPAM pool.
- locale 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
. - public
Ip stringSource - 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
oramazon
. Default isbyoip
. - publicly
Advertisable boolean - Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if
address_family = "ipv6"
andpublic_ip_source = "byoip"
, default isfalse
. This option is not available for IPv4 pool space or ifpublic_ip_source = "amazon"
. - source
Ipam stringPool Id - The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.
- {[key: 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.
- address_
family str - The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.
- ipam_
scope_ strid - The ID of the scope in which you would like to create the IPAM pool.
- allocation_
default_ intnetmask_ length - 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).
- allocation_
max_ intnetmask_ length - The maximum netmask length that will be required for CIDR allocations in this pool.
- allocation_
min_ intnetmask_ length - The minimum netmask length that will be required for CIDR allocations in this pool.
- Mapping[str, str]
- 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.
- auto_
import bool - If you include this argument, IPAM automatically imports any VPCs you have in your scope that fall within the CIDR range in the pool.
- aws_
service str - Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values:
ec2
. - cascade bool
- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.
- description str
- A description for the IPAM pool.
- locale str
- 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
. - public_
ip_ strsource - 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
oramazon
. Default isbyoip
. - publicly_
advertisable bool - Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if
address_family = "ipv6"
andpublic_ip_source = "byoip"
, default isfalse
. This option is not available for IPv4 pool space or ifpublic_ip_source = "amazon"
. - source_
ipam_ strpool_ id - The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.
- Mapping[str, str]
- 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.
- address
Family String - The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.
- ipam
Scope StringId - The ID of the scope in which you would like to create the IPAM pool.
- allocation
Default NumberNetmask Length - 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).
- allocation
Max NumberNetmask Length - The maximum netmask length that will be required for CIDR allocations in this pool.
- allocation
Min NumberNetmask Length - The minimum netmask length that will be required for CIDR allocations in this pool.
- Map<String>
- 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.
- auto
Import 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.
- aws
Service String - Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values:
ec2
. - cascade Boolean
- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.
- description String
- A description for the IPAM pool.
- locale 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
. - public
Ip StringSource - 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
oramazon
. Default isbyoip
. - publicly
Advertisable Boolean - Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if
address_family = "ipv6"
andpublic_ip_source = "byoip"
, default isfalse
. This option is not available for IPv4 pool space or ifpublic_ip_source = "amazon"
. - source
Ipam StringPool Id - The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.
- Map<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.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcIpamPool resource produces the following output properties:
- Arn string
- Amazon Resource Name (ARN) of IPAM
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipam
Scope stringType - Pool
Depth int - State string
- The ID of the IPAM
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Amazon Resource Name (ARN) of IPAM
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipam
Scope stringType - Pool
Depth int - State string
- The ID of the IPAM
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of IPAM
- id String
- The provider-assigned unique ID for this managed resource.
- ipam
Scope StringType - pool
Depth Integer - state String
- The ID of the IPAM
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- Amazon Resource Name (ARN) of IPAM
- id string
- The provider-assigned unique ID for this managed resource.
- ipam
Scope stringType - pool
Depth number - state string
- The ID of the IPAM
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- Amazon Resource Name (ARN) of IPAM
- id str
- The provider-assigned unique ID for this managed resource.
- ipam_
scope_ strtype - pool_
depth int - state str
- The ID of the IPAM
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of IPAM
- id String
- The provider-assigned unique ID for this managed resource.
- ipam
Scope StringType - pool
Depth Number - state String
- The ID of the IPAM
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing VpcIpamPool Resource
Get an existing VpcIpamPool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VpcIpamPoolState, opts?: CustomResourceOptions): VpcIpamPool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address_family: Optional[str] = None,
allocation_default_netmask_length: Optional[int] = None,
allocation_max_netmask_length: Optional[int] = None,
allocation_min_netmask_length: Optional[int] = None,
allocation_resource_tags: Optional[Mapping[str, str]] = None,
arn: Optional[str] = None,
auto_import: Optional[bool] = None,
aws_service: Optional[str] = None,
cascade: Optional[bool] = None,
description: Optional[str] = None,
ipam_scope_id: Optional[str] = None,
ipam_scope_type: Optional[str] = None,
locale: Optional[str] = None,
pool_depth: Optional[int] = None,
public_ip_source: Optional[str] = None,
publicly_advertisable: Optional[bool] = None,
source_ipam_pool_id: Optional[str] = None,
state: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> VpcIpamPool
func GetVpcIpamPool(ctx *Context, name string, id IDInput, state *VpcIpamPoolState, opts ...ResourceOption) (*VpcIpamPool, error)
public static VpcIpamPool Get(string name, Input<string> id, VpcIpamPoolState? state, CustomResourceOptions? opts = null)
public static VpcIpamPool get(String name, Output<String> id, VpcIpamPoolState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Address
Family string - The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.
- Allocation
Default intNetmask Length - 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).
- Allocation
Max intNetmask Length - The maximum netmask length that will be required for CIDR allocations in this pool.
- Allocation
Min intNetmask Length - The minimum netmask length that will be required for CIDR allocations in this pool.
- Dictionary<string, string>
- 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.
- Arn string
- Amazon Resource Name (ARN) of IPAM
- Auto
Import bool - If you include this argument, IPAM automatically imports any VPCs you have in your scope that fall within the CIDR range in the pool.
- Aws
Service string - Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values:
ec2
. - Cascade bool
- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.
- Description string
- A description for the IPAM pool.
- Ipam
Scope stringId - The ID of the scope in which you would like to create the IPAM pool.
- Ipam
Scope stringType - Locale 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
. - Pool
Depth int - Public
Ip stringSource - 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
oramazon
. Default isbyoip
. - Publicly
Advertisable bool - Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if
address_family = "ipv6"
andpublic_ip_source = "byoip"
, default isfalse
. This option is not available for IPv4 pool space or ifpublic_ip_source = "amazon"
. - Source
Ipam stringPool Id - The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.
- State string
- The ID of the IPAM
- Dictionary<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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Address
Family string - The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.
- Allocation
Default intNetmask Length - 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).
- Allocation
Max intNetmask Length - The maximum netmask length that will be required for CIDR allocations in this pool.
- Allocation
Min intNetmask Length - The minimum netmask length that will be required for CIDR allocations in this pool.
- map[string]string
- 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.
- Arn string
- Amazon Resource Name (ARN) of IPAM
- Auto
Import bool - If you include this argument, IPAM automatically imports any VPCs you have in your scope that fall within the CIDR range in the pool.
- Aws
Service string - Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values:
ec2
. - Cascade bool
- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.
- Description string
- A description for the IPAM pool.
- Ipam
Scope stringId - The ID of the scope in which you would like to create the IPAM pool.
- Ipam
Scope stringType - Locale 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
. - Pool
Depth int - Public
Ip stringSource - 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
oramazon
. Default isbyoip
. - Publicly
Advertisable bool - Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if
address_family = "ipv6"
andpublic_ip_source = "byoip"
, default isfalse
. This option is not available for IPv4 pool space or ifpublic_ip_source = "amazon"
. - Source
Ipam stringPool Id - The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.
- State string
- The ID of the IPAM
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- address
Family String - The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.
- allocation
Default IntegerNetmask Length - 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).
- allocation
Max IntegerNetmask Length - The maximum netmask length that will be required for CIDR allocations in this pool.
- allocation
Min IntegerNetmask Length - The minimum netmask length that will be required for CIDR allocations in this pool.
- Map<String,String>
- 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.
- arn String
- Amazon Resource Name (ARN) of IPAM
- auto
Import 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.
- aws
Service String - Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values:
ec2
. - cascade Boolean
- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.
- description String
- A description for the IPAM pool.
- ipam
Scope StringId - The ID of the scope in which you would like to create the IPAM pool.
- ipam
Scope StringType - locale 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
. - pool
Depth Integer - public
Ip StringSource - 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
oramazon
. Default isbyoip
. - publicly
Advertisable Boolean - Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if
address_family = "ipv6"
andpublic_ip_source = "byoip"
, default isfalse
. This option is not available for IPv4 pool space or ifpublic_ip_source = "amazon"
. - source
Ipam StringPool Id - The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.
- state String
- The ID of the IPAM
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- address
Family string - The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.
- allocation
Default numberNetmask Length - 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).
- allocation
Max numberNetmask Length - The maximum netmask length that will be required for CIDR allocations in this pool.
- allocation
Min numberNetmask Length - The minimum netmask length that will be required for CIDR allocations in this pool.
- {[key: string]: string}
- 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.
- arn string
- Amazon Resource Name (ARN) of IPAM
- auto
Import 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.
- aws
Service string - Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values:
ec2
. - cascade boolean
- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.
- description string
- A description for the IPAM pool.
- ipam
Scope stringId - The ID of the scope in which you would like to create the IPAM pool.
- ipam
Scope stringType - locale 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
. - pool
Depth number - public
Ip stringSource - 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
oramazon
. Default isbyoip
. - publicly
Advertisable boolean - Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if
address_family = "ipv6"
andpublic_ip_source = "byoip"
, default isfalse
. This option is not available for IPv4 pool space or ifpublic_ip_source = "amazon"
. - source
Ipam stringPool Id - The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.
- state string
- The ID of the IPAM
- {[key: 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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- address_
family str - The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.
- allocation_
default_ intnetmask_ length - 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).
- allocation_
max_ intnetmask_ length - The maximum netmask length that will be required for CIDR allocations in this pool.
- allocation_
min_ intnetmask_ length - The minimum netmask length that will be required for CIDR allocations in this pool.
- Mapping[str, str]
- 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.
- arn str
- Amazon Resource Name (ARN) of IPAM
- auto_
import bool - If you include this argument, IPAM automatically imports any VPCs you have in your scope that fall within the CIDR range in the pool.
- aws_
service str - Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values:
ec2
. - cascade bool
- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.
- description str
- A description for the IPAM pool.
- ipam_
scope_ strid - The ID of the scope in which you would like to create the IPAM pool.
- ipam_
scope_ strtype - locale str
- 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
. - pool_
depth int - public_
ip_ strsource - 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
oramazon
. Default isbyoip
. - publicly_
advertisable bool - Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if
address_family = "ipv6"
andpublic_ip_source = "byoip"
, default isfalse
. This option is not available for IPv4 pool space or ifpublic_ip_source = "amazon"
. - source_
ipam_ strpool_ id - The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.
- state str
- The ID of the IPAM
- Mapping[str, str]
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- address
Family String - The IP protocol assigned to this pool. You must choose either IPv4 or IPv6 protocol for a pool.
- allocation
Default NumberNetmask Length - 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).
- allocation
Max NumberNetmask Length - The maximum netmask length that will be required for CIDR allocations in this pool.
- allocation
Min NumberNetmask Length - The minimum netmask length that will be required for CIDR allocations in this pool.
- Map<String>
- 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.
- arn String
- Amazon Resource Name (ARN) of IPAM
- auto
Import 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.
- aws
Service String - Limits which AWS service the pool can be used in. Only useable on public scopes. Valid Values:
ec2
. - cascade Boolean
- Enables you to quickly delete an IPAM pool and all resources within that pool, including provisioned CIDRs, allocations, and other pools.
- description String
- A description for the IPAM pool.
- ipam
Scope StringId - The ID of the scope in which you would like to create the IPAM pool.
- ipam
Scope StringType - locale 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
. - pool
Depth Number - public
Ip StringSource - 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
oramazon
. Default isbyoip
. - publicly
Advertisable Boolean - Defines whether or not IPv6 pool space is publicly advertisable over the internet. This argument is required if
address_family = "ipv6"
andpublic_ip_source = "byoip"
, default isfalse
. This option is not available for IPv4 pool space or ifpublic_ip_source = "amazon"
. - source
Ipam StringPool Id - The ID of the source IPAM pool. Use this argument to create a child pool within an existing pool.
- state String
- The ID of the IPAM
- Map<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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Using pulumi import
, import IPAMs using the IPAM pool id
. For example:
$ pulumi import aws:ec2/vpcIpamPool:VpcIpamPool example ipam-pool-0958f95207d978e1e
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.