Struct aws_sdk_iot::input::CreateOtaUpdateInput
source · #[non_exhaustive]pub struct CreateOtaUpdateInput { /* private fields */ }
Implementations§
source§impl CreateOtaUpdateInput
impl CreateOtaUpdateInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateOTAUpdate, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateOTAUpdate, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateOTAUpdate
>
Examples found in repository?
6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateOTAUpdate,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateOTAUpdateError>,
> {
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::CreateOtaUpdateOutput,
aws_smithy_http::result::SdkError<crate::error::CreateOTAUpdateError>,
> {
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 CreateOtaUpdateInput
.
source§impl CreateOtaUpdateInput
impl CreateOtaUpdateInput
sourcepub fn ota_update_id(&self) -> Option<&str>
pub fn ota_update_id(&self) -> Option<&str>
The ID of the OTA update to be created.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the OTA update.
sourcepub fn protocols(&self) -> Option<&[Protocol]>
pub fn protocols(&self) -> Option<&[Protocol]>
The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device can choose the protocol.
sourcepub fn target_selection(&self) -> Option<&TargetSelection>
pub fn target_selection(&self) -> Option<&TargetSelection>
Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.
sourcepub fn aws_job_executions_rollout_config(
&self
) -> Option<&AwsJobExecutionsRolloutConfig>
pub fn aws_job_executions_rollout_config(
&self
) -> Option<&AwsJobExecutionsRolloutConfig>
Configuration for the rollout of OTA updates.
sourcepub fn aws_job_presigned_url_config(&self) -> Option<&AwsJobPresignedUrlConfig>
pub fn aws_job_presigned_url_config(&self) -> Option<&AwsJobPresignedUrlConfig>
Configuration information for pre-signed URLs.
sourcepub fn aws_job_abort_config(&self) -> Option<&AwsJobAbortConfig>
pub fn aws_job_abort_config(&self) -> Option<&AwsJobAbortConfig>
The criteria that determine when and how a job abort takes place.
sourcepub fn aws_job_timeout_config(&self) -> Option<&AwsJobTimeoutConfig>
pub fn aws_job_timeout_config(&self) -> Option<&AwsJobTimeoutConfig>
Specifies the amount of time each device has to finish its execution of the job. A timer is started when the job execution status is set to IN_PROGRESS
. If the job execution status is not set to another terminal state before the timer expires, it will be automatically set to TIMED_OUT
.
sourcepub fn files(&self) -> Option<&[OtaUpdateFile]>
pub fn files(&self) -> Option<&[OtaUpdateFile]>
The files to be streamed by the OTA update.
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The IAM role that grants Amazon Web Services IoT Core access to the Amazon S3, IoT jobs and Amazon Web Services Code Signing resources to create an OTA update job.
sourcepub fn additional_parameters(&self) -> Option<&HashMap<String, String>>
pub fn additional_parameters(&self) -> Option<&HashMap<String, String>>
A list of additional OTA update parameters which are name-value pairs.
Metadata which can be used to manage updates.
Trait Implementations§
source§impl Clone for CreateOtaUpdateInput
impl Clone for CreateOtaUpdateInput
source§fn clone(&self) -> CreateOtaUpdateInput
fn clone(&self) -> CreateOtaUpdateInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more