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
4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 | |