describeAccountAssignmentDeletionStatus method

Future<DescribeAccountAssignmentDeletionStatusResponse> describeAccountAssignmentDeletionStatus({
  1. required String accountAssignmentDeletionRequestId,
  2. required String instanceArn,
})

Describes the status of the assignment deletion request.

May throw ResourceNotFoundException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException. May throw AccessDeniedException.

Parameter accountAssignmentDeletionRequestId : The identifier that is used to track the request operation progress.

Parameter instanceArn : The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

Implementation

Future<DescribeAccountAssignmentDeletionStatusResponse>
    describeAccountAssignmentDeletionStatus({
  required String accountAssignmentDeletionRequestId,
  required String instanceArn,
}) async {
  ArgumentError.checkNotNull(accountAssignmentDeletionRequestId,
      'accountAssignmentDeletionRequestId');
  ArgumentError.checkNotNull(instanceArn, 'instanceArn');
  _s.validateStringLength(
    'instanceArn',
    instanceArn,
    10,
    1224,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'SWBExternalService.DescribeAccountAssignmentDeletionStatus'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AccountAssignmentDeletionRequestId':
          accountAssignmentDeletionRequestId,
      'InstanceArn': instanceArn,
    },
  );

  return DescribeAccountAssignmentDeletionStatusResponse.fromJson(
      jsonResponse.body);
}