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
sourceimpl CreateJob
impl CreateJob
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.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for CreateJob
impl Send for CreateJob
impl Sync for CreateJob
impl Unpin for CreateJob
impl !UnwindSafe for CreateJob
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more