Skip to main content

coip_pools

Creates, updates, deletes, gets or lists a coip_pools resource.

Overview

Namecoip_pools
TypeResource
Idaws.ec2.coip_pools

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
local_gateway_route_table_idstringThe ID of the local gateway route table.
pool_arnstringThe ARN of the address pool.
pool_cidrsstringThe address ranges of the address pool.
pool_idstringThe ID of the address pool.
tagsstringThe tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_coip_poolsselectregionPoolId, Filter, MaxResults, NextToken, DryRunDescribes the specified customer-owned address pools or all of your customer-owned address pools.
create_coip_cidrinsertCoipPoolId, regionCidr, DryRunCreates a range of customer-owned IP addresses.
create_coip_poolinsertLocalGatewayRouteTableId, regionTagSpecification, DryRunCreates a pool of customer-owned IP (CoIP) addresses.
delete_coip_pooldeleteCoipPoolId, regionDryRunDeletes a pool of customer-owned IP (CoIP) addresses.
delete_coip_cidrexecCoipPoolId, regionCidr, DryRunDeletes a range of customer-owned IP addresses.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
CoipPoolIdstringThe ID of the customer-owned address pool.
LocalGatewayRouteTableIdstringThe ID of the local gateway route table.
regionstringAWS region (default: us-east-1)
CidrstringA customer-owned IP address range that you want to delete.
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayOne or more filters. coip-pool.local-gateway-route-table-id - The ID of the local gateway route table. coip-pool.pool-id - The ID of the address pool.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NextTokenstringThe token for the next page of results.
PoolIdarrayThe IDs of the address pools.
TagSpecificationarrayThe tags to assign to the CoIP address pool.

SELECT examples

Describes the specified customer-owned address pools or all of your customer-owned address pools.

SELECT
local_gateway_route_table_id,
pool_arn,
pool_cidrs,
pool_id,
tags
FROM aws.ec2.coip_pools
WHERE region = '{{ region }}' -- required
AND PoolId = '{{ PoolId }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Creates a range of customer-owned IP addresses.

INSERT INTO aws.ec2.coip_pools (
CoipPoolId,
region,
Cidr,
DryRun
)
SELECT
'{{ CoipPoolId }}',
'{{ region }}',
'{{ Cidr }}',
'{{ DryRun }}'
RETURNING
cidr,
coip_pool_id,
local_gateway_route_table_id
;

DELETE examples

Deletes a pool of customer-owned IP (CoIP) addresses.

DELETE FROM aws.ec2.coip_pools
WHERE CoipPoolId = '{{ CoipPoolId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;

Lifecycle Methods

Deletes a range of customer-owned IP addresses.

EXEC aws.ec2.coip_pools.delete_coip_cidr
@CoipPoolId='{{ CoipPoolId }}' --required,
@region='{{ region }}' --required,
@Cidr='{{ Cidr }}',
@DryRun={{ DryRun }}
;