#[non_exhaustive]pub struct CreateWorkflowInput {
pub description: Option<String>,
pub steps: Option<Vec<WorkflowStep>>,
pub on_exception_steps: Option<Vec<WorkflowStep>>,
pub tags: Option<Vec<Tag>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.description: Option<String>
A textual description for the workflow.
steps: Option<Vec<WorkflowStep>>
Specifies the details for the steps that are in the specified workflow.
The TYPE
specifies which of the following actions is being taken for this step.
-
COPY
- Copy the file to another location. -
CUSTOM
- Perform a custom step with an Lambda function target. -
DECRYPT
- Decrypt a file that was encrypted before it was uploaded. -
DELETE
- Delete the file. -
TAG
- Add a tag to the file.
Currently, copying and tagging are supported only on S3.
For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.
on_exception_steps: Option<Vec<WorkflowStep>>
Specifies the steps (actions) to take if errors are encountered during execution of the workflow.
For custom steps, the Lambda function needs to send FAILURE
to the call back API to kick off the exception steps. Additionally, if the Lambda does not send SUCCESS
before it times out, the exception steps are executed.
Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
Implementations§
source§impl CreateWorkflowInput
impl CreateWorkflowInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A textual description for the workflow.
sourcepub fn steps(&self) -> &[WorkflowStep]
pub fn steps(&self) -> &[WorkflowStep]
Specifies the details for the steps that are in the specified workflow.
The TYPE
specifies which of the following actions is being taken for this step.
-
COPY
- Copy the file to another location. -
CUSTOM
- Perform a custom step with an Lambda function target. -
DECRYPT
- Decrypt a file that was encrypted before it was uploaded. -
DELETE
- Delete the file. -
TAG
- Add a tag to the file.
Currently, copying and tagging are supported only on S3.
For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .steps.is_none()
.
sourcepub fn on_exception_steps(&self) -> &[WorkflowStep]
pub fn on_exception_steps(&self) -> &[WorkflowStep]
Specifies the steps (actions) to take if errors are encountered during execution of the workflow.
For custom steps, the Lambda function needs to send FAILURE
to the call back API to kick off the exception steps. Additionally, if the Lambda does not send SUCCESS
before it times out, the exception steps are executed.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .on_exception_steps.is_none()
.
Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateWorkflowInput
impl CreateWorkflowInput
sourcepub fn builder() -> CreateWorkflowInputBuilder
pub fn builder() -> CreateWorkflowInputBuilder
Creates a new builder-style object to manufacture CreateWorkflowInput
.
Trait Implementations§
source§impl Clone for CreateWorkflowInput
impl Clone for CreateWorkflowInput
source§fn clone(&self) -> CreateWorkflowInput
fn clone(&self) -> CreateWorkflowInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateWorkflowInput
impl Debug for CreateWorkflowInput
source§impl PartialEq for CreateWorkflowInput
impl PartialEq for CreateWorkflowInput
source§fn eq(&self, other: &CreateWorkflowInput) -> bool
fn eq(&self, other: &CreateWorkflowInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateWorkflowInput
Auto Trait Implementations§
impl Freeze for CreateWorkflowInput
impl RefUnwindSafe for CreateWorkflowInput
impl Send for CreateWorkflowInput
impl Sync for CreateWorkflowInput
impl Unpin for CreateWorkflowInput
impl UnwindSafe for CreateWorkflowInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more