Struct aws_sdk_ec2::input::DeleteKeyPairInput
source · #[non_exhaustive]pub struct DeleteKeyPairInput { /* private fields */ }
Implementations§
source§impl DeleteKeyPairInput
impl DeleteKeyPairInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteKeyPair, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteKeyPair, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteKeyPair
>
Examples found in repository?
src/client.rs (line 27183)
27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteKeyPair,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteKeyPairError>,
> {
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::DeleteKeyPairOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteKeyPairError>,
> {
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 DeleteKeyPairInput
.
source§impl DeleteKeyPairInput
impl DeleteKeyPairInput
sourcepub fn key_pair_id(&self) -> Option<&str>
pub fn key_pair_id(&self) -> Option<&str>
The ID of the key pair.
Trait Implementations§
source§impl Clone for DeleteKeyPairInput
impl Clone for DeleteKeyPairInput
source§fn clone(&self) -> DeleteKeyPairInput
fn clone(&self) -> DeleteKeyPairInput
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