1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetApiKey`](crate::operation::get_api_key::builders::GetApiKeyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`api_key(impl Into<String>)`](crate::operation::get_api_key::builders::GetApiKeyFluentBuilder::api_key) / [`set_api_key(Option<String>)`](crate::operation::get_api_key::builders::GetApiKeyFluentBuilder::set_api_key):<br>required: **true**<br><p>The identifier of the ApiKey resource.</p><br>
    ///   - [`include_value(bool)`](crate::operation::get_api_key::builders::GetApiKeyFluentBuilder::include_value) / [`set_include_value(Option<bool>)`](crate::operation::get_api_key::builders::GetApiKeyFluentBuilder::set_include_value):<br>required: **false**<br><p>A boolean flag to specify whether (<code>true</code>) or not (<code>false</code>) the result contains the key value.</p><br>
    /// - On success, responds with [`GetApiKeyOutput`](crate::operation::get_api_key::GetApiKeyOutput) with field(s):
    ///   - [`id(Option<String>)`](crate::operation::get_api_key::GetApiKeyOutput::id): <p>The identifier of the API Key.</p>
    ///   - [`value(Option<String>)`](crate::operation::get_api_key::GetApiKeyOutput::value): <p>The value of the API Key.</p>
    ///   - [`name(Option<String>)`](crate::operation::get_api_key::GetApiKeyOutput::name): <p>The name of the API Key.</p>
    ///   - [`customer_id(Option<String>)`](crate::operation::get_api_key::GetApiKeyOutput::customer_id): <p>An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.</p>
    ///   - [`description(Option<String>)`](crate::operation::get_api_key::GetApiKeyOutput::description): <p>The description of the API Key.</p>
    ///   - [`enabled(bool)`](crate::operation::get_api_key::GetApiKeyOutput::enabled): <p>Specifies whether the API Key can be used by callers.</p>
    ///   - [`created_date(Option<DateTime>)`](crate::operation::get_api_key::GetApiKeyOutput::created_date): <p>The timestamp when the API Key was created.</p>
    ///   - [`last_updated_date(Option<DateTime>)`](crate::operation::get_api_key::GetApiKeyOutput::last_updated_date): <p>The timestamp when the API Key was last updated.</p>
    ///   - [`stage_keys(Option<Vec::<String>>)`](crate::operation::get_api_key::GetApiKeyOutput::stage_keys): <p>A list of Stage resources that are associated with the ApiKey resource.</p>
    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_api_key::GetApiKeyOutput::tags): <p>The collection of tags. Each tag element is associated with a given resource.</p>
    /// - On failure, responds with [`SdkError<GetApiKeyError>`](crate::operation::get_api_key::GetApiKeyError)
    pub fn get_api_key(&self) -> crate::operation::get_api_key::builders::GetApiKeyFluentBuilder {
        crate::operation::get_api_key::builders::GetApiKeyFluentBuilder::new(self.handle.clone())
    }
}