aws-sdk-bedrockagentcore 1.16.0

AWS SDK for Amazon Bedrock AgentCore
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetResourceApiKey`](crate::operation::get_resource_api_key::builders::GetResourceApiKeyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workload_identity_token(impl Into<String>)`](crate::operation::get_resource_api_key::builders::GetResourceApiKeyFluentBuilder::workload_identity_token) / [`set_workload_identity_token(Option<String>)`](crate::operation::get_resource_api_key::builders::GetResourceApiKeyFluentBuilder::set_workload_identity_token):<br>required: **true**<br><p>The identity token of the workload from which you want to retrieve the API key.</p><br>
    ///   - [`resource_credential_provider_name(impl Into<String>)`](crate::operation::get_resource_api_key::builders::GetResourceApiKeyFluentBuilder::resource_credential_provider_name) / [`set_resource_credential_provider_name(Option<String>)`](crate::operation::get_resource_api_key::builders::GetResourceApiKeyFluentBuilder::set_resource_credential_provider_name):<br>required: **true**<br><p>The credential provider name for the resource from which you are retrieving the API key.</p><br>
    /// - On success, responds with [`GetResourceApiKeyOutput`](crate::operation::get_resource_api_key::GetResourceApiKeyOutput) with field(s):
    ///   - [`api_key(String)`](crate::operation::get_resource_api_key::GetResourceApiKeyOutput::api_key): <p>The API key associated with the resource requested.</p>
    /// - On failure, responds with [`SdkError<GetResourceApiKeyError>`](crate::operation::get_resource_api_key::GetResourceApiKeyError)
    pub fn get_resource_api_key(&self) -> crate::operation::get_resource_api_key::builders::GetResourceApiKeyFluentBuilder {
        crate::operation::get_resource_api_key::builders::GetResourceApiKeyFluentBuilder::new(self.handle.clone())
    }
}