AccountName
Source:
src/AWS/Account/AccountName.ts
The display name of an AWS account. Every account has exactly one name; this
account-global singleton sets it via account:PutAccountName. Deleting the
resource stops managing the name and leaves the last value in place (an
account always has a name).
Naming the Account
Section titled “Naming the Account”Set the Calling Account’s Name
const name = yield* AccountName("Name", { accountName: "acme-prod",});Rename an Organizations Member Account
const name = yield* AccountName("MemberName", { accountName: "acme-sandbox", accountId: "123456789012",});