aws-sdk-amplifygen3 1.0.0

AWS SDK for AWS Amplify Gen 3
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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:
    ///   - [`branch_arn(impl Into<String>)`](crate::operation::get_api_key::builders::GetApiKeyFluentBuilder::branch_arn) / [`set_branch_arn(Option<String>)`](crate::operation::get_api_key::builders::GetApiKeyFluentBuilder::set_branch_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the branch that the API key belongs to.</p><br>
    ///   - [`api_key_id(impl Into<String>)`](crate::operation::get_api_key::builders::GetApiKeyFluentBuilder::api_key_id) / [`set_api_key_id(Option<String>)`](crate::operation::get_api_key::builders::GetApiKeyFluentBuilder::set_api_key_id):<br>required: **true**<br><p>The ID of the API key to return.</p><br>
    /// - On success, responds with [`GetApiKeyOutput`](crate::operation::get_api_key::GetApiKeyOutput) with field(s):
    ///   - [`api_key(String)`](crate::operation::get_api_key::GetApiKeyOutput::api_key): <p>The value of the API key. The key value is a credential. Store it securely and don't log it.</p>
    ///   - [`api_key_id(String)`](crate::operation::get_api_key::GetApiKeyOutput::api_key_id): <p>The ID of the API key. Use the ID to identify the key when you list or revoke keys.</p>
    ///   - [`created_at(DateTime)`](crate::operation::get_api_key::GetApiKeyOutput::created_at): <p>The time at which the API key was created. The value is in ISO-8601 format.</p>
    ///   - [`status(ApiKeyStatus)`](crate::operation::get_api_key::GetApiKeyOutput::status): <p>The status of the API key.</p>
    ///   - [`updated_at(DateTime)`](crate::operation::get_api_key::GetApiKeyOutput::updated_at): <p>The time at which the API key was last updated. The value is in ISO-8601 format. For a key that was never updated, this is the same as the creation time.</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())
    }
}