aws_sdk_iotwireless/client/create_fuota_task.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 [`CreateFuotaTask`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::set_name):<br>required: **false**<br><p>The name of a FUOTA task.</p><br>
7 /// - [`description(impl Into<String>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::set_description):<br>required: **false**<br><p>The description of the new resource.</p><br>
8 /// - [`client_request_token(impl Into<String>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::set_client_request_token):<br>required: **false**<br><p>Each resource must have a unique client request token. The client token is used to implement idempotency. It ensures that the request completes no more than one time. If you retry a request with the same token and the same parameters, the request will complete successfully. However, if you try to create a new resource using the same token but different parameters, an HTTP 409 conflict occurs. If you omit this value, AWS SDKs will automatically generate a unique client request. For more information about idempotency, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">Ensuring idempotency in Amazon EC2 API requests</a>.</p><br>
9 /// - [`lo_ra_wan(LoRaWanFuotaTask)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::lo_ra_wan) / [`set_lo_ra_wan(Option<LoRaWanFuotaTask>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::set_lo_ra_wan):<br>required: **false**<br><p>The LoRaWAN information used with a FUOTA task.</p><br>
10 /// - [`firmware_update_image(impl Into<String>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::firmware_update_image) / [`set_firmware_update_image(Option<String>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::set_firmware_update_image):<br>required: **true**<br><p>The S3 URI points to a firmware update image that is to be used with a FUOTA task.</p><br>
11 /// - [`firmware_update_role(impl Into<String>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::firmware_update_role) / [`set_firmware_update_role(Option<String>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::set_firmware_update_role):<br>required: **true**<br><p>The firmware update role that is to be used with a FUOTA task.</p><br>
12 /// - [`tags(Tag)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::set_tags):<br>required: **false**<br><p>The tag to attach to the specified resource. Tags are metadata that you can use to manage a resource.</p><br>
13 /// - [`redundancy_percent(i32)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::redundancy_percent) / [`set_redundancy_percent(Option<i32>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::set_redundancy_percent):<br>required: **false**<br><p>The percentage of the added fragments that are redundant. For example, if the size of the firmware image file is 100 bytes and the fragment size is 10 bytes, with <code>RedundancyPercent</code> set to 50(%), the final number of encoded fragments is (100 / 10) + (100 / 10 * 50%) = 15.</p><br>
14 /// - [`fragment_size_bytes(i32)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::fragment_size_bytes) / [`set_fragment_size_bytes(Option<i32>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::set_fragment_size_bytes):<br>required: **false**<br><p>The size of each fragment in bytes. This parameter is supported only for FUOTA tasks with multicast groups.</p><br>
15 /// - [`fragment_interval_ms(i32)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::fragment_interval_ms) / [`set_fragment_interval_ms(Option<i32>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::set_fragment_interval_ms):<br>required: **false**<br><p>The interval for sending fragments in milliseconds, rounded to the nearest second.</p><note> <p>This interval only determines the timing for when the Cloud sends down the fragments to yor device. There can be a delay for when your device will receive these fragments. This delay depends on the device's class and the communication delay with the cloud.</p> </note><br>
16 /// - [`descriptor(impl Into<String>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::descriptor) / [`set_descriptor(Option<String>)`](crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::set_descriptor):<br>required: **false**<br><p>The descriptor is the metadata about the file that is transferred to the device using FUOTA, such as the software version. It is a binary field encoded in base64.</p><br>
17 /// - On success, responds with [`CreateFuotaTaskOutput`](crate::operation::create_fuota_task::CreateFuotaTaskOutput) with field(s):
18 /// - [`arn(Option<String>)`](crate::operation::create_fuota_task::CreateFuotaTaskOutput::arn): <p>The arn of a FUOTA task.</p>
19 /// - [`id(Option<String>)`](crate::operation::create_fuota_task::CreateFuotaTaskOutput::id): <p>The ID of a FUOTA task.</p>
20 /// - On failure, responds with [`SdkError<CreateFuotaTaskError>`](crate::operation::create_fuota_task::CreateFuotaTaskError)
21 pub fn create_fuota_task(&self) -> crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder {
22 crate::operation::create_fuota_task::builders::CreateFuotaTaskFluentBuilder::new(self.handle.clone())
23 }
24}