Skip to main content

ipam_external_resource_verification_tokens

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

Overview

Nameipam_external_resource_verification_tokens
TypeResource
Idaws.ec2.ipam_external_resource_verification_tokens

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ipam_arnstringARN of the IPAM that created the token.
ipam_external_resource_verification_token_arnstringToken ARN.
ipam_external_resource_verification_token_idstringThe ID of the token.
ipam_idstringThe ID of the IPAM that created the token.
ipam_regionstringRegion of the IPAM that created the token.
not_afterstringToken expiration.
statestringToken state.
statusstringToken status.
tagsstringToken tags.
token_namestringToken name.
token_valuestringToken value.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_ipam_external_resource_verification_tokensselectregionDryRun, Filter, NextToken, MaxResults, IpamExternalResourceVerificationTokenIdDescribe verification tokens. A verification token is an Amazon Web Services-generated random value that you can use to prove ownership of an external resource. For example, you can use a verification token to validate that you control a public IP address range when you bring an IP address range to Amazon Web Services (BYOIP).
create_ipam_external_resource_verification_tokeninsertIpamId, regionDryRun, TagSpecification, ClientTokenCreate a verification token. A verification token is an Amazon Web Services-generated random value that you can use to prove ownership of an external resource. For example, you can use a verification token to validate that you control a public IP address range when you bring an IP address range to Amazon Web Services (BYOIP).
delete_ipam_external_resource_verification_tokendeleteIpamExternalResourceVerificationTokenId, regionDryRunDelete a verification token. A verification token is an Amazon Web Services-generated random value that you can use to prove ownership of an external resource. For example, you can use a verification token to validate that you control a public IP address range when you bring an IP address range to Amazon Web Services (BYOIP).

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
IpamExternalResourceVerificationTokenIdstringThe token ID.
IpamIdstringThe ID of the IPAM that will create the token.
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.
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.
FilterarrayOne or more filters for the request. For more information about filtering, see Filtering CLI output. Available filters: ipam-arn ipam-external-resource-verification-token-arn ipam-external-resource-verification-token-id ipam-id ipam-region state status token-name token-value
IpamExternalResourceVerificationTokenIdarrayVerification token IDs.
MaxResultsintegerThe maximum number of tokens to return in one page of results.
NextTokenstringThe token for the next page of results.
TagSpecificationarrayToken tags.

SELECT examples

Describe verification tokens. A verification token is an Amazon Web Services-generated random value that you can use to prove ownership of an external resource. For example, you can use a verification token to validate that you control a public IP address range when you bring an IP address range to Amazon Web Services (BYOIP).

SELECT
ipam_arn,
ipam_external_resource_verification_token_arn,
ipam_external_resource_verification_token_id,
ipam_id,
ipam_region,
not_after,
state,
status,
tags,
token_name,
token_value
FROM aws.ec2.ipam_external_resource_verification_tokens
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND IpamExternalResourceVerificationTokenId = '{{ IpamExternalResourceVerificationTokenId }}'
;

INSERT examples

Create a verification token. A verification token is an Amazon Web Services-generated random value that you can use to prove ownership of an external resource. For example, you can use a verification token to validate that you control a public IP address range when you bring an IP address range to Amazon Web Services (BYOIP).

INSERT INTO aws.ec2.ipam_external_resource_verification_tokens (
IpamId,
region,
DryRun,
TagSpecification,
ClientToken
)
SELECT
'{{ IpamId }}',
'{{ region }}',
'{{ DryRun }}',
'{{ TagSpecification }}',
'{{ ClientToken }}'
RETURNING
ipam_arn,
ipam_external_resource_verification_token_arn,
ipam_external_resource_verification_token_id,
ipam_id,
ipam_region,
not_after,
state,
status,
tags,
token_name,
token_value
;

DELETE examples

Delete a verification token. A verification token is an Amazon Web Services-generated random value that you can use to prove ownership of an external resource. For example, you can use a verification token to validate that you control a public IP address range when you bring an IP address range to Amazon Web Services (BYOIP).

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