aws_sdk_cloudfront/client/
get_public_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 [`GetPublicKey`](crate::operation::get_public_key::builders::GetPublicKeyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::get_public_key::builders::GetPublicKeyFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::get_public_key::builders::GetPublicKeyFluentBuilder::set_id):<br>required: **true**<br><p>The identifier of the public key you are getting.</p><br>
7    /// - On success, responds with [`GetPublicKeyOutput`](crate::operation::get_public_key::GetPublicKeyOutput) with field(s):
8    ///   - [`public_key(Option<PublicKey>)`](crate::operation::get_public_key::GetPublicKeyOutput::public_key): <p>The public key.</p>
9    ///   - [`e_tag(Option<String>)`](crate::operation::get_public_key::GetPublicKeyOutput::e_tag): <p>The identifier for this version of the public key.</p>
10    /// - On failure, responds with [`SdkError<GetPublicKeyError>`](crate::operation::get_public_key::GetPublicKeyError)
11    pub fn get_public_key(&self) -> crate::operation::get_public_key::builders::GetPublicKeyFluentBuilder {
12        crate::operation::get_public_key::builders::GetPublicKeyFluentBuilder::new(self.handle.clone())
13    }
14}