Struct aws_sdk_fsx::model::data_repository_task::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for DataRepositoryTask
Implementations
sourceimpl Builder
impl Builder
sourcepub fn task_id(self, input: impl Into<String>) -> Self
pub fn task_id(self, input: impl Into<String>) -> Self
The system-generated, unique 17-digit ID of the data repository task.
sourcepub fn set_task_id(self, input: Option<String>) -> Self
pub fn set_task_id(self, input: Option<String>) -> Self
The system-generated, unique 17-digit ID of the data repository task.
sourcepub fn lifecycle(self, input: DataRepositoryTaskLifecycle) -> Self
pub fn lifecycle(self, input: DataRepositoryTaskLifecycle) -> Self
The lifecycle status of the data repository task, as follows:
-
PENDING
- Amazon FSx has not started the task. -
EXECUTING
- Amazon FSx is processing the task. -
FAILED
- Amazon FSx was not able to complete the task. For example, there may be files the task failed to process. TheDataRepositoryTaskFailureDetails
property provides more information about task failures. -
SUCCEEDED
- FSx completed the task successfully. -
CANCELED
- Amazon FSx canceled the task and it did not complete. -
CANCELING
- FSx is in process of canceling the task.
You cannot delete an FSx for Lustre file system if there are data repository tasks for the file system in the PENDING
or EXECUTING
states. Please retry when the data repository task is finished (with a status of CANCELED
, SUCCEEDED
, or FAILED
). You can use the DescribeDataRepositoryTask action to monitor the task status. Contact the FSx team if you need to delete your file system immediately.
sourcepub fn set_lifecycle(self, input: Option<DataRepositoryTaskLifecycle>) -> Self
pub fn set_lifecycle(self, input: Option<DataRepositoryTaskLifecycle>) -> Self
The lifecycle status of the data repository task, as follows:
-
PENDING
- Amazon FSx has not started the task. -
EXECUTING
- Amazon FSx is processing the task. -
FAILED
- Amazon FSx was not able to complete the task. For example, there may be files the task failed to process. TheDataRepositoryTaskFailureDetails
property provides more information about task failures. -
SUCCEEDED
- FSx completed the task successfully. -
CANCELED
- Amazon FSx canceled the task and it did not complete. -
CANCELING
- FSx is in process of canceling the task.
You cannot delete an FSx for Lustre file system if there are data repository tasks for the file system in the PENDING
or EXECUTING
states. Please retry when the data repository task is finished (with a status of CANCELED
, SUCCEEDED
, or FAILED
). You can use the DescribeDataRepositoryTask action to monitor the task status. Contact the FSx team if you need to delete your file system immediately.
sourcepub fn type(self, input: DataRepositoryTaskType) -> Self
pub fn type(self, input: DataRepositoryTaskType) -> Self
The type of data repository task.
-
The
EXPORT_TO_REPOSITORY
data repository task exports from your Lustre file system from to a linked S3 bucket. -
The
IMPORT_METADATA_FROM_REPOSITORY
data repository task imports metadata changes from a linked S3 bucket to your Lustre file system.
sourcepub fn set_type(self, input: Option<DataRepositoryTaskType>) -> Self
pub fn set_type(self, input: Option<DataRepositoryTaskType>) -> Self
The type of data repository task.
-
The
EXPORT_TO_REPOSITORY
data repository task exports from your Lustre file system from to a linked S3 bucket. -
The
IMPORT_METADATA_FROM_REPOSITORY
data repository task imports metadata changes from a linked S3 bucket to your Lustre file system.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The time that Amazon FSx began processing the task.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The time that Amazon FSx began processing the task.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The time that Amazon FSx completed processing the task, populated after the task is complete.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The time that Amazon FSx completed processing the task, populated after the task is complete.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services resources. We require an ARN when you need to specify a resource unambiguously across all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services resources. We require an ARN when you need to specify a resource unambiguously across all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of Tag
values, with a maximum of 50 elements.
A list of Tag
values, with a maximum of 50 elements.
sourcepub fn file_system_id(self, input: impl Into<String>) -> Self
pub fn file_system_id(self, input: impl Into<String>) -> Self
The globally unique ID of the file system, assigned by Amazon FSx.
sourcepub fn set_file_system_id(self, input: Option<String>) -> Self
pub fn set_file_system_id(self, input: Option<String>) -> Self
The globally unique ID of the file system, assigned by Amazon FSx.
sourcepub fn paths(self, input: impl Into<String>) -> Self
pub fn paths(self, input: impl Into<String>) -> Self
Appends an item to paths
.
To override the contents of this collection use set_paths
.
An array of paths on the Amazon FSx for Lustre file system that specify the data for the data repository task to process. For example, in an EXPORT_TO_REPOSITORY task, the paths specify which data to export to the linked data repository.
(Default) If Paths
is not specified, Amazon FSx uses the file system root directory.
sourcepub fn set_paths(self, input: Option<Vec<String>>) -> Self
pub fn set_paths(self, input: Option<Vec<String>>) -> Self
An array of paths on the Amazon FSx for Lustre file system that specify the data for the data repository task to process. For example, in an EXPORT_TO_REPOSITORY task, the paths specify which data to export to the linked data repository.
(Default) If Paths
is not specified, Amazon FSx uses the file system root directory.
sourcepub fn failure_details(self, input: DataRepositoryTaskFailureDetails) -> Self
pub fn failure_details(self, input: DataRepositoryTaskFailureDetails) -> Self
Failure message describing why the task failed, it is populated only when Lifecycle
is set to FAILED
.
sourcepub fn set_failure_details(
self,
input: Option<DataRepositoryTaskFailureDetails>
) -> Self
pub fn set_failure_details(
self,
input: Option<DataRepositoryTaskFailureDetails>
) -> Self
Failure message describing why the task failed, it is populated only when Lifecycle
is set to FAILED
.
sourcepub fn status(self, input: DataRepositoryTaskStatus) -> Self
pub fn status(self, input: DataRepositoryTaskStatus) -> Self
Provides the status of the number of files that the task has processed successfully and failed to process.
sourcepub fn set_status(self, input: Option<DataRepositoryTaskStatus>) -> Self
pub fn set_status(self, input: Option<DataRepositoryTaskStatus>) -> Self
Provides the status of the number of files that the task has processed successfully and failed to process.
sourcepub fn report(self, input: CompletionReport) -> Self
pub fn report(self, input: CompletionReport) -> Self
Provides a report detailing the data repository task results of the files processed that match the criteria specified in the report Scope
parameter. FSx delivers the report to the file system's linked data repository in Amazon S3, using the path specified in the report Path
parameter. You can specify whether or not a report gets generated for a task using the Enabled
parameter.
sourcepub fn set_report(self, input: Option<CompletionReport>) -> Self
pub fn set_report(self, input: Option<CompletionReport>) -> Self
Provides a report detailing the data repository task results of the files processed that match the criteria specified in the report Scope
parameter. FSx delivers the report to the file system's linked data repository in Amazon S3, using the path specified in the report Path
parameter. You can specify whether or not a report gets generated for a task using the Enabled
parameter.
sourcepub fn build(self) -> DataRepositoryTask
pub fn build(self) -> DataRepositoryTask
Consumes the builder and constructs a DataRepositoryTask
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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