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
13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 | |