| 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 |
Network.AWS.IoT.UpdateStream
Description
Updates an existing stream. The stream version will be incremented by one.
Synopsis
- updateStream :: Text -> UpdateStream
- data UpdateStream
- usFiles :: Lens' UpdateStream (Maybe (NonEmpty StreamFile))
- usDescription :: Lens' UpdateStream (Maybe Text)
- usRoleARN :: Lens' UpdateStream (Maybe Text)
- usStreamId :: Lens' UpdateStream Text
- updateStreamResponse :: Int -> UpdateStreamResponse
- data UpdateStreamResponse
- usrsStreamVersion :: Lens' UpdateStreamResponse (Maybe Natural)
- usrsStreamARN :: Lens' UpdateStreamResponse (Maybe Text)
- usrsDescription :: Lens' UpdateStreamResponse (Maybe Text)
- usrsStreamId :: Lens' UpdateStreamResponse (Maybe Text)
- usrsResponseStatus :: Lens' UpdateStreamResponse Int
Creating a Request
Arguments
| :: Text | |
| -> UpdateStream |
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:
usFiles- The files associated with the stream.usDescription- The description of the stream.usRoleARN- An IAM role that allows the IoT service principal assumes to access your S3 files.usStreamId- The stream ID.
data UpdateStream Source #
See: updateStream smart constructor.
Instances
Request Lenses
usFiles :: Lens' UpdateStream (Maybe (NonEmpty StreamFile)) Source #
The files associated with the stream.
usDescription :: Lens' UpdateStream (Maybe Text) Source #
The description of the stream.
usRoleARN :: Lens' UpdateStream (Maybe Text) Source #
An IAM role that allows the IoT service principal assumes to access your S3 files.
usStreamId :: Lens' UpdateStream Text Source #
The stream ID.
Destructuring the Response
Arguments
| :: Int | |
| -> UpdateStreamResponse |
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:
usrsStreamVersion- The stream version.usrsStreamARN- The stream ARN.usrsDescription- A description of the stream.usrsStreamId- The stream ID.usrsResponseStatus- -- | The response status code.
data UpdateStreamResponse Source #
See: updateStreamResponse smart constructor.
Instances
Response Lenses
usrsStreamVersion :: Lens' UpdateStreamResponse (Maybe Natural) Source #
The stream version.
usrsStreamARN :: Lens' UpdateStreamResponse (Maybe Text) Source #
The stream ARN.
usrsDescription :: Lens' UpdateStreamResponse (Maybe Text) Source #
A description of the stream.
usrsStreamId :: Lens' UpdateStreamResponse (Maybe Text) Source #
The stream ID.
usrsResponseStatus :: Lens' UpdateStreamResponse Int Source #
- - | The response status code.