getJobTagging method

Future<GetJobTaggingResult> getJobTagging({
  1. required String accountId,
  2. required String jobId,
})

Returns the tags on an S3 Batch Operations job. To use this operation, you must have permission to perform the s3:GetJobTagging action. For more information, see Controlling access and labeling jobs using tags in the Amazon Simple Storage Service Developer Guide.

Related actions include:

May throw InternalServiceException. May throw TooManyRequestsException. May throw NotFoundException.

Parameter accountId : The AWS account ID associated with the S3 Batch Operations job.

Parameter jobId : The ID for the S3 Batch Operations job whose tags you want to retrieve.

Implementation

Future<GetJobTaggingResult> getJobTagging({
  required String accountId,
  required String jobId,
}) async {
  ArgumentError.checkNotNull(accountId, 'accountId');
  _s.validateStringLength(
    'accountId',
    accountId,
    0,
    64,
    isRequired: true,
  );
  ArgumentError.checkNotNull(jobId, 'jobId');
  _s.validateStringLength(
    'jobId',
    jobId,
    5,
    36,
    isRequired: true,
  );
  final headers = <String, String>{
    'x-amz-account-id': accountId.toString(),
  };
  final $result = await _protocol.send(
    method: 'GET',
    requestUri: '/v20180820/jobs/${Uri.encodeComponent(jobId)}/tagging',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
  return GetJobTaggingResult.fromXml($result.body);
}