Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Getting the tags of a S3 Batch Operations job

Focus mode
Getting the tags of a S3 Batch Operations job - Amazon Simple Storage Service

To retrieve the tags of an Amazon S3 Batch Operations job, you can use the GetJobTagging API operation. For more information, see the following examples.

The following example gets the tags of a Batch Operations job using the AWS CLI. To use this example, replace the user input placeholders with your own information.

aws \ s3control get-job-tagging \ --account-id 123456789012 \ --job-id Example-e25a-4ed2-8bee-7f8ed7fc2f1c \ --region us-east-1

The following example gets the tags of a Batch Operations job using the AWS CLI. To use this example, replace the user input placeholders with your own information.

aws \ s3control get-job-tagging \ --account-id 123456789012 \ --job-id Example-e25a-4ed2-8bee-7f8ed7fc2f1c \ --region us-east-1

The following example gets the tags of an S3 Batch Operations job using the AWS SDK for Java.

public List<S3Tag> getJobTagging(final AWSS3ControlClient awss3ControlClient, final String jobId) { final GetJobTaggingRequest getJobTaggingRequest = new GetJobTaggingRequest() .withJobId(jobId); final GetJobTaggingResult getJobTaggingResult = awss3ControlClient.getJobTagging(getJobTaggingRequest); final List<S3Tag> tags = getJobTaggingResult.getTags(); return tags; }

The following example gets the tags of an S3 Batch Operations job using the AWS SDK for Java.

public List<S3Tag> getJobTagging(final AWSS3ControlClient awss3ControlClient, final String jobId) { final GetJobTaggingRequest getJobTaggingRequest = new GetJobTaggingRequest() .withJobId(jobId); final GetJobTaggingResult getJobTaggingResult = awss3ControlClient.getJobTagging(getJobTaggingRequest); final List<S3Tag> tags = getJobTaggingResult.getTags(); return tags; }
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.