aws_sdk_wafv2/client/
get_decrypted_api_key.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 [`GetDecryptedAPIKey`](crate::operation::get_decrypted_api_key::builders::GetDecryptedAPIKeyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`scope(Scope)`](crate::operation::get_decrypted_api_key::builders::GetDecryptedAPIKeyFluentBuilder::scope) / [`set_scope(Option<Scope>)`](crate::operation::get_decrypted_api_key::builders::GetDecryptedAPIKeyFluentBuilder::set_scope):<br>required: **true**<br><p>Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</p> <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:</p> <ul>  <li>   <p>CLI - Specify the Region when you use the CloudFront scope: <code>--scope=CLOUDFRONT --region=us-east-1</code>.</p></li>  <li>   <p>API and SDKs - For all calls, use the Region endpoint us-east-1.</p></li> </ul><br>
7    ///   - [`api_key(impl Into<String>)`](crate::operation::get_decrypted_api_key::builders::GetDecryptedAPIKeyFluentBuilder::api_key) / [`set_api_key(Option<String>)`](crate::operation::get_decrypted_api_key::builders::GetDecryptedAPIKeyFluentBuilder::set_api_key):<br>required: **true**<br><p>The encrypted API key.</p><br>
8    /// - On success, responds with [`GetDecryptedApiKeyOutput`](crate::operation::get_decrypted_api_key::GetDecryptedApiKeyOutput) with field(s):
9    ///   - [`token_domains(Option<Vec::<String>>)`](crate::operation::get_decrypted_api_key::GetDecryptedApiKeyOutput::token_domains): <p>The token domains that are defined in this API key.</p>
10    ///   - [`creation_timestamp(Option<DateTime>)`](crate::operation::get_decrypted_api_key::GetDecryptedApiKeyOutput::creation_timestamp): <p>The date and time that the key was created.</p>
11    /// - On failure, responds with [`SdkError<GetDecryptedAPIKeyError>`](crate::operation::get_decrypted_api_key::GetDecryptedAPIKeyError)
12    pub fn get_decrypted_api_key(&self) -> crate::operation::get_decrypted_api_key::builders::GetDecryptedAPIKeyFluentBuilder {
13        crate::operation::get_decrypted_api_key::builders::GetDecryptedAPIKeyFluentBuilder::new(self.handle.clone())
14    }
15}