deleteRolePermissionsBoundary method

Future<void> deleteRolePermissionsBoundary({
  1. required String roleName,
})

Deletes the permissions boundary for the specified IAM role.

May throw NoSuchEntityException. May throw UnmodifiableEntityException. May throw ServiceFailureException.

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

Implementation

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