Struct aws_sdk_s3control::input::CreateJobInput
source · #[non_exhaustive]pub struct CreateJobInput { /* private fields */ }
Implementations§
source§impl CreateJobInput
impl CreateJobInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateJob, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateJob, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateJob
>
Examples found in repository?
1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateJob,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateJobError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateJobOutput,
aws_smithy_http::result::SdkError<crate::error::CreateJobError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateJobInput
.
source§impl CreateJobInput
impl CreateJobInput
sourcepub fn account_id(&self) -> Option<&str>
pub fn account_id(&self) -> Option<&str>
The Amazon Web Services account ID that creates the job.
sourcepub fn confirmation_required(&self) -> Option<bool>
pub fn confirmation_required(&self) -> Option<bool>
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) -> Option<&JobOperation>
pub fn operation(&self) -> Option<&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.
sourcepub fn report(&self) -> Option<&JobReport>
pub fn report(&self) -> Option<&JobReport>
Configuration parameters for the optional job-completion report.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
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) -> Option<&JobManifest>
pub fn manifest(&self) -> Option<&JobManifest>
Configuration parameters for the manifest.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
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) -> Option<i32>
pub fn priority(&self) -> Option<i32>
The numerical priority for this job. Higher numbers indicate higher priority.
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
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.
A set of tags to associate with the S3 Batch Operations job. This is an optional parameter.
sourcepub fn manifest_generator(&self) -> Option<&JobManifestGenerator>
pub fn manifest_generator(&self) -> Option<&JobManifestGenerator>
The attribute container for the ManifestGenerator details. Jobs must be created with either a manifest file or a ManifestGenerator, but not both.
Trait Implementations§
source§impl Clone for CreateJobInput
impl Clone for CreateJobInput
source§fn clone(&self) -> CreateJobInput
fn clone(&self) -> CreateJobInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more