Skip to content

EC2  >  Operations  >  create_ipam_external_resource_verification_token

create_ipam_external_resource_verification_token

Operation

create_ipam_external_resource_verification_token async

create_ipam_external_resource_verification_token(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[CreateIpamExternalResourceVerificationTokenInputDict]) -> CreateIpamExternalResourceVerificationTokenOutput

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).

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
CreateIpamExternalResourceVerificationTokenOutput

An instance of CreateIpamExternalResourceVerificationTokenOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

CreateIpamExternalResourceVerificationTokenInput dataclass

Bases: _SerdeShape

Dataclass for CreateIpamExternalResourceVerificationTokenInput structure.

Attributes
client_token class-attribute instance-attribute
client_token: str | None = ...

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.

This field is autopopulated if not provided.

dry_run class-attribute instance-attribute
dry_run: bool | None = ...

A 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.

ipam_id class-attribute instance-attribute
ipam_id: str | None = ...

The ID of the IPAM that will create the token.

tag_specifications class-attribute instance-attribute
tag_specifications: list[TagSpecification] | None = ...

Token tags.

Dictionaries

CreateIpamExternalResourceVerificationTokenInputDict

Bases: TypedDict

Dictionary form of CreateIpamExternalResourceVerificationTokenInput.

Attributes
client_token instance-attribute
client_token: str | None

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.

This field is autopopulated if not provided.

dry_run instance-attribute
dry_run: bool | None

A 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.

ipam_id instance-attribute
ipam_id: Required[str]

The ID of the IPAM that will create the token.

tag_specifications instance-attribute
tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None

Token tags.

Output

CreateIpamExternalResourceVerificationTokenOutput dataclass

Bases: _SerdeShape

Dataclass for CreateIpamExternalResourceVerificationTokenOutput structure.

Attributes

ipam_external_resource_verification_token class-attribute instance-attribute
ipam_external_resource_verification_token: IpamExternalResourceVerificationToken | None = ...

The verification token.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.