get Coip Pool
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
A collection of arguments for invoking getCoipPool.
Return
A collection of values returned by getCoipPool.
Parameters
Local Gateway Route Table Id assigned to desired COIP Pool
ID of the specific COIP Pool to retrieve.
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
Return
A collection of values returned by getCoipPool.
Parameters
Builder for com.pulumi.aws.ec2.kotlin.inputs.GetCoipPoolPlainArgs.