Struct aws_sdk_iot::input::DeleteOtaUpdateInput
source · #[non_exhaustive]pub struct DeleteOtaUpdateInput { /* private fields */ }
Implementations§
source§impl DeleteOtaUpdateInput
impl DeleteOtaUpdateInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteOTAUpdate, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteOTAUpdate, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteOTAUpdate
>
Examples found in repository?
src/client.rs (line 10096)
10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteOTAUpdate,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteOTAUpdateError>,
> {
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::DeleteOtaUpdateOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteOTAUpdateError>,
> {
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 DeleteOtaUpdateInput
.
source§impl DeleteOtaUpdateInput
impl DeleteOtaUpdateInput
sourcepub fn ota_update_id(&self) -> Option<&str>
pub fn ota_update_id(&self) -> Option<&str>
The ID of the OTA update to delete.
sourcepub fn delete_stream(&self) -> bool
pub fn delete_stream(&self) -> bool
When true, the stream created by the OTAUpdate process is deleted when the OTA update is deleted. Ignored if the stream specified in the OTAUpdate is supplied by the user.
sourcepub fn force_delete_aws_job(&self) -> bool
pub fn force_delete_aws_job(&self) -> bool
When true, deletes the IoT job created by the OTAUpdate process even if it is "IN_PROGRESS". Otherwise, if the job is not in a terminal state ("COMPLETED" or "CANCELED") an exception will occur. The default is false.
Trait Implementations§
source§impl Clone for DeleteOtaUpdateInput
impl Clone for DeleteOtaUpdateInput
source§fn clone(&self) -> DeleteOtaUpdateInput
fn clone(&self) -> DeleteOtaUpdateInput
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