aws_sdk_quicksight/client/
update_dashboard.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 [`UpdateDashboard`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`aws_account_id(impl Into<String>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::aws_account_id) / [`set_aws_account_id(Option<String>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::set_aws_account_id):<br>required: **true**<br><p>The ID of the Amazon Web Services account that contains the dashboard that you're updating.</p><br>
7    ///   - [`dashboard_id(impl Into<String>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::dashboard_id) / [`set_dashboard_id(Option<String>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::set_dashboard_id):<br>required: **true**<br><p>The ID for the dashboard.</p><br>
8    ///   - [`name(impl Into<String>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::set_name):<br>required: **true**<br><p>The display name of the dashboard.</p><br>
9    ///   - [`source_entity(DashboardSourceEntity)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::source_entity) / [`set_source_entity(Option<DashboardSourceEntity>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::set_source_entity):<br>required: **false**<br><p>The entity that you are using as a source when you update the dashboard. In <code>SourceEntity</code>, you specify the type of object you're using as source. You can only update a dashboard from a template, so you use a <code>SourceTemplate</code> entity. If you need to update a dashboard from an analysis, first convert the analysis to a template by using the <code> <a href="https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CreateTemplate.html">CreateTemplate</a> </code> API operation. For <code>SourceTemplate</code>, specify the Amazon Resource Name (ARN) of the source template. The <code>SourceTemplate</code> ARN can contain any Amazon Web Services account and any Amazon QuickSight-supported Amazon Web Services Region.</p> <p>Use the <code>DataSetReferences</code> entity within <code>SourceTemplate</code> to list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder.</p><br>
10    ///   - [`parameters(Parameters)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::parameters) / [`set_parameters(Option<Parameters>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::set_parameters):<br>required: **false**<br><p>A structure that contains the parameters of the dashboard. These are parameter overrides for a dashboard. A dashboard can have any type of parameters, and some parameters might accept multiple values.</p><br>
11    ///   - [`version_description(impl Into<String>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::version_description) / [`set_version_description(Option<String>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::set_version_description):<br>required: **false**<br><p>A description for the first version of the dashboard being created.</p><br>
12    ///   - [`dashboard_publish_options(DashboardPublishOptions)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::dashboard_publish_options) / [`set_dashboard_publish_options(Option<DashboardPublishOptions>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::set_dashboard_publish_options):<br>required: **false**<br><p>Options for publishing the dashboard when you create it:</p> <ul>  <li>   <p><code>AvailabilityStatus</code> for <code>AdHocFilteringOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. When this is set to <code>DISABLED</code>, Amazon QuickSight disables the left filter pane on the published dashboard, which can be used for ad hoc (one-time) filtering. This option is <code>ENABLED</code> by default.</p></li>  <li>   <p><code>AvailabilityStatus</code> for <code>ExportToCSVOption</code> - This status can be either <code>ENABLED</code> or <code>DISABLED</code>. The visual option to export data to .CSV format isn't enabled when this is set to <code>DISABLED</code>. This option is <code>ENABLED</code> by default.</p></li>  <li>   <p><code>VisibilityState</code> for <code>SheetControlsOption</code> - This visibility state can be either <code>COLLAPSED</code> or <code>EXPANDED</code>. This option is <code>COLLAPSED</code> by default.</p></li> </ul><br>
13    ///   - [`theme_arn(impl Into<String>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::theme_arn) / [`set_theme_arn(Option<String>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::set_theme_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If you add a value for this field, it overrides the value that was originally associated with the entity. The theme ARN must exist in the same Amazon Web Services account where you create the dashboard.</p><br>
14    ///   - [`definition(DashboardVersionDefinition)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::definition) / [`set_definition(Option<DashboardVersionDefinition>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::set_definition):<br>required: **false**<br><p>The definition of a dashboard.</p> <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p><br>
15    ///   - [`validation_strategy(ValidationStrategy)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::validation_strategy) / [`set_validation_strategy(Option<ValidationStrategy>)`](crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::set_validation_strategy):<br>required: **false**<br><p>The option to relax the validation needed to update a dashboard with definition objects. This skips the validation step for specific errors.</p><br>
16    /// - On success, responds with [`UpdateDashboardOutput`](crate::operation::update_dashboard::UpdateDashboardOutput) with field(s):
17    ///   - [`arn(Option<String>)`](crate::operation::update_dashboard::UpdateDashboardOutput::arn): <p>The Amazon Resource Name (ARN) of the resource.</p>
18    ///   - [`version_arn(Option<String>)`](crate::operation::update_dashboard::UpdateDashboardOutput::version_arn): <p>The ARN of the dashboard, including the version number.</p>
19    ///   - [`dashboard_id(Option<String>)`](crate::operation::update_dashboard::UpdateDashboardOutput::dashboard_id): <p>The ID for the dashboard.</p>
20    ///   - [`creation_status(Option<ResourceStatus>)`](crate::operation::update_dashboard::UpdateDashboardOutput::creation_status): <p>The creation status of the request.</p>
21    ///   - [`status(i32)`](crate::operation::update_dashboard::UpdateDashboardOutput::status): <p>The HTTP status of the request.</p>
22    ///   - [`request_id(Option<String>)`](crate::operation::update_dashboard::UpdateDashboardOutput::request_id): <p>The Amazon Web Services request ID for this operation.</p>
23    /// - On failure, responds with [`SdkError<UpdateDashboardError>`](crate::operation::update_dashboard::UpdateDashboardError)
24    pub fn update_dashboard(&self) -> crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder {
25        crate::operation::update_dashboard::builders::UpdateDashboardFluentBuilder::new(self.handle.clone())
26    }
27}