aws_sdk_opsworks/client/
describe_layers.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 [`DescribeLayers`](crate::operation::describe_layers::builders::DescribeLayersFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`stack_id(impl Into<String>)`](crate::operation::describe_layers::builders::DescribeLayersFluentBuilder::stack_id) / [`set_stack_id(Option<String>)`](crate::operation::describe_layers::builders::DescribeLayersFluentBuilder::set_stack_id):<br>required: **false**<br><p>The stack ID.</p><br>
7    ///   - [`layer_ids(impl Into<String>)`](crate::operation::describe_layers::builders::DescribeLayersFluentBuilder::layer_ids) / [`set_layer_ids(Option<Vec::<String>>)`](crate::operation::describe_layers::builders::DescribeLayersFluentBuilder::set_layer_ids):<br>required: **false**<br><p>An array of layer IDs that specify the layers to be described. If you omit this parameter, <code>DescribeLayers</code> returns a description of every layer in the specified stack.</p><br>
8    /// - On success, responds with [`DescribeLayersOutput`](crate::operation::describe_layers::DescribeLayersOutput) with field(s):
9    ///   - [`layers(Option<Vec::<Layer>>)`](crate::operation::describe_layers::DescribeLayersOutput::layers): <p>An array of <code>Layer</code> objects that describe the layers.</p>
10    /// - On failure, responds with [`SdkError<DescribeLayersError>`](crate::operation::describe_layers::DescribeLayersError)
11    pub fn describe_layers(&self) -> crate::operation::describe_layers::builders::DescribeLayersFluentBuilder {
12        crate::operation::describe_layers::builders::DescribeLayersFluentBuilder::new(self.handle.clone())
13    }
14}