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 |
Updates an existing stream. The stream version will be incremented by one.
Requires permission to access the UpdateStream action.
Synopsis
- data UpdateStream = UpdateStream' {}
- newUpdateStream :: Text -> UpdateStream
- updateStream_description :: Lens' UpdateStream (Maybe Text)
- updateStream_files :: Lens' UpdateStream (Maybe (NonEmpty StreamFile))
- updateStream_roleArn :: Lens' UpdateStream (Maybe Text)
- updateStream_streamId :: Lens' UpdateStream Text
- data UpdateStreamResponse = UpdateStreamResponse' {
- description :: Maybe Text
- streamArn :: Maybe Text
- streamId :: Maybe Text
- streamVersion :: Maybe Natural
- httpStatus :: Int
- newUpdateStreamResponse :: Int -> UpdateStreamResponse
- updateStreamResponse_description :: Lens' UpdateStreamResponse (Maybe Text)
- updateStreamResponse_streamArn :: Lens' UpdateStreamResponse (Maybe Text)
- updateStreamResponse_streamId :: Lens' UpdateStreamResponse (Maybe Text)
- updateStreamResponse_streamVersion :: Lens' UpdateStreamResponse (Maybe Natural)
- updateStreamResponse_httpStatus :: Lens' UpdateStreamResponse Int
Creating a Request
data UpdateStream Source #
See: newUpdateStream
smart constructor.
Instances
Create a value of UpdateStream
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:
UpdateStream
, updateStream_description
- The description of the stream.
UpdateStream
, updateStream_files
- The files associated with the stream.
UpdateStream
, updateStream_roleArn
- An IAM role that allows the IoT service principal assumes to access your
S3 files.
UpdateStream
, updateStream_streamId
- The stream ID.
Request Lenses
updateStream_description :: Lens' UpdateStream (Maybe Text) Source #
The description of the stream.
updateStream_files :: Lens' UpdateStream (Maybe (NonEmpty StreamFile)) Source #
The files associated with the stream.
updateStream_roleArn :: Lens' UpdateStream (Maybe Text) Source #
An IAM role that allows the IoT service principal assumes to access your S3 files.
updateStream_streamId :: Lens' UpdateStream Text Source #
The stream ID.
Destructuring the Response
data UpdateStreamResponse Source #
See: newUpdateStreamResponse
smart constructor.
UpdateStreamResponse' | |
|
Instances
newUpdateStreamResponse Source #
Create a value of UpdateStreamResponse
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:
UpdateStream
, updateStreamResponse_description
- A description of the stream.
UpdateStreamResponse
, updateStreamResponse_streamArn
- The stream ARN.
UpdateStream
, updateStreamResponse_streamId
- The stream ID.
UpdateStreamResponse
, updateStreamResponse_streamVersion
- The stream version.
$sel:httpStatus:UpdateStreamResponse'
, updateStreamResponse_httpStatus
- The response's http status code.
Response Lenses
updateStreamResponse_description :: Lens' UpdateStreamResponse (Maybe Text) Source #
A description of the stream.
updateStreamResponse_streamArn :: Lens' UpdateStreamResponse (Maybe Text) Source #
The stream ARN.
updateStreamResponse_streamId :: Lens' UpdateStreamResponse (Maybe Text) Source #
The stream ID.
updateStreamResponse_streamVersion :: Lens' UpdateStreamResponse (Maybe Natural) Source #
The stream version.
updateStreamResponse_httpStatus :: Lens' UpdateStreamResponse Int Source #
The response's http status code.