account_alias
Creates, updates, deletes, gets or lists an account_alias resource.
Overview
| Name | account_alias |
| Type | Resource |
| Id | aws.support_app.account_alias |
Fields
The following fields are returned by SELECT queries:
- get_account_alias
| Name | Datatype | Description |
|---|---|---|
account_alias | string | An alias or short name for an Amazon Web Services account. (pattern: <code>^[\w- ]+$</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_account_alias | select | region | Retrieves the alias from an Amazon Web Services account ID. The alias appears in the Amazon Web Services Support App page of the Amazon Web Services Support Center. The alias also appears in Slack messages from the Amazon Web Services Support App. | |
put_account_alias | replace | region, accountAlias | Creates or updates an individual alias for each Amazon Web Services account ID. The alias appears in the Amazon Web Services Support App page of the Amazon Web Services Support Center. The alias also appears in Slack messages from the Amazon Web Services Support App. | |
delete_account_alias | delete | region | Deletes an alias for an Amazon Web Services account ID. The alias appears in the Amazon Web Services Support App page of the Amazon Web Services Support Center. The alias also appears in Slack messages from the Amazon Web Services Support App. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_account_alias
Retrieves the alias from an Amazon Web Services account ID. The alias appears in the Amazon Web Services Support App page of the Amazon Web Services Support Center. The alias also appears in Slack messages from the Amazon Web Services Support App.
SELECT
account_alias
FROM aws.support_app.account_alias
WHERE region = '{{ region }}' -- required
;
REPLACE examples
- put_account_alias
Creates or updates an individual alias for each Amazon Web Services account ID. The alias appears in the Amazon Web Services Support App page of the Amazon Web Services Support Center. The alias also appears in Slack messages from the Amazon Web Services Support App.
REPLACE aws.support_app.account_alias
SET
accountAlias = '{{ accountAlias }}'
WHERE
region = '{{ region }}' --required
AND accountAlias = '{{ accountAlias }}' --required;
DELETE examples
- delete_account_alias
Deletes an alias for an Amazon Web Services account ID. The alias appears in the Amazon Web Services Support App page of the Amazon Web Services Support Center. The alias also appears in Slack messages from the Amazon Web Services Support App.
DELETE FROM aws.support_app.account_alias
WHERE region = '{{ region }}' --required
;