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 |
Synopsis
- data Image = Image' {
- error :: Maybe ImageError
- imageContent :: Maybe Text
- timeStamp :: Maybe POSIX
- newImage :: Image
- image_error :: Lens' Image (Maybe ImageError)
- image_imageContent :: Lens' Image (Maybe Text)
- image_timeStamp :: Lens' Image (Maybe UTCTime)
Documentation
A structure that contains the Timestamp
, Error
, and ImageContent
.
See: newImage
smart constructor.
Image' | |
|
Instances
FromJSON Image Source # | |
Generic Image Source # | |
Read Image Source # | |
Show Image Source # | |
NFData Image Source # | |
Eq Image Source # | |
Hashable Image Source # | |
type Rep Image Source # | |
Defined in Amazonka.KinesisVideoArchivedMedia.Types.Image type Rep Image = D1 ('MetaData "Image" "Amazonka.KinesisVideoArchivedMedia.Types.Image" "amazonka-kinesis-video-archived-media-2.0-ByMPs2ZAQOi357CZJGqXlN" 'False) (C1 ('MetaCons "Image'" 'PrefixI 'True) (S1 ('MetaSel ('Just "error") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImageError)) :*: (S1 ('MetaSel ('Just "imageContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "timeStamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) |
Create a value of Image
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:error:Image'
, image_error
- The error message shown when the image for the provided timestamp was
not extracted due to a non-tryable error. An error will be returned if:
- There is no media that exists for the specified
Timestamp
. - The media for the specified time does not allow an image to be extracted. In this case the media is audio only, or the incorrect media has been ingested.
$sel:imageContent:Image'
, image_imageContent
- An attribute of the Image
object that is Base64 encoded.
$sel:timeStamp:Image'
, image_timeStamp
- An attribute of the Image
object that is used to extract an image from
the video stream. This field is used to manage gaps on images or to
better understand the pagination window.
image_error :: Lens' Image (Maybe ImageError) Source #
The error message shown when the image for the provided timestamp was not extracted due to a non-tryable error. An error will be returned if:
- There is no media that exists for the specified
Timestamp
. - The media for the specified time does not allow an image to be extracted. In this case the media is audio only, or the incorrect media has been ingested.