Struct aws_sdk_cloudfront::input::UpdatePublicKeyInput
source · #[non_exhaustive]pub struct UpdatePublicKeyInput { /* private fields */ }
Implementations§
source§impl UpdatePublicKeyInput
impl UpdatePublicKeyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdatePublicKey, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdatePublicKey, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdatePublicKey
>
Examples found in repository?
src/client.rs (line 9500)
9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdatePublicKey,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdatePublicKeyError>,
> {
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::UpdatePublicKeyOutput,
aws_smithy_http::result::SdkError<crate::error::UpdatePublicKeyError>,
> {
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 UpdatePublicKeyInput
.
source§impl UpdatePublicKeyInput
impl UpdatePublicKeyInput
sourcepub fn public_key_config(&self) -> Option<&PublicKeyConfig>
pub fn public_key_config(&self) -> Option<&PublicKeyConfig>
A public key configuration.
Trait Implementations§
source§impl Clone for UpdatePublicKeyInput
impl Clone for UpdatePublicKeyInput
source§fn clone(&self) -> UpdatePublicKeyInput
fn clone(&self) -> UpdatePublicKeyInput
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