aws_sdk_paymentcryptography/client/get_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 [`GetKey`](crate::operation::get_key::builders::GetKeyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`key_identifier(impl Into<String>)`](crate::operation::get_key::builders::GetKeyFluentBuilder::key_identifier) / [`set_key_identifier(Option<String>)`](crate::operation::get_key::builders::GetKeyFluentBuilder::set_key_identifier):<br>required: **true**<br><p>The <code>KeyARN</code> of the Amazon Web Services Payment Cryptography key.</p><br>
7 /// - On success, responds with [`GetKeyOutput`](crate::operation::get_key::GetKeyOutput) with field(s):
8 /// - [`key(Option<Key>)`](crate::operation::get_key::GetKeyOutput::key): <p>Contains the key metadata, including both immutable and mutable attributes for the key, but does not include actual cryptographic key material.</p>
9 /// - On failure, responds with [`SdkError<GetKeyError>`](crate::operation::get_key::GetKeyError)
10 pub fn get_key(&self) -> crate::operation::get_key::builders::GetKeyFluentBuilder {
11 crate::operation::get_key::builders::GetKeyFluentBuilder::new(self.handle.clone())
12 }
13}