Skip to content

IAM  >  Operations  >  create_account_alias

create_account_alias

Operation

create_account_alias async

create_account_alias(input: CreateAccountAliasInput, plugins: list[Plugin] | None = None) -> CreateAccountAliasOutput

Creates an alias for your Amazon Web Services account. For information about using an Amazon Web Services account alias, see Creating, deleting, and listing an Amazon Web Services account alias in the Amazon Web Services Sign-In User Guide.

Parameters:

Name Type Description Default
input CreateAccountAliasInput

An instance of CreateAccountAliasInput.

required
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
CreateAccountAliasOutput

An instance of CreateAccountAliasOutput.

Input

CreateAccountAliasInput dataclass

Bases: _SerdeShape

Dataclass for CreateAccountAliasInput structure.

Attributes

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

The account alias to create.

This parameter allows (through its regex pattern) a string of characters consisting of lowercase letters, digits, and dashes. You cannot start or finish with a dash, nor can you have two dashes in a row.

Output

CreateAccountAliasOutput dataclass

Bases: _SerdeShape

Dataclass for CreateAccountAliasOutput structure.

Attributes

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.