aws_sdk_opsworks/client/describe_deployments.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 [`DescribeDeployments`](crate::operation::describe_deployments::builders::DescribeDeploymentsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`stack_id(impl Into<String>)`](crate::operation::describe_deployments::builders::DescribeDeploymentsFluentBuilder::stack_id) / [`set_stack_id(Option<String>)`](crate::operation::describe_deployments::builders::DescribeDeploymentsFluentBuilder::set_stack_id):<br>required: **false**<br><p>The stack ID. If you include this parameter, the command returns a description of the commands associated with the specified stack.</p><br>
7 /// - [`app_id(impl Into<String>)`](crate::operation::describe_deployments::builders::DescribeDeploymentsFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::describe_deployments::builders::DescribeDeploymentsFluentBuilder::set_app_id):<br>required: **false**<br><p>The app ID. If you include this parameter, the command returns a description of the commands associated with the specified app.</p><br>
8 /// - [`deployment_ids(impl Into<String>)`](crate::operation::describe_deployments::builders::DescribeDeploymentsFluentBuilder::deployment_ids) / [`set_deployment_ids(Option<Vec::<String>>)`](crate::operation::describe_deployments::builders::DescribeDeploymentsFluentBuilder::set_deployment_ids):<br>required: **false**<br><p>An array of deployment IDs to be described. If you include this parameter, the command returns a description of the specified deployments. Otherwise, it returns a description of every deployment.</p><br>
9 /// - On success, responds with [`DescribeDeploymentsOutput`](crate::operation::describe_deployments::DescribeDeploymentsOutput) with field(s):
10 /// - [`deployments(Option<Vec::<Deployment>>)`](crate::operation::describe_deployments::DescribeDeploymentsOutput::deployments): <p>An array of <code>Deployment</code> objects that describe the deployments.</p>
11 /// - On failure, responds with [`SdkError<DescribeDeploymentsError>`](crate::operation::describe_deployments::DescribeDeploymentsError)
12 pub fn describe_deployments(&self) -> crate::operation::describe_deployments::builders::DescribeDeploymentsFluentBuilder {
13 crate::operation::describe_deployments::builders::DescribeDeploymentsFluentBuilder::new(self.handle.clone())
14 }
15}