deleteLoginProfile method

Future<void> deleteLoginProfile({
  1. required String userName,
})

Deletes the password for the specified IAM user, which terminates the user's ability to access AWS services through the AWS Management Console.

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

Parameter userName : The name of the user whose password you want to delete.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Implementation

Future<void> deleteLoginProfile({
  required String userName,
}) async {
  ArgumentError.checkNotNull(userName, 'userName');
  _s.validateStringLength(
    'userName',
    userName,
    1,
    64,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['UserName'] = userName;
  await _protocol.send(
    $request,
    action: 'DeleteLoginProfile',
    version: '2010-05-08',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteLoginProfileRequest'],
    shapes: shapes,
  );
}