{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ImageBuilder.Types.Image where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.ImageBuilder.Types.BuildType
import Amazonka.ImageBuilder.Types.ContainerRecipe
import Amazonka.ImageBuilder.Types.DistributionConfiguration
import Amazonka.ImageBuilder.Types.ImageRecipe
import Amazonka.ImageBuilder.Types.ImageState
import Amazonka.ImageBuilder.Types.ImageTestsConfiguration
import Amazonka.ImageBuilder.Types.ImageType
import Amazonka.ImageBuilder.Types.InfrastructureConfiguration
import Amazonka.ImageBuilder.Types.OutputResources
import Amazonka.ImageBuilder.Types.Platform
import qualified Amazonka.Prelude as Prelude
data Image = Image'
{
Image -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
Image -> Maybe BuildType
buildType :: Prelude.Maybe BuildType,
Image -> Maybe ContainerRecipe
containerRecipe :: Prelude.Maybe ContainerRecipe,
Image -> Maybe Text
dateCreated :: Prelude.Maybe Prelude.Text,
Image -> Maybe DistributionConfiguration
distributionConfiguration :: Prelude.Maybe DistributionConfiguration,
Image -> Maybe Bool
enhancedImageMetadataEnabled :: Prelude.Maybe Prelude.Bool,
Image -> Maybe ImageRecipe
imageRecipe :: Prelude.Maybe ImageRecipe,
Image -> Maybe ImageTestsConfiguration
imageTestsConfiguration :: Prelude.Maybe ImageTestsConfiguration,
Image -> Maybe InfrastructureConfiguration
infrastructureConfiguration :: Prelude.Maybe InfrastructureConfiguration,
Image -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
Image -> Maybe Text
osVersion :: Prelude.Maybe Prelude.Text,
Image -> Maybe OutputResources
outputResources :: Prelude.Maybe OutputResources,
Image -> Maybe Platform
platform :: Prelude.Maybe Platform,
Image -> Maybe Text
sourcePipelineArn :: Prelude.Maybe Prelude.Text,
Image -> Maybe Text
sourcePipelineName :: Prelude.Maybe Prelude.Text,
Image -> Maybe ImageState
state :: Prelude.Maybe ImageState,
Image -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
Image -> Maybe ImageType
type' :: Prelude.Maybe ImageType,
Image -> Maybe Text
version :: Prelude.Maybe Prelude.Text
}
deriving (Image -> Image -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Image -> Image -> Bool
$c/= :: Image -> Image -> Bool
== :: Image -> Image -> Bool
$c== :: Image -> Image -> Bool
Prelude.Eq, ReadPrec [Image]
ReadPrec Image
Int -> ReadS Image
ReadS [Image]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Image]
$creadListPrec :: ReadPrec [Image]
readPrec :: ReadPrec Image
$creadPrec :: ReadPrec Image
readList :: ReadS [Image]
$creadList :: ReadS [Image]
readsPrec :: Int -> ReadS Image
$creadsPrec :: Int -> ReadS Image
Prelude.Read, Int -> Image -> ShowS
[Image] -> ShowS
Image -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Image] -> ShowS
$cshowList :: [Image] -> ShowS
show :: Image -> String
$cshow :: Image -> String
showsPrec :: Int -> Image -> ShowS
$cshowsPrec :: Int -> Image -> ShowS
Prelude.Show, forall x. Rep Image x -> Image
forall x. Image -> Rep Image x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Image x -> Image
$cfrom :: forall x. Image -> Rep Image x
Prelude.Generic)
newImage ::
Image
newImage :: Image
newImage =
Image'
{ $sel:arn:Image' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:buildType:Image' :: Maybe BuildType
buildType = forall a. Maybe a
Prelude.Nothing,
$sel:containerRecipe:Image' :: Maybe ContainerRecipe
containerRecipe = forall a. Maybe a
Prelude.Nothing,
$sel:dateCreated:Image' :: Maybe Text
dateCreated = forall a. Maybe a
Prelude.Nothing,
$sel:distributionConfiguration:Image' :: Maybe DistributionConfiguration
distributionConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:enhancedImageMetadataEnabled:Image' :: Maybe Bool
enhancedImageMetadataEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:imageRecipe:Image' :: Maybe ImageRecipe
imageRecipe = forall a. Maybe a
Prelude.Nothing,
$sel:imageTestsConfiguration:Image' :: Maybe ImageTestsConfiguration
imageTestsConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:infrastructureConfiguration:Image' :: Maybe InfrastructureConfiguration
infrastructureConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:name:Image' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:osVersion:Image' :: Maybe Text
osVersion = forall a. Maybe a
Prelude.Nothing,
$sel:outputResources:Image' :: Maybe OutputResources
outputResources = forall a. Maybe a
Prelude.Nothing,
$sel:platform:Image' :: Maybe Platform
platform = forall a. Maybe a
Prelude.Nothing,
$sel:sourcePipelineArn:Image' :: Maybe Text
sourcePipelineArn = forall a. Maybe a
Prelude.Nothing,
$sel:sourcePipelineName:Image' :: Maybe Text
sourcePipelineName = forall a. Maybe a
Prelude.Nothing,
$sel:state:Image' :: Maybe ImageState
state = forall a. Maybe a
Prelude.Nothing,
$sel:tags:Image' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:type':Image' :: Maybe ImageType
type' = forall a. Maybe a
Prelude.Nothing,
$sel:version:Image' :: Maybe Text
version = forall a. Maybe a
Prelude.Nothing
}
image_arn :: Lens.Lens' Image (Prelude.Maybe Prelude.Text)
image_arn :: Lens' Image (Maybe Text)
image_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe Text
arn :: Maybe Text
$sel:arn:Image' :: Image -> Maybe Text
arn} -> Maybe Text
arn) (\s :: Image
s@Image' {} Maybe Text
a -> Image
s {$sel:arn:Image' :: Maybe Text
arn = Maybe Text
a} :: Image)
image_buildType :: Lens.Lens' Image (Prelude.Maybe BuildType)
image_buildType :: Lens' Image (Maybe BuildType)
image_buildType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe BuildType
buildType :: Maybe BuildType
$sel:buildType:Image' :: Image -> Maybe BuildType
buildType} -> Maybe BuildType
buildType) (\s :: Image
s@Image' {} Maybe BuildType
a -> Image
s {$sel:buildType:Image' :: Maybe BuildType
buildType = Maybe BuildType
a} :: Image)
image_containerRecipe :: Lens.Lens' Image (Prelude.Maybe ContainerRecipe)
image_containerRecipe :: Lens' Image (Maybe ContainerRecipe)
image_containerRecipe = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe ContainerRecipe
containerRecipe :: Maybe ContainerRecipe
$sel:containerRecipe:Image' :: Image -> Maybe ContainerRecipe
containerRecipe} -> Maybe ContainerRecipe
containerRecipe) (\s :: Image
s@Image' {} Maybe ContainerRecipe
a -> Image
s {$sel:containerRecipe:Image' :: Maybe ContainerRecipe
containerRecipe = Maybe ContainerRecipe
a} :: Image)
image_dateCreated :: Lens.Lens' Image (Prelude.Maybe Prelude.Text)
image_dateCreated :: Lens' Image (Maybe Text)
image_dateCreated = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe Text
dateCreated :: Maybe Text
$sel:dateCreated:Image' :: Image -> Maybe Text
dateCreated} -> Maybe Text
dateCreated) (\s :: Image
s@Image' {} Maybe Text
a -> Image
s {$sel:dateCreated:Image' :: Maybe Text
dateCreated = Maybe Text
a} :: Image)
image_distributionConfiguration :: Lens.Lens' Image (Prelude.Maybe DistributionConfiguration)
image_distributionConfiguration :: Lens' Image (Maybe DistributionConfiguration)
image_distributionConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe DistributionConfiguration
distributionConfiguration :: Maybe DistributionConfiguration
$sel:distributionConfiguration:Image' :: Image -> Maybe DistributionConfiguration
distributionConfiguration} -> Maybe DistributionConfiguration
distributionConfiguration) (\s :: Image
s@Image' {} Maybe DistributionConfiguration
a -> Image
s {$sel:distributionConfiguration:Image' :: Maybe DistributionConfiguration
distributionConfiguration = Maybe DistributionConfiguration
a} :: Image)
image_enhancedImageMetadataEnabled :: Lens.Lens' Image (Prelude.Maybe Prelude.Bool)
image_enhancedImageMetadataEnabled :: Lens' Image (Maybe Bool)
image_enhancedImageMetadataEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe Bool
enhancedImageMetadataEnabled :: Maybe Bool
$sel:enhancedImageMetadataEnabled:Image' :: Image -> Maybe Bool
enhancedImageMetadataEnabled} -> Maybe Bool
enhancedImageMetadataEnabled) (\s :: Image
s@Image' {} Maybe Bool
a -> Image
s {$sel:enhancedImageMetadataEnabled:Image' :: Maybe Bool
enhancedImageMetadataEnabled = Maybe Bool
a} :: Image)
image_imageRecipe :: Lens.Lens' Image (Prelude.Maybe ImageRecipe)
image_imageRecipe :: Lens' Image (Maybe ImageRecipe)
image_imageRecipe = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe ImageRecipe
imageRecipe :: Maybe ImageRecipe
$sel:imageRecipe:Image' :: Image -> Maybe ImageRecipe
imageRecipe} -> Maybe ImageRecipe
imageRecipe) (\s :: Image
s@Image' {} Maybe ImageRecipe
a -> Image
s {$sel:imageRecipe:Image' :: Maybe ImageRecipe
imageRecipe = Maybe ImageRecipe
a} :: Image)
image_imageTestsConfiguration :: Lens.Lens' Image (Prelude.Maybe ImageTestsConfiguration)
image_imageTestsConfiguration :: Lens' Image (Maybe ImageTestsConfiguration)
image_imageTestsConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe ImageTestsConfiguration
imageTestsConfiguration :: Maybe ImageTestsConfiguration
$sel:imageTestsConfiguration:Image' :: Image -> Maybe ImageTestsConfiguration
imageTestsConfiguration} -> Maybe ImageTestsConfiguration
imageTestsConfiguration) (\s :: Image
s@Image' {} Maybe ImageTestsConfiguration
a -> Image
s {$sel:imageTestsConfiguration:Image' :: Maybe ImageTestsConfiguration
imageTestsConfiguration = Maybe ImageTestsConfiguration
a} :: Image)
image_infrastructureConfiguration :: Lens.Lens' Image (Prelude.Maybe InfrastructureConfiguration)
image_infrastructureConfiguration :: Lens' Image (Maybe InfrastructureConfiguration)
image_infrastructureConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe InfrastructureConfiguration
infrastructureConfiguration :: Maybe InfrastructureConfiguration
$sel:infrastructureConfiguration:Image' :: Image -> Maybe InfrastructureConfiguration
infrastructureConfiguration} -> Maybe InfrastructureConfiguration
infrastructureConfiguration) (\s :: Image
s@Image' {} Maybe InfrastructureConfiguration
a -> Image
s {$sel:infrastructureConfiguration:Image' :: Maybe InfrastructureConfiguration
infrastructureConfiguration = Maybe InfrastructureConfiguration
a} :: Image)
image_name :: Lens.Lens' Image (Prelude.Maybe Prelude.Text)
image_name :: Lens' Image (Maybe Text)
image_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe Text
name :: Maybe Text
$sel:name:Image' :: Image -> Maybe Text
name} -> Maybe Text
name) (\s :: Image
s@Image' {} Maybe Text
a -> Image
s {$sel:name:Image' :: Maybe Text
name = Maybe Text
a} :: Image)
image_osVersion :: Lens.Lens' Image (Prelude.Maybe Prelude.Text)
image_osVersion :: Lens' Image (Maybe Text)
image_osVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe Text
osVersion :: Maybe Text
$sel:osVersion:Image' :: Image -> Maybe Text
osVersion} -> Maybe Text
osVersion) (\s :: Image
s@Image' {} Maybe Text
a -> Image
s {$sel:osVersion:Image' :: Maybe Text
osVersion = Maybe Text
a} :: Image)
image_outputResources :: Lens.Lens' Image (Prelude.Maybe OutputResources)
image_outputResources :: Lens' Image (Maybe OutputResources)
image_outputResources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe OutputResources
outputResources :: Maybe OutputResources
$sel:outputResources:Image' :: Image -> Maybe OutputResources
outputResources} -> Maybe OutputResources
outputResources) (\s :: Image
s@Image' {} Maybe OutputResources
a -> Image
s {$sel:outputResources:Image' :: Maybe OutputResources
outputResources = Maybe OutputResources
a} :: Image)
image_platform :: Lens.Lens' Image (Prelude.Maybe Platform)
image_platform :: Lens' Image (Maybe Platform)
image_platform = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe Platform
platform :: Maybe Platform
$sel:platform:Image' :: Image -> Maybe Platform
platform} -> Maybe Platform
platform) (\s :: Image
s@Image' {} Maybe Platform
a -> Image
s {$sel:platform:Image' :: Maybe Platform
platform = Maybe Platform
a} :: Image)
image_sourcePipelineArn :: Lens.Lens' Image (Prelude.Maybe Prelude.Text)
image_sourcePipelineArn :: Lens' Image (Maybe Text)
image_sourcePipelineArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe Text
sourcePipelineArn :: Maybe Text
$sel:sourcePipelineArn:Image' :: Image -> Maybe Text
sourcePipelineArn} -> Maybe Text
sourcePipelineArn) (\s :: Image
s@Image' {} Maybe Text
a -> Image
s {$sel:sourcePipelineArn:Image' :: Maybe Text
sourcePipelineArn = Maybe Text
a} :: Image)
image_sourcePipelineName :: Lens.Lens' Image (Prelude.Maybe Prelude.Text)
image_sourcePipelineName :: Lens' Image (Maybe Text)
image_sourcePipelineName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe Text
sourcePipelineName :: Maybe Text
$sel:sourcePipelineName:Image' :: Image -> Maybe Text
sourcePipelineName} -> Maybe Text
sourcePipelineName) (\s :: Image
s@Image' {} Maybe Text
a -> Image
s {$sel:sourcePipelineName:Image' :: Maybe Text
sourcePipelineName = Maybe Text
a} :: Image)
image_state :: Lens.Lens' Image (Prelude.Maybe ImageState)
image_state :: Lens' Image (Maybe ImageState)
image_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe ImageState
state :: Maybe ImageState
$sel:state:Image' :: Image -> Maybe ImageState
state} -> Maybe ImageState
state) (\s :: Image
s@Image' {} Maybe ImageState
a -> Image
s {$sel:state:Image' :: Maybe ImageState
state = Maybe ImageState
a} :: Image)
image_tags :: Lens.Lens' Image (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
image_tags :: Lens' Image (Maybe (HashMap Text Text))
image_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:Image' :: Image -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: Image
s@Image' {} Maybe (HashMap Text Text)
a -> Image
s {$sel:tags:Image' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: Image) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
image_type :: Lens.Lens' Image (Prelude.Maybe ImageType)
image_type :: Lens' Image (Maybe ImageType)
image_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe ImageType
type' :: Maybe ImageType
$sel:type':Image' :: Image -> Maybe ImageType
type'} -> Maybe ImageType
type') (\s :: Image
s@Image' {} Maybe ImageType
a -> Image
s {$sel:type':Image' :: Maybe ImageType
type' = Maybe ImageType
a} :: Image)
image_version :: Lens.Lens' Image (Prelude.Maybe Prelude.Text)
image_version :: Lens' Image (Maybe Text)
image_version = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Image' {Maybe Text
version :: Maybe Text
$sel:version:Image' :: Image -> Maybe Text
version} -> Maybe Text
version) (\s :: Image
s@Image' {} Maybe Text
a -> Image
s {$sel:version:Image' :: Maybe Text
version = Maybe Text
a} :: Image)
instance Data.FromJSON Image where
parseJSON :: Value -> Parser Image
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"Image"
( \Object
x ->
Maybe Text
-> Maybe BuildType
-> Maybe ContainerRecipe
-> Maybe Text
-> Maybe DistributionConfiguration
-> Maybe Bool
-> Maybe ImageRecipe
-> Maybe ImageTestsConfiguration
-> Maybe InfrastructureConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe OutputResources
-> Maybe Platform
-> Maybe Text
-> Maybe Text
-> Maybe ImageState
-> Maybe (HashMap Text Text)
-> Maybe ImageType
-> Maybe Text
-> Image
Image'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"arn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"buildType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"containerRecipe")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dateCreated")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"distributionConfiguration")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"enhancedImageMetadataEnabled")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"imageRecipe")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"imageTestsConfiguration")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"infrastructureConfiguration")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"osVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"outputResources")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"platform")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"sourcePipelineArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"sourcePipelineName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"state")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"type")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"version")
)
instance Prelude.Hashable Image where
hashWithSalt :: Int -> Image -> Int
hashWithSalt Int
_salt Image' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe BuildType
Maybe ImageState
Maybe ImageTestsConfiguration
Maybe ImageType
Maybe OutputResources
Maybe Platform
Maybe InfrastructureConfiguration
Maybe ImageRecipe
Maybe ContainerRecipe
Maybe DistributionConfiguration
version :: Maybe Text
type' :: Maybe ImageType
tags :: Maybe (HashMap Text Text)
state :: Maybe ImageState
sourcePipelineName :: Maybe Text
sourcePipelineArn :: Maybe Text
platform :: Maybe Platform
outputResources :: Maybe OutputResources
osVersion :: Maybe Text
name :: Maybe Text
infrastructureConfiguration :: Maybe InfrastructureConfiguration
imageTestsConfiguration :: Maybe ImageTestsConfiguration
imageRecipe :: Maybe ImageRecipe
enhancedImageMetadataEnabled :: Maybe Bool
distributionConfiguration :: Maybe DistributionConfiguration
dateCreated :: Maybe Text
containerRecipe :: Maybe ContainerRecipe
buildType :: Maybe BuildType
arn :: Maybe Text
$sel:version:Image' :: Image -> Maybe Text
$sel:type':Image' :: Image -> Maybe ImageType
$sel:tags:Image' :: Image -> Maybe (HashMap Text Text)
$sel:state:Image' :: Image -> Maybe ImageState
$sel:sourcePipelineName:Image' :: Image -> Maybe Text
$sel:sourcePipelineArn:Image' :: Image -> Maybe Text
$sel:platform:Image' :: Image -> Maybe Platform
$sel:outputResources:Image' :: Image -> Maybe OutputResources
$sel:osVersion:Image' :: Image -> Maybe Text
$sel:name:Image' :: Image -> Maybe Text
$sel:infrastructureConfiguration:Image' :: Image -> Maybe InfrastructureConfiguration
$sel:imageTestsConfiguration:Image' :: Image -> Maybe ImageTestsConfiguration
$sel:imageRecipe:Image' :: Image -> Maybe ImageRecipe
$sel:enhancedImageMetadataEnabled:Image' :: Image -> Maybe Bool
$sel:distributionConfiguration:Image' :: Image -> Maybe DistributionConfiguration
$sel:dateCreated:Image' :: Image -> Maybe Text
$sel:containerRecipe:Image' :: Image -> Maybe ContainerRecipe
$sel:buildType:Image' :: Image -> Maybe BuildType
$sel:arn:Image' :: Image -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe BuildType
buildType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ContainerRecipe
containerRecipe
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dateCreated
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DistributionConfiguration
distributionConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
enhancedImageMetadataEnabled
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ImageRecipe
imageRecipe
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ImageTestsConfiguration
imageTestsConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe InfrastructureConfiguration
infrastructureConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
osVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OutputResources
outputResources
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Platform
platform
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sourcePipelineArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sourcePipelineName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ImageState
state
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ImageType
type'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
version
instance Prelude.NFData Image where
rnf :: Image -> ()
rnf Image' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe BuildType
Maybe ImageState
Maybe ImageTestsConfiguration
Maybe ImageType
Maybe OutputResources
Maybe Platform
Maybe InfrastructureConfiguration
Maybe ImageRecipe
Maybe ContainerRecipe
Maybe DistributionConfiguration
version :: Maybe Text
type' :: Maybe ImageType
tags :: Maybe (HashMap Text Text)
state :: Maybe ImageState
sourcePipelineName :: Maybe Text
sourcePipelineArn :: Maybe Text
platform :: Maybe Platform
outputResources :: Maybe OutputResources
osVersion :: Maybe Text
name :: Maybe Text
infrastructureConfiguration :: Maybe InfrastructureConfiguration
imageTestsConfiguration :: Maybe ImageTestsConfiguration
imageRecipe :: Maybe ImageRecipe
enhancedImageMetadataEnabled :: Maybe Bool
distributionConfiguration :: Maybe DistributionConfiguration
dateCreated :: Maybe Text
containerRecipe :: Maybe ContainerRecipe
buildType :: Maybe BuildType
arn :: Maybe Text
$sel:version:Image' :: Image -> Maybe Text
$sel:type':Image' :: Image -> Maybe ImageType
$sel:tags:Image' :: Image -> Maybe (HashMap Text Text)
$sel:state:Image' :: Image -> Maybe ImageState
$sel:sourcePipelineName:Image' :: Image -> Maybe Text
$sel:sourcePipelineArn:Image' :: Image -> Maybe Text
$sel:platform:Image' :: Image -> Maybe Platform
$sel:outputResources:Image' :: Image -> Maybe OutputResources
$sel:osVersion:Image' :: Image -> Maybe Text
$sel:name:Image' :: Image -> Maybe Text
$sel:infrastructureConfiguration:Image' :: Image -> Maybe InfrastructureConfiguration
$sel:imageTestsConfiguration:Image' :: Image -> Maybe ImageTestsConfiguration
$sel:imageRecipe:Image' :: Image -> Maybe ImageRecipe
$sel:enhancedImageMetadataEnabled:Image' :: Image -> Maybe Bool
$sel:distributionConfiguration:Image' :: Image -> Maybe DistributionConfiguration
$sel:dateCreated:Image' :: Image -> Maybe Text
$sel:containerRecipe:Image' :: Image -> Maybe ContainerRecipe
$sel:buildType:Image' :: Image -> Maybe BuildType
$sel:arn:Image' :: Image -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe BuildType
buildType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ContainerRecipe
containerRecipe
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dateCreated
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DistributionConfiguration
distributionConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
enhancedImageMetadataEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ImageRecipe
imageRecipe
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ImageTestsConfiguration
imageTestsConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe InfrastructureConfiguration
infrastructureConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
osVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OutputResources
outputResources
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Platform
platform
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourcePipelineArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourcePipelineName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ImageState
state
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ImageType
type'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
version