Struct aws_sdk_sfn::Client
source · pub struct Client { /* private fields */ }
Expand description
Client for AWS Step Functions
Client for invoking operations on AWS Step Functions. Each operation on AWS Step Functions is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config
is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env()
, since this will resolve an SdkConfig
which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env()
instead, which returns a ConfigLoader
that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_sfn::Client::new(&config);
Occasionally, SDKs may have additional service-specific values that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Config
struct implements From<&SdkConfig>
, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_sfn::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();
See the aws-config
docs and Config
for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the CreateActivity
operation has
a Client::create_activity
, function which returns a builder for that operation.
The fluent builder ultimately has a send()
function that returns an async future that
returns a result, as illustrated below:
let result = client.create_activity()
.name("example")
.send()
.await;
The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize
module for more
information.
Implementations§
source§impl Client
impl Client
sourcepub fn create_activity(&self) -> CreateActivityFluentBuilder
pub fn create_activity(&self) -> CreateActivityFluentBuilder
Constructs a fluent builder for the CreateActivity
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the activity to create. This name must be unique for your Amazon Web Services account and region for 90 days. For more information, see Limits Related to State Machine Executions in the Step Functions Developer Guide.
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 _.
-
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseThe list of tags to add to a resource.
An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags.
Tags may only contain Unicode letters, digits, white space, or these symbols:
_ . : / = + - @
.
- On success, responds with
CreateActivityOutput
with field(s):activity_arn(String)
:The Amazon Resource Name (ARN) that identifies the created activity.
creation_date(DateTime)
:The date the activity is created.
- On failure, responds with
SdkError<CreateActivityError>
source§impl Client
impl Client
sourcepub fn create_state_machine(&self) -> CreateStateMachineFluentBuilder
pub fn create_state_machine(&self) -> CreateStateMachineFluentBuilder
Constructs a fluent builder for the CreateStateMachine
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the state machine.
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 _.
-
definition(impl Into<String>)
/set_definition(Option<String>)
:
required: trueThe Amazon States Language definition of the state machine. See Amazon States Language.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the IAM role to use for this state machine.
r#type(StateMachineType)
/set_type(Option<StateMachineType>)
:
required: falseDetermines whether a Standard or Express state machine is created. The default is
STANDARD
. You cannot update thetype
of a state machine once it has been created.logging_configuration(LoggingConfiguration)
/set_logging_configuration(Option<LoggingConfiguration>)
:
required: falseDefines what execution history events are logged and where they are logged.
By default, the
level
is set toOFF
. For more information see Log Levels in the Step Functions User Guide.tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseTags to be added when creating a state machine.
An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags.
Tags may only contain Unicode letters, digits, white space, or these symbols:
_ . : / = + - @
.tracing_configuration(TracingConfiguration)
/set_tracing_configuration(Option<TracingConfiguration>)
:
required: falseSelects whether X-Ray tracing is enabled.
publish(bool)
/set_publish(Option<bool>)
:
required: falseSet to
true
to publish the first version of the state machine during creation. The default isfalse
.version_description(impl Into<String>)
/set_version_description(Option<String>)
:
required: falseSets description about the state machine version. You can only set the description if the
publish
parameter is set totrue
. Otherwise, if you setversionDescription
, butpublish
tofalse
, this API action throwsValidationException
.
- On success, responds with
CreateStateMachineOutput
with field(s):state_machine_arn(String)
:The Amazon Resource Name (ARN) that identifies the created state machine.
creation_date(DateTime)
:The date the state machine is created.
state_machine_version_arn(Option<String>)
:The Amazon Resource Name (ARN) that identifies the created state machine version. If you do not set the
publish
parameter totrue
, this field returns null value.
- On failure, responds with
SdkError<CreateStateMachineError>
source§impl Client
impl Client
sourcepub fn create_state_machine_alias(&self) -> CreateStateMachineAliasFluentBuilder
pub fn create_state_machine_alias(&self) -> CreateStateMachineAliasFluentBuilder
Constructs a fluent builder for the CreateStateMachineAlias
operation.
- The fluent builder is configurable:
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseA description for the state machine alias.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the state machine alias.
To avoid conflict with version ARNs, don’t use an integer in the name of the alias.
routing_configuration(RoutingConfigurationListItem)
/set_routing_configuration(Option<Vec::<RoutingConfigurationListItem>>)
:
required: trueThe routing configuration of a state machine alias. The routing configuration shifts execution traffic between two state machine versions.
routingConfiguration
contains an array ofRoutingConfig
objects that specify up to two state machine versions. Step Functions then randomly choses which version to run an execution with based on the weight assigned to eachRoutingConfig
.
- On success, responds with
CreateStateMachineAliasOutput
with field(s):state_machine_alias_arn(String)
:The Amazon Resource Name (ARN) that identifies the created state machine alias.
creation_date(DateTime)
:The date the state machine alias was created.
- On failure, responds with
SdkError<CreateStateMachineAliasError>
source§impl Client
impl Client
sourcepub fn delete_activity(&self) -> DeleteActivityFluentBuilder
pub fn delete_activity(&self) -> DeleteActivityFluentBuilder
Constructs a fluent builder for the DeleteActivity
operation.
- The fluent builder is configurable:
activity_arn(impl Into<String>)
/set_activity_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the activity to delete.
- On success, responds with
DeleteActivityOutput
- On failure, responds with
SdkError<DeleteActivityError>
source§impl Client
impl Client
sourcepub fn delete_state_machine(&self) -> DeleteStateMachineFluentBuilder
pub fn delete_state_machine(&self) -> DeleteStateMachineFluentBuilder
Constructs a fluent builder for the DeleteStateMachine
operation.
- The fluent builder is configurable:
state_machine_arn(impl Into<String>)
/set_state_machine_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the state machine to delete.
- On success, responds with
DeleteStateMachineOutput
- On failure, responds with
SdkError<DeleteStateMachineError>
source§impl Client
impl Client
sourcepub fn delete_state_machine_alias(&self) -> DeleteStateMachineAliasFluentBuilder
pub fn delete_state_machine_alias(&self) -> DeleteStateMachineAliasFluentBuilder
Constructs a fluent builder for the DeleteStateMachineAlias
operation.
- The fluent builder is configurable:
state_machine_alias_arn(impl Into<String>)
/set_state_machine_alias_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the state machine alias to delete.
- On success, responds with
DeleteStateMachineAliasOutput
- On failure, responds with
SdkError<DeleteStateMachineAliasError>
source§impl Client
impl Client
sourcepub fn delete_state_machine_version(
&self
) -> DeleteStateMachineVersionFluentBuilder
pub fn delete_state_machine_version( &self ) -> DeleteStateMachineVersionFluentBuilder
Constructs a fluent builder for the DeleteStateMachineVersion
operation.
- The fluent builder is configurable:
state_machine_version_arn(impl Into<String>)
/set_state_machine_version_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the state machine version to delete.
- On success, responds with
DeleteStateMachineVersionOutput
- On failure, responds with
SdkError<DeleteStateMachineVersionError>
source§impl Client
impl Client
sourcepub fn describe_activity(&self) -> DescribeActivityFluentBuilder
pub fn describe_activity(&self) -> DescribeActivityFluentBuilder
Constructs a fluent builder for the DescribeActivity
operation.
- The fluent builder is configurable:
activity_arn(impl Into<String>)
/set_activity_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the activity to describe.
- On success, responds with
DescribeActivityOutput
with field(s):activity_arn(String)
:The Amazon Resource Name (ARN) that identifies the activity.
name(String)
:The name of the activity.
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 _.
-
creation_date(DateTime)
:The date the activity is created.
- On failure, responds with
SdkError<DescribeActivityError>
source§impl Client
impl Client
sourcepub fn describe_execution(&self) -> DescribeExecutionFluentBuilder
pub fn describe_execution(&self) -> DescribeExecutionFluentBuilder
Constructs a fluent builder for the DescribeExecution
operation.
- The fluent builder is configurable:
execution_arn(impl Into<String>)
/set_execution_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the execution to describe.
- On success, responds with
DescribeExecutionOutput
with field(s):execution_arn(String)
:The Amazon Resource Name (ARN) that identifies the execution.
state_machine_arn(String)
:The Amazon Resource Name (ARN) of the executed stated machine.
name(Option<String>)
:The name of the execution.
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 _.
-
status(ExecutionStatus)
:The current status of the execution.
start_date(DateTime)
:The date the execution is started.
stop_date(Option<DateTime>)
:If the execution ended, the date the execution stopped.
input(Option<String>)
:The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
input_details(Option<CloudWatchEventsExecutionDataDetails>)
:Provides details about execution input or output.
output(Option<String>)
:The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
This field is set only if the execution succeeds. If the execution fails, this field is null.
output_details(Option<CloudWatchEventsExecutionDataDetails>)
:Provides details about execution input or output.
trace_header(Option<String>)
:The X-Ray trace header that was passed to the execution.
map_run_arn(Option<String>)
:The Amazon Resource Name (ARN) that identifies a Map Run, which dispatched this execution.
error(Option<String>)
:The error string if the state machine execution failed.
cause(Option<String>)
:The cause string if the state machine execution failed.
state_machine_version_arn(Option<String>)
:The Amazon Resource Name (ARN) of the state machine version associated with the execution. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example,
stateMachineARN:1
.If you start an execution from a
StartExecution
request without specifying a state machine version or alias ARN, Step Functions returns a null value.state_machine_alias_arn(Option<String>)
:The Amazon Resource Name (ARN) of the state machine alias associated with the execution. The alias ARN is a combination of state machine ARN and the alias name separated by a colon (:). For example,
stateMachineARN:PROD
.If you start an execution from a
StartExecution
request with a state machine version ARN, this field will be null.redrive_count(Option<i32>)
:The number of times you’ve redriven an execution. If you have not yet redriven an execution, the
redriveCount
is 0. This count is only updated if you successfully redrive an execution.redrive_date(Option<DateTime>)
:The date the execution was last redriven. If you have not yet redriven an execution, the
redriveDate
is null.The
redriveDate
is unavailable if you redrive a Map Run that starts child workflow executions of typeEXPRESS
.redrive_status(Option<ExecutionRedriveStatus>)
:Indicates whether or not an execution can be redriven at a given point in time.
-
For executions of type
STANDARD
,redriveStatus
isNOT_REDRIVABLE
if calling theRedriveExecution
API action would return theExecutionNotRedrivable
error. -
For a Distributed Map that includes child workflows of type
STANDARD
,redriveStatus
indicates whether or not the Map Run can redrive child workflow executions. -
For a Distributed Map that includes child workflows of type
EXPRESS
,redriveStatus
indicates whether or not the Map Run can redrive child workflow executions.You can redrive failed or timed out
EXPRESS
workflows only if they’re a part of a Map Run. When you redrive the Map Run, these workflows are restarted using theStartExecution
API action.
-
redrive_status_reason(Option<String>)
:When
redriveStatus
isNOT_REDRIVABLE
,redriveStatusReason
specifies the reason why an execution cannot be redriven.-
For executions of type
STANDARD
, or for a Distributed Map that includes child workflows of typeSTANDARD
,redriveStatusReason
can include one of the following reasons:-
State machine is in DELETING status
. -
Execution is RUNNING and cannot be redriven
. -
Execution is SUCCEEDED and cannot be redriven
. -
Execution was started before the launch of RedriveExecution
. -
Execution history event limit exceeded
. -
Execution has exceeded the max execution time
. -
Execution redrivable period exceeded
.
-
-
For a Distributed Map that includes child workflows of type
EXPRESS
,redriveStatusReason
is only returned if the child workflows are not redrivable. This happens when the child workflow executions have completed successfully.
-
- On failure, responds with
SdkError<DescribeExecutionError>
source§impl Client
impl Client
sourcepub fn describe_map_run(&self) -> DescribeMapRunFluentBuilder
pub fn describe_map_run(&self) -> DescribeMapRunFluentBuilder
Constructs a fluent builder for the DescribeMapRun
operation.
- The fluent builder is configurable:
map_run_arn(impl Into<String>)
/set_map_run_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) that identifies a Map Run.
- On success, responds with
DescribeMapRunOutput
with field(s):map_run_arn(String)
:The Amazon Resource Name (ARN) that identifies a Map Run.
execution_arn(String)
:The Amazon Resource Name (ARN) that identifies the execution in which the Map Run was started.
status(MapRunStatus)
:The current status of the Map Run.
start_date(DateTime)
:The date when the Map Run was started.
stop_date(Option<DateTime>)
:The date when the Map Run was stopped.
max_concurrency(i32)
:The maximum number of child workflow executions configured to run in parallel for the Map Run at the same time.
tolerated_failure_percentage(f32)
:The maximum percentage of failed child workflow executions before the Map Run fails.
tolerated_failure_count(i64)
:The maximum number of failed child workflow executions before the Map Run fails.
item_counts(Option<MapRunItemCounts>)
:A JSON object that contains information about the total number of items, and the item count for each processing status, such as
pending
andfailed
.execution_counts(Option<MapRunExecutionCounts>)
:A JSON object that contains information about the total number of child workflow executions for the Map Run, and the count of child workflow executions for each status, such as
failed
andsucceeded
.redrive_count(Option<i32>)
:The number of times you’ve redriven a Map Run. If you have not yet redriven a Map Run, the
redriveCount
is 0. This count is only updated if you successfully redrive a Map Run.redrive_date(Option<DateTime>)
:The date a Map Run was last redriven. If you have not yet redriven a Map Run, the
redriveDate
is null.
- On failure, responds with
SdkError<DescribeMapRunError>
source§impl Client
impl Client
sourcepub fn describe_state_machine(&self) -> DescribeStateMachineFluentBuilder
pub fn describe_state_machine(&self) -> DescribeStateMachineFluentBuilder
Constructs a fluent builder for the DescribeStateMachine
operation.
- The fluent builder is configurable:
state_machine_arn(impl Into<String>)
/set_state_machine_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the state machine for which you want the information.
If you specify a state machine version ARN, this API returns details about that version. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example,
stateMachineARN:1
.
- On success, responds with
DescribeStateMachineOutput
with field(s):state_machine_arn(String)
:The Amazon Resource Name (ARN) that identifies the state machine.
If you specified a state machine version ARN in your request, the API returns the version ARN. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example,
stateMachineARN:1
.name(String)
:The name of the state machine.
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 _.
-
status(Option<StateMachineStatus>)
:The current status of the state machine.
definition(String)
:The Amazon States Language definition of the state machine. See Amazon States Language.
role_arn(String)
:The Amazon Resource Name (ARN) of the IAM role used when creating this state machine. (The IAM role maintains security by granting Step Functions access to Amazon Web Services resources.)
r#type(StateMachineType)
:The
type
of the state machine (STANDARD
orEXPRESS
).creation_date(DateTime)
:The date the state machine is created.
For a state machine version,
creationDate
is the date the version was created.logging_configuration(Option<LoggingConfiguration>)
:The
LoggingConfiguration
data type is used to set CloudWatch Logs options.tracing_configuration(Option<TracingConfiguration>)
:Selects whether X-Ray tracing is enabled.
label(Option<String>)
:A user-defined or an auto-generated string that identifies a
Map
state. This parameter is present only if thestateMachineArn
specified in input is a qualified state machine ARN.revision_id(Option<String>)
:The revision identifier for the state machine.
Use the
revisionId
parameter to compare between versions of a state machine configuration used for executions without performing a diff of the properties, such asdefinition
androleArn
.description(Option<String>)
:The description of the state machine version.
- On failure, responds with
SdkError<DescribeStateMachineError>
source§impl Client
impl Client
sourcepub fn describe_state_machine_alias(
&self
) -> DescribeStateMachineAliasFluentBuilder
pub fn describe_state_machine_alias( &self ) -> DescribeStateMachineAliasFluentBuilder
Constructs a fluent builder for the DescribeStateMachineAlias
operation.
- The fluent builder is configurable:
state_machine_alias_arn(impl Into<String>)
/set_state_machine_alias_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the state machine alias.
- On success, responds with
DescribeStateMachineAliasOutput
with field(s):state_machine_alias_arn(Option<String>)
:The Amazon Resource Name (ARN) of the state machine alias.
name(Option<String>)
:The name of the state machine alias.
description(Option<String>)
:A description of the alias.
routing_configuration(Option<Vec::<RoutingConfigurationListItem>>)
:The routing configuration of the alias.
creation_date(Option<DateTime>)
:The date the state machine alias was created.
update_date(Option<DateTime>)
:The date the state machine alias was last updated.
For a newly created state machine, this is the same as the creation date.
- On failure, responds with
SdkError<DescribeStateMachineAliasError>
source§impl Client
impl Client
sourcepub fn describe_state_machine_for_execution(
&self
) -> DescribeStateMachineForExecutionFluentBuilder
pub fn describe_state_machine_for_execution( &self ) -> DescribeStateMachineForExecutionFluentBuilder
Constructs a fluent builder for the DescribeStateMachineForExecution
operation.
- The fluent builder is configurable:
execution_arn(impl Into<String>)
/set_execution_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the execution you want state machine information for.
- On success, responds with
DescribeStateMachineForExecutionOutput
with field(s):state_machine_arn(String)
:The Amazon Resource Name (ARN) of the state machine associated with the execution.
name(String)
:The name of the state machine associated with the execution.
definition(String)
:The Amazon States Language definition of the state machine. See Amazon States Language.
role_arn(String)
:The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution.
update_date(DateTime)
:The date and time the state machine associated with an execution was updated. For a newly created state machine, this is the creation date.
logging_configuration(Option<LoggingConfiguration>)
:The
LoggingConfiguration
data type is used to set CloudWatch Logs options.tracing_configuration(Option<TracingConfiguration>)
:Selects whether X-Ray tracing is enabled.
map_run_arn(Option<String>)
:The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is returned only if the
executionArn
is a child workflow execution that was started by a Distributed Map state.label(Option<String>)
:A user-defined or an auto-generated string that identifies a
Map
state. This field is returned only if theexecutionArn
is a child workflow execution that was started by a Distributed Map state.revision_id(Option<String>)
:The revision identifier for the state machine. The first revision ID when you create the state machine is null.
Use the state machine
revisionId
parameter to compare the revision of a state machine with the configuration of the state machine used for executions without performing a diff of the properties, such asdefinition
androleArn
.
- On failure, responds with
SdkError<DescribeStateMachineForExecutionError>
source§impl Client
impl Client
sourcepub fn get_activity_task(&self) -> GetActivityTaskFluentBuilder
pub fn get_activity_task(&self) -> GetActivityTaskFluentBuilder
Constructs a fluent builder for the GetActivityTask
operation.
- The fluent builder is configurable:
activity_arn(impl Into<String>)
/set_activity_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the activity to retrieve tasks from (assigned when you create the task using
CreateActivity
.)worker_name(impl Into<String>)
/set_worker_name(Option<String>)
:
required: falseYou can provide an arbitrary name in order to identify the worker that the task is assigned to. This name is used when it is logged in the execution history.
- On success, responds with
GetActivityTaskOutput
with field(s):task_token(Option<String>)
:A token that identifies the scheduled task. This token must be copied and included in subsequent calls to
SendTaskHeartbeat
,SendTaskSuccess
orSendTaskFailure
in order to report the progress or completion of the task.input(Option<String>)
:The string that contains the JSON input data for the task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- On failure, responds with
SdkError<GetActivityTaskError>
source§impl Client
impl Client
sourcepub fn get_execution_history(&self) -> GetExecutionHistoryFluentBuilder
pub fn get_execution_history(&self) -> GetExecutionHistoryFluentBuilder
Constructs a fluent builder for the GetExecutionHistory
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
execution_arn(impl Into<String>)
/set_execution_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the execution.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
reverse_order(bool)
/set_reverse_order(Option<bool>)
:
required: falseLists events in descending order of their
timeStamp
.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseIf
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.include_execution_data(bool)
/set_include_execution_data(Option<bool>)
:
required: falseYou can select whether execution data (input or output of a history event) is returned. The default is
true
.
- On success, responds with
GetExecutionHistoryOutput
with field(s):events(Vec::<HistoryEvent>)
:The list of events that occurred in the execution.
next_token(Option<String>)
:If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
- On failure, responds with
SdkError<GetExecutionHistoryError>
source§impl Client
impl Client
sourcepub fn list_activities(&self) -> ListActivitiesFluentBuilder
pub fn list_activities(&self) -> ListActivitiesFluentBuilder
Constructs a fluent builder for the ListActivities
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseIf
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
- On success, responds with
ListActivitiesOutput
with field(s):activities(Vec::<ActivityListItem>)
:The list of activities.
next_token(Option<String>)
:If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
- On failure, responds with
SdkError<ListActivitiesError>
source§impl Client
impl Client
sourcepub fn list_executions(&self) -> ListExecutionsFluentBuilder
pub fn list_executions(&self) -> ListExecutionsFluentBuilder
Constructs a fluent builder for the ListExecutions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
state_machine_arn(impl Into<String>)
/set_state_machine_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the state machine whose executions is listed.
You can specify either a
mapRunArn
or astateMachineArn
, but not both.You can also return a list of executions associated with a specific alias or version, by specifying an alias ARN or a version ARN in the
stateMachineArn
parameter.status_filter(ExecutionStatus)
/set_status_filter(Option<ExecutionStatus>)
:
required: falseIf specified, only list the executions whose current execution status matches the given filter.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseIf
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.map_run_arn(impl Into<String>)
/set_map_run_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the Map Run that started the child workflow executions. If the
mapRunArn
field is specified, a list of all of the child workflow executions started by a Map Run is returned. For more information, see Examining Map Run in the Step Functions Developer Guide.You can specify either a
mapRunArn
or astateMachineArn
, but not both.redrive_filter(ExecutionRedriveFilter)
/set_redrive_filter(Option<ExecutionRedriveFilter>)
:
required: falseSets a filter to list executions based on whether or not they have been redriven.
For a Distributed Map,
redriveFilter
sets a filter to list child workflow executions based on whether or not they have been redriven.If you do not provide a
redriveFilter
, Step Functions returns a list of both redriven and non-redriven executions.If you provide a state machine ARN in
redriveFilter
, the API returns a validation exception.
- On success, responds with
ListExecutionsOutput
with field(s):executions(Vec::<ExecutionListItem>)
:The list of matching executions.
next_token(Option<String>)
:If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
- On failure, responds with
SdkError<ListExecutionsError>
source§impl Client
impl Client
sourcepub fn list_map_runs(&self) -> ListMapRunsFluentBuilder
pub fn list_map_runs(&self) -> ListMapRunsFluentBuilder
Constructs a fluent builder for the ListMapRuns
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
execution_arn(impl Into<String>)
/set_execution_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the execution for which the Map Runs must be listed.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseIf
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
- On success, responds with
ListMapRunsOutput
with field(s):map_runs(Vec::<MapRunListItem>)
:An array that lists information related to a Map Run, such as the Amazon Resource Name (ARN) of the Map Run and the ARN of the state machine that started the Map Run.
next_token(Option<String>)
:If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
- On failure, responds with
SdkError<ListMapRunsError>
source§impl Client
impl Client
sourcepub fn list_state_machine_aliases(&self) -> ListStateMachineAliasesFluentBuilder
pub fn list_state_machine_aliases(&self) -> ListStateMachineAliasesFluentBuilder
Constructs a fluent builder for the ListStateMachineAliases
operation.
- The fluent builder is configurable:
state_machine_arn(impl Into<String>)
/set_state_machine_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the state machine for which you want to list aliases.
If you specify a state machine version ARN, this API returns a list of aliases for that version.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseIf
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
- On success, responds with
ListStateMachineAliasesOutput
with field(s):state_machine_aliases(Vec::<StateMachineAliasListItem>)
:Aliases for the state machine.
next_token(Option<String>)
:If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
- On failure, responds with
SdkError<ListStateMachineAliasesError>
source§impl Client
impl Client
sourcepub fn list_state_machine_versions(
&self
) -> ListStateMachineVersionsFluentBuilder
pub fn list_state_machine_versions( &self ) -> ListStateMachineVersionsFluentBuilder
Constructs a fluent builder for the ListStateMachineVersions
operation.
- The fluent builder is configurable:
state_machine_arn(impl Into<String>)
/set_state_machine_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the state machine.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseIf
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
- On success, responds with
ListStateMachineVersionsOutput
with field(s):state_machine_versions(Vec::<StateMachineVersionListItem>)
:Versions for the state machine.
next_token(Option<String>)
:If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
- On failure, responds with
SdkError<ListStateMachineVersionsError>
source§impl Client
impl Client
sourcepub fn list_state_machines(&self) -> ListStateMachinesFluentBuilder
pub fn list_state_machines(&self) -> ListStateMachinesFluentBuilder
Constructs a fluent builder for the ListStateMachines
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseIf
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
- On success, responds with
ListStateMachinesOutput
with field(s):state_machines(Vec::<StateMachineListItem>)
: (undocumented)next_token(Option<String>)
:If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
- On failure, responds with
SdkError<ListStateMachinesError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) for the Step Functions state machine or activity.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<Vec::<Tag>>)
:An array of tags associated with the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn publish_state_machine_version(
&self
) -> PublishStateMachineVersionFluentBuilder
pub fn publish_state_machine_version( &self ) -> PublishStateMachineVersionFluentBuilder
Constructs a fluent builder for the PublishStateMachineVersion
operation.
- The fluent builder is configurable:
state_machine_arn(impl Into<String>)
/set_state_machine_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the state machine.
revision_id(impl Into<String>)
/set_revision_id(Option<String>)
:
required: falseOnly publish the state machine version if the current state machine’s revision ID matches the specified ID.
Use this option to avoid publishing a version if the state machine changed since you last updated it. If the specified revision ID doesn’t match the state machine’s current revision ID, the API returns
ConflictException
.To specify an initial revision ID for a state machine with no revision ID assigned, specify the string
INITIAL
for therevisionId
parameter. For example, you can specify arevisionID
ofINITIAL
when you create a state machine using theCreateStateMachine
API action.description(impl Into<String>)
/set_description(Option<String>)
:
required: falseAn optional description of the state machine version.
- On success, responds with
PublishStateMachineVersionOutput
with field(s):creation_date(DateTime)
:The date the version was created.
state_machine_version_arn(String)
:The Amazon Resource Name (ARN) (ARN) that identifies the state machine version.
- On failure, responds with
SdkError<PublishStateMachineVersionError>
source§impl Client
impl Client
sourcepub fn redrive_execution(&self) -> RedriveExecutionFluentBuilder
pub fn redrive_execution(&self) -> RedriveExecutionFluentBuilder
Constructs a fluent builder for the RedriveExecution
operation.
- The fluent builder is configurable:
execution_arn(impl Into<String>)
/set_execution_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the execution to be redriven.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. The API will return idempotent responses for the last 10 client tokens used to successfully redrive the execution. These client tokens are valid for up to 15 minutes after they are first used.
- On success, responds with
RedriveExecutionOutput
with field(s):redrive_date(DateTime)
:The date the execution was last redriven.
- On failure, responds with
SdkError<RedriveExecutionError>
source§impl Client
impl Client
sourcepub fn send_task_failure(&self) -> SendTaskFailureFluentBuilder
pub fn send_task_failure(&self) -> SendTaskFailureFluentBuilder
Constructs a fluent builder for the SendTaskFailure
operation.
- The fluent builder is configurable:
task_token(impl Into<String>)
/set_task_token(Option<String>)
:
required: trueThe token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See
GetActivityTaskOutput$taskToken
.error(impl Into<String>)
/set_error(Option<String>)
:
required: falseThe error code of the failure.
cause(impl Into<String>)
/set_cause(Option<String>)
:
required: falseA more detailed explanation of the cause of the failure.
- On success, responds with
SendTaskFailureOutput
- On failure, responds with
SdkError<SendTaskFailureError>
source§impl Client
impl Client
sourcepub fn send_task_heartbeat(&self) -> SendTaskHeartbeatFluentBuilder
pub fn send_task_heartbeat(&self) -> SendTaskHeartbeatFluentBuilder
Constructs a fluent builder for the SendTaskHeartbeat
operation.
- The fluent builder is configurable:
task_token(impl Into<String>)
/set_task_token(Option<String>)
:
required: trueThe token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See
GetActivityTaskOutput$taskToken
.
- On success, responds with
SendTaskHeartbeatOutput
- On failure, responds with
SdkError<SendTaskHeartbeatError>
source§impl Client
impl Client
sourcepub fn send_task_success(&self) -> SendTaskSuccessFluentBuilder
pub fn send_task_success(&self) -> SendTaskSuccessFluentBuilder
Constructs a fluent builder for the SendTaskSuccess
operation.
- The fluent builder is configurable:
task_token(impl Into<String>)
/set_task_token(Option<String>)
:
required: trueThe token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See
GetActivityTaskOutput$taskToken
.output(impl Into<String>)
/set_output(Option<String>)
:
required: trueThe JSON output of the task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- On success, responds with
SendTaskSuccessOutput
- On failure, responds with
SdkError<SendTaskSuccessError>
source§impl Client
impl Client
sourcepub fn start_execution(&self) -> StartExecutionFluentBuilder
pub fn start_execution(&self) -> StartExecutionFluentBuilder
Constructs a fluent builder for the StartExecution
operation.
- The fluent builder is configurable:
state_machine_arn(impl Into<String>)
/set_state_machine_arn(Option<String>)
:
required: trueThe 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: mystatemachine:prod</mystatemachine:prod> Step Functions associates executions that you start with an alias ARN with that alias and the state machine version used for that execution.
-
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseOptional 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(impl Into<String>)
/set_input(Option<String>)
:
required: falseThe 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(impl Into<String>)
/set_trace_header(Option<String>)
:
required: falsePasses the X-Ray trace header. The trace header can also be passed in the request payload.
- On success, responds with
StartExecutionOutput
with field(s):execution_arn(String)
:The Amazon Resource Name (ARN) that identifies the execution.
start_date(DateTime)
:The date the execution is started.
- On failure, responds with
SdkError<StartExecutionError>
source§impl Client
impl Client
sourcepub fn start_sync_execution(&self) -> StartSyncExecutionFluentBuilder
pub fn start_sync_execution(&self) -> StartSyncExecutionFluentBuilder
Constructs a fluent builder for the StartSyncExecution
operation.
- The fluent builder is configurable:
state_machine_arn(impl Into<String>)
/set_state_machine_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the state machine to execute.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the execution.
input(impl Into<String>)
/set_input(Option<String>)
:
required: falseThe 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(impl Into<String>)
/set_trace_header(Option<String>)
:
required: falsePasses the X-Ray trace header. The trace header can also be passed in the request payload.
- On success, responds with
StartSyncExecutionOutput
with field(s):execution_arn(String)
:The Amazon Resource Name (ARN) that identifies the execution.
state_machine_arn(Option<String>)
:The Amazon Resource Name (ARN) that identifies the state machine.
name(Option<String>)
:The name of the execution.
start_date(DateTime)
:The date the execution is started.
stop_date(DateTime)
:If the execution has already ended, the date the execution stopped.
status(SyncExecutionStatus)
:The current status of the execution.
error(Option<String>)
:The error code of the failure.
cause(Option<String>)
:A more detailed explanation of the cause of the failure.
input(Option<String>)
:The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
input_details(Option<CloudWatchEventsExecutionDataDetails>)
:Provides details about execution input or output.
output(Option<String>)
:The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
This field is set only if the execution succeeds. If the execution fails, this field is null.
output_details(Option<CloudWatchEventsExecutionDataDetails>)
:Provides details about execution input or output.
trace_header(Option<String>)
:The X-Ray trace header that was passed to the execution.
billing_details(Option<BillingDetails>)
:An object that describes workflow billing details, including billed duration and memory use.
- On failure, responds with
SdkError<StartSyncExecutionError>
source§impl Client
impl Client
sourcepub fn stop_execution(&self) -> StopExecutionFluentBuilder
pub fn stop_execution(&self) -> StopExecutionFluentBuilder
Constructs a fluent builder for the StopExecution
operation.
- The fluent builder is configurable:
execution_arn(impl Into<String>)
/set_execution_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the execution to stop.
error(impl Into<String>)
/set_error(Option<String>)
:
required: falseThe error code of the failure.
cause(impl Into<String>)
/set_cause(Option<String>)
:
required: falseA more detailed explanation of the cause of the failure.
- On success, responds with
StopExecutionOutput
with field(s):stop_date(DateTime)
:The date the execution is stopped.
- On failure, responds with
SdkError<StopExecutionError>
source§impl Client
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) for the Step Functions state machine or activity.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: trueThe list of tags to add to a resource.
Tags may only contain Unicode letters, digits, white space, or these symbols:
_ . : / = + - @
.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
source§impl Client
impl Client
sourcepub fn test_state(&self) -> TestStateFluentBuilder
pub fn test_state(&self) -> TestStateFluentBuilder
Constructs a fluent builder for the TestState
operation.
- The fluent builder is configurable:
definition(impl Into<String>)
/set_definition(Option<String>)
:
required: trueThe Amazon States Language (ASL) definition of the state.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the execution role with the required IAM permissions for the state.
input(impl Into<String>)
/set_input(Option<String>)
:
required: falseA string that contains the JSON input data for the state.
inspection_level(InspectionLevel)
/set_inspection_level(Option<InspectionLevel>)
:
required: falseDetermines the values to return when a state is tested. You can specify one of the following types:
-
INFO
: Shows the final state output. By default, Step Functions setsinspectionLevel
toINFO
if you don’t specify a level. -
DEBUG
: Shows the final state output along with the input and output data processing result. -
TRACE
: Shows the HTTP request and response for an HTTP Task. This level also shows the final state output along with the input and output data processing result.
Each of these levels also provide information about the status of the state execution and the next state to transition to.
-
reveal_secrets(bool)
/set_reveal_secrets(Option<bool>)
:
required: falseSpecifies whether or not to include secret information in the test result. For HTTP Tasks, a secret includes the data that an EventBridge connection adds to modify the HTTP request headers, query parameters, and body. Step Functions doesn’t omit any information included in the state definition or the HTTP response.
If you set
revealSecrets
totrue
, you must make sure that the IAM user that calls theTestState
API has permission for thestates:RevealSecrets
action. For an example of IAM policy that sets thestates:RevealSecrets
permission, see IAM permissions to test a state. Without this permission, Step Functions throws an access denied error.By default,
revealSecrets
is set tofalse
.
- On success, responds with
TestStateOutput
with field(s):output(Option<String>)
:The JSON output data of the state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
error(Option<String>)
:The error returned when the execution of a state fails.
cause(Option<String>)
:A detailed explanation of the cause for the error when the execution of a state fails.
inspection_data(Option<InspectionData>)
:Returns additional details about the state’s execution, including its input and output data processing flow, and HTTP request and response information. The
inspectionLevel
request parameter specifies which details are returned.next_state(Option<String>)
:The name of the next state to transition to. If you haven’t defined a next state in your definition or if the execution of the state fails, this field doesn’t contain a value.
status(Option<TestExecutionStatus>)
:The execution status of the state.
- On failure, responds with
SdkError<TestStateError>
source§impl Client
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) for the Step Functions state machine or activity.
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: trueThe list of tags to remove from the resource.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_map_run(&self) -> UpdateMapRunFluentBuilder
pub fn update_map_run(&self) -> UpdateMapRunFluentBuilder
Constructs a fluent builder for the UpdateMapRun
operation.
- The fluent builder is configurable:
map_run_arn(impl Into<String>)
/set_map_run_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of a Map Run.
max_concurrency(i32)
/set_max_concurrency(Option<i32>)
:
required: falseThe maximum number of child workflow executions that can be specified to run in parallel for the Map Run at the same time.
tolerated_failure_percentage(f32)
/set_tolerated_failure_percentage(Option<f32>)
:
required: falseThe maximum percentage of failed items before the Map Run fails.
tolerated_failure_count(i64)
/set_tolerated_failure_count(Option<i64>)
:
required: falseThe maximum number of failed items before the Map Run fails.
- On success, responds with
UpdateMapRunOutput
- On failure, responds with
SdkError<UpdateMapRunError>
source§impl Client
impl Client
sourcepub fn update_state_machine(&self) -> UpdateStateMachineFluentBuilder
pub fn update_state_machine(&self) -> UpdateStateMachineFluentBuilder
Constructs a fluent builder for the UpdateStateMachine
operation.
- The fluent builder is configurable:
state_machine_arn(impl Into<String>)
/set_state_machine_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the state machine.
definition(impl Into<String>)
/set_definition(Option<String>)
:
required: falseThe Amazon States Language definition of the state machine. See Amazon States Language.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the IAM role of the state machine.
logging_configuration(LoggingConfiguration)
/set_logging_configuration(Option<LoggingConfiguration>)
:
required: falseUse the
LoggingConfiguration
data type to set CloudWatch Logs options.tracing_configuration(TracingConfiguration)
/set_tracing_configuration(Option<TracingConfiguration>)
:
required: falseSelects whether X-Ray tracing is enabled.
publish(bool)
/set_publish(Option<bool>)
:
required: falseSpecifies whether the state machine version is published. The default is
false
. To publish a version after updating the state machine, setpublish
totrue
.version_description(impl Into<String>)
/set_version_description(Option<String>)
:
required: falseAn optional description of the state machine version to publish.
You can only specify the
versionDescription
parameter if you’ve setpublish
totrue
.
- On success, responds with
UpdateStateMachineOutput
with field(s):update_date(DateTime)
:The date and time the state machine was updated.
revision_id(Option<String>)
:The revision identifier for the updated state machine.
state_machine_version_arn(Option<String>)
:The Amazon Resource Name (ARN) of the published state machine version.
If the
publish
parameter isn’t set totrue
, this field returns null.
- On failure, responds with
SdkError<UpdateStateMachineError>
source§impl Client
impl Client
sourcepub fn update_state_machine_alias(&self) -> UpdateStateMachineAliasFluentBuilder
pub fn update_state_machine_alias(&self) -> UpdateStateMachineAliasFluentBuilder
Constructs a fluent builder for the UpdateStateMachineAlias
operation.
- The fluent builder is configurable:
state_machine_alias_arn(impl Into<String>)
/set_state_machine_alias_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the state machine alias.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseA description of the state machine alias.
routing_configuration(RoutingConfigurationListItem)
/set_routing_configuration(Option<Vec::<RoutingConfigurationListItem>>)
:
required: falseThe routing configuration of the state machine alias.
An array of
RoutingConfig
objects that specifies up to two state machine versions that the alias starts executions for.
- On success, responds with
UpdateStateMachineAliasOutput
with field(s):update_date(DateTime)
:The date and time the state machine alias was updated.
- On failure, responds with
SdkError<UpdateStateMachineAliasError>
source§impl Client
impl Client
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it. - This method will panic if no
BehaviorVersion
is provided. If you experience this panic, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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