aws_sdk_iot/client/update_dimension.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 [`UpdateDimension`](crate::operation::update_dimension::builders::UpdateDimensionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::update_dimension::builders::UpdateDimensionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_dimension::builders::UpdateDimensionFluentBuilder::set_name):<br>required: **true**<br><p>A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.</p><br>
7 /// - [`string_values(impl Into<String>)`](crate::operation::update_dimension::builders::UpdateDimensionFluentBuilder::string_values) / [`set_string_values(Option<Vec::<String>>)`](crate::operation::update_dimension::builders::UpdateDimensionFluentBuilder::set_string_values):<br>required: **true**<br><p>Specifies the value or list of values for the dimension. For <code>TOPIC_FILTER</code> dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").</p><br>
8 /// - On success, responds with [`UpdateDimensionOutput`](crate::operation::update_dimension::UpdateDimensionOutput) with field(s):
9 /// - [`name(Option<String>)`](crate::operation::update_dimension::UpdateDimensionOutput::name): <p>A unique identifier for the dimension.</p>
10 /// - [`arn(Option<String>)`](crate::operation::update_dimension::UpdateDimensionOutput::arn): <p>The Amazon Resource Name (ARN)of the created dimension.</p>
11 /// - [`r#type(Option<DimensionType>)`](crate::operation::update_dimension::UpdateDimensionOutput::type): <p>The type of the dimension.</p>
12 /// - [`string_values(Option<Vec::<String>>)`](crate::operation::update_dimension::UpdateDimensionOutput::string_values): <p>The value or list of values used to scope the dimension. For example, for topic filters, this is the pattern used to match the MQTT topic name.</p>
13 /// - [`creation_date(Option<DateTime>)`](crate::operation::update_dimension::UpdateDimensionOutput::creation_date): <p>The date and time, in milliseconds since epoch, when the dimension was initially created.</p>
14 /// - [`last_modified_date(Option<DateTime>)`](crate::operation::update_dimension::UpdateDimensionOutput::last_modified_date): <p>The date and time, in milliseconds since epoch, when the dimension was most recently updated.</p>
15 /// - On failure, responds with [`SdkError<UpdateDimensionError>`](crate::operation::update_dimension::UpdateDimensionError)
16 pub fn update_dimension(&self) -> crate::operation::update_dimension::builders::UpdateDimensionFluentBuilder {
17 crate::operation::update_dimension::builders::UpdateDimensionFluentBuilder::new(self.handle.clone())
18 }
19}