create_theme
async
¶
create_theme(
aws_account_id: AwsAccountId,
theme_id: ShortRestrictiveResourceId,
name: ThemeName,
base_theme_id: ShortRestrictiveResourceId,
configuration: ThemeConfiguration,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = 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/async_quick_sight.py
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 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 | |