Struct aws_sdk_apigateway::input::UpdateApiKeyInput
source · #[non_exhaustive]pub struct UpdateApiKeyInput { /* private fields */ }
Expand description
A request to change information about an ApiKey resource.
Implementations§
source§impl UpdateApiKeyInput
impl UpdateApiKeyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateApiKey, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateApiKey, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateApiKey
>
Examples found in repository?
src/client.rs (line 12699)
12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateApiKey,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateApiKeyError>,
> {
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::UpdateApiKeyOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateApiKeyError>,
> {
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 UpdateApiKeyInput
.
source§impl UpdateApiKeyInput
impl UpdateApiKeyInput
sourcepub fn patch_operations(&self) -> Option<&[PatchOperation]>
pub fn patch_operations(&self) -> Option<&[PatchOperation]>
For more information about supported patch operations, see Patch Operations.
Trait Implementations§
source§impl Clone for UpdateApiKeyInput
impl Clone for UpdateApiKeyInput
source§fn clone(&self) -> UpdateApiKeyInput
fn clone(&self) -> UpdateApiKeyInput
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