Skip to main content

account_aliases

Creates, updates, deletes or gets an account_alias resource or lists account_aliases in a region

Overview

Nameaccount_aliases
TypeResource
DescriptionAn AWS Support App resource that creates, updates, reads, and deletes a customer's account alias.
Idaws.supportapp.account_aliases

Fields

NameDatatypeDescription
account_aliasstringAn account alias associated with a customer's account.
account_alias_resource_idstringUnique identifier representing an alias tied to an account
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTAccountAlias, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all account_aliases in a region.

SELECT
region,
account_alias,
account_alias_resource_id
FROM aws.supportapp.account_aliases
WHERE region = 'us-east-1';

Gets all properties from an individual account_alias.

SELECT
region,
account_alias,
account_alias_resource_id
FROM aws.supportapp.account_aliases
WHERE region = 'us-east-1' AND data__Identifier = '<AccountAliasResourceId>';

INSERT example

Use the following StackQL query and manifest file to create a new account_alias resource, using stack-deploy.

/*+ create */
INSERT INTO aws.supportapp.account_aliases (
AccountAlias,
region
)
SELECT
'{{ AccountAlias }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.supportapp.account_aliases
WHERE data__Identifier = '<AccountAliasResourceId>'
AND region = 'us-east-1';

Permissions

To operate on the account_aliases resource, the following permissions are required:

Create

supportapp:PutAccountAlias,
supportapp:GetAccountAlias

Read

supportapp:GetAccountAlias

Update

supportapp:PutAccountAlias,
supportapp:GetAccountAlias

Delete

supportapp:DeleteAccountAlias,
supportapp:GetAccountAlias

List

supportapp:GetAccountAlias