getCoipPool

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

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.GetCoipPoolArgs;
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 config = ctx.config();
final var coipPoolId = config.get("coipPoolId");
final var selected = Ec2Functions.getCoipPool(GetCoipPoolArgs.builder()
.id(coipPoolId)
.build());
}
}

Return

A collection of values returned by getCoipPool.

Parameters

argument

A collection of arguments for invoking getCoipPool.


suspend fun getCoipPool(filters: List<GetCoipPoolFilter>? = null, localGatewayRouteTableId: String? = null, poolId: String? = null, tags: Map<String, String>? = null): GetCoipPoolResult

Return

A collection of values returned by getCoipPool.

Parameters

filters
localGatewayRouteTableId

Local Gateway Route Table Id assigned to desired COIP Pool

poolId

ID of the specific COIP Pool to retrieve.

tags

Mapping of tags, each pair of which must exactly match a pair on the desired COIP Pool. More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

See also


suspend fun getCoipPool(argument: suspend GetCoipPoolPlainArgsBuilder.() -> Unit): GetCoipPoolResult

Return

A collection of values returned by getCoipPool.

Parameters

argument

Builder for com.pulumi.aws.ec2.kotlin.inputs.GetCoipPoolPlainArgs.

See also