Skip to content
GitHubXDiscord

AccountAlias

The AccountAlias resource lets you manage AWS SupportApp account aliases, which are used to identify AWS accounts more easily. For more information, refer to the AWS SupportApp AccountAliases documentation.

Create a basic account alias with required properties.

import AWS from "alchemy/aws/control";
const accountAlias = await AWS.SupportApp.AccountAlias("myAccountAlias", {
AccountAlias: "my-awesome-account",
adopt: false // Default false: Fail if resource already exists
});

Create an account alias with the option to adopt an existing resource.

const adoptedAccountAlias = await AWS.SupportApp.AccountAlias("adoptedAccountAlias", {
AccountAlias: "my-awesome-account",
adopt: true // Adopt existing resource instead of failing
});

After creating an account alias, you can leverage it for support-related functionalities in your applications.

const supportAppAlias = await AWS.SupportApp.AccountAlias("supportAppAlias", {
AccountAlias: "support-portal-account",
adopt: false
});
// Example usage of the account alias in a support application
console.log(`Created SupportApp Account Alias: ${supportAppAlias.AccountAlias}`);