aws_sdk_lambda/client/
list_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 [`ListLayers`](crate::operation::list_layers::builders::ListLayersFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_layers::builders::ListLayersFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`compatible_runtime(Runtime)`](crate::operation::list_layers::builders::ListLayersFluentBuilder::compatible_runtime) / [`set_compatible_runtime(Option<Runtime>)`](crate::operation::list_layers::builders::ListLayersFluentBuilder::set_compatible_runtime):<br>required: **false**<br><p>A runtime identifier.</p> <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p> <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p><br>
8    ///   - [`marker(impl Into<String>)`](crate::operation::list_layers::builders::ListLayersFluentBuilder::marker) / [`set_marker(Option<String>)`](crate::operation::list_layers::builders::ListLayersFluentBuilder::set_marker):<br>required: **false**<br><p>A pagination token returned by a previous call.</p><br>
9    ///   - [`max_items(i32)`](crate::operation::list_layers::builders::ListLayersFluentBuilder::max_items) / [`set_max_items(Option<i32>)`](crate::operation::list_layers::builders::ListLayersFluentBuilder::set_max_items):<br>required: **false**<br><p>The maximum number of layers to return.</p><br>
10    ///   - [`compatible_architecture(Architecture)`](crate::operation::list_layers::builders::ListLayersFluentBuilder::compatible_architecture) / [`set_compatible_architecture(Option<Architecture>)`](crate::operation::list_layers::builders::ListLayersFluentBuilder::set_compatible_architecture):<br>required: **false**<br><p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p><br>
11    /// - On success, responds with [`ListLayersOutput`](crate::operation::list_layers::ListLayersOutput) with field(s):
12    ///   - [`next_marker(Option<String>)`](crate::operation::list_layers::ListLayersOutput::next_marker): <p>A pagination token returned when the response doesn't contain all layers.</p>
13    ///   - [`layers(Option<Vec::<LayersListItem>>)`](crate::operation::list_layers::ListLayersOutput::layers): <p>A list of function layers.</p>
14    /// - On failure, responds with [`SdkError<ListLayersError>`](crate::operation::list_layers::ListLayersError)
15    pub fn list_layers(&self) -> crate::operation::list_layers::builders::ListLayersFluentBuilder {
16        crate::operation::list_layers::builders::ListLayersFluentBuilder::new(self.handle.clone())
17    }
18}