Skip to main content

account_alias

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

Overview

Nameaccount_alias
TypeResource
Idaws.iam.account_alias

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_account_aliasinsertAccountAlias, regionCreates 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.
delete_account_aliasdeleteAccountAlias, regionDeletes the specified Amazon Web Services account alias. 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

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
AccountAliasstringThe name of the account alias to delete. 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.
regionstringAWS region (default: us-east-1)

INSERT examples

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.

INSERT INTO aws.iam.account_alias (
AccountAlias,
region
)
SELECT
'{{ AccountAlias }}',
'{{ region }}'
;

DELETE examples

Deletes the specified Amazon Web Services account alias. 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.

DELETE FROM aws.iam.account_alias
WHERE AccountAlias = '{{ AccountAlias }}' --required
AND region = '{{ region }}' --required
;