aws_sdk_opsworks/client/
describe_commands.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 [`DescribeCommands`](crate::operation::describe_commands::builders::DescribeCommandsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`deployment_id(impl Into<String>)`](crate::operation::describe_commands::builders::DescribeCommandsFluentBuilder::deployment_id) / [`set_deployment_id(Option<String>)`](crate::operation::describe_commands::builders::DescribeCommandsFluentBuilder::set_deployment_id):<br>required: **false**<br><p>The deployment ID. If you include this parameter, <code>DescribeCommands</code> returns a description of the commands associated with the specified deployment.</p><br>
7    ///   - [`instance_id(impl Into<String>)`](crate::operation::describe_commands::builders::DescribeCommandsFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::describe_commands::builders::DescribeCommandsFluentBuilder::set_instance_id):<br>required: **false**<br><p>The instance ID. If you include this parameter, <code>DescribeCommands</code> returns a description of the commands associated with the specified instance.</p><br>
8    ///   - [`command_ids(impl Into<String>)`](crate::operation::describe_commands::builders::DescribeCommandsFluentBuilder::command_ids) / [`set_command_ids(Option<Vec::<String>>)`](crate::operation::describe_commands::builders::DescribeCommandsFluentBuilder::set_command_ids):<br>required: **false**<br><p>An array of command IDs. If you include this parameter, <code>DescribeCommands</code> returns a description of the specified commands. Otherwise, it returns a description of every command.</p><br>
9    /// - On success, responds with [`DescribeCommandsOutput`](crate::operation::describe_commands::DescribeCommandsOutput) with field(s):
10    ///   - [`commands(Option<Vec::<Command>>)`](crate::operation::describe_commands::DescribeCommandsOutput::commands): <p>An array of <code>Command</code> objects that describe each of the specified commands.</p>
11    /// - On failure, responds with [`SdkError<DescribeCommandsError>`](crate::operation::describe_commands::DescribeCommandsError)
12    pub fn describe_commands(&self) -> crate::operation::describe_commands::builders::DescribeCommandsFluentBuilder {
13        crate::operation::describe_commands::builders::DescribeCommandsFluentBuilder::new(self.handle.clone())
14    }
15}