deleteUserPermissionsBoundary method

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

Deletes the permissions boundary for the specified IAM user.

May throw NoSuchEntityException. May throw ServiceFailureException.

Parameter userName : The name (friendly name, not ARN) of the IAM user from which you want to remove the permissions boundary.

Implementation

Future<void> deleteUserPermissionsBoundary({
  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: 'DeleteUserPermissionsBoundary',
    version: '2010-05-08',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteUserPermissionsBoundaryRequest'],
    shapes: shapes,
  );
}