deleteIAMPolicyAssignment method

Future<DeleteIAMPolicyAssignmentResponse> deleteIAMPolicyAssignment({
  1. required String assignmentName,
  2. required String awsAccountId,
  3. required String namespace,
})

Deletes an existing IAM policy assignment.

May throw AccessDeniedException. May throw ConcurrentUpdatingException. May throw InternalFailureException. May throw InvalidParameterValueException. May throw ResourceExistsException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter assignmentName : The name of the assignment.

Parameter awsAccountId : The Amazon Web Services account ID where you want to delete the IAM policy assignment.

Parameter namespace : The namespace that contains the assignment.

Implementation

Future<DeleteIAMPolicyAssignmentResponse> deleteIAMPolicyAssignment({
  required String assignmentName,
  required String awsAccountId,
  required String namespace,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/accounts/${Uri.encodeComponent(awsAccountId)}/namespace/${Uri.encodeComponent(namespace)}/iam-policy-assignments/${Uri.encodeComponent(assignmentName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteIAMPolicyAssignmentResponse.fromJson(response);
}