Struct aws_sdk_iot::input::DeleteRegistrationCodeInput
source · #[non_exhaustive]pub struct DeleteRegistrationCodeInput {}
Expand description
The input for the DeleteRegistrationCode operation.
Implementations§
source§impl DeleteRegistrationCodeInput
impl DeleteRegistrationCodeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteRegistrationCode, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteRegistrationCode, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteRegistrationCode
>
Examples found in repository?
src/client.rs (line 10523)
10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteRegistrationCode,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteRegistrationCodeError>,
> {
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::DeleteRegistrationCodeOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteRegistrationCodeError>,
> {
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 DeleteRegistrationCodeInput
.
Trait Implementations§
source§impl Clone for DeleteRegistrationCodeInput
impl Clone for DeleteRegistrationCodeInput
source§fn clone(&self) -> DeleteRegistrationCodeInput
fn clone(&self) -> DeleteRegistrationCodeInput
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