aws_sdk_iotfleetwise/client/update_state_template.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 [`UpdateStateTemplate`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`identifier(impl Into<String>)`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::set_identifier):<br>required: **true**<br><p>A unique, service-generated identifier.</p><br>
7 /// - [`description(impl Into<String>)`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::set_description):<br>required: **false**<br><p>A brief description of the state template.</p><br>
8 /// - [`state_template_properties_to_add(impl Into<String>)`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::state_template_properties_to_add) / [`set_state_template_properties_to_add(Option<Vec::<String>>)`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::set_state_template_properties_to_add):<br>required: **false**<br><p>Add signals from which data is collected as part of the state template.</p><br>
9 /// - [`state_template_properties_to_remove(impl Into<String>)`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::state_template_properties_to_remove) / [`set_state_template_properties_to_remove(Option<Vec::<String>>)`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::set_state_template_properties_to_remove):<br>required: **false**<br><p>Remove signals from which data is collected as part of the state template.</p><br>
10 /// - [`data_extra_dimensions(impl Into<String>)`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::data_extra_dimensions) / [`set_data_extra_dimensions(Option<Vec::<String>>)`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::set_data_extra_dimensions):<br>required: **false**<br><p>A list of vehicle attributes to associate with the payload published on the state template's MQTT topic. (See <a href="https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/process-visualize-data.html#process-last-known-state-vehicle-data"> Processing last known state vehicle data using MQTT messaging</a>). For example, if you add <code>Vehicle.Attributes.Make</code> and <code>Vehicle.Attributes.Model</code> attributes, Amazon Web Services IoT FleetWise will enrich the protobuf encoded payload with those attributes in the <code>extraDimensions</code> field.</p> <p>Default: An empty array</p><br>
11 /// - [`metadata_extra_dimensions(impl Into<String>)`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::metadata_extra_dimensions) / [`set_metadata_extra_dimensions(Option<Vec::<String>>)`](crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::set_metadata_extra_dimensions):<br>required: **false**<br><p>A list of vehicle attributes to associate with user properties of the messages published on the state template's MQTT topic. (See <a href="https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/process-visualize-data.html#process-last-known-state-vehicle-data"> Processing last known state vehicle data using MQTT messaging</a>). For example, if you add <code>Vehicle.Attributes.Make</code> and <code>Vehicle.Attributes.Model</code> attributes, Amazon Web Services IoT FleetWise will include these attributes as User Properties with the MQTT message.</p><br>
12 /// - On success, responds with [`UpdateStateTemplateOutput`](crate::operation::update_state_template::UpdateStateTemplateOutput) with field(s):
13 /// - [`name(Option<String>)`](crate::operation::update_state_template::UpdateStateTemplateOutput::name): <p>The name of the state template.</p>
14 /// - [`arn(Option<String>)`](crate::operation::update_state_template::UpdateStateTemplateOutput::arn): <p>The Amazon Resource Name (ARN) of the state template.</p>
15 /// - [`id(Option<String>)`](crate::operation::update_state_template::UpdateStateTemplateOutput::id): <p>The unique ID of the state template.</p>
16 /// - On failure, responds with [`SdkError<UpdateStateTemplateError>`](crate::operation::update_state_template::UpdateStateTemplateError)
17 pub fn update_state_template(&self) -> crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder {
18 crate::operation::update_state_template::builders::UpdateStateTemplateFluentBuilder::new(self.handle.clone())
19 }
20}