1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateProject`](crate::operation::create_project::builders::CreateProjectFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`portal_id(impl Into<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::portal_id) / [`set_portal_id(Option<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::set_portal_id):<br>required: **true**<br><p>The ID of the portal in which to create the project.</p><br>
    ///   - [`project_name(impl Into<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::project_name) / [`set_project_name(Option<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::set_project_name):<br>required: **true**<br><p>A friendly name for the project.</p><br>
    ///   - [`project_description(impl Into<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::project_description) / [`set_project_description(Option<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::set_project_description):<br>required: **false**<br><p>A description for the project.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::set_tags):<br>required: **false**<br><p>A list of key-value pairs that contain metadata for the project. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging your IoT SiteWise resources</a> in the <i>IoT SiteWise User Guide</i>.</p><br>
    /// - On success, responds with [`CreateProjectOutput`](crate::operation::create_project::CreateProjectOutput) with field(s):
    ///   - [`project_id(String)`](crate::operation::create_project::CreateProjectOutput::project_id): <p>The ID of the project.</p>
    ///   - [`project_arn(String)`](crate::operation::create_project::CreateProjectOutput::project_arn): <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the project, which has the following format.</p> <p><code>arn:${Partition}:iotsitewise:${Region}:${Account}:project/${ProjectId}</code></p>
    /// - On failure, responds with [`SdkError<CreateProjectError>`](crate::operation::create_project::CreateProjectError)
    pub fn create_project(&self) -> crate::operation::create_project::builders::CreateProjectFluentBuilder {
        crate::operation::create_project::builders::CreateProjectFluentBuilder::new(self.handle.clone())
    }
}