listAccountAliases

abstract suspend fun listAccountAliases(input: ListAccountAliasesRequest = ListAccountAliasesRequest { }): ListAccountAliasesResponse

Lists the account alias associated with the Amazon Web Services account (Note: you can have only one). 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.

Samples


fun main() { 
   //sampleStart 
   // The following command lists the aliases for the current account.
val resp = iamClient.listAccountAliases() 
   //sampleEnd
}