create_job
async
¶
create_job(
account_id: AccountId,
operation: JobOperation,
report: JobReport,
client_request_token: NonEmptyMaxLength64String,
priority: JobPriority,
role_arn: IAMRoleArn,
*,
config_overrides: Optional[AsyncS3ControlClientConfig] = None,
confirmation_required: Optional[ConfirmationRequired] = None,
manifest: Optional[JobManifest] = None,
description: Optional[NonEmptyMaxLength256String] = None,
tags: Optional[S3TagSet] = None,
manifest_generator: Optional[JobManifestGenerator] = None,
) -> CreateJobResult
This operation creates an S3 Batch Operations job.
You can use S3 Batch Operations to perform large-scale batch actions on Amazon S3 objects. Batch Operations can run a single action on lists of Amazon S3 objects that you specify. For more information, see S3 Batch Operations in the Amazon S3 User Guide.
- Permissions
-
For information about permissions required to use the Batch Operations, see Granting permissions for S3 Batch Operations in the Amazon S3 User Guide.
Related actions include:
Parameters:
-
account_id(AccountId) –The Amazon Web Services account ID that creates the job.
-
confirmation_required(Optional[ConfirmationRequired], default:None) –Indicates whether confirmation is required before Amazon S3 runs the job. Confirmation is only required for jobs created through the Amazon S3 console.
-
operation(JobOperation) –The action that you want this job to perform on every object listed in the manifest. For more information about the available actions, see Operations in the Amazon S3 User Guide.
-
report(JobReport) –Configuration parameters for the optional job-completion report.
-
client_request_token(NonEmptyMaxLength64String) –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.
-
manifest(Optional[JobManifest], default:None) –Configuration parameters for the manifest.
-
description(Optional[NonEmptyMaxLength256String], default:None) –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.
-
priority(JobPriority) –The numerical priority for this job. Higher numbers indicate higher priority.
-
role_arn(IAMRoleArn) –The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) role that Batch Operations will use to run this job's action on every object in the manifest.
-
tags(Optional[S3TagSet], default:None) –A set of tags to associate with the S3 Batch Operations job. This is an optional parameter.
-
manifest_generator(Optional[JobManifestGenerator], default:None) –The attribute container for the ManifestGenerator details. Jobs must be created with either a manifest file or a ManifestGenerator, but not both.
Raises:
-
BadRequestException– -
IdempotencyException– -
InternalServiceException– -
TooManyRequestsException– -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_s3_control/_services/async_s3_control.py
853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 | |