getCoipPool function
Provides details about a specific EC2 Customer-Owned IP Pool.
This data source can prove useful when a module accepts a coip pool id as an input variable and needs to, for example, determine the CIDR block of that COIP Pool.
Example Usage
The following example returns a specific coip pool ID
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_ec2_getcoippool" "selected" {
id = var.coipPoolId
}
variable "coipPoolId" {
}
configuration:
coipPoolId:
type: object
variables:
selected:
fn::invoke:
function: aws:ec2:getCoipPool
arguments:
id: ${coipPoolId}
args Arguments passed to this invoke. Arguments for getCoipPool.
options Invoke options controlling this call.
Implementation
Future<GetCoipPoolResult> getCoipPool(
GetCoipPoolArgs args, {
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final result = await deployment.invoke<Map<String, dynamic>>(
'aws:ec2/getCoipPool:getCoipPool',
args.toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return GetCoipPoolResult.fromMap(result);
}