aws_sdk_lambda/client/
get_capacity_provider.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 [`GetCapacityProvider`](crate::operation::get_capacity_provider::builders::GetCapacityProviderFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`capacity_provider_name(impl Into<String>)`](crate::operation::get_capacity_provider::builders::GetCapacityProviderFluentBuilder::capacity_provider_name) / [`set_capacity_provider_name(Option<String>)`](crate::operation::get_capacity_provider::builders::GetCapacityProviderFluentBuilder::set_capacity_provider_name):<br>required: **true**<br><p>The name of the capacity provider to retrieve.</p><br>
7    /// - On success, responds with [`GetCapacityProviderOutput`](crate::operation::get_capacity_provider::GetCapacityProviderOutput) with field(s):
8    ///   - [`capacity_provider(Option<CapacityProvider>)`](crate::operation::get_capacity_provider::GetCapacityProviderOutput::capacity_provider): <p>Information about the capacity provider, including its configuration and current state.</p>
9    /// - On failure, responds with [`SdkError<GetCapacityProviderError>`](crate::operation::get_capacity_provider::GetCapacityProviderError)
10    pub fn get_capacity_provider(&self) -> crate::operation::get_capacity_provider::builders::GetCapacityProviderFluentBuilder {
11        crate::operation::get_capacity_provider::builders::GetCapacityProviderFluentBuilder::new(self.handle.clone())
12    }
13}