aws_sdk_iot/client/
delete_thing.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 [`DeleteThing`](crate::operation::delete_thing::builders::DeleteThingFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`thing_name(impl Into<String>)`](crate::operation::delete_thing::builders::DeleteThingFluentBuilder::thing_name) / [`set_thing_name(Option<String>)`](crate::operation::delete_thing::builders::DeleteThingFluentBuilder::set_thing_name):<br>required: **true**<br><p>The name of the thing to delete.</p><br>
7    ///   - [`expected_version(i64)`](crate::operation::delete_thing::builders::DeleteThingFluentBuilder::expected_version) / [`set_expected_version(Option<i64>)`](crate::operation::delete_thing::builders::DeleteThingFluentBuilder::set_expected_version):<br>required: **false**<br><p>The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the <code>DeleteThing</code> request is rejected with a <code>VersionConflictException</code>.</p><br>
8    /// - On success, responds with [`DeleteThingOutput`](crate::operation::delete_thing::DeleteThingOutput)
9    /// - On failure, responds with [`SdkError<DeleteThingError>`](crate::operation::delete_thing::DeleteThingError)
10    pub fn delete_thing(&self) -> crate::operation::delete_thing::builders::DeleteThingFluentBuilder {
11        crate::operation::delete_thing::builders::DeleteThingFluentBuilder::new(self.handle.clone())
12    }
13}