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
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 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 | |