deleteWorkspaceMedia method
Deletes a media asset (such as a logo) from a workspace.
May throw InternalServiceException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter instanceId :
The identifier of the Amazon Connect instance. You can find
the instance ID in the Amazon Resource Name (ARN) of the instance.
Parameter mediaType :
The type of media to delete. Valid values are:
IMAGE_LOGO_FAVICON and IMAGE_LOGO_HORIZONTAL.
Parameter workspaceId :
The identifier of the workspace.
Implementation
Future<void> deleteWorkspaceMedia({
required String instanceId,
required MediaType mediaType,
required String workspaceId,
}) async {
final $query = <String, List<String>>{
'mediaType': [mediaType.value],
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/workspaces/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(workspaceId)}/media',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}