aws-sdk-credentialbroker 1.0.0

AWS SDK for AWS IAM CredentialBroker
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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:
    ///   - [`credential_provider_arn(impl Into<String>)`](crate::operation::get_api_key::builders::GetApiKeyFluentBuilder::credential_provider_arn) / [`set_credential_provider_arn(Option<String>)`](crate::operation::get_api_key::builders::GetApiKeyFluentBuilder::set_credential_provider_arn):<br>required: **true**<br><p>Amazon Resource Name of the credential provider to obtain the key from. The provider must be an API key provider and must be READY.</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 API key. Present it to the third-party API however that API expects, commonly a header or query parameter.</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())
    }
}