1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RegisterThing`](crate::operation::register_thing::builders::RegisterThingFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`RegisterThingOutput`](crate::operation::register_thing::RegisterThingOutput) with field(s):
    ///   - [`certificate_pem(Option<String>)`](crate::operation::register_thing::RegisterThingOutput::certificate_pem): <p>The certificate data, in PEM format.</p>
    ///   - [`resource_arns(Option<HashMap::<String, String>>)`](crate::operation::register_thing::RegisterThingOutput::resource_arns): <p>ARNs for the generated resources.</p>
    /// - On failure, responds with [`SdkError<RegisterThingError>`](crate::operation::register_thing::RegisterThingError)
    pub fn register_thing(&self) -> crate::operation::register_thing::builders::RegisterThingFluentBuilder {
        crate::operation::register_thing::builders::RegisterThingFluentBuilder::new(self.handle.clone())
    }
}