Skip to main content

ipam_scopes

Creates, updates, deletes, gets or lists an ipam_scopes resource.

Overview

Nameipam_scopes
TypeResource
Idaws.ec2.ipam_scopes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringThe description of the scope.
external_authority_configurationstringThe external authority configuration for this IPAM scope, if configured. The configuration that links an Amazon VPC IPAM scope to an external authority system. It specifies the type of external system and the external resource identifier that identifies your account or instance in that system. In IPAM, an external authority is a third-party IP address management system that provides CIDR blocks when you provision address space for top-level IPAM pools. This allows you to use your existing IP management system to control which address ranges are allocated to Amazon Web Services while using Amazon VPC IPAM to manage subnets within those ranges.
ipam_arnstringThe ARN of the IPAM.
ipam_regionstringThe Amazon Web Services Region of the IPAM scope.
ipam_scope_arnstringThe Amazon Resource Name (ARN) of the scope.
ipam_scope_idstringThe ID of the scope.
ipam_scope_typestringThe type of the scope.
is_defaultbooleanDefines if the scope is the default scope or not.
owner_idstringThe Amazon Web Services account ID of the owner of the scope.
pool_countintegerThe number of pools in the scope.
statestringThe state of the IPAM scope.
tagsstringThe key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_ipam_scopesselectregionDryRun, Filter, MaxResults, NextToken, IpamScopeIdGet information about your IPAM scopes.
create_ipam_scopeinsertIpamId, regionDryRun, Description, TagSpecification, ClientToken, ExternalAuthorityConfigurationCreate an IPAM scope. In IPAM, a scope is the highest-level container within IPAM. An IPAM contains two default scopes. Each scope represents the IP space for a single network. The private scope is intended for all private IP address space. The public scope is intended for all public IP address space. Scopes enable you to reuse IP addresses across multiple unconnected networks without causing IP address overlap or conflict. For more information, see Add a scope in the Amazon VPC IPAM User Guide.
modify_ipam_scopeupdateIpamScopeId, regionDryRun, Description, ExternalAuthorityConfiguration, RemoveExternalAuthorityConfigurationModify an IPAM scope.
delete_ipam_scopedeleteIpamScopeId, regionDryRunDelete the scope for an IPAM. You cannot delete the default scopes. For more information, see Delete a scope in the Amazon VPC IPAM User Guide.

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
IpamIdstringThe ID of the IPAM for which you're creating this scope.
IpamScopeIdstringThe ID of the scope to delete.
regionstringAWS region (default: us-east-1)
ClientTokenstringA unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
DescriptionstringThe description of the scope you want to modify.
DryRunbooleanA check for 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.
ExternalAuthorityConfigurationobjectThe configuration that links an Amazon VPC IPAM scope to an external authority system. It specifies the type of external system and the external resource identifier that identifies your account or instance in that system. In IPAM, an external authority is a third-party IP address management system that provides CIDR blocks when you provision address space for top-level IPAM pools. This allows you to use your existing IP management system to control which address ranges are allocated to Amazon Web Services while using Amazon VPC IPAM to manage subnets within those ranges.
FilterarrayOne or more filters for the request. For more information about filtering, see Filtering CLI output.
IpamScopeIdarrayThe IDs of the scopes you want information on.
MaxResultsintegerThe maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
NextTokenstringThe token for the next page of results.
RemoveExternalAuthorityConfigurationbooleanRemove the external authority configuration. true to remove.
TagSpecificationarrayThe key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

SELECT examples

Get information about your IPAM scopes.

SELECT
description,
external_authority_configuration,
ipam_arn,
ipam_region,
ipam_scope_arn,
ipam_scope_id,
ipam_scope_type,
is_default,
owner_id,
pool_count,
state,
tags
FROM aws.ec2.ipam_scopes
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND IpamScopeId = '{{ IpamScopeId }}'
;

INSERT examples

Create an IPAM scope. In IPAM, a scope is the highest-level container within IPAM. An IPAM contains two default scopes. Each scope represents the IP space for a single network. The private scope is intended for all private IP address space. The public scope is intended for all public IP address space. Scopes enable you to reuse IP addresses across multiple unconnected networks without causing IP address overlap or conflict. For more information, see Add a scope in the Amazon VPC IPAM User Guide.

INSERT INTO aws.ec2.ipam_scopes (
IpamId,
region,
DryRun,
Description,
TagSpecification,
ClientToken,
ExternalAuthorityConfiguration
)
SELECT
'{{ IpamId }}',
'{{ region }}',
'{{ DryRun }}',
'{{ Description }}',
'{{ TagSpecification }}',
'{{ ClientToken }}',
'{{ ExternalAuthorityConfiguration }}'
RETURNING
description,
external_authority_configuration,
ipam_arn,
ipam_region,
ipam_scope_arn,
ipam_scope_id,
ipam_scope_type,
is_default,
owner_id,
pool_count,
state,
tags
;

UPDATE examples

Modify an IPAM scope.

UPDATE aws.ec2.ipam_scopes
SET
-- No updatable properties
WHERE
IpamScopeId = '{{ IpamScopeId }}' --required
AND region = '{{ region }}' --required
AND DryRun = {{ DryRun}}
AND Description = '{{ Description}}'
AND ExternalAuthorityConfiguration = '{{ ExternalAuthorityConfiguration}}'
AND RemoveExternalAuthorityConfiguration = {{ RemoveExternalAuthorityConfiguration}}
RETURNING
description,
external_authority_configuration,
ipam_arn,
ipam_region,
ipam_scope_arn,
ipam_scope_id,
ipam_scope_type,
is_default,
owner_id,
pool_count,
state,
tags;

DELETE examples

Delete the scope for an IPAM. You cannot delete the default scopes. For more information, see Delete a scope in the Amazon VPC IPAM User Guide.

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