Struct aws_sdk_sfn::operation::start_execution::StartExecutionInput
source · #[non_exhaustive]pub struct StartExecutionInput {
pub state_machine_arn: Option<String>,
pub name: Option<String>,
pub input: Option<String>,
pub trace_header: Option<String>,
}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.state_machine_arn: Option<String>The Amazon Resource Name (ARN) of the state machine to execute.
The stateMachineArn parameter accepts one of the following inputs:
-
An unqualified state machine ARN – Refers to a state machine ARN that isn't qualified with a version or alias ARN. The following is an example of an unqualified state machine ARN.
arn::states: : :stateMachine: Step Functions doesn't associate state machine executions that you start with an unqualified ARN with a version. This is true even if that version uses the same revision that the execution used.
-
A state machine version ARN – Refers to a version ARN, which is a combination of state machine ARN and the version number separated by a colon (:). The following is an example of the ARN for version 10.
arn::states: : :stateMachine: :10 Step Functions doesn't associate executions that you start with a version ARN with any aliases that point to that version.
-
A state machine alias ARN – Refers to an alias ARN, which is a combination of state machine ARN and the alias name separated by a colon (:). The following is an example of the ARN for an alias named
PROD.arn::states: : :stateMachine: Step Functions associates executions that you start with an alias ARN with that alias and the state machine version used for that execution.
name: Option<String>Optional name of the execution. This name must be unique for your Amazon Web Services account, Region, and state machine for 90 days. For more information, see Limits Related to State Machine Executions in the Step Functions Developer Guide.
If you don't provide a name for the execution, Step Functions automatically generates a universally unique identifier (UUID) as the execution name.
A name must not contain:
-
white space
-
brackets
< > { } [ ] -
wildcard characters
? * -
special characters
" # % \ ^ | ~ ` $ & , ; : / -
control characters (
U+0000-001F,U+007F-009F)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
input: Option<String>The string that contains the JSON input data for the execution, for example:
"input": "{\"first_name\" : \"test\"}"
If you don't include any JSON input data, you still must include the two braces, for example: "input": "{}"
Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
trace_header: Option<String>Passes the X-Ray trace header. The trace header can also be passed in the request payload.
Implementations§
source§impl StartExecutionInput
impl StartExecutionInput
sourcepub fn state_machine_arn(&self) -> Option<&str>
pub fn state_machine_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the state machine to execute.
The stateMachineArn parameter accepts one of the following inputs:
-
An unqualified state machine ARN – Refers to a state machine ARN that isn't qualified with a version or alias ARN. The following is an example of an unqualified state machine ARN.
arn::states: : :stateMachine: Step Functions doesn't associate state machine executions that you start with an unqualified ARN with a version. This is true even if that version uses the same revision that the execution used.
-
A state machine version ARN – Refers to a version ARN, which is a combination of state machine ARN and the version number separated by a colon (:). The following is an example of the ARN for version 10.
arn::states: : :stateMachine: :10 Step Functions doesn't associate executions that you start with a version ARN with any aliases that point to that version.
-
A state machine alias ARN – Refers to an alias ARN, which is a combination of state machine ARN and the alias name separated by a colon (:). The following is an example of the ARN for an alias named
PROD.arn::states: : :stateMachine: Step Functions associates executions that you start with an alias ARN with that alias and the state machine version used for that execution.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
Optional name of the execution. This name must be unique for your Amazon Web Services account, Region, and state machine for 90 days. For more information, see Limits Related to State Machine Executions in the Step Functions Developer Guide.
If you don't provide a name for the execution, Step Functions automatically generates a universally unique identifier (UUID) as the execution name.
A name must not contain:
-
white space
-
brackets
< > { } [ ] -
wildcard characters
? * -
special characters
" # % \ ^ | ~ ` $ & , ; : / -
control characters (
U+0000-001F,U+007F-009F)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
sourcepub fn input(&self) -> Option<&str>
pub fn input(&self) -> Option<&str>
The string that contains the JSON input data for the execution, for example:
"input": "{\"first_name\" : \"test\"}"
If you don't include any JSON input data, you still must include the two braces, for example: "input": "{}"
Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
sourcepub fn trace_header(&self) -> Option<&str>
pub fn trace_header(&self) -> Option<&str>
Passes the X-Ray trace header. The trace header can also be passed in the request payload.
source§impl StartExecutionInput
impl StartExecutionInput
sourcepub fn builder() -> StartExecutionInputBuilder
pub fn builder() -> StartExecutionInputBuilder
Creates a new builder-style object to manufacture StartExecutionInput.
Trait Implementations§
source§impl Clone for StartExecutionInput
impl Clone for StartExecutionInput
source§fn clone(&self) -> StartExecutionInput
fn clone(&self) -> StartExecutionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StartExecutionInput
impl Debug for StartExecutionInput
source§impl PartialEq for StartExecutionInput
impl PartialEq for StartExecutionInput
source§fn eq(&self, other: &StartExecutionInput) -> bool
fn eq(&self, other: &StartExecutionInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for StartExecutionInput
Auto Trait Implementations§
impl Freeze for StartExecutionInput
impl RefUnwindSafe for StartExecutionInput
impl Send for StartExecutionInput
impl Sync for StartExecutionInput
impl Unpin for StartExecutionInput
impl UnwindSafe for StartExecutionInput
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