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 |
Deletes a Kinesis video stream and the data contained in the stream.
This method marks the stream for deletion, and makes the data in the stream inaccessible immediately.
To ensure that you have the latest version of the stream before deleting 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.
This operation requires permission for the KinesisVideo:DeleteStream
action.
Creating a Request
Creates a value of DeleteStream
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dsCurrentVersion
- Optional: The version of the stream that you want to delete. Specify the version as a safeguard to ensure that your are deleting the correct stream. To get the stream version, use theDescribeStream
API. If not specified, only theCreationTime
is checked before deleting the stream.dsStreamARN
- The Amazon Resource Name (ARN) of the stream that you want to delete.
data DeleteStream Source #
See: deleteStream
smart constructor.
Request Lenses
dsCurrentVersion :: Lens' DeleteStream (Maybe Text) Source #
Optional: The version of the stream that you want to delete. Specify the version as a safeguard to ensure that your are deleting the correct stream. To get the stream version, use the DescribeStream
API. If not specified, only the CreationTime
is checked before deleting the stream.
dsStreamARN :: Lens' DeleteStream Text Source #
The Amazon Resource Name (ARN) of the stream that you want to delete.
Destructuring the Response
Creates a value of DeleteStreamResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dsrsResponseStatus
- -- | The response status code.
data DeleteStreamResponse Source #
See: deleteStreamResponse
smart constructor.
Response Lenses
dsrsResponseStatus :: Lens' DeleteStreamResponse Int Source #
- - | The response status code.