{-# 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.ImageRecipe 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.AdditionalInstanceConfiguration
import Amazonka.ImageBuilder.Types.ComponentConfiguration
import Amazonka.ImageBuilder.Types.ImageType
import Amazonka.ImageBuilder.Types.InstanceBlockDeviceMapping
import Amazonka.ImageBuilder.Types.Platform
import qualified Amazonka.Prelude as Prelude
data ImageRecipe = ImageRecipe'
{
ImageRecipe -> Maybe AdditionalInstanceConfiguration
additionalInstanceConfiguration :: Prelude.Maybe AdditionalInstanceConfiguration,
ImageRecipe -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
ImageRecipe -> Maybe [InstanceBlockDeviceMapping]
blockDeviceMappings :: Prelude.Maybe [InstanceBlockDeviceMapping],
ImageRecipe -> Maybe (NonEmpty ComponentConfiguration)
components :: Prelude.Maybe (Prelude.NonEmpty ComponentConfiguration),
ImageRecipe -> Maybe Text
dateCreated :: Prelude.Maybe Prelude.Text,
ImageRecipe -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
ImageRecipe -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
ImageRecipe -> Maybe Text
owner :: Prelude.Maybe Prelude.Text,
ImageRecipe -> Maybe Text
parentImage :: Prelude.Maybe Prelude.Text,
ImageRecipe -> Maybe Platform
platform :: Prelude.Maybe Platform,
ImageRecipe -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
ImageRecipe -> Maybe ImageType
type' :: Prelude.Maybe ImageType,
ImageRecipe -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
ImageRecipe -> Maybe Text
workingDirectory :: Prelude.Maybe Prelude.Text
}
deriving (ImageRecipe -> ImageRecipe -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImageRecipe -> ImageRecipe -> Bool
$c/= :: ImageRecipe -> ImageRecipe -> Bool
== :: ImageRecipe -> ImageRecipe -> Bool
$c== :: ImageRecipe -> ImageRecipe -> Bool
Prelude.Eq, ReadPrec [ImageRecipe]
ReadPrec ImageRecipe
Int -> ReadS ImageRecipe
ReadS [ImageRecipe]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImageRecipe]
$creadListPrec :: ReadPrec [ImageRecipe]
readPrec :: ReadPrec ImageRecipe
$creadPrec :: ReadPrec ImageRecipe
readList :: ReadS [ImageRecipe]
$creadList :: ReadS [ImageRecipe]
readsPrec :: Int -> ReadS ImageRecipe
$creadsPrec :: Int -> ReadS ImageRecipe
Prelude.Read, Int -> ImageRecipe -> ShowS
[ImageRecipe] -> ShowS
ImageRecipe -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImageRecipe] -> ShowS
$cshowList :: [ImageRecipe] -> ShowS
show :: ImageRecipe -> String
$cshow :: ImageRecipe -> String
showsPrec :: Int -> ImageRecipe -> ShowS
$cshowsPrec :: Int -> ImageRecipe -> ShowS
Prelude.Show, forall x. Rep ImageRecipe x -> ImageRecipe
forall x. ImageRecipe -> Rep ImageRecipe x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ImageRecipe x -> ImageRecipe
$cfrom :: forall x. ImageRecipe -> Rep ImageRecipe x
Prelude.Generic)
newImageRecipe ::
ImageRecipe
newImageRecipe :: ImageRecipe
newImageRecipe =
ImageRecipe'
{ $sel:additionalInstanceConfiguration:ImageRecipe' :: Maybe AdditionalInstanceConfiguration
additionalInstanceConfiguration =
forall a. Maybe a
Prelude.Nothing,
$sel:arn:ImageRecipe' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:blockDeviceMappings:ImageRecipe' :: Maybe [InstanceBlockDeviceMapping]
blockDeviceMappings = forall a. Maybe a
Prelude.Nothing,
$sel:components:ImageRecipe' :: Maybe (NonEmpty ComponentConfiguration)
components = forall a. Maybe a
Prelude.Nothing,
$sel:dateCreated:ImageRecipe' :: Maybe Text
dateCreated = forall a. Maybe a
Prelude.Nothing,
$sel:description:ImageRecipe' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:name:ImageRecipe' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:owner:ImageRecipe' :: Maybe Text
owner = forall a. Maybe a
Prelude.Nothing,
$sel:parentImage:ImageRecipe' :: Maybe Text
parentImage = forall a. Maybe a
Prelude.Nothing,
$sel:platform:ImageRecipe' :: Maybe Platform
platform = forall a. Maybe a
Prelude.Nothing,
$sel:tags:ImageRecipe' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:type':ImageRecipe' :: Maybe ImageType
type' = forall a. Maybe a
Prelude.Nothing,
$sel:version:ImageRecipe' :: Maybe Text
version = forall a. Maybe a
Prelude.Nothing,
$sel:workingDirectory:ImageRecipe' :: Maybe Text
workingDirectory = forall a. Maybe a
Prelude.Nothing
}
imageRecipe_additionalInstanceConfiguration :: Lens.Lens' ImageRecipe (Prelude.Maybe AdditionalInstanceConfiguration)
imageRecipe_additionalInstanceConfiguration :: Lens' ImageRecipe (Maybe AdditionalInstanceConfiguration)
imageRecipe_additionalInstanceConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe AdditionalInstanceConfiguration
additionalInstanceConfiguration :: Maybe AdditionalInstanceConfiguration
$sel:additionalInstanceConfiguration:ImageRecipe' :: ImageRecipe -> Maybe AdditionalInstanceConfiguration
additionalInstanceConfiguration} -> Maybe AdditionalInstanceConfiguration
additionalInstanceConfiguration) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe AdditionalInstanceConfiguration
a -> ImageRecipe
s {$sel:additionalInstanceConfiguration:ImageRecipe' :: Maybe AdditionalInstanceConfiguration
additionalInstanceConfiguration = Maybe AdditionalInstanceConfiguration
a} :: ImageRecipe)
imageRecipe_arn :: Lens.Lens' ImageRecipe (Prelude.Maybe Prelude.Text)
imageRecipe_arn :: Lens' ImageRecipe (Maybe Text)
imageRecipe_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe Text
arn :: Maybe Text
$sel:arn:ImageRecipe' :: ImageRecipe -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe Text
a -> ImageRecipe
s {$sel:arn:ImageRecipe' :: Maybe Text
arn = Maybe Text
a} :: ImageRecipe)
imageRecipe_blockDeviceMappings :: Lens.Lens' ImageRecipe (Prelude.Maybe [InstanceBlockDeviceMapping])
imageRecipe_blockDeviceMappings :: Lens' ImageRecipe (Maybe [InstanceBlockDeviceMapping])
imageRecipe_blockDeviceMappings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe [InstanceBlockDeviceMapping]
blockDeviceMappings :: Maybe [InstanceBlockDeviceMapping]
$sel:blockDeviceMappings:ImageRecipe' :: ImageRecipe -> Maybe [InstanceBlockDeviceMapping]
blockDeviceMappings} -> Maybe [InstanceBlockDeviceMapping]
blockDeviceMappings) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe [InstanceBlockDeviceMapping]
a -> ImageRecipe
s {$sel:blockDeviceMappings:ImageRecipe' :: Maybe [InstanceBlockDeviceMapping]
blockDeviceMappings = Maybe [InstanceBlockDeviceMapping]
a} :: ImageRecipe) 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
imageRecipe_components :: Lens.Lens' ImageRecipe (Prelude.Maybe (Prelude.NonEmpty ComponentConfiguration))
imageRecipe_components :: Lens' ImageRecipe (Maybe (NonEmpty ComponentConfiguration))
imageRecipe_components = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe (NonEmpty ComponentConfiguration)
components :: Maybe (NonEmpty ComponentConfiguration)
$sel:components:ImageRecipe' :: ImageRecipe -> Maybe (NonEmpty ComponentConfiguration)
components} -> Maybe (NonEmpty ComponentConfiguration)
components) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe (NonEmpty ComponentConfiguration)
a -> ImageRecipe
s {$sel:components:ImageRecipe' :: Maybe (NonEmpty ComponentConfiguration)
components = Maybe (NonEmpty ComponentConfiguration)
a} :: ImageRecipe) 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
imageRecipe_dateCreated :: Lens.Lens' ImageRecipe (Prelude.Maybe Prelude.Text)
imageRecipe_dateCreated :: Lens' ImageRecipe (Maybe Text)
imageRecipe_dateCreated = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe Text
dateCreated :: Maybe Text
$sel:dateCreated:ImageRecipe' :: ImageRecipe -> Maybe Text
dateCreated} -> Maybe Text
dateCreated) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe Text
a -> ImageRecipe
s {$sel:dateCreated:ImageRecipe' :: Maybe Text
dateCreated = Maybe Text
a} :: ImageRecipe)
imageRecipe_description :: Lens.Lens' ImageRecipe (Prelude.Maybe Prelude.Text)
imageRecipe_description :: Lens' ImageRecipe (Maybe Text)
imageRecipe_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe Text
description :: Maybe Text
$sel:description:ImageRecipe' :: ImageRecipe -> Maybe Text
description} -> Maybe Text
description) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe Text
a -> ImageRecipe
s {$sel:description:ImageRecipe' :: Maybe Text
description = Maybe Text
a} :: ImageRecipe)
imageRecipe_name :: Lens.Lens' ImageRecipe (Prelude.Maybe Prelude.Text)
imageRecipe_name :: Lens' ImageRecipe (Maybe Text)
imageRecipe_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe Text
name :: Maybe Text
$sel:name:ImageRecipe' :: ImageRecipe -> Maybe Text
name} -> Maybe Text
name) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe Text
a -> ImageRecipe
s {$sel:name:ImageRecipe' :: Maybe Text
name = Maybe Text
a} :: ImageRecipe)
imageRecipe_owner :: Lens.Lens' ImageRecipe (Prelude.Maybe Prelude.Text)
imageRecipe_owner :: Lens' ImageRecipe (Maybe Text)
imageRecipe_owner = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe Text
owner :: Maybe Text
$sel:owner:ImageRecipe' :: ImageRecipe -> Maybe Text
owner} -> Maybe Text
owner) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe Text
a -> ImageRecipe
s {$sel:owner:ImageRecipe' :: Maybe Text
owner = Maybe Text
a} :: ImageRecipe)
imageRecipe_parentImage :: Lens.Lens' ImageRecipe (Prelude.Maybe Prelude.Text)
imageRecipe_parentImage :: Lens' ImageRecipe (Maybe Text)
imageRecipe_parentImage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe Text
parentImage :: Maybe Text
$sel:parentImage:ImageRecipe' :: ImageRecipe -> Maybe Text
parentImage} -> Maybe Text
parentImage) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe Text
a -> ImageRecipe
s {$sel:parentImage:ImageRecipe' :: Maybe Text
parentImage = Maybe Text
a} :: ImageRecipe)
imageRecipe_platform :: Lens.Lens' ImageRecipe (Prelude.Maybe Platform)
imageRecipe_platform :: Lens' ImageRecipe (Maybe Platform)
imageRecipe_platform = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe Platform
platform :: Maybe Platform
$sel:platform:ImageRecipe' :: ImageRecipe -> Maybe Platform
platform} -> Maybe Platform
platform) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe Platform
a -> ImageRecipe
s {$sel:platform:ImageRecipe' :: Maybe Platform
platform = Maybe Platform
a} :: ImageRecipe)
imageRecipe_tags :: Lens.Lens' ImageRecipe (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
imageRecipe_tags :: Lens' ImageRecipe (Maybe (HashMap Text Text))
imageRecipe_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ImageRecipe' :: ImageRecipe -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe (HashMap Text Text)
a -> ImageRecipe
s {$sel:tags:ImageRecipe' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ImageRecipe) 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
imageRecipe_type :: Lens.Lens' ImageRecipe (Prelude.Maybe ImageType)
imageRecipe_type :: Lens' ImageRecipe (Maybe ImageType)
imageRecipe_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe ImageType
type' :: Maybe ImageType
$sel:type':ImageRecipe' :: ImageRecipe -> Maybe ImageType
type'} -> Maybe ImageType
type') (\s :: ImageRecipe
s@ImageRecipe' {} Maybe ImageType
a -> ImageRecipe
s {$sel:type':ImageRecipe' :: Maybe ImageType
type' = Maybe ImageType
a} :: ImageRecipe)
imageRecipe_version :: Lens.Lens' ImageRecipe (Prelude.Maybe Prelude.Text)
imageRecipe_version :: Lens' ImageRecipe (Maybe Text)
imageRecipe_version = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe Text
version :: Maybe Text
$sel:version:ImageRecipe' :: ImageRecipe -> Maybe Text
version} -> Maybe Text
version) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe Text
a -> ImageRecipe
s {$sel:version:ImageRecipe' :: Maybe Text
version = Maybe Text
a} :: ImageRecipe)
imageRecipe_workingDirectory :: Lens.Lens' ImageRecipe (Prelude.Maybe Prelude.Text)
imageRecipe_workingDirectory :: Lens' ImageRecipe (Maybe Text)
imageRecipe_workingDirectory = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImageRecipe' {Maybe Text
workingDirectory :: Maybe Text
$sel:workingDirectory:ImageRecipe' :: ImageRecipe -> Maybe Text
workingDirectory} -> Maybe Text
workingDirectory) (\s :: ImageRecipe
s@ImageRecipe' {} Maybe Text
a -> ImageRecipe
s {$sel:workingDirectory:ImageRecipe' :: Maybe Text
workingDirectory = Maybe Text
a} :: ImageRecipe)
instance Data.FromJSON ImageRecipe where
parseJSON :: Value -> Parser ImageRecipe
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ImageRecipe"
( \Object
x ->
Maybe AdditionalInstanceConfiguration
-> Maybe Text
-> Maybe [InstanceBlockDeviceMapping]
-> Maybe (NonEmpty ComponentConfiguration)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Platform
-> Maybe (HashMap Text Text)
-> Maybe ImageType
-> Maybe Text
-> Maybe Text
-> ImageRecipe
ImageRecipe'
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
"additionalInstanceConfiguration")
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
"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
"blockDeviceMappings"
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
"components")
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
"description")
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
"owner")
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
"parentImage")
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
"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")
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
"workingDirectory")
)
instance Prelude.Hashable ImageRecipe where
hashWithSalt :: Int -> ImageRecipe -> Int
hashWithSalt Int
_salt ImageRecipe' {Maybe [InstanceBlockDeviceMapping]
Maybe (NonEmpty ComponentConfiguration)
Maybe Text
Maybe (HashMap Text Text)
Maybe ImageType
Maybe Platform
Maybe AdditionalInstanceConfiguration
workingDirectory :: Maybe Text
version :: Maybe Text
type' :: Maybe ImageType
tags :: Maybe (HashMap Text Text)
platform :: Maybe Platform
parentImage :: Maybe Text
owner :: Maybe Text
name :: Maybe Text
description :: Maybe Text
dateCreated :: Maybe Text
components :: Maybe (NonEmpty ComponentConfiguration)
blockDeviceMappings :: Maybe [InstanceBlockDeviceMapping]
arn :: Maybe Text
additionalInstanceConfiguration :: Maybe AdditionalInstanceConfiguration
$sel:workingDirectory:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:version:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:type':ImageRecipe' :: ImageRecipe -> Maybe ImageType
$sel:tags:ImageRecipe' :: ImageRecipe -> Maybe (HashMap Text Text)
$sel:platform:ImageRecipe' :: ImageRecipe -> Maybe Platform
$sel:parentImage:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:owner:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:name:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:description:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:dateCreated:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:components:ImageRecipe' :: ImageRecipe -> Maybe (NonEmpty ComponentConfiguration)
$sel:blockDeviceMappings:ImageRecipe' :: ImageRecipe -> Maybe [InstanceBlockDeviceMapping]
$sel:arn:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:additionalInstanceConfiguration:ImageRecipe' :: ImageRecipe -> Maybe AdditionalInstanceConfiguration
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AdditionalInstanceConfiguration
additionalInstanceConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [InstanceBlockDeviceMapping]
blockDeviceMappings
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty ComponentConfiguration)
components
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dateCreated
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
owner
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
parentImage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Platform
platform
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
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
workingDirectory
instance Prelude.NFData ImageRecipe where
rnf :: ImageRecipe -> ()
rnf ImageRecipe' {Maybe [InstanceBlockDeviceMapping]
Maybe (NonEmpty ComponentConfiguration)
Maybe Text
Maybe (HashMap Text Text)
Maybe ImageType
Maybe Platform
Maybe AdditionalInstanceConfiguration
workingDirectory :: Maybe Text
version :: Maybe Text
type' :: Maybe ImageType
tags :: Maybe (HashMap Text Text)
platform :: Maybe Platform
parentImage :: Maybe Text
owner :: Maybe Text
name :: Maybe Text
description :: Maybe Text
dateCreated :: Maybe Text
components :: Maybe (NonEmpty ComponentConfiguration)
blockDeviceMappings :: Maybe [InstanceBlockDeviceMapping]
arn :: Maybe Text
additionalInstanceConfiguration :: Maybe AdditionalInstanceConfiguration
$sel:workingDirectory:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:version:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:type':ImageRecipe' :: ImageRecipe -> Maybe ImageType
$sel:tags:ImageRecipe' :: ImageRecipe -> Maybe (HashMap Text Text)
$sel:platform:ImageRecipe' :: ImageRecipe -> Maybe Platform
$sel:parentImage:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:owner:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:name:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:description:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:dateCreated:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:components:ImageRecipe' :: ImageRecipe -> Maybe (NonEmpty ComponentConfiguration)
$sel:blockDeviceMappings:ImageRecipe' :: ImageRecipe -> Maybe [InstanceBlockDeviceMapping]
$sel:arn:ImageRecipe' :: ImageRecipe -> Maybe Text
$sel:additionalInstanceConfiguration:ImageRecipe' :: ImageRecipe -> Maybe AdditionalInstanceConfiguration
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AdditionalInstanceConfiguration
additionalInstanceConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` 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 [InstanceBlockDeviceMapping]
blockDeviceMappings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty ComponentConfiguration)
components
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 Text
description
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
owner
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
parentImage
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 (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
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
workingDirectory