put_metadata
async
¶
put_metadata(
channel_arn: ChannelArn,
metadata: StreamMetadata,
*,
config_overrides: Optional[AsyncivsClientConfig] = None,
) -> None
Inserts metadata into the active stream of the specified channel. At most 5 requests per second per channel are allowed, each with a maximum 1 KB payload. (If 5 TPS is not sufficient for your needs, we recommend batching your data into a single PutMetadata call.) At most 155 requests per second per account are allowed. Also see Embedding Metadata within a Video Stream in the Amazon IVS User Guide.
Parameters:
-
channel_arn(ChannelArn) –ARN of the channel into which metadata is inserted. This channel must have an active stream.
-
metadata(StreamMetadata) –Metadata to insert into the stream. Maximum: 1 KB per request.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
ChannelNotBroadcasting–The stream is offline for the given channel ARN.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.