1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateDashboard`](crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`project_id(impl Into<String>)`](crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder::project_id) / [`set_project_id(Option<String>)`](crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder::set_project_id):<br>required: **true**<br><p>The ID of the project in which to create the dashboard.</p><br>
    ///   - [`dashboard_name(impl Into<String>)`](crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder::dashboard_name) / [`set_dashboard_name(Option<String>)`](crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder::set_dashboard_name):<br>required: **true**<br><p>A friendly name for the dashboard.</p><br>
    ///   - [`dashboard_description(impl Into<String>)`](crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder::dashboard_description) / [`set_dashboard_description(Option<String>)`](crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder::set_dashboard_description):<br>required: **false**<br><p>A description for the dashboard.</p><br>
    ///   - [`dashboard_definition(impl Into<String>)`](crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder::dashboard_definition) / [`set_dashboard_definition(Option<String>)`](crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder::set_dashboard_definition):<br>required: **true**<br><p>The dashboard definition specified in a JSON literal. For detailed information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-dashboards-using-aws-cli.html">Creating dashboards (CLI)</a> in the <i>IoT SiteWise User Guide</i>.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder::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_dashboard::builders::CreateDashboardFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder::set_tags):<br>required: **false**<br><p>A list of key-value pairs that contain metadata for the dashboard. 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 [`CreateDashboardOutput`](crate::operation::create_dashboard::CreateDashboardOutput) with field(s):
    ///   - [`dashboard_id(String)`](crate::operation::create_dashboard::CreateDashboardOutput::dashboard_id): <p>The ID of the dashboard.</p>
    ///   - [`dashboard_arn(String)`](crate::operation::create_dashboard::CreateDashboardOutput::dashboard_arn): <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the dashboard, which has the following format.</p> <p><code>arn:${Partition}:iotsitewise:${Region}:${Account}:dashboard/${DashboardId}</code></p>
    /// - On failure, responds with [`SdkError<CreateDashboardError>`](crate::operation::create_dashboard::CreateDashboardError)
    pub fn create_dashboard(&self) -> crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder {
        crate::operation::create_dashboard::builders::CreateDashboardFluentBuilder::new(self.handle.clone())
    }
}