Struct aws_sdk_datasync::client::fluent_builders::StartTaskExecution
source · [−]pub struct StartTaskExecution { /* private fields */ }
Expand description
Fluent builder constructing a request to StartTaskExecution
.
Starts a specific invocation of a task. A TaskExecution
value represents an individual run of a task. Each task can have at most one TaskExecution
at a time.
TaskExecution
has the following transition phases: INITIALIZING | PREPARING | TRANSFERRING | VERIFYING | SUCCESS/FAILURE.
For detailed information, see the Task Execution section in the Components and Terminology topic in the DataSync User Guide.
Implementations
sourceimpl StartTaskExecution
impl StartTaskExecution
sourcepub async fn send(
self
) -> Result<StartTaskExecutionOutput, SdkError<StartTaskExecutionError>>
pub async fn send(
self
) -> Result<StartTaskExecutionOutput, SdkError<StartTaskExecutionError>>
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 task_arn(self, input: impl Into<String>) -> Self
pub fn task_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the task to start.
sourcepub fn set_task_arn(self, input: Option<String>) -> Self
pub fn set_task_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the task to start.
sourcepub fn override_options(self, input: Options) -> Self
pub fn override_options(self, input: Options) -> Self
Represents the options that are available to control the behavior of a StartTaskExecution operation. Behavior includes preserving metadata such as user ID (UID), group ID (GID), and file permissions, and also overwriting files in the destination, data integrity verification, and so on.
A task has a set of default options associated with it. If you don't specify an option in StartTaskExecution, the default value is used. You can override the defaults options on each task execution by specifying an overriding Options
value to StartTaskExecution.
sourcepub fn set_override_options(self, input: Option<Options>) -> Self
pub fn set_override_options(self, input: Option<Options>) -> Self
Represents the options that are available to control the behavior of a StartTaskExecution operation. Behavior includes preserving metadata such as user ID (UID), group ID (GID), and file permissions, and also overwriting files in the destination, data integrity verification, and so on.
A task has a set of default options associated with it. If you don't specify an option in StartTaskExecution, the default value is used. You can override the defaults options on each task execution by specifying an overriding Options
value to StartTaskExecution.
sourcepub fn includes(self, input: FilterRule) -> Self
pub fn includes(self, input: FilterRule) -> Self
Appends an item to Includes
.
To override the contents of this collection use set_includes
.
A list of filter rules that determines which files to include when running a task. The pattern should contain a single filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe), for example, "/folder1|/folder2"
.
sourcepub fn set_includes(self, input: Option<Vec<FilterRule>>) -> Self
pub fn set_includes(self, input: Option<Vec<FilterRule>>) -> Self
A list of filter rules that determines which files to include when running a task. The pattern should contain a single filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe), for example, "/folder1|/folder2"
.
sourcepub fn excludes(self, input: FilterRule) -> Self
pub fn excludes(self, input: FilterRule) -> Self
Appends an item to Excludes
.
To override the contents of this collection use set_excludes
.
A list of filter rules that determines which files to exclude from a task. The list contains a single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example, "/folder1|/folder2"
.
sourcepub fn set_excludes(self, input: Option<Vec<FilterRule>>) -> Self
pub fn set_excludes(self, input: Option<Vec<FilterRule>>) -> Self
A list of filter rules that determines which files to exclude from a task. The list contains a single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example, "/folder1|/folder2"
.
Trait Implementations
sourceimpl Clone for StartTaskExecution
impl Clone for StartTaskExecution
sourcefn clone(&self) -> StartTaskExecution
fn clone(&self) -> StartTaskExecution
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for StartTaskExecution
impl Send for StartTaskExecution
impl Sync for StartTaskExecution
impl Unpin for StartTaskExecution
impl !UnwindSafe for StartTaskExecution
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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