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 ==
.