aws_sdk_iot1clickprojects/client/
associate_device_with_placement.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 [`AssociateDeviceWithPlacement`](crate::operation::associate_device_with_placement::builders::AssociateDeviceWithPlacementFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`project_name(impl Into<String>)`](crate::operation::associate_device_with_placement::builders::AssociateDeviceWithPlacementFluentBuilder::project_name) / [`set_project_name(Option<String>)`](crate::operation::associate_device_with_placement::builders::AssociateDeviceWithPlacementFluentBuilder::set_project_name):<br>required: **true**<br><p>The name of the project containing the placement in which to associate the device.</p><br>
7    ///   - [`placement_name(impl Into<String>)`](crate::operation::associate_device_with_placement::builders::AssociateDeviceWithPlacementFluentBuilder::placement_name) / [`set_placement_name(Option<String>)`](crate::operation::associate_device_with_placement::builders::AssociateDeviceWithPlacementFluentBuilder::set_placement_name):<br>required: **true**<br><p>The name of the placement in which to associate the device.</p><br>
8    ///   - [`device_id(impl Into<String>)`](crate::operation::associate_device_with_placement::builders::AssociateDeviceWithPlacementFluentBuilder::device_id) / [`set_device_id(Option<String>)`](crate::operation::associate_device_with_placement::builders::AssociateDeviceWithPlacementFluentBuilder::set_device_id):<br>required: **true**<br><p>The ID of the physical device to be associated with the given placement in the project. Note that a mandatory 4 character prefix is required for all <code>deviceId</code> values.</p><br>
9    ///   - [`device_template_name(impl Into<String>)`](crate::operation::associate_device_with_placement::builders::AssociateDeviceWithPlacementFluentBuilder::device_template_name) / [`set_device_template_name(Option<String>)`](crate::operation::associate_device_with_placement::builders::AssociateDeviceWithPlacementFluentBuilder::set_device_template_name):<br>required: **true**<br><p>The device template name to associate with the device ID.</p><br>
10    /// - On success, responds with [`AssociateDeviceWithPlacementOutput`](crate::operation::associate_device_with_placement::AssociateDeviceWithPlacementOutput)
11    /// - On failure, responds with [`SdkError<AssociateDeviceWithPlacementError>`](crate::operation::associate_device_with_placement::AssociateDeviceWithPlacementError)
12    pub fn associate_device_with_placement(
13        &self,
14    ) -> crate::operation::associate_device_with_placement::builders::AssociateDeviceWithPlacementFluentBuilder {
15        crate::operation::associate_device_with_placement::builders::AssociateDeviceWithPlacementFluentBuilder::new(self.handle.clone())
16    }
17}