aws_sdk_swf/client/
request_cancel_workflow_execution.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RequestCancelWorkflowExecution`](crate::operation::request_cancel_workflow_execution::builders::RequestCancelWorkflowExecutionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`domain(impl Into<String>)`](crate::operation::request_cancel_workflow_execution::builders::RequestCancelWorkflowExecutionFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::request_cancel_workflow_execution::builders::RequestCancelWorkflowExecutionFluentBuilder::set_domain):<br>required: **true**<br><p>The name of the domain containing the workflow execution to cancel.</p><br>
    ///   - [`workflow_id(impl Into<String>)`](crate::operation::request_cancel_workflow_execution::builders::RequestCancelWorkflowExecutionFluentBuilder::workflow_id) / [`set_workflow_id(Option<String>)`](crate::operation::request_cancel_workflow_execution::builders::RequestCancelWorkflowExecutionFluentBuilder::set_workflow_id):<br>required: **true**<br><p>The workflowId of the workflow execution to cancel.</p><br>
    ///   - [`run_id(impl Into<String>)`](crate::operation::request_cancel_workflow_execution::builders::RequestCancelWorkflowExecutionFluentBuilder::run_id) / [`set_run_id(Option<String>)`](crate::operation::request_cancel_workflow_execution::builders::RequestCancelWorkflowExecutionFluentBuilder::set_run_id):<br>required: **false**<br><p>The runId of the workflow execution to cancel.</p><br>
    /// - On success, responds with [`RequestCancelWorkflowExecutionOutput`](crate::operation::request_cancel_workflow_execution::RequestCancelWorkflowExecutionOutput)
    /// - On failure, responds with [`SdkError<RequestCancelWorkflowExecutionError>`](crate::operation::request_cancel_workflow_execution::RequestCancelWorkflowExecutionError)
    pub fn request_cancel_workflow_execution(
        &self,
    ) -> crate::operation::request_cancel_workflow_execution::builders::RequestCancelWorkflowExecutionFluentBuilder {
        crate::operation::request_cancel_workflow_execution::builders::RequestCancelWorkflowExecutionFluentBuilder::new(self.handle.clone())
    }
}