deleteAccountAlias method

Future<void> deleteAccountAlias({
  1. required String accountAlias,
})

Deletes the specified AWS account alias. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide.

May throw NoSuchEntityException. May throw LimitExceededException. May throw ServiceFailureException.

Parameter accountAlias : The name of the account alias to delete.

This parameter allows (through its regex pattern) a string of characters consisting of lowercase letters, digits, and dashes. You cannot start or finish with a dash, nor can you have two dashes in a row.

Implementation

Future<void> deleteAccountAlias({
  required String accountAlias,
}) async {
  ArgumentError.checkNotNull(accountAlias, 'accountAlias');
  _s.validateStringLength(
    'accountAlias',
    accountAlias,
    3,
    63,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['AccountAlias'] = accountAlias;
  await _protocol.send(
    $request,
    action: 'DeleteAccountAlias',
    version: '2010-05-08',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteAccountAliasRequest'],
    shapes: shapes,
  );
}