aws_sdk_iot/client/register_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 [`RegisterThing`](crate::operation::register_thing::builders::RegisterThingFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`template_body(impl Into<String>)`](crate::operation::register_thing::builders::RegisterThingFluentBuilder::template_body) / [`set_template_body(Option<String>)`](crate::operation::register_thing::builders::RegisterThingFluentBuilder::set_template_body):<br>required: **true**<br><p>The provisioning template. See <a href="https://docs.aws.amazon.com/iot/latest/developerguide/provision-w-cert.html">Provisioning Devices That Have Device Certificates</a> for more information.</p><br>
7 /// - [`parameters(impl Into<String>, impl Into<String>)`](crate::operation::register_thing::builders::RegisterThingFluentBuilder::parameters) / [`set_parameters(Option<HashMap::<String, String>>)`](crate::operation::register_thing::builders::RegisterThingFluentBuilder::set_parameters):<br>required: **false**<br><p>The parameters for provisioning a thing. See <a href="https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html">Provisioning Templates</a> for more information.</p><br>
8 /// - On success, responds with [`RegisterThingOutput`](crate::operation::register_thing::RegisterThingOutput) with field(s):
9 /// - [`certificate_pem(Option<String>)`](crate::operation::register_thing::RegisterThingOutput::certificate_pem): <p>The certificate data, in PEM format.</p>
10 /// - [`resource_arns(Option<HashMap::<String, String>>)`](crate::operation::register_thing::RegisterThingOutput::resource_arns): <p>ARNs for the generated resources.</p>
11 /// - On failure, responds with [`SdkError<RegisterThingError>`](crate::operation::register_thing::RegisterThingError)
12 pub fn register_thing(&self) -> crate::operation::register_thing::builders::RegisterThingFluentBuilder {
13 crate::operation::register_thing::builders::RegisterThingFluentBuilder::new(self.handle.clone())
14 }
15}