aws_sdk_iotdataplane/client/
get_thing_shadow.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 [`GetThingShadow`](crate::operation::get_thing_shadow::builders::GetThingShadowFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`thing_name(impl Into<String>)`](crate::operation::get_thing_shadow::builders::GetThingShadowFluentBuilder::thing_name) / [`set_thing_name(Option<String>)`](crate::operation::get_thing_shadow::builders::GetThingShadowFluentBuilder::set_thing_name):<br>required: **true**<br><p>The name of the thing.</p><br>
7    ///   - [`shadow_name(impl Into<String>)`](crate::operation::get_thing_shadow::builders::GetThingShadowFluentBuilder::shadow_name) / [`set_shadow_name(Option<String>)`](crate::operation::get_thing_shadow::builders::GetThingShadowFluentBuilder::set_shadow_name):<br>required: **false**<br><p>The name of the shadow.</p><br>
8    /// - On success, responds with [`GetThingShadowOutput`](crate::operation::get_thing_shadow::GetThingShadowOutput) with field(s):
9    ///   - [`payload(Option<Blob>)`](crate::operation::get_thing_shadow::GetThingShadowOutput::payload): <p>The state information, in JSON format.</p>
10    /// - On failure, responds with [`SdkError<GetThingShadowError>`](crate::operation::get_thing_shadow::GetThingShadowError)
11    pub fn get_thing_shadow(&self) -> crate::operation::get_thing_shadow::builders::GetThingShadowFluentBuilder {
12        crate::operation::get_thing_shadow::builders::GetThingShadowFluentBuilder::new(self.handle.clone())
13    }
14}