Struct aws_sdk_swf::client::Client
source · pub struct Client { /* private fields */ }
Expand description
Client for Amazon Simple Workflow Service
Client for invoking operations on Amazon Simple Workflow Service. Each operation on Amazon Simple Workflow Service is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_swf::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::retry::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_swf::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_swf::Client::from_conf(config);
Implementations§
source§impl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
source§impl Client
impl Client
sourcepub fn count_closed_workflow_executions(&self) -> CountClosedWorkflowExecutions
pub fn count_closed_workflow_executions(&self) -> CountClosedWorkflowExecutions
Constructs a fluent builder for the CountClosedWorkflowExecutions
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain containing the workflow executions to count.
start_time_filter(ExecutionTimeFilter)
/set_start_time_filter(Option<ExecutionTimeFilter>)
:If specified, only workflow executions that meet the start time criteria of the filter are counted.
startTimeFilter
andcloseTimeFilter
are mutually exclusive. You must specify one of these in a request but not both.close_time_filter(ExecutionTimeFilter)
/set_close_time_filter(Option<ExecutionTimeFilter>)
:If specified, only workflow executions that meet the close time criteria of the filter are counted.
startTimeFilter
andcloseTimeFilter
are mutually exclusive. You must specify one of these in a request but not both.execution_filter(WorkflowExecutionFilter)
/set_execution_filter(Option<WorkflowExecutionFilter>)
:If specified, only workflow executions matching the
WorkflowId
in the filter are counted.closeStatusFilter
,executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.type_filter(WorkflowTypeFilter)
/set_type_filter(Option<WorkflowTypeFilter>)
:If specified, indicates the type of the workflow executions to be counted.
closeStatusFilter
,executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.tag_filter(TagFilter)
/set_tag_filter(Option<TagFilter>)
:If specified, only executions that have a tag that matches the filter are counted.
closeStatusFilter
,executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.close_status_filter(CloseStatusFilter)
/set_close_status_filter(Option<CloseStatusFilter>)
:If specified, only workflow executions that match this close status are counted. This filter has an affect only if
executionStatus
is specified asCLOSED
.closeStatusFilter
,executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.
- On success, responds with
CountClosedWorkflowExecutionsOutput
with field(s):count(i32)
:The number of workflow executions.
truncated(bool)
:If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
- On failure, responds with
SdkError<CountClosedWorkflowExecutionsError>
sourcepub fn count_open_workflow_executions(&self) -> CountOpenWorkflowExecutions
pub fn count_open_workflow_executions(&self) -> CountOpenWorkflowExecutions
Constructs a fluent builder for the CountOpenWorkflowExecutions
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain containing the workflow executions to count.
start_time_filter(ExecutionTimeFilter)
/set_start_time_filter(Option<ExecutionTimeFilter>)
:Specifies the start time criteria that workflow executions must meet in order to be counted.
type_filter(WorkflowTypeFilter)
/set_type_filter(Option<WorkflowTypeFilter>)
:Specifies the type of the workflow executions to be counted.
executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.tag_filter(TagFilter)
/set_tag_filter(Option<TagFilter>)
:If specified, only executions that have a tag that matches the filter are counted.
executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.execution_filter(WorkflowExecutionFilter)
/set_execution_filter(Option<WorkflowExecutionFilter>)
:If specified, only workflow executions matching the
WorkflowId
in the filter are counted.executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.
- On success, responds with
CountOpenWorkflowExecutionsOutput
with field(s):count(i32)
:The number of workflow executions.
truncated(bool)
:If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
- On failure, responds with
SdkError<CountOpenWorkflowExecutionsError>
sourcepub fn count_pending_activity_tasks(&self) -> CountPendingActivityTasks
pub fn count_pending_activity_tasks(&self) -> CountPendingActivityTasks
Constructs a fluent builder for the CountPendingActivityTasks
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain that contains the task list.
task_list(TaskList)
/set_task_list(Option<TaskList>)
:The name of the task list.
- On success, responds with
CountPendingActivityTasksOutput
with field(s):count(i32)
:The number of tasks in the task list.
truncated(bool)
:If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
- On failure, responds with
SdkError<CountPendingActivityTasksError>
sourcepub fn count_pending_decision_tasks(&self) -> CountPendingDecisionTasks
pub fn count_pending_decision_tasks(&self) -> CountPendingDecisionTasks
Constructs a fluent builder for the CountPendingDecisionTasks
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain that contains the task list.
task_list(TaskList)
/set_task_list(Option<TaskList>)
:The name of the task list.
- On success, responds with
CountPendingDecisionTasksOutput
with field(s):count(i32)
:The number of tasks in the task list.
truncated(bool)
:If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
- On failure, responds with
SdkError<CountPendingDecisionTasksError>
sourcepub fn deprecate_activity_type(&self) -> DeprecateActivityType
pub fn deprecate_activity_type(&self) -> DeprecateActivityType
Constructs a fluent builder for the DeprecateActivityType
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain in which the activity type is registered.
activity_type(ActivityType)
/set_activity_type(Option<ActivityType>)
:The activity type to deprecate.
- On success, responds with
DeprecateActivityTypeOutput
- On failure, responds with
SdkError<DeprecateActivityTypeError>
sourcepub fn deprecate_domain(&self) -> DeprecateDomain
pub fn deprecate_domain(&self) -> DeprecateDomain
Constructs a fluent builder for the DeprecateDomain
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the domain to deprecate.
- On success, responds with
DeprecateDomainOutput
- On failure, responds with
SdkError<DeprecateDomainError>
sourcepub fn deprecate_workflow_type(&self) -> DeprecateWorkflowType
pub fn deprecate_workflow_type(&self) -> DeprecateWorkflowType
Constructs a fluent builder for the DeprecateWorkflowType
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain in which the workflow type is registered.
workflow_type(WorkflowType)
/set_workflow_type(Option<WorkflowType>)
:The workflow type to deprecate.
- On success, responds with
DeprecateWorkflowTypeOutput
- On failure, responds with
SdkError<DeprecateWorkflowTypeError>
sourcepub fn describe_activity_type(&self) -> DescribeActivityType
pub fn describe_activity_type(&self) -> DescribeActivityType
Constructs a fluent builder for the DescribeActivityType
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain in which the activity type is registered.
activity_type(ActivityType)
/set_activity_type(Option<ActivityType>)
:The activity type to get information about. Activity types are identified by the
name
andversion
that were supplied when the activity was registered.
- On success, responds with
DescribeActivityTypeOutput
with field(s):type_info(Option<ActivityTypeInfo>)
:General information about the activity type.
The status of activity type (returned in the ActivityTypeInfo structure) can be one of the following.
-
REGISTERED
– The type is registered and available. Workers supporting this type should be running. -
DEPRECATED
– The type was deprecated usingDeprecateActivityType
, but is still in use. You should keep workers supporting this type running. You cannot create new tasks of this type.
-
configuration(Option<ActivityTypeConfiguration>)
:The configuration settings registered with the activity type.
- On failure, responds with
SdkError<DescribeActivityTypeError>
sourcepub fn describe_domain(&self) -> DescribeDomain
pub fn describe_domain(&self) -> DescribeDomain
Constructs a fluent builder for the DescribeDomain
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the domain to describe.
- On success, responds with
DescribeDomainOutput
with field(s):domain_info(Option<DomainInfo>)
:The basic information about a domain, such as its name, status, and description.
configuration(Option<DomainConfiguration>)
:The domain configuration. Currently, this includes only the domain’s retention period.
- On failure, responds with
SdkError<DescribeDomainError>
sourcepub fn describe_workflow_execution(&self) -> DescribeWorkflowExecution
pub fn describe_workflow_execution(&self) -> DescribeWorkflowExecution
Constructs a fluent builder for the DescribeWorkflowExecution
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain containing the workflow execution.
execution(WorkflowExecution)
/set_execution(Option<WorkflowExecution>)
:The workflow execution to describe.
- On success, responds with
DescribeWorkflowExecutionOutput
with field(s):execution_info(Option<WorkflowExecutionInfo>)
:Information about the workflow execution.
execution_configuration(Option<WorkflowExecutionConfiguration>)
:The configuration settings for this workflow execution including timeout values, tasklist etc.
open_counts(Option<WorkflowExecutionOpenCounts>)
:The number of tasks for this workflow execution. This includes open and closed tasks of all types.
latest_activity_task_timestamp(Option<DateTime>)
:The time when the last activity task was scheduled for this workflow execution. You can use this information to determine if the workflow has not made progress for an unusually long period of time and might require a corrective action.
latest_execution_context(Option<String>)
:The latest executionContext provided by the decider for this workflow execution. A decider can provide an executionContext (a free-form string) when closing a decision task using
RespondDecisionTaskCompleted
.
- On failure, responds with
SdkError<DescribeWorkflowExecutionError>
sourcepub fn describe_workflow_type(&self) -> DescribeWorkflowType
pub fn describe_workflow_type(&self) -> DescribeWorkflowType
Constructs a fluent builder for the DescribeWorkflowType
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain in which this workflow type is registered.
workflow_type(WorkflowType)
/set_workflow_type(Option<WorkflowType>)
:The workflow type to describe.
- On success, responds with
DescribeWorkflowTypeOutput
with field(s):type_info(Option<WorkflowTypeInfo>)
:General information about the workflow type.
The status of the workflow type (returned in the WorkflowTypeInfo structure) can be one of the following.
-
REGISTERED
– The type is registered and available. Workers supporting this type should be running. -
DEPRECATED
– The type was deprecated usingDeprecateWorkflowType
, but is still in use. You should keep workers supporting this type running. You cannot create new workflow executions of this type.
-
configuration(Option<WorkflowTypeConfiguration>)
:Configuration settings of the workflow type registered through
RegisterWorkflowType
- On failure, responds with
SdkError<DescribeWorkflowTypeError>
sourcepub fn get_workflow_execution_history(&self) -> GetWorkflowExecutionHistory
pub fn get_workflow_execution_history(&self) -> GetWorkflowExecutionHistory
Constructs a fluent builder for the GetWorkflowExecutionHistory
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain containing the workflow execution.
execution(WorkflowExecution)
/set_execution(Option<WorkflowExecution>)
:Specifies the workflow execution for which to return the history.
next_page_token(impl Into<String>)
/set_next_page_token(Option<String>)
:If
NextPageToken
is returned there are more results available. The value ofNextPageToken
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 60 seconds. Using an expired pagination token will return a400
error: “Specified token has exceeded its maximum lifetime
”.The configured
maximumPageSize
determines how many results can be returned in a single call.maximum_page_size(i32)
/set_maximum_page_size(i32)
:The maximum number of results that are returned per call. Use
nextPageToken
to obtain further pages of results.reverse_order(bool)
/set_reverse_order(bool)
:When set to
true
, returns the events in reverse order. By default the results are returned in ascending order of theeventTimeStamp
of the events.
- On success, responds with
GetWorkflowExecutionHistoryOutput
with field(s):events(Option<Vec<HistoryEvent>>)
:The list of history events.
next_page_token(Option<String>)
:If a
NextPageToken
was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token innextPageToken
. Keep all other arguments unchanged.The configured
maximumPageSize
determines how many results can be returned in a single call.
- On failure, responds with
SdkError<GetWorkflowExecutionHistoryError>
sourcepub fn list_activity_types(&self) -> ListActivityTypes
pub fn list_activity_types(&self) -> ListActivityTypes
Constructs a fluent builder for the ListActivityTypes
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain in which the activity types have been registered.
name(impl Into<String>)
/set_name(Option<String>)
:If specified, only lists the activity types that have this name.
registration_status(RegistrationStatus)
/set_registration_status(Option<RegistrationStatus>)
:Specifies the registration status of the activity types to list.
next_page_token(impl Into<String>)
/set_next_page_token(Option<String>)
:If
NextPageToken
is returned there are more results available. The value ofNextPageToken
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 60 seconds. Using an expired pagination token will return a400
error: “Specified token has exceeded its maximum lifetime
”.The configured
maximumPageSize
determines how many results can be returned in a single call.maximum_page_size(i32)
/set_maximum_page_size(i32)
:The maximum number of results that are returned per call. Use
nextPageToken
to obtain further pages of results.reverse_order(bool)
/set_reverse_order(bool)
:When set to
true
, returns the results in reverse order. By default, the results are returned in ascending alphabetical order byname
of the activity types.
- On success, responds with
ListActivityTypesOutput
with field(s):type_infos(Option<Vec<ActivityTypeInfo>>)
:List of activity type information.
next_page_token(Option<String>)
:If a
NextPageToken
was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token innextPageToken
. Keep all other arguments unchanged.The configured
maximumPageSize
determines how many results can be returned in a single call.
- On failure, responds with
SdkError<ListActivityTypesError>
sourcepub fn list_closed_workflow_executions(&self) -> ListClosedWorkflowExecutions
pub fn list_closed_workflow_executions(&self) -> ListClosedWorkflowExecutions
Constructs a fluent builder for the ListClosedWorkflowExecutions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain that contains the workflow executions to list.
start_time_filter(ExecutionTimeFilter)
/set_start_time_filter(Option<ExecutionTimeFilter>)
:If specified, the workflow executions are included in the returned results based on whether their start times are within the range specified by this filter. Also, if this parameter is specified, the returned results are ordered by their start times.
startTimeFilter
andcloseTimeFilter
are mutually exclusive. You must specify one of these in a request but not both.close_time_filter(ExecutionTimeFilter)
/set_close_time_filter(Option<ExecutionTimeFilter>)
:If specified, the workflow executions are included in the returned results based on whether their close times are within the range specified by this filter. Also, if this parameter is specified, the returned results are ordered by their close times.
startTimeFilter
andcloseTimeFilter
are mutually exclusive. You must specify one of these in a request but not both.execution_filter(WorkflowExecutionFilter)
/set_execution_filter(Option<WorkflowExecutionFilter>)
:If specified, only workflow executions matching the workflow ID specified in the filter are returned.
closeStatusFilter
,executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.close_status_filter(CloseStatusFilter)
/set_close_status_filter(Option<CloseStatusFilter>)
:If specified, only workflow executions that match this close status are listed. For example, if TERMINATED is specified, then only TERMINATED workflow executions are listed.
closeStatusFilter
,executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.type_filter(WorkflowTypeFilter)
/set_type_filter(Option<WorkflowTypeFilter>)
:If specified, only executions of the type specified in the filter are returned.
closeStatusFilter
,executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.tag_filter(TagFilter)
/set_tag_filter(Option<TagFilter>)
:If specified, only executions that have the matching tag are listed.
closeStatusFilter
,executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.next_page_token(impl Into<String>)
/set_next_page_token(Option<String>)
:If
NextPageToken
is returned there are more results available. The value ofNextPageToken
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 60 seconds. Using an expired pagination token will return a400
error: “Specified token has exceeded its maximum lifetime
”.The configured
maximumPageSize
determines how many results can be returned in a single call.maximum_page_size(i32)
/set_maximum_page_size(i32)
:The maximum number of results that are returned per call. Use
nextPageToken
to obtain further pages of results.reverse_order(bool)
/set_reverse_order(bool)
:When set to
true
, returns the results in reverse order. By default the results are returned in descending order of the start or the close time of the executions.
- On success, responds with
ListClosedWorkflowExecutionsOutput
with field(s):execution_infos(Option<Vec<WorkflowExecutionInfo>>)
:The list of workflow information structures.
next_page_token(Option<String>)
:If a
NextPageToken
was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token innextPageToken
. Keep all other arguments unchanged.The configured
maximumPageSize
determines how many results can be returned in a single call.
- On failure, responds with
SdkError<ListClosedWorkflowExecutionsError>
sourcepub fn list_domains(&self) -> ListDomains
pub fn list_domains(&self) -> ListDomains
Constructs a fluent builder for the ListDomains
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_page_token(impl Into<String>)
/set_next_page_token(Option<String>)
:If
NextPageToken
is returned there are more results available. The value ofNextPageToken
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 60 seconds. Using an expired pagination token will return a400
error: “Specified token has exceeded its maximum lifetime
”.The configured
maximumPageSize
determines how many results can be returned in a single call.registration_status(RegistrationStatus)
/set_registration_status(Option<RegistrationStatus>)
:Specifies the registration status of the domains to list.
maximum_page_size(i32)
/set_maximum_page_size(i32)
:The maximum number of results that are returned per call. Use
nextPageToken
to obtain further pages of results.reverse_order(bool)
/set_reverse_order(bool)
:When set to
true
, returns the results in reverse order. By default, the results are returned in ascending alphabetical order byname
of the domains.
- On success, responds with
ListDomainsOutput
with field(s):domain_infos(Option<Vec<DomainInfo>>)
:A list of DomainInfo structures.
next_page_token(Option<String>)
:If a
NextPageToken
was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token innextPageToken
. Keep all other arguments unchanged.The configured
maximumPageSize
determines how many results can be returned in a single call.
- On failure, responds with
SdkError<ListDomainsError>
sourcepub fn list_open_workflow_executions(&self) -> ListOpenWorkflowExecutions
pub fn list_open_workflow_executions(&self) -> ListOpenWorkflowExecutions
Constructs a fluent builder for the ListOpenWorkflowExecutions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain that contains the workflow executions to list.
start_time_filter(ExecutionTimeFilter)
/set_start_time_filter(Option<ExecutionTimeFilter>)
:Workflow executions are included in the returned results based on whether their start times are within the range specified by this filter.
type_filter(WorkflowTypeFilter)
/set_type_filter(Option<WorkflowTypeFilter>)
:If specified, only executions of the type specified in the filter are returned.
executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.tag_filter(TagFilter)
/set_tag_filter(Option<TagFilter>)
:If specified, only executions that have the matching tag are listed.
executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.next_page_token(impl Into<String>)
/set_next_page_token(Option<String>)
:If
NextPageToken
is returned there are more results available. The value ofNextPageToken
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 60 seconds. Using an expired pagination token will return a400
error: “Specified token has exceeded its maximum lifetime
”.The configured
maximumPageSize
determines how many results can be returned in a single call.maximum_page_size(i32)
/set_maximum_page_size(i32)
:The maximum number of results that are returned per call. Use
nextPageToken
to obtain further pages of results.reverse_order(bool)
/set_reverse_order(bool)
:When set to
true
, returns the results in reverse order. By default the results are returned in descending order of the start time of the executions.execution_filter(WorkflowExecutionFilter)
/set_execution_filter(Option<WorkflowExecutionFilter>)
:If specified, only workflow executions matching the workflow ID specified in the filter are returned.
executionFilter
,typeFilter
andtagFilter
are mutually exclusive. You can specify at most one of these in a request.
- On success, responds with
ListOpenWorkflowExecutionsOutput
with field(s):execution_infos(Option<Vec<WorkflowExecutionInfo>>)
:The list of workflow information structures.
next_page_token(Option<String>)
:If a
NextPageToken
was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token innextPageToken
. Keep all other arguments unchanged.The configured
maximumPageSize
determines how many results can be returned in a single call.
- On failure, responds with
SdkError<ListOpenWorkflowExecutionsError>
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) for the Amazon SWF domain.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<Vec<ResourceTag>>)
:An array of tags associated with the domain.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn list_workflow_types(&self) -> ListWorkflowTypes
pub fn list_workflow_types(&self) -> ListWorkflowTypes
Constructs a fluent builder for the ListWorkflowTypes
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain in which the workflow types have been registered.
name(impl Into<String>)
/set_name(Option<String>)
:If specified, lists the workflow type with this name.
registration_status(RegistrationStatus)
/set_registration_status(Option<RegistrationStatus>)
:Specifies the registration status of the workflow types to list.
next_page_token(impl Into<String>)
/set_next_page_token(Option<String>)
:If
NextPageToken
is returned there are more results available. The value ofNextPageToken
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 60 seconds. Using an expired pagination token will return a400
error: “Specified token has exceeded its maximum lifetime
”.The configured
maximumPageSize
determines how many results can be returned in a single call.maximum_page_size(i32)
/set_maximum_page_size(i32)
:The maximum number of results that are returned per call. Use
nextPageToken
to obtain further pages of results.reverse_order(bool)
/set_reverse_order(bool)
:When set to
true
, returns the results in reverse order. By default the results are returned in ascending alphabetical order of thename
of the workflow types.
- On success, responds with
ListWorkflowTypesOutput
with field(s):type_infos(Option<Vec<WorkflowTypeInfo>>)
:The list of workflow type information.
next_page_token(Option<String>)
:If a
NextPageToken
was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token innextPageToken
. Keep all other arguments unchanged.The configured
maximumPageSize
determines how many results can be returned in a single call.
- On failure, responds with
SdkError<ListWorkflowTypesError>
sourcepub fn poll_for_activity_task(&self) -> PollForActivityTask
pub fn poll_for_activity_task(&self) -> PollForActivityTask
Constructs a fluent builder for the PollForActivityTask
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain that contains the task lists being polled.
task_list(TaskList)
/set_task_list(Option<TaskList>)
:Specifies the task list to poll for activity tasks.
The specified string must not start or end with whitespace. It must not contain a
:
(colon),/
(slash),|
(vertical bar), or any control characters (\u0000-\u001f
|\u007f-\u009f
). Also, it must not be the literal stringarn
.identity(impl Into<String>)
/set_identity(Option<String>)
:Identity of the worker making the request, recorded in the
ActivityTaskStarted
event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined.
- On success, responds with
PollForActivityTaskOutput
with field(s):task_token(Option<String>)
:The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.
activity_id(Option<String>)
:The unique ID of the task.
started_event_id(i64)
:The ID of the
ActivityTaskStarted
event recorded in the history.workflow_execution(Option<WorkflowExecution>)
:The workflow execution that started this activity task.
activity_type(Option<ActivityType>)
:The type of this activity task.
input(Option<String>)
:The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.
- On failure, responds with
SdkError<PollForActivityTaskError>
sourcepub fn poll_for_decision_task(&self) -> PollForDecisionTask
pub fn poll_for_decision_task(&self) -> PollForDecisionTask
Constructs a fluent builder for the PollForDecisionTask
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain containing the task lists to poll.
task_list(TaskList)
/set_task_list(Option<TaskList>)
:Specifies the task list to poll for decision tasks.
The specified string must not start or end with whitespace. It must not contain a
:
(colon),/
(slash),|
(vertical bar), or any control characters (\u0000-\u001f
|\u007f-\u009f
). Also, it must not be the literal stringarn
.identity(impl Into<String>)
/set_identity(Option<String>)
:Identity of the decider making the request, which is recorded in the DecisionTaskStarted event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined.
next_page_token(impl Into<String>)
/set_next_page_token(Option<String>)
:If
NextPageToken
is returned there are more results available. The value ofNextPageToken
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 60 seconds. Using an expired pagination token will return a400
error: “Specified token has exceeded its maximum lifetime
”.The configured
maximumPageSize
determines how many results can be returned in a single call.The
nextPageToken
returned by this action cannot be used withGetWorkflowExecutionHistory
to get the next page. You must callPollForDecisionTask
again (with thenextPageToken
) to retrieve the next page of history records. CallingPollForDecisionTask
with anextPageToken
doesn’t return a new decision task.maximum_page_size(i32)
/set_maximum_page_size(i32)
:The maximum number of results that are returned per call. Use
nextPageToken
to obtain further pages of results.This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.
reverse_order(bool)
/set_reverse_order(bool)
:When set to
true
, returns the events in reverse order. By default the results are returned in ascending order of theeventTimestamp
of the events.
- On success, responds with
PollForDecisionTaskOutput
with field(s):task_token(Option<String>)
:The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.
started_event_id(i64)
:The ID of the
DecisionTaskStarted
event recorded in the history.workflow_execution(Option<WorkflowExecution>)
:The workflow execution for which this decision task was created.
workflow_type(Option<WorkflowType>)
:The type of the workflow execution for which this decision task was created.
events(Option<Vec<HistoryEvent>>)
:A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
next_page_token(Option<String>)
:If a
NextPageToken
was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token innextPageToken
. Keep all other arguments unchanged.The configured
maximumPageSize
determines how many results can be returned in a single call.previous_started_event_id(i64)
:The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider.
- On failure, responds with
SdkError<PollForDecisionTaskError>
sourcepub fn record_activity_task_heartbeat(&self) -> RecordActivityTaskHeartbeat
pub fn record_activity_task_heartbeat(&self) -> RecordActivityTaskHeartbeat
Constructs a fluent builder for the RecordActivityTaskHeartbeat
operation.
- The fluent builder is configurable:
task_token(impl Into<String>)
/set_task_token(Option<String>)
:The
taskToken
of theActivityTask
.taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, itstaskToken
must also be passed. This enables it to provide its progress and respond with results.details(impl Into<String>)
/set_details(Option<String>)
:If specified, contains details about the progress of the task.
- On success, responds with
RecordActivityTaskHeartbeatOutput
with field(s):cancel_requested(bool)
:Set to
true
if cancellation of the task is requested.
- On failure, responds with
SdkError<RecordActivityTaskHeartbeatError>
sourcepub fn register_activity_type(&self) -> RegisterActivityType
pub fn register_activity_type(&self) -> RegisterActivityType
Constructs a fluent builder for the RegisterActivityType
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain in which this activity is to be registered.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the activity type within the domain.
The specified string must not start or end with whitespace. It must not contain a
:
(colon),/
(slash),|
(vertical bar), or any control characters (\u0000-\u001f
|\u007f-\u009f
). Also, it must not be the literal stringarn
.version(impl Into<String>)
/set_version(Option<String>)
:The version of the activity type.
The activity type consists of the name and version, the combination of which must be unique within the domain.
The specified string must not start or end with whitespace. It must not contain a
:
(colon),/
(slash),|
(vertical bar), or any control characters (\u0000-\u001f
|\u007f-\u009f
). Also, it must not be the literal stringarn
.description(impl Into<String>)
/set_description(Option<String>)
:A textual description of the activity type.
default_task_start_to_close_timeout(impl Into<String>)
/set_default_task_start_to_close_timeout(Option<String>)
:If set, specifies the default maximum duration that a worker can take to process tasks of this activity type. This default can be overridden when scheduling an activity task using the
ScheduleActivityTask
Decision
.The duration is specified in seconds, an integer greater than or equal to
0
. You can useNONE
to specify unlimited duration.default_task_heartbeat_timeout(impl Into<String>)
/set_default_task_heartbeat_timeout(Option<String>)
:If set, specifies the default maximum time before which a worker processing a task of this type must report progress by calling
RecordActivityTaskHeartbeat
. If the timeout is exceeded, the activity task is automatically timed out. This default can be overridden when scheduling an activity task using theScheduleActivityTask
Decision
. If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives anUnknownResource
fault. In this case, Amazon SWF no longer considers the activity task to be valid; the activity worker should clean up the activity task.The duration is specified in seconds, an integer greater than or equal to
0
. You can useNONE
to specify unlimited duration.default_task_list(TaskList)
/set_default_task_list(Option<TaskList>)
:If set, specifies the default task list to use for scheduling tasks of this activity type. This default task list is used if a task list isn’t provided when a task is scheduled through the
ScheduleActivityTask
Decision
.default_task_priority(impl Into<String>)
/set_default_task_priority(Option<String>)
:The default task priority to assign to the activity type. If not assigned, then
0
is used. Valid values are integers that range from Java’sInteger.MIN_VALUE
(-2147483648) toInteger.MAX_VALUE
(2147483647). Higher numbers indicate higher priority.For more information about setting task priority, see Setting Task Priority in the in the Amazon SWF Developer Guide..
default_task_schedule_to_start_timeout(impl Into<String>)
/set_default_task_schedule_to_start_timeout(Option<String>)
:If set, specifies the default maximum duration that a task of this activity type can wait before being assigned to a worker. This default can be overridden when scheduling an activity task using the
ScheduleActivityTask
Decision
.The duration is specified in seconds, an integer greater than or equal to
0
. You can useNONE
to specify unlimited duration.default_task_schedule_to_close_timeout(impl Into<String>)
/set_default_task_schedule_to_close_timeout(Option<String>)
:If set, specifies the default maximum duration for a task of this activity type. This default can be overridden when scheduling an activity task using the
ScheduleActivityTask
Decision
.The duration is specified in seconds, an integer greater than or equal to
0
. You can useNONE
to specify unlimited duration.
- On success, responds with
RegisterActivityTypeOutput
- On failure, responds with
SdkError<RegisterActivityTypeError>
sourcepub fn register_domain(&self) -> RegisterDomain
pub fn register_domain(&self) -> RegisterDomain
Constructs a fluent builder for the RegisterDomain
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:Name of the domain to register. The name must be unique in the region that the domain is registered in.
The specified string must not start or end with whitespace. It must not contain a
:
(colon),/
(slash),|
(vertical bar), or any control characters (\u0000-\u001f
|\u007f-\u009f
). Also, it must not be the literal stringarn
.description(impl Into<String>)
/set_description(Option<String>)
:A text description of the domain.
workflow_execution_retention_period_in_days(impl Into<String>)
/set_workflow_execution_retention_period_in_days(Option<String>)
:The duration (in days) that records and histories of workflow executions on the domain should be kept by the service. After the retention period, the workflow execution isn’t available in the results of visibility calls.
If you pass the value
NONE
or0
(zero), then the workflow execution history isn’t retained. As soon as the workflow execution completes, the execution record and its history are deleted.The maximum workflow execution retention period is 90 days. For more information about Amazon SWF service limits, see: Amazon SWF Service Limits in the Amazon SWF Developer Guide.
tags(Vec<ResourceTag>)
/set_tags(Option<Vec<ResourceTag>>)
:Tags to be added when registering a domain.
Tags may only contain unicode letters, digits, whitespace, or these symbols:
_ . : / = + - @
.
- On success, responds with
RegisterDomainOutput
- On failure, responds with
SdkError<RegisterDomainError>
sourcepub fn register_workflow_type(&self) -> RegisterWorkflowType
pub fn register_workflow_type(&self) -> RegisterWorkflowType
Constructs a fluent builder for the RegisterWorkflowType
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain in which to register the workflow type.
name(impl Into<String>)
/set_name(Option<String>)
:The name of the workflow type.
The specified string must not start or end with whitespace. It must not contain a
:
(colon),/
(slash),|
(vertical bar), or any control characters (\u0000-\u001f
|\u007f-\u009f
). Also, it must not be the literal stringarn
.version(impl Into<String>)
/set_version(Option<String>)
:The version of the workflow type.
The workflow type consists of the name and version, the combination of which must be unique within the domain. To get a list of all currently registered workflow types, use the
ListWorkflowTypes
action.The specified string must not start or end with whitespace. It must not contain a
:
(colon),/
(slash),|
(vertical bar), or any control characters (\u0000-\u001f
|\u007f-\u009f
). Also, it must not be the literal stringarn
.description(impl Into<String>)
/set_description(Option<String>)
:Textual description of the workflow type.
default_task_start_to_close_timeout(impl Into<String>)
/set_default_task_start_to_close_timeout(Option<String>)
:If set, specifies the default maximum duration of decision tasks for this workflow type. This default can be overridden when starting a workflow execution using the
StartWorkflowExecution
action or theStartChildWorkflowExecution
Decision
.The duration is specified in seconds, an integer greater than or equal to
0
. You can useNONE
to specify unlimited duration.default_execution_start_to_close_timeout(impl Into<String>)
/set_default_execution_start_to_close_timeout(Option<String>)
:If set, specifies the default maximum duration for executions of this workflow type. You can override this default when starting an execution through the
StartWorkflowExecution
Action orStartChildWorkflowExecution
Decision
.The duration is specified in seconds; an integer greater than or equal to 0. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of “NONE” for
defaultExecutionStartToCloseTimeout
; there is a one-year max limit on the time that a workflow execution can run. Exceeding this limit always causes the workflow execution to time out.default_task_list(TaskList)
/set_default_task_list(Option<TaskList>)
:If set, specifies the default task list to use for scheduling decision tasks for executions of this workflow type. This default is used only if a task list isn’t provided when starting the execution through the
StartWorkflowExecution
Action orStartChildWorkflowExecution
Decision
.default_task_priority(impl Into<String>)
/set_default_task_priority(Option<String>)
:The default task priority to assign to the workflow type. If not assigned, then
0
is used. Valid values are integers that range from Java’sInteger.MIN_VALUE
(-2147483648) toInteger.MAX_VALUE
(2147483647). Higher numbers indicate higher priority.For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide.
default_child_policy(ChildPolicy)
/set_default_child_policy(Option<ChildPolicy>)
:If set, specifies the default policy to use for the child workflow executions when a workflow execution of this type is terminated, by calling the
TerminateWorkflowExecution
action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using theStartWorkflowExecution
action or theStartChildWorkflowExecution
Decision
.The supported child policies are:
-
TERMINATE
– The child executions are terminated. -
REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording aWorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. -
ABANDON
– No action is taken. The child executions continue to run.
-
default_lambda_role(impl Into<String>)
/set_default_lambda_role(Option<String>)
:The default IAM role attached to this workflow type.
Executions of this workflow type need IAM roles to invoke Lambda functions. If you don’t specify an IAM role when you start this workflow type, the default Lambda role is attached to the execution. For more information, see https://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html in the Amazon SWF Developer Guide.
- On success, responds with
RegisterWorkflowTypeOutput
- On failure, responds with
SdkError<RegisterWorkflowTypeError>
sourcepub fn request_cancel_workflow_execution(
&self
) -> RequestCancelWorkflowExecution
pub fn request_cancel_workflow_execution(
&self
) -> RequestCancelWorkflowExecution
Constructs a fluent builder for the RequestCancelWorkflowExecution
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain containing the workflow execution to cancel.
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:The workflowId of the workflow execution to cancel.
run_id(impl Into<String>)
/set_run_id(Option<String>)
:The runId of the workflow execution to cancel.
- On success, responds with
RequestCancelWorkflowExecutionOutput
- On failure, responds with
SdkError<RequestCancelWorkflowExecutionError>
sourcepub fn respond_activity_task_canceled(&self) -> RespondActivityTaskCanceled
pub fn respond_activity_task_canceled(&self) -> RespondActivityTaskCanceled
Constructs a fluent builder for the RespondActivityTaskCanceled
operation.
- The fluent builder is configurable:
task_token(impl Into<String>)
/set_task_token(Option<String>)
:The
taskToken
of theActivityTask
.taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, itstaskToken
must also be passed. This enables it to provide its progress and respond with results.details(impl Into<String>)
/set_details(Option<String>)
:Information about the cancellation.
- On success, responds with
RespondActivityTaskCanceledOutput
- On failure, responds with
SdkError<RespondActivityTaskCanceledError>
sourcepub fn respond_activity_task_completed(&self) -> RespondActivityTaskCompleted
pub fn respond_activity_task_completed(&self) -> RespondActivityTaskCompleted
Constructs a fluent builder for the RespondActivityTaskCompleted
operation.
- The fluent builder is configurable:
task_token(impl Into<String>)
/set_task_token(Option<String>)
:The
taskToken
of theActivityTask
.taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, itstaskToken
must also be passed. This enables it to provide its progress and respond with results.result(impl Into<String>)
/set_result(Option<String>)
:The result of the activity task. It is a free form string that is implementation specific.
- On success, responds with
RespondActivityTaskCompletedOutput
- On failure, responds with
SdkError<RespondActivityTaskCompletedError>
sourcepub fn respond_activity_task_failed(&self) -> RespondActivityTaskFailed
pub fn respond_activity_task_failed(&self) -> RespondActivityTaskFailed
Constructs a fluent builder for the RespondActivityTaskFailed
operation.
- The fluent builder is configurable:
task_token(impl Into<String>)
/set_task_token(Option<String>)
:The
taskToken
of theActivityTask
.taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, itstaskToken
must also be passed. This enables it to provide its progress and respond with results.reason(impl Into<String>)
/set_reason(Option<String>)
:Description of the error that may assist in diagnostics.
details(impl Into<String>)
/set_details(Option<String>)
:Detailed information about the failure.
- On success, responds with
RespondActivityTaskFailedOutput
- On failure, responds with
SdkError<RespondActivityTaskFailedError>
sourcepub fn respond_decision_task_completed(&self) -> RespondDecisionTaskCompleted
pub fn respond_decision_task_completed(&self) -> RespondDecisionTaskCompleted
Constructs a fluent builder for the RespondDecisionTaskCompleted
operation.
- The fluent builder is configurable:
task_token(impl Into<String>)
/set_task_token(Option<String>)
:The
taskToken
from theDecisionTask
.taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, itstaskToken
must also be passed. This enables it to provide its progress and respond with results.decisions(Vec<Decision>)
/set_decisions(Option<Vec<Decision>>)
:The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the
Decision
structure for details.execution_context(impl Into<String>)
/set_execution_context(Option<String>)
:User defined context to add to workflow execution.
- On success, responds with
RespondDecisionTaskCompletedOutput
- On failure, responds with
SdkError<RespondDecisionTaskCompletedError>
sourcepub fn signal_workflow_execution(&self) -> SignalWorkflowExecution
pub fn signal_workflow_execution(&self) -> SignalWorkflowExecution
Constructs a fluent builder for the SignalWorkflowExecution
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain containing the workflow execution to signal.
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:The workflowId of the workflow execution to signal.
run_id(impl Into<String>)
/set_run_id(Option<String>)
:The runId of the workflow execution to signal.
signal_name(impl Into<String>)
/set_signal_name(Option<String>)
:The name of the signal. This name must be meaningful to the target workflow.
input(impl Into<String>)
/set_input(Option<String>)
:Data to attach to the
WorkflowExecutionSignaled
event in the target workflow execution’s history.
- On success, responds with
SignalWorkflowExecutionOutput
- On failure, responds with
SdkError<SignalWorkflowExecutionError>
sourcepub fn start_workflow_execution(&self) -> StartWorkflowExecution
pub fn start_workflow_execution(&self) -> StartWorkflowExecution
Constructs a fluent builder for the StartWorkflowExecution
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain in which the workflow execution is created.
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:The user defined identifier associated with the workflow execution. You can use this to associate a custom identifier with the workflow execution. You may specify the same identifier if a workflow execution is logically a restart of a previous execution. You cannot have two open workflow executions with the same
workflowId
at the same time within the same domain.The specified string must not start or end with whitespace. It must not contain a
:
(colon),/
(slash),|
(vertical bar), or any control characters (\u0000-\u001f
|\u007f-\u009f
). Also, it must not be the literal stringarn
.workflow_type(WorkflowType)
/set_workflow_type(Option<WorkflowType>)
:The type of the workflow to start.
task_list(TaskList)
/set_task_list(Option<TaskList>)
:The task list to use for the decision tasks generated for this workflow execution. This overrides the
defaultTaskList
specified when registering the workflow type.A task list for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task list was specified at registration time then a fault is returned.
The specified string must not start or end with whitespace. It must not contain a
:
(colon),/
(slash),|
(vertical bar), or any control characters (\u0000-\u001f
|\u007f-\u009f
). Also, it must not be the literal stringarn
.task_priority(impl Into<String>)
/set_task_priority(Option<String>)
:The task priority to use for this workflow execution. This overrides any default priority that was assigned when the workflow type was registered. If not set, then the default task priority for the workflow type is used. Valid values are integers that range from Java’s
Integer.MIN_VALUE
(-2147483648) toInteger.MAX_VALUE
(2147483647). Higher numbers indicate higher priority.For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide.
input(impl Into<String>)
/set_input(Option<String>)
:The input for the workflow execution. This is a free form string which should be meaningful to the workflow you are starting. This
input
is made available to the new workflow execution in theWorkflowExecutionStarted
history event.execution_start_to_close_timeout(impl Into<String>)
/set_execution_start_to_close_timeout(Option<String>)
:The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type.
The duration is specified in seconds; an integer greater than or equal to
0
. Exceeding this limit causes the workflow execution to time out. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of “NONE” for this timeout; there is a one-year max limit on the time that a workflow execution can run.An execution start-to-close timeout must be specified either through this parameter or as a default when the workflow type is registered. If neither this parameter nor a default execution start-to-close timeout is specified, a fault is returned.
tag_list(Vec<String>)
/set_tag_list(Option<Vec<String>>)
:The list of tags to associate with the workflow execution. You can specify a maximum of 5 tags. You can list workflow executions with a specific tag by calling
ListOpenWorkflowExecutions
orListClosedWorkflowExecutions
and specifying aTagFilter
.task_start_to_close_timeout(impl Into<String>)
/set_task_start_to_close_timeout(Option<String>)
:Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the
defaultTaskStartToCloseTimout
specified when registering the workflow type usingRegisterWorkflowType
.The duration is specified in seconds, an integer greater than or equal to
0
. You can useNONE
to specify unlimited duration.A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault is returned.
child_policy(ChildPolicy)
/set_child_policy(Option<ChildPolicy>)
:If set, specifies the policy to use for the child workflow executions of this workflow execution if it is terminated, by calling the
TerminateWorkflowExecution
action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type usingRegisterWorkflowType
.The supported child policies are:
-
TERMINATE
– The child executions are terminated. -
REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording aWorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. -
ABANDON
– No action is taken. The child executions continue to run.
A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.
-
lambda_role(impl Into<String>)
/set_lambda_role(Option<String>)
:The IAM role to attach to this workflow execution.
Executions of this workflow type need IAM roles to invoke Lambda functions. If you don’t attach an IAM role, any attempt to schedule a Lambda task fails. This results in a
ScheduleLambdaFunctionFailed
history event. For more information, see https://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html in the Amazon SWF Developer Guide.
- On success, responds with
StartWorkflowExecutionOutput
with field(s):run_id(Option<String>)
:The
runId
of a workflow execution. This ID is generated by the service and can be used to uniquely identify the workflow execution within a domain.
- On failure, responds with
SdkError<StartWorkflowExecutionError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) for the Amazon SWF domain.
tags(Vec<ResourceTag>)
/set_tags(Option<Vec<ResourceTag>>)
:The list of tags to add to a domain.
Tags may only contain unicode letters, digits, whitespace, or these symbols:
_ . : / = + - @
.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
sourcepub fn terminate_workflow_execution(&self) -> TerminateWorkflowExecution
pub fn terminate_workflow_execution(&self) -> TerminateWorkflowExecution
Constructs a fluent builder for the TerminateWorkflowExecution
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The domain of the workflow execution to terminate.
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:The workflowId of the workflow execution to terminate.
run_id(impl Into<String>)
/set_run_id(Option<String>)
:The runId of the workflow execution to terminate.
reason(impl Into<String>)
/set_reason(Option<String>)
:A descriptive reason for terminating the workflow execution.
details(impl Into<String>)
/set_details(Option<String>)
:Details for terminating the workflow execution.
child_policy(ChildPolicy)
/set_child_policy(Option<ChildPolicy>)
:If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. This policy overrides the child policy specified for the workflow execution at registration time or when starting the execution.
The supported child policies are:
-
TERMINATE
– The child executions are terminated. -
REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording aWorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. -
ABANDON
– No action is taken. The child executions continue to run.
A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.
-
- On success, responds with
TerminateWorkflowExecutionOutput
- On failure, responds with
SdkError<TerminateWorkflowExecutionError>
sourcepub fn undeprecate_activity_type(&self) -> UndeprecateActivityType
pub fn undeprecate_activity_type(&self) -> UndeprecateActivityType
Constructs a fluent builder for the UndeprecateActivityType
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain of the deprecated activity type.
activity_type(ActivityType)
/set_activity_type(Option<ActivityType>)
:The activity type to undeprecate.
- On success, responds with
UndeprecateActivityTypeOutput
- On failure, responds with
SdkError<UndeprecateActivityTypeError>
sourcepub fn undeprecate_domain(&self) -> UndeprecateDomain
pub fn undeprecate_domain(&self) -> UndeprecateDomain
Constructs a fluent builder for the UndeprecateDomain
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the domain of the deprecated workflow type.
- On success, responds with
UndeprecateDomainOutput
- On failure, responds with
SdkError<UndeprecateDomainError>
sourcepub fn undeprecate_workflow_type(&self) -> UndeprecateWorkflowType
pub fn undeprecate_workflow_type(&self) -> UndeprecateWorkflowType
Constructs a fluent builder for the UndeprecateWorkflowType
operation.
- The fluent builder is configurable:
domain(impl Into<String>)
/set_domain(Option<String>)
:The name of the domain of the deprecated workflow type.
workflow_type(WorkflowType)
/set_workflow_type(Option<WorkflowType>)
:The name of the domain of the deprecated workflow type.
- On success, responds with
UndeprecateWorkflowTypeOutput
- On failure, responds with
SdkError<UndeprecateWorkflowTypeError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) for the Amazon SWF domain.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:The list of tags to remove from the Amazon SWF domain.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
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.
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 if the
conf
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
conf
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it.