aws_sdk_iot/client/
get_ota_update.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetOTAUpdate`](crate::operation::get_ota_update::builders::GetOTAUpdateFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`ota_update_id(impl Into<String>)`](crate::operation::get_ota_update::builders::GetOTAUpdateFluentBuilder::ota_update_id) / [`set_ota_update_id(Option<String>)`](crate::operation::get_ota_update::builders::GetOTAUpdateFluentBuilder::set_ota_update_id):<br>required: **true**<br><p>The OTA update ID.</p><br>
7    /// - On success, responds with [`GetOtaUpdateOutput`](crate::operation::get_ota_update::GetOtaUpdateOutput) with field(s):
8    ///   - [`ota_update_info(Option<OtaUpdateInfo>)`](crate::operation::get_ota_update::GetOtaUpdateOutput::ota_update_info): <p>The OTA update info.</p>
9    /// - On failure, responds with [`SdkError<GetOTAUpdateError>`](crate::operation::get_ota_update::GetOTAUpdateError)
10    pub fn get_ota_update(&self) -> crate::operation::get_ota_update::builders::GetOTAUpdateFluentBuilder {
11        crate::operation::get_ota_update::builders::GetOTAUpdateFluentBuilder::new(self.handle.clone())
12    }
13}