Struct aws_sdk_cloudfront::input::GetPublicKeyInput
source · #[non_exhaustive]pub struct GetPublicKeyInput { /* private fields */ }
Implementations§
source§impl GetPublicKeyInput
impl GetPublicKeyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetPublicKey, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetPublicKey, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetPublicKey
>
Examples found in repository?
src/client.rs (line 5588)
5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetPublicKey,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetPublicKeyError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetPublicKeyOutput,
aws_smithy_http::result::SdkError<crate::error::GetPublicKeyError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetPublicKeyInput
.
Trait Implementations§
source§impl Clone for GetPublicKeyInput
impl Clone for GetPublicKeyInput
source§fn clone(&self) -> GetPublicKeyInput
fn clone(&self) -> GetPublicKeyInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more