Try AWS Native preview for resources not in the classic version.
aws.ec2.getVpcIpamPools
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
aws.ec2.getVpcIpamPools
provides details about IPAM pools.
This resource can prove useful when IPAM pools are created in another root module and you need the pool ids as input variables. For example, pools can be shared via RAM and used to create vpcs with CIDRs from that pool.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.ec2.getVpcIpamPools({
filters: [
{
name: "description",
values: ["*test*"],
},
{
name: "address-family",
values: ["ipv4"],
},
],
});
import pulumi
import pulumi_aws as aws
test = aws.ec2.get_vpc_ipam_pools(filters=[
{
"name": "description",
"values": ["*test*"],
},
{
"name": "address-family",
"values": ["ipv4"],
},
])
package main
import (
"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 {
_, err := ec2.GetVpcIpamPools(ctx, &ec2.GetVpcIpamPoolsArgs{
Filters: []ec2.GetVpcIpamPoolsFilter{
{
Name: "description",
Values: []string{
"*test*",
},
},
{
Name: "address-family",
Values: []string{
"ipv4",
},
},
},
}, nil)
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 test = Aws.Ec2.GetVpcIpamPools.Invoke(new()
{
Filters = new[]
{
new Aws.Ec2.Inputs.GetVpcIpamPoolsFilterInputArgs
{
Name = "description",
Values = new[]
{
"*test*",
},
},
new Aws.Ec2.Inputs.GetVpcIpamPoolsFilterInputArgs
{
Name = "address-family",
Values = new[]
{
"ipv4",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetVpcIpamPoolsArgs;
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 test = Ec2Functions.getVpcIpamPools(GetVpcIpamPoolsArgs.builder()
.filters(
GetVpcIpamPoolsFilterArgs.builder()
.name("description")
.values("*test*")
.build(),
GetVpcIpamPoolsFilterArgs.builder()
.name("address-family")
.values("ipv4")
.build())
.build());
}
}
variables:
test:
fn::invoke:
Function: aws:ec2:getVpcIpamPools
Arguments:
filters:
- name: description
values:
- '*test*'
- name: address-family
values:
- ipv4
Using getVpcIpamPools
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVpcIpamPools(args: GetVpcIpamPoolsArgs, opts?: InvokeOptions): Promise<GetVpcIpamPoolsResult>
function getVpcIpamPoolsOutput(args: GetVpcIpamPoolsOutputArgs, opts?: InvokeOptions): Output<GetVpcIpamPoolsResult>
def get_vpc_ipam_pools(filters: Optional[Sequence[GetVpcIpamPoolsFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcIpamPoolsResult
def get_vpc_ipam_pools_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetVpcIpamPoolsFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcIpamPoolsResult]
func GetVpcIpamPools(ctx *Context, args *GetVpcIpamPoolsArgs, opts ...InvokeOption) (*GetVpcIpamPoolsResult, error)
func GetVpcIpamPoolsOutput(ctx *Context, args *GetVpcIpamPoolsOutputArgs, opts ...InvokeOption) GetVpcIpamPoolsResultOutput
> Note: This function is named GetVpcIpamPools
in the Go SDK.
public static class GetVpcIpamPools
{
public static Task<GetVpcIpamPoolsResult> InvokeAsync(GetVpcIpamPoolsArgs args, InvokeOptions? opts = null)
public static Output<GetVpcIpamPoolsResult> Invoke(GetVpcIpamPoolsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpcIpamPoolsResult> getVpcIpamPools(GetVpcIpamPoolsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:ec2/getVpcIpamPools:getVpcIpamPools
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Vpc Ipam Pools Filter> - Custom filter block as described below.
- Filters
[]Get
Vpc Ipam Pools Filter - Custom filter block as described below.
- filters
List<Get
Vpc Ipam Pools Filter> - Custom filter block as described below.
- filters
Get
Vpc Ipam Pools Filter[] - Custom filter block as described below.
- filters
Sequence[Get
Vpc Ipam Pools Filter] - Custom filter block as described below.
- filters List<Property Map>
- Custom filter block as described below.
getVpcIpamPools Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipam
Pools List<GetVpc Ipam Pools Ipam Pool> - List of IPAM pools and their attributes. See below for details
- Filters
List<Get
Vpc Ipam Pools Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipam
Pools []GetVpc Ipam Pools Ipam Pool - List of IPAM pools and their attributes. See below for details
- Filters
[]Get
Vpc Ipam Pools Filter
- id String
- The provider-assigned unique ID for this managed resource.
- ipam
Pools List<GetVpc Ipam Pools Ipam Pool> - List of IPAM pools and their attributes. See below for details
- filters
List<Get
Vpc Ipam Pools Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- ipam
Pools GetVpc Ipam Pools Ipam Pool[] - List of IPAM pools and their attributes. See below for details
- filters
Get
Vpc Ipam Pools Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- ipam_
pools Sequence[GetVpc Ipam Pools Ipam Pool] - List of IPAM pools and their attributes. See below for details
- filters
Sequence[Get
Vpc Ipam Pools Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- ipam
Pools List<Property Map> - List of IPAM pools and their attributes. See below for details
- filters List<Property Map>
Supporting Types
GetVpcIpamPoolsFilter
GetVpcIpamPoolsIpamPool
- Address
Family string - IP protocol assigned to this 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 to10.0.0.0/16
. - 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 to create resources in using this pool.
- Arn string
- ARN of the pool
- Auto
Import bool - If enabled, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM.
- Aws
Service string - Limits which service in AWS that the pool can be used in.
ec2
for example, allows users to use space for Elastic IP addresses and VPCs. - Description string
- Description for the IPAM pool.
- Id string
- ID of the IPAM pool.
- Ipam
Scope stringId - ID of the scope the pool belongs to.
- Ipam
Scope stringType - Locale string
- Locale is the Region where your pool is 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.
- Pool
Depth int - Publicly
Advertisable bool - Defines whether or not IPv6 pool space is publicly advertisable over the internet.
- Source
Ipam stringPool Id - ID of the source IPAM pool.
- State string
- Dictionary<string, string>
- Map of tags to assigned to the resource.
- Address
Family string - IP protocol assigned to this 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 to10.0.0.0/16
. - 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 to create resources in using this pool.
- Arn string
- ARN of the pool
- Auto
Import bool - If enabled, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM.
- Aws
Service string - Limits which service in AWS that the pool can be used in.
ec2
for example, allows users to use space for Elastic IP addresses and VPCs. - Description string
- Description for the IPAM pool.
- Id string
- ID of the IPAM pool.
- Ipam
Scope stringId - ID of the scope the pool belongs to.
- Ipam
Scope stringType - Locale string
- Locale is the Region where your pool is 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.
- Pool
Depth int - Publicly
Advertisable bool - Defines whether or not IPv6 pool space is publicly advertisable over the internet.
- Source
Ipam stringPool Id - ID of the source IPAM pool.
- State string
- map[string]string
- Map of tags to assigned to the resource.
- address
Family String - IP protocol assigned to this 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 to10.0.0.0/16
. - 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 to create resources in using this pool.
- arn String
- ARN of the pool
- auto
Import Boolean - If enabled, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM.
- aws
Service String - Limits which service in AWS that the pool can be used in.
ec2
for example, allows users to use space for Elastic IP addresses and VPCs. - description String
- Description for the IPAM pool.
- id String
- ID of the IPAM pool.
- ipam
Scope StringId - ID of the scope the pool belongs to.
- ipam
Scope StringType - locale String
- Locale is the Region where your pool is 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.
- pool
Depth Integer - publicly
Advertisable Boolean - Defines whether or not IPv6 pool space is publicly advertisable over the internet.
- source
Ipam StringPool Id - ID of the source IPAM pool.
- state String
- Map<String,String>
- Map of tags to assigned to the resource.
- address
Family string - IP protocol assigned to this 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 to10.0.0.0/16
. - 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 to create resources in using this pool.
- arn string
- ARN of the pool
- auto
Import boolean - If enabled, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM.
- aws
Service string - Limits which service in AWS that the pool can be used in.
ec2
for example, allows users to use space for Elastic IP addresses and VPCs. - description string
- Description for the IPAM pool.
- id string
- ID of the IPAM pool.
- ipam
Scope stringId - ID of the scope the pool belongs to.
- ipam
Scope stringType - locale string
- Locale is the Region where your pool is 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.
- pool
Depth number - publicly
Advertisable boolean - Defines whether or not IPv6 pool space is publicly advertisable over the internet.
- source
Ipam stringPool Id - ID of the source IPAM pool.
- state string
- {[key: string]: string}
- Map of tags to assigned to the resource.
- address_
family str - IP protocol assigned to this 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 to10.0.0.0/16
. - 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 to create resources in using this pool.
- arn str
- ARN of the pool
- auto_
import bool - If enabled, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM.
- aws_
service str - Limits which service in AWS that the pool can be used in.
ec2
for example, allows users to use space for Elastic IP addresses and VPCs. - description str
- Description for the IPAM pool.
- id str
- ID of the IPAM pool.
- ipam_
scope_ strid - ID of the scope the pool belongs to.
- ipam_
scope_ strtype - locale str
- Locale is the Region where your pool is 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.
- pool_
depth int - publicly_
advertisable bool - Defines whether or not IPv6 pool space is publicly advertisable over the internet.
- source_
ipam_ strpool_ id - ID of the source IPAM pool.
- state str
- Mapping[str, str]
- Map of tags to assigned to the resource.
- address
Family String - IP protocol assigned to this 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 to10.0.0.0/16
. - 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 to create resources in using this pool.
- arn String
- ARN of the pool
- auto
Import Boolean - If enabled, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM.
- aws
Service String - Limits which service in AWS that the pool can be used in.
ec2
for example, allows users to use space for Elastic IP addresses and VPCs. - description String
- Description for the IPAM pool.
- id String
- ID of the IPAM pool.
- ipam
Scope StringId - ID of the scope the pool belongs to.
- ipam
Scope StringType - locale String
- Locale is the Region where your pool is 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.
- pool
Depth Number - publicly
Advertisable Boolean - Defines whether or not IPv6 pool space is publicly advertisable over the internet.
- source
Ipam StringPool Id - ID of the source IPAM pool.
- state String
- Map<String>
- Map of tags to assigned to the resource.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.