describeUserImportJob method

Future<DescribeUserImportJobResponse> describeUserImportJob({
  1. required String jobId,
  2. required String userPoolId,
})

Describes the user import job.

May throw ResourceNotFoundException. May throw InvalidParameterException. May throw TooManyRequestsException. May throw NotAuthorizedException. May throw InternalErrorException.

Parameter jobId : The job ID for the user import job.

Parameter userPoolId : The user pool ID for the user pool that the users are being imported into.

Implementation

Future<DescribeUserImportJobResponse> describeUserImportJob({
  required String jobId,
  required String userPoolId,
}) async {
  ArgumentError.checkNotNull(jobId, 'jobId');
  _s.validateStringLength(
    'jobId',
    jobId,
    1,
    55,
    isRequired: true,
  );
  ArgumentError.checkNotNull(userPoolId, 'userPoolId');
  _s.validateStringLength(
    'userPoolId',
    userPoolId,
    1,
    55,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSCognitoIdentityProviderService.DescribeUserImportJob'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'JobId': jobId,
      'UserPoolId': userPoolId,
    },
  );

  return DescribeUserImportJobResponse.fromJson(jsonResponse.body);
}