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 |
Synopsis
- data ImageFile = ImageFile' {
- data' :: Base64
- type' :: ImageFileType
- newImageFile :: ByteString -> ImageFileType -> ImageFile
- imageFile_data :: Lens' ImageFile ByteString
- imageFile_type :: Lens' ImageFile ImageFileType
Documentation
Contains an image file.
See: newImageFile
smart constructor.
ImageFile' | |
|
Instances
Eq ImageFile Source # | |
Read ImageFile Source # | |
Show ImageFile Source # | |
Generic ImageFile Source # | |
NFData ImageFile Source # | |
Defined in Amazonka.IoTSiteWise.Types.ImageFile | |
Hashable ImageFile Source # | |
Defined in Amazonka.IoTSiteWise.Types.ImageFile | |
ToJSON ImageFile Source # | |
Defined in Amazonka.IoTSiteWise.Types.ImageFile | |
type Rep ImageFile Source # | |
Defined in Amazonka.IoTSiteWise.Types.ImageFile type Rep ImageFile = D1 ('MetaData "ImageFile" "Amazonka.IoTSiteWise.Types.ImageFile" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "ImageFile'" 'PrefixI 'True) (S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Base64) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ImageFileType))) |
Create a value of ImageFile
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:data':ImageFile'
, imageFile_data
- The image file contents, represented as a base64-encoded string. The
file size must be less than 1 MB.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
$sel:type':ImageFile'
, imageFile_type
- The file type of the image.
imageFile_data :: Lens' ImageFile ByteString Source #
The image file contents, represented as a base64-encoded string. The
file size must be less than 1 MB.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
imageFile_type :: Lens' ImageFile ImageFileType Source #
The file type of the image.