import_workspace_media
async
¶
import_workspace_media(
instance_id: InstanceId,
workspace_id: WorkspaceId,
media_type: MediaType,
media_source: MediaSource,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
) -> ImportWorkspaceMediaResponse
Imports a media asset (such as a logo) for use in a workspace.
Parameters:
-
instance_id(InstanceId) –The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
workspace_id(WorkspaceId) –The identifier of the workspace.
-
media_type(MediaType) –The type of media. Valid values are:
IMAGE_LOGO_FAVICONandIMAGE_LOGO_HORIZONTAL. -
media_source(MediaSource) –The media source. Can be an S3 presigned URL or a base64-encoded string.
Raises:
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 | |