Struct aws_sdk_transfer::types::WorkflowDetails
source · #[non_exhaustive]pub struct WorkflowDetails {
pub on_upload: Option<Vec<WorkflowDetail>>,
pub on_partial_upload: Option<Vec<WorkflowDetail>>,
}Expand description
Container for the WorkflowDetail data type. It is used by actions that trigger a workflow to begin execution.
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.on_upload: Option<Vec<WorkflowDetail>>A trigger that starts a workflow: the workflow begins to execute after a file is uploaded.
To remove an associated workflow from a server, you can provide an empty OnUpload object, as in the following example.
aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":\[\]}'
on_partial_upload: Option<Vec<WorkflowDetail>>A trigger that starts a workflow if a file is only partially uploaded. You can attach a workflow to a server that executes whenever there is a partial upload.
A partial upload occurs when a file is open when the session disconnects.
Implementations§
source§impl WorkflowDetails
impl WorkflowDetails
sourcepub fn on_upload(&self) -> &[WorkflowDetail]
pub fn on_upload(&self) -> &[WorkflowDetail]
A trigger that starts a workflow: the workflow begins to execute after a file is uploaded.
To remove an associated workflow from a server, you can provide an empty OnUpload object, as in the following example.
aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":\[\]}'
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_upload.is_none().
sourcepub fn on_partial_upload(&self) -> &[WorkflowDetail]
pub fn on_partial_upload(&self) -> &[WorkflowDetail]
A trigger that starts a workflow if a file is only partially uploaded. You can attach a workflow to a server that executes whenever there is a partial upload.
A partial upload occurs when a file is open when the session disconnects.
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_partial_upload.is_none().
source§impl WorkflowDetails
impl WorkflowDetails
sourcepub fn builder() -> WorkflowDetailsBuilder
pub fn builder() -> WorkflowDetailsBuilder
Creates a new builder-style object to manufacture WorkflowDetails.
Trait Implementations§
source§impl Clone for WorkflowDetails
impl Clone for WorkflowDetails
source§fn clone(&self) -> WorkflowDetails
fn clone(&self) -> WorkflowDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for WorkflowDetails
impl Debug for WorkflowDetails
source§impl PartialEq for WorkflowDetails
impl PartialEq for WorkflowDetails
source§fn eq(&self, other: &WorkflowDetails) -> bool
fn eq(&self, other: &WorkflowDetails) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for WorkflowDetails
Auto Trait Implementations§
impl Freeze for WorkflowDetails
impl RefUnwindSafe for WorkflowDetails
impl Send for WorkflowDetails
impl Sync for WorkflowDetails
impl Unpin for WorkflowDetails
impl UnwindSafe for WorkflowDetails
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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