deleteRoleAlias method

Future<void> deleteRoleAlias({
  1. required String roleAlias,
})

Deletes a role alias

May throw DeleteConflictException. May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException. May throw ResourceNotFoundException.

Parameter roleAlias : The role alias to delete.

Implementation

Future<void> deleteRoleAlias({
  required String roleAlias,
}) async {
  ArgumentError.checkNotNull(roleAlias, 'roleAlias');
  _s.validateStringLength(
    'roleAlias',
    roleAlias,
    1,
    128,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/role-aliases/${Uri.encodeComponent(roleAlias)}',
    exceptionFnMap: _exceptionFns,
  );
}