Show / Hide Table of Contents

Class GetCoipPool

Inheritance
System.Object
GetCoipPool
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public static class GetCoipPool

Methods

View Source

InvokeAsync(GetCoipPoolArgs, InvokeOptions)

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.

{{% examples %}}

Example Usage

{{% example %}}

The following example returns a specific coip pool ID

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var config = new Config();
    var coipPoolId = config.RequireObject<dynamic>("coipPoolId");
    var selected = Output.Create(Aws.Ec2.GetCoipPool.InvokeAsync(new Aws.Ec2.GetCoipPoolArgs
    {
        Id = coipPoolId,
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetCoipPoolResult> InvokeAsync(GetCoipPoolArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetCoipPoolArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetCoipPoolResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.