CreateJob - Amazon Simple Storage Service
AWS services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with AWS services in China.


S3 Batch Operations performs large-scale Batch Operations on Amazon S3 objects. Batch Operations can run a single operation or action on lists of Amazon S3 objects that you specify. For more information, see S3 Batch Operations in the Amazon Simple Storage Service Developer Guide.

This operation creates an S3 Batch Operations job.

Related actions include:

Request Syntax

POST /v20180820/jobs HTTP/1.1 x-amz-account-id: AccountId <?xml version="1.0" encoding="UTF-8"?> <CreateJobRequest xmlns=""> <ConfirmationRequired>boolean</ConfirmationRequired> <Operation> <LambdaInvoke> <FunctionArn>string</FunctionArn> </LambdaInvoke> <S3InitiateRestoreObject> <ExpirationInDays>integer</ExpirationInDays> <GlacierJobTier>string</GlacierJobTier> </S3InitiateRestoreObject> <S3PutObjectAcl> <AccessControlPolicy> <AccessControlList> <Grants> <S3Grant> <Grantee> <DisplayName>string</DisplayName> <Identifier>string</Identifier> <TypeIdentifier>string</TypeIdentifier> </Grantee> <Permission>string</Permission> </S3Grant> </Grants> <Owner> <DisplayName>string</DisplayName> <ID>string</ID> </Owner> </AccessControlList> <CannedAccessControlList>string</CannedAccessControlList> </AccessControlPolicy> </S3PutObjectAcl> <S3PutObjectCopy> <AccessControlGrants> <S3Grant> <Grantee> <DisplayName>string</DisplayName> <Identifier>string</Identifier> <TypeIdentifier>string</TypeIdentifier> </Grantee> <Permission>string</Permission> </S3Grant> </AccessControlGrants> <CannedAccessControlList>string</CannedAccessControlList> <MetadataDirective>string</MetadataDirective> <ModifiedSinceConstraint>timestamp</ModifiedSinceConstraint> <NewObjectMetadata> <CacheControl>string</CacheControl> <ContentDisposition>string</ContentDisposition> <ContentEncoding>string</ContentEncoding> <ContentLanguage>string</ContentLanguage> <ContentLength>long</ContentLength> <ContentMD5>string</ContentMD5> <ContentType>string</ContentType> <HttpExpiresDate>timestamp</HttpExpiresDate> <RequesterCharged>boolean</RequesterCharged> <SSEAlgorithm>string</SSEAlgorithm> <UserMetadata> <entry> <key>string</key> <value>string</value> </entry> </UserMetadata> </NewObjectMetadata> <NewObjectTagging> <Tag> <Key>string</Key> <Value>string</Value> </Tag> </NewObjectTagging> <ObjectLockLegalHoldStatus>string</ObjectLockLegalHoldStatus> <ObjectLockMode>string</ObjectLockMode> <ObjectLockRetainUntilDate>timestamp</ObjectLockRetainUntilDate> <RedirectLocation>string</RedirectLocation> <RequesterPays>boolean</RequesterPays> <SSEAwsKmsKeyId>string</SSEAwsKmsKeyId> <StorageClass>string</StorageClass> <TargetKeyPrefix>string</TargetKeyPrefix> <TargetResource>string</TargetResource> <UnModifiedSinceConstraint>timestamp</UnModifiedSinceConstraint> </S3PutObjectCopy> <S3PutObjectLegalHold> <LegalHold> <Status>string</Status> </LegalHold> </S3PutObjectLegalHold> <S3PutObjectRetention> <BypassGovernanceRetention>boolean</BypassGovernanceRetention> <Retention> <Mode>string</Mode> <RetainUntilDate>timestamp</RetainUntilDate> </Retention> </S3PutObjectRetention> <S3PutObjectTagging> <TagSet> <Tag> <Key>string</Key> <Value>string</Value> </Tag> </TagSet> </S3PutObjectTagging> </Operation> <Report> <Bucket>string</Bucket> <Enabled>boolean</Enabled> <Format>string</Format> <Prefix>string</Prefix> <ReportScope>string</ReportScope> </Report> <ClientRequestToken>string</ClientRequestToken> <Manifest> <Location> <ETag>string</ETag> <ObjectArn>string</ObjectArn> <ObjectVersionId>string</ObjectVersionId> </Location> <Spec> <Fields> <INVALID-TYPE-NAME>string</INVALID-TYPE-NAME> </Fields> <Format>string</Format> </Spec> </Manifest> <Description>string</Description> <Priority>integer</Priority> <RoleArn>string</RoleArn> <Tags> <Tag> <Key>string</Key> <Value>string</Value> </Tag> </Tags> </CreateJobRequest>

URI Request Parameters

The request uses the following URI parameters.


The AWS account ID that creates the job.

Length Constraints: Maximum length of 64.

Pattern: ^\d{12}$

Required: Yes

Request Body

The request accepts the following data in XML format.


Root level tag for the CreateJobRequest parameters.

Required: Yes


An idempotency token to ensure that you don't accidentally submit the same request twice. You can use any string up to the maximum length.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Required: Yes


Indicates whether confirmation is required before Amazon S3 runs the job. Confirmation is only required for jobs created through the Amazon S3 console.

Type: Boolean

Required: No


A description for this job. You can use any string within the permitted length. Descriptions don't need to be unique and can be used for multiple jobs.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: No


Configuration parameters for the manifest.

Type: JobManifest data type

Required: Yes


The operation that you want this job to perform on each object listed in the manifest. For more information about the available operations, see Operations in the Amazon Simple Storage Service Developer Guide.

Type: JobOperation data type

Required: Yes


The numerical priority for this job. Higher numbers indicate higher priority.

Type: Integer

Valid Range: Minimum value of 0. Maximum value of 2147483647.

Required: Yes


Configuration parameters for the optional job-completion report.

Type: JobReport data type

Required: Yes


The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role that Batch Operations will use to run this job's operation on each object in the manifest.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Pattern: arn:[^:]+:iam::\d{12}:role/.*

Required: Yes


A set of tags to associate with the S3 Batch Operations job. This is an optional parameter.

Type: Array of S3Tag data types

Required: No

Response Syntax

HTTP/1.1 200 <?xml version="1.0" encoding="UTF-8"?> <CreateJobResult> <JobId>string</JobId> </CreateJobResult>

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in XML format by the service.


Root level tag for the CreateJobResult parameters.

Required: Yes


The ID for this job. Amazon S3 generates this ID automatically and returns it after a successful Create Job request.

Type: String

Length Constraints: Minimum length of 5. Maximum length of 36.

Pattern: [a-zA-Z0-9\-\_]+

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: