Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Updates stream metadata, such as the device name and media type.
You must provide the stream name or the Amazon Resource Name (ARN) of the stream.
To make sure that you have the latest version of the stream before updating it, you can specify the stream version. Kinesis Video Streams assigns a version to each stream. When you update a stream, Kinesis Video Streams assigns a new version number. To get the latest stream version, use the DescribeStream
API.
UpdateStream
is an asynchronous operation, and takes time to complete.
- updateStream :: Text -> UpdateStream
- data UpdateStream
- uMediaType :: Lens' UpdateStream (Maybe Text)
- uStreamARN :: Lens' UpdateStream (Maybe Text)
- uDeviceName :: Lens' UpdateStream (Maybe Text)
- uStreamName :: Lens' UpdateStream (Maybe Text)
- uCurrentVersion :: Lens' UpdateStream Text
- updateStreamResponse :: Int -> UpdateStreamResponse
- data UpdateStreamResponse
- usrsResponseStatus :: Lens' UpdateStreamResponse Int
Creating a Request
Creates a value of UpdateStream
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uMediaType
- The stream's media type. UseMediaType
to specify the type of content that the stream contains to the consumers of the stream. For more information about media types, see Media Types . If you choose to specify theMediaType
, see Naming Requirements . To play video on the console, you must specify the correct video type. For example, if the video in the stream is H.264, specifyvideo/h264
as theMediaType
.uStreamARN
- The ARN of the stream whose metadata you want to update.uDeviceName
- The name of the device that is writing to the stream.uStreamName
- The name of the stream whose metadata you want to update. The stream name is an identifier for the stream, and must be unique for each account and region.uCurrentVersion
- The version of the stream whose metadata you want to update.
data UpdateStream Source #
See: updateStream
smart constructor.
Request Lenses
uMediaType :: Lens' UpdateStream (Maybe Text) Source #
The stream's media type. Use MediaType
to specify the type of content that the stream contains to the consumers of the stream. For more information about media types, see Media Types . If you choose to specify the MediaType
, see Naming Requirements . To play video on the console, you must specify the correct video type. For example, if the video in the stream is H.264, specify video/h264
as the MediaType
.
uStreamARN :: Lens' UpdateStream (Maybe Text) Source #
The ARN of the stream whose metadata you want to update.
uDeviceName :: Lens' UpdateStream (Maybe Text) Source #
The name of the device that is writing to the stream.
uStreamName :: Lens' UpdateStream (Maybe Text) Source #
The name of the stream whose metadata you want to update. The stream name is an identifier for the stream, and must be unique for each account and region.
uCurrentVersion :: Lens' UpdateStream Text Source #
The version of the stream whose metadata you want to update.
Destructuring the Response
Creates a value of UpdateStreamResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
usrsResponseStatus
- -- | The response status code.
data UpdateStreamResponse Source #
See: updateStreamResponse
smart constructor.
Response Lenses
usrsResponseStatus :: Lens' UpdateStreamResponse Int Source #
- - | The response status code.