Struct aws_sdk_s3control::client::fluent_builders::CreateJob
source · pub struct CreateJob { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateJob
.
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.
This action creates a S3 Batch Operations job.
Related actions include:
Implementations§
source§impl CreateJob
impl CreateJob
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateJob, AwsResponseRetryClassifier>, SdkError<CreateJobError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateJob, AwsResponseRetryClassifier>, SdkError<CreateJobError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<CreateJobOutput, SdkError<CreateJobError>>
pub async fn send(self) -> Result<CreateJobOutput, SdkError<CreateJobError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID that creates the job.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID that creates the job.
sourcepub fn confirmation_required(self, input: bool) -> Self
pub fn confirmation_required(self, input: bool) -> Self
Indicates whether confirmation is required before Amazon S3 runs the job. Confirmation is only required for jobs created through the Amazon S3 console.
sourcepub fn set_confirmation_required(self, input: Option<bool>) -> Self
pub fn set_confirmation_required(self, input: Option<bool>) -> Self
Indicates whether confirmation is required before Amazon S3 runs the job. Confirmation is only required for jobs created through the Amazon S3 console.
sourcepub fn operation(self, input: JobOperation) -> Self
pub fn operation(self, input: JobOperation) -> Self
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.
sourcepub fn set_operation(self, input: Option<JobOperation>) -> Self
pub fn set_operation(self, input: Option<JobOperation>) -> Self
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.
sourcepub fn report(self, input: JobReport) -> Self
pub fn report(self, input: JobReport) -> Self
Configuration parameters for the optional job-completion report.
sourcepub fn set_report(self, input: Option<JobReport>) -> Self
pub fn set_report(self, input: Option<JobReport>) -> Self
Configuration parameters for the optional job-completion report.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
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.
sourcepub fn manifest(self, input: JobManifest) -> Self
pub fn manifest(self, input: JobManifest) -> Self
Configuration parameters for the manifest.
sourcepub fn set_manifest(self, input: Option<JobManifest>) -> Self
pub fn set_manifest(self, input: Option<JobManifest>) -> Self
Configuration parameters for the manifest.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
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.
sourcepub fn priority(self, input: i32) -> Self
pub fn priority(self, input: i32) -> Self
The numerical priority for this job. Higher numbers indicate higher priority.
sourcepub fn set_priority(self, input: Option<i32>) -> Self
pub fn set_priority(self, input: Option<i32>) -> Self
The numerical priority for this job. Higher numbers indicate higher priority.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
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.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A set of tags to associate with the S3 Batch Operations job. This is an optional parameter.
A set of tags to associate with the S3 Batch Operations job. This is an optional parameter.
sourcepub fn manifest_generator(self, input: JobManifestGenerator) -> Self
pub fn manifest_generator(self, input: JobManifestGenerator) -> Self
The attribute container for the ManifestGenerator details. Jobs must be created with either a manifest file or a ManifestGenerator, but not both.
sourcepub fn set_manifest_generator(self, input: Option<JobManifestGenerator>) -> Self
pub fn set_manifest_generator(self, input: Option<JobManifestGenerator>) -> Self
The attribute container for the ManifestGenerator details. Jobs must be created with either a manifest file or a ManifestGenerator, but not both.