aws_sdk_iot1clickprojects/client/
create_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 [`CreatePlacement`](crate::operation::create_placement::builders::CreatePlacementFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`placement_name(impl Into<String>)`](crate::operation::create_placement::builders::CreatePlacementFluentBuilder::placement_name) / [`set_placement_name(Option<String>)`](crate::operation::create_placement::builders::CreatePlacementFluentBuilder::set_placement_name):<br>required: **true**<br><p>The name of the placement to be created.</p><br>
7    ///   - [`project_name(impl Into<String>)`](crate::operation::create_placement::builders::CreatePlacementFluentBuilder::project_name) / [`set_project_name(Option<String>)`](crate::operation::create_placement::builders::CreatePlacementFluentBuilder::set_project_name):<br>required: **true**<br><p>The name of the project in which to create the placement.</p><br>
8    ///   - [`attributes(impl Into<String>, impl Into<String>)`](crate::operation::create_placement::builders::CreatePlacementFluentBuilder::attributes) / [`set_attributes(Option<HashMap::<String, String>>)`](crate::operation::create_placement::builders::CreatePlacementFluentBuilder::set_attributes):<br>required: **false**<br><p>Optional user-defined key/value pairs providing contextual data (such as location or function) for the placement.</p><br>
9    /// - On success, responds with [`CreatePlacementOutput`](crate::operation::create_placement::CreatePlacementOutput)
10    /// - On failure, responds with [`SdkError<CreatePlacementError>`](crate::operation::create_placement::CreatePlacementError)
11    pub fn create_placement(&self) -> crate::operation::create_placement::builders::CreatePlacementFluentBuilder {
12        crate::operation::create_placement::builders::CreatePlacementFluentBuilder::new(self.handle.clone())
13    }
14}