aws_sdk_ssm/client/
cancel_command.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CancelCommand`](crate::operation::cancel_command::builders::CancelCommandFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`command_id(impl Into<String>)`](crate::operation::cancel_command::builders::CancelCommandFluentBuilder::command_id) / [`set_command_id(Option<String>)`](crate::operation::cancel_command::builders::CancelCommandFluentBuilder::set_command_id):<br>required: **true**<br><p>The ID of the command you want to cancel.</p><br>
7    ///   - [`instance_ids(impl Into<String>)`](crate::operation::cancel_command::builders::CancelCommandFluentBuilder::instance_ids) / [`set_instance_ids(Option<Vec::<String>>)`](crate::operation::cancel_command::builders::CancelCommandFluentBuilder::set_instance_ids):<br>required: **false**<br><p>(Optional) A list of managed node IDs on which you want to cancel the command. If not provided, the command is canceled on every node on which it was requested.</p><br>
8    /// - On success, responds with [`CancelCommandOutput`](crate::operation::cancel_command::CancelCommandOutput)
9    /// - On failure, responds with [`SdkError<CancelCommandError>`](crate::operation::cancel_command::CancelCommandError)
10    pub fn cancel_command(&self) -> crate::operation::cancel_command::builders::CancelCommandFluentBuilder {
11        crate::operation::cancel_command::builders::CancelCommandFluentBuilder::new(self.handle.clone())
12    }
13}