| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IVS.PutMetadata
Description
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.
Synopsis
- data PutMetadata = PutMetadata' {
- channelArn :: Text
- metadata :: Sensitive Text
- newPutMetadata :: Text -> Text -> PutMetadata
- putMetadata_channelArn :: Lens' PutMetadata Text
- putMetadata_metadata :: Lens' PutMetadata Text
- data PutMetadataResponse = PutMetadataResponse' {
- newPutMetadataResponse :: PutMetadataResponse
Creating a Request
data PutMetadata Source #
See: newPutMetadata smart constructor.
Constructors
| PutMetadata' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> PutMetadata |
Create a value of PutMetadata with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
PutMetadata, putMetadata_channelArn - ARN of the channel into which metadata is inserted. This channel must
have an active stream.
$sel:metadata:PutMetadata', putMetadata_metadata - Metadata to insert into the stream. Maximum: 1 KB per request.
Request Lenses
putMetadata_channelArn :: Lens' PutMetadata Text Source #
ARN of the channel into which metadata is inserted. This channel must have an active stream.
putMetadata_metadata :: Lens' PutMetadata Text Source #
Metadata to insert into the stream. Maximum: 1 KB per request.
Destructuring the Response
data PutMetadataResponse Source #
See: newPutMetadataResponse smart constructor.
Constructors
| PutMetadataResponse' | |
Instances
| Generic PutMetadataResponse Source # | |
Defined in Amazonka.IVS.PutMetadata Associated Types type Rep PutMetadataResponse :: Type -> Type # Methods from :: PutMetadataResponse -> Rep PutMetadataResponse x # to :: Rep PutMetadataResponse x -> PutMetadataResponse # | |
| Read PutMetadataResponse Source # | |
Defined in Amazonka.IVS.PutMetadata Methods readsPrec :: Int -> ReadS PutMetadataResponse # readList :: ReadS [PutMetadataResponse] # | |
| Show PutMetadataResponse Source # | |
Defined in Amazonka.IVS.PutMetadata Methods showsPrec :: Int -> PutMetadataResponse -> ShowS # show :: PutMetadataResponse -> String # showList :: [PutMetadataResponse] -> ShowS # | |
| NFData PutMetadataResponse Source # | |
Defined in Amazonka.IVS.PutMetadata Methods rnf :: PutMetadataResponse -> () # | |
| Eq PutMetadataResponse Source # | |
Defined in Amazonka.IVS.PutMetadata Methods (==) :: PutMetadataResponse -> PutMetadataResponse -> Bool # (/=) :: PutMetadataResponse -> PutMetadataResponse -> Bool # | |
| type Rep PutMetadataResponse Source # | |
newPutMetadataResponse :: PutMetadataResponse Source #
Create a value of PutMetadataResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.