aws_sdk_quicksight/client/
create_theme.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 [`CreateTheme`](crate::operation::create_theme::builders::CreateThemeFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`aws_account_id(impl Into<String>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::aws_account_id) / [`set_aws_account_id(Option<String>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::set_aws_account_id):<br>required: **true**<br><p>The ID of the Amazon Web Services account where you want to store the new theme.</p><br>
7    ///   - [`theme_id(impl Into<String>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::theme_id) / [`set_theme_id(Option<String>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::set_theme_id):<br>required: **true**<br><p>An ID for the theme that you want to create. The theme ID is unique per Amazon Web Services Region in each Amazon Web Services account.</p><br>
8    ///   - [`name(impl Into<String>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::set_name):<br>required: **true**<br><p>A display name for the theme.</p><br>
9    ///   - [`base_theme_id(impl Into<String>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::base_theme_id) / [`set_base_theme_id(Option<String>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::set_base_theme_id):<br>required: **true**<br><p>The ID of the theme that a custom theme will inherit from. All themes inherit from one of the starting themes defined by Amazon QuickSight. For a list of the starting themes, use <code>ListThemes</code> or choose <b>Themes</b> from within an analysis.</p><br>
10    ///   - [`version_description(impl Into<String>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::version_description) / [`set_version_description(Option<String>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::set_version_description):<br>required: **false**<br><p>A description of the first version of the theme that you're creating. Every time <code>UpdateTheme</code> is called, a new version is created. Each version of the theme has a description of the version in the <code>VersionDescription</code> field.</p><br>
11    ///   - [`configuration(ThemeConfiguration)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::configuration) / [`set_configuration(Option<ThemeConfiguration>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::set_configuration):<br>required: **true**<br><p>The theme configuration, which contains the theme display properties.</p><br>
12    ///   - [`permissions(ResourcePermission)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::permissions) / [`set_permissions(Option<Vec::<ResourcePermission>>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::set_permissions):<br>required: **false**<br><p>A valid grouping of resource permissions to apply to the new theme.</p><br>
13    ///   - [`tags(Tag)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_theme::builders::CreateThemeFluentBuilder::set_tags):<br>required: **false**<br><p>A map of the key-value pairs for the resource tag or tags that you want to add to the resource.</p><br>
14    /// - On success, responds with [`CreateThemeOutput`](crate::operation::create_theme::CreateThemeOutput) with field(s):
15    ///   - [`arn(Option<String>)`](crate::operation::create_theme::CreateThemeOutput::arn): <p>The Amazon Resource Name (ARN) for the theme.</p>
16    ///   - [`version_arn(Option<String>)`](crate::operation::create_theme::CreateThemeOutput::version_arn): <p>The Amazon Resource Name (ARN) for the new theme.</p>
17    ///   - [`theme_id(Option<String>)`](crate::operation::create_theme::CreateThemeOutput::theme_id): <p>The ID of the theme.</p>
18    ///   - [`creation_status(Option<ResourceStatus>)`](crate::operation::create_theme::CreateThemeOutput::creation_status): <p>The theme creation status.</p>
19    ///   - [`status(i32)`](crate::operation::create_theme::CreateThemeOutput::status): <p>The HTTP status of the request.</p>
20    ///   - [`request_id(Option<String>)`](crate::operation::create_theme::CreateThemeOutput::request_id): <p>The Amazon Web Services request ID for this operation.</p>
21    /// - On failure, responds with [`SdkError<CreateThemeError>`](crate::operation::create_theme::CreateThemeError)
22    pub fn create_theme(&self) -> crate::operation::create_theme::builders::CreateThemeFluentBuilder {
23        crate::operation::create_theme::builders::CreateThemeFluentBuilder::new(self.handle.clone())
24    }
25}