Copyright | (c) 2013-2021 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 |
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_files :: Lens' UpdateStream (Maybe (NonEmpty StreamFile))
- updateStream_description :: Lens' UpdateStream (Maybe Text)
- updateStream_roleArn :: Lens' UpdateStream (Maybe Text)
- updateStream_streamId :: Lens' UpdateStream Text
- data UpdateStreamResponse = UpdateStreamResponse' {
- streamVersion :: Maybe Natural
- streamArn :: Maybe Text
- description :: Maybe Text
- streamId :: Maybe Text
- httpStatus :: Int
- newUpdateStreamResponse :: Int -> UpdateStreamResponse
- updateStreamResponse_streamVersion :: Lens' UpdateStreamResponse (Maybe Natural)
- updateStreamResponse_streamArn :: Lens' UpdateStreamResponse (Maybe Text)
- updateStreamResponse_description :: Lens' UpdateStreamResponse (Maybe Text)
- updateStreamResponse_streamId :: Lens' UpdateStreamResponse (Maybe Text)
- 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:
$sel:files:UpdateStream'
, updateStream_files
- The files associated with the stream.
$sel:description:UpdateStream'
, updateStream_description
- The description of the stream.
$sel:roleArn:UpdateStream'
, updateStream_roleArn
- An IAM role that allows the IoT service principal assumes to access your
S3 files.
$sel:streamId:UpdateStream'
, updateStream_streamId
- The stream ID.
Request Lenses
updateStream_files :: Lens' UpdateStream (Maybe (NonEmpty StreamFile)) Source #
The files associated with the stream.
updateStream_description :: Lens' UpdateStream (Maybe Text) Source #
The description of 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:
$sel:streamVersion:UpdateStreamResponse'
, updateStreamResponse_streamVersion
- The stream version.
$sel:streamArn:UpdateStreamResponse'
, updateStreamResponse_streamArn
- The stream ARN.
$sel:description:UpdateStream'
, updateStreamResponse_description
- A description of the stream.
$sel:streamId:UpdateStream'
, updateStreamResponse_streamId
- The stream ID.
$sel:httpStatus:UpdateStreamResponse'
, updateStreamResponse_httpStatus
- The response's http status code.
Response Lenses
updateStreamResponse_streamVersion :: Lens' UpdateStreamResponse (Maybe Natural) Source #
The stream version.
updateStreamResponse_streamArn :: Lens' UpdateStreamResponse (Maybe Text) Source #
The stream ARN.
updateStreamResponse_description :: Lens' UpdateStreamResponse (Maybe Text) Source #
A description of the stream.
updateStreamResponse_streamId :: Lens' UpdateStreamResponse (Maybe Text) Source #
The stream ID.
updateStreamResponse_httpStatus :: Lens' UpdateStreamResponse Int Source #
The response's http status code.