create_theme
¶
create_theme(
aws_account_id: AwsAccountId,
theme_id: ShortRestrictiveResourceId,
name: ThemeName,
base_theme_id: ShortRestrictiveResourceId,
configuration: ThemeConfiguration,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
version_description: Optional[VersionDescription] = None,
permissions: Optional[ResourcePermissionList] = None,
tags: Optional[TagList] = None,
) -> CreateThemeResponse
Creates a theme.
A theme is set of configuration options for color and layout. Themes apply to analyses and dashboards. For more information, see Using Themes in Amazon Quick Sight in the Amazon Quick Sight User Guide.
Parameters:
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account where you want to store the new theme.
-
theme_id(ShortRestrictiveResourceId) –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.
-
name(ThemeName) –A display name for the theme.
-
base_theme_id(ShortRestrictiveResourceId) –The ID of the theme that a custom theme will inherit from. All themes inherit from one of the starting themes defined by Amazon Quick Sight. For a list of the starting themes, use
ListThemesor choose Themes from within an analysis. -
version_description(Optional[VersionDescription], default:None) –A description of the first version of the theme that you're creating. Every time
UpdateThemeis called, a new version is created. Each version of the theme has a description of the version in theVersionDescriptionfield. -
configuration(ThemeConfiguration) –The theme configuration, which contains the theme display properties.
-
permissions(Optional[ResourcePermissionList], default:None) –A valid grouping of resource permissions to apply to the new theme.
-
tags(Optional[TagList], default:None) –A map of the key-value pairs for the resource tag or tags that you want to add to the resource.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
LimitExceededException–A limit is exceeded.
-
ResourceExistsException–The resource specified already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnsupportedUserEditionException–This error indicates that you are calling an operation on an Amazon Quick Suite subscription where the edition doesn't include support for that operation. Amazon Quick Suite currently has Standard Edition and Enterprise Edition. Not every operation and capability is available in every edition.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/quick_sight.py
3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 | |