{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ImageBuilder.CreateContainerRecipe
(
CreateContainerRecipe (..),
newCreateContainerRecipe,
createContainerRecipe_dockerfileTemplateData,
createContainerRecipe_imageOsVersionOverride,
createContainerRecipe_workingDirectory,
createContainerRecipe_dockerfileTemplateUri,
createContainerRecipe_kmsKeyId,
createContainerRecipe_platformOverride,
createContainerRecipe_description,
createContainerRecipe_tags,
createContainerRecipe_instanceConfiguration,
createContainerRecipe_containerType,
createContainerRecipe_name,
createContainerRecipe_semanticVersion,
createContainerRecipe_components,
createContainerRecipe_parentImage,
createContainerRecipe_targetRepository,
createContainerRecipe_clientToken,
CreateContainerRecipeResponse (..),
newCreateContainerRecipeResponse,
createContainerRecipeResponse_requestId,
createContainerRecipeResponse_clientToken,
createContainerRecipeResponse_containerRecipeArn,
createContainerRecipeResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ImageBuilder.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateContainerRecipe = CreateContainerRecipe'
{
CreateContainerRecipe -> Maybe Text
dockerfileTemplateData :: Prelude.Maybe Prelude.Text,
CreateContainerRecipe -> Maybe Text
imageOsVersionOverride :: Prelude.Maybe Prelude.Text,
CreateContainerRecipe -> Maybe Text
workingDirectory :: Prelude.Maybe Prelude.Text,
CreateContainerRecipe -> Maybe Text
dockerfileTemplateUri :: Prelude.Maybe Prelude.Text,
CreateContainerRecipe -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
CreateContainerRecipe -> Maybe Platform
platformOverride :: Prelude.Maybe Platform,
CreateContainerRecipe -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateContainerRecipe -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateContainerRecipe -> Maybe InstanceConfiguration
instanceConfiguration :: Prelude.Maybe InstanceConfiguration,
CreateContainerRecipe -> ContainerType
containerType :: ContainerType,
CreateContainerRecipe -> Text
name :: Prelude.Text,
CreateContainerRecipe -> Text
semanticVersion :: Prelude.Text,
CreateContainerRecipe -> NonEmpty ComponentConfiguration
components :: Prelude.NonEmpty ComponentConfiguration,
CreateContainerRecipe -> Text
parentImage :: Prelude.Text,
CreateContainerRecipe -> TargetContainerRepository
targetRepository :: TargetContainerRepository,
CreateContainerRecipe -> Text
clientToken :: Prelude.Text
}
deriving (CreateContainerRecipe -> CreateContainerRecipe -> Bool
(CreateContainerRecipe -> CreateContainerRecipe -> Bool)
-> (CreateContainerRecipe -> CreateContainerRecipe -> Bool)
-> Eq CreateContainerRecipe
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateContainerRecipe -> CreateContainerRecipe -> Bool
$c/= :: CreateContainerRecipe -> CreateContainerRecipe -> Bool
== :: CreateContainerRecipe -> CreateContainerRecipe -> Bool
$c== :: CreateContainerRecipe -> CreateContainerRecipe -> Bool
Prelude.Eq, ReadPrec [CreateContainerRecipe]
ReadPrec CreateContainerRecipe
Int -> ReadS CreateContainerRecipe
ReadS [CreateContainerRecipe]
(Int -> ReadS CreateContainerRecipe)
-> ReadS [CreateContainerRecipe]
-> ReadPrec CreateContainerRecipe
-> ReadPrec [CreateContainerRecipe]
-> Read CreateContainerRecipe
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateContainerRecipe]
$creadListPrec :: ReadPrec [CreateContainerRecipe]
readPrec :: ReadPrec CreateContainerRecipe
$creadPrec :: ReadPrec CreateContainerRecipe
readList :: ReadS [CreateContainerRecipe]
$creadList :: ReadS [CreateContainerRecipe]
readsPrec :: Int -> ReadS CreateContainerRecipe
$creadsPrec :: Int -> ReadS CreateContainerRecipe
Prelude.Read, Int -> CreateContainerRecipe -> ShowS
[CreateContainerRecipe] -> ShowS
CreateContainerRecipe -> String
(Int -> CreateContainerRecipe -> ShowS)
-> (CreateContainerRecipe -> String)
-> ([CreateContainerRecipe] -> ShowS)
-> Show CreateContainerRecipe
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateContainerRecipe] -> ShowS
$cshowList :: [CreateContainerRecipe] -> ShowS
show :: CreateContainerRecipe -> String
$cshow :: CreateContainerRecipe -> String
showsPrec :: Int -> CreateContainerRecipe -> ShowS
$cshowsPrec :: Int -> CreateContainerRecipe -> ShowS
Prelude.Show, (forall x. CreateContainerRecipe -> Rep CreateContainerRecipe x)
-> (forall x. Rep CreateContainerRecipe x -> CreateContainerRecipe)
-> Generic CreateContainerRecipe
forall x. Rep CreateContainerRecipe x -> CreateContainerRecipe
forall x. CreateContainerRecipe -> Rep CreateContainerRecipe x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateContainerRecipe x -> CreateContainerRecipe
$cfrom :: forall x. CreateContainerRecipe -> Rep CreateContainerRecipe x
Prelude.Generic)
newCreateContainerRecipe ::
ContainerType ->
Prelude.Text ->
Prelude.Text ->
Prelude.NonEmpty ComponentConfiguration ->
Prelude.Text ->
TargetContainerRepository ->
Prelude.Text ->
CreateContainerRecipe
newCreateContainerRecipe :: ContainerType
-> Text
-> Text
-> NonEmpty ComponentConfiguration
-> Text
-> TargetContainerRepository
-> Text
-> CreateContainerRecipe
newCreateContainerRecipe
ContainerType
pContainerType_
Text
pName_
Text
pSemanticVersion_
NonEmpty ComponentConfiguration
pComponents_
Text
pParentImage_
TargetContainerRepository
pTargetRepository_
Text
pClientToken_ =
CreateContainerRecipe' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Platform
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe InstanceConfiguration
-> ContainerType
-> Text
-> Text
-> NonEmpty ComponentConfiguration
-> Text
-> TargetContainerRepository
-> Text
-> CreateContainerRecipe
CreateContainerRecipe'
{ $sel:dockerfileTemplateData:CreateContainerRecipe' :: Maybe Text
dockerfileTemplateData =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:imageOsVersionOverride:CreateContainerRecipe' :: Maybe Text
imageOsVersionOverride = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:workingDirectory:CreateContainerRecipe' :: Maybe Text
workingDirectory = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dockerfileTemplateUri:CreateContainerRecipe' :: Maybe Text
dockerfileTemplateUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:CreateContainerRecipe' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:platformOverride:CreateContainerRecipe' :: Maybe Platform
platformOverride = Maybe Platform
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateContainerRecipe' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateContainerRecipe' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:instanceConfiguration:CreateContainerRecipe' :: Maybe InstanceConfiguration
instanceConfiguration = Maybe InstanceConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:containerType:CreateContainerRecipe' :: ContainerType
containerType = ContainerType
pContainerType_,
$sel:name:CreateContainerRecipe' :: Text
name = Text
pName_,
$sel:semanticVersion:CreateContainerRecipe' :: Text
semanticVersion = Text
pSemanticVersion_,
$sel:components:CreateContainerRecipe' :: NonEmpty ComponentConfiguration
components = Tagged
(NonEmpty ComponentConfiguration)
(Identity (NonEmpty ComponentConfiguration))
-> Tagged
(NonEmpty ComponentConfiguration)
(Identity (NonEmpty ComponentConfiguration))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged
(NonEmpty ComponentConfiguration)
(Identity (NonEmpty ComponentConfiguration))
-> Tagged
(NonEmpty ComponentConfiguration)
(Identity (NonEmpty ComponentConfiguration)))
-> NonEmpty ComponentConfiguration
-> NonEmpty ComponentConfiguration
forall t b. AReview t b -> b -> t
Lens.# NonEmpty ComponentConfiguration
pComponents_,
$sel:parentImage:CreateContainerRecipe' :: Text
parentImage = Text
pParentImage_,
$sel:targetRepository:CreateContainerRecipe' :: TargetContainerRepository
targetRepository = TargetContainerRepository
pTargetRepository_,
$sel:clientToken:CreateContainerRecipe' :: Text
clientToken = Text
pClientToken_
}
createContainerRecipe_dockerfileTemplateData :: Lens.Lens' CreateContainerRecipe (Prelude.Maybe Prelude.Text)
createContainerRecipe_dockerfileTemplateData :: (Maybe Text -> f (Maybe Text))
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_dockerfileTemplateData = (CreateContainerRecipe -> Maybe Text)
-> (CreateContainerRecipe -> Maybe Text -> CreateContainerRecipe)
-> Lens
CreateContainerRecipe
CreateContainerRecipe
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Maybe Text
dockerfileTemplateData :: Maybe Text
$sel:dockerfileTemplateData:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Text
dockerfileTemplateData} -> Maybe Text
dockerfileTemplateData) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Maybe Text
a -> CreateContainerRecipe
s {$sel:dockerfileTemplateData:CreateContainerRecipe' :: Maybe Text
dockerfileTemplateData = Maybe Text
a} :: CreateContainerRecipe)
createContainerRecipe_imageOsVersionOverride :: Lens.Lens' CreateContainerRecipe (Prelude.Maybe Prelude.Text)
createContainerRecipe_imageOsVersionOverride :: (Maybe Text -> f (Maybe Text))
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_imageOsVersionOverride = (CreateContainerRecipe -> Maybe Text)
-> (CreateContainerRecipe -> Maybe Text -> CreateContainerRecipe)
-> Lens
CreateContainerRecipe
CreateContainerRecipe
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Maybe Text
imageOsVersionOverride :: Maybe Text
$sel:imageOsVersionOverride:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Text
imageOsVersionOverride} -> Maybe Text
imageOsVersionOverride) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Maybe Text
a -> CreateContainerRecipe
s {$sel:imageOsVersionOverride:CreateContainerRecipe' :: Maybe Text
imageOsVersionOverride = Maybe Text
a} :: CreateContainerRecipe)
createContainerRecipe_workingDirectory :: Lens.Lens' CreateContainerRecipe (Prelude.Maybe Prelude.Text)
createContainerRecipe_workingDirectory :: (Maybe Text -> f (Maybe Text))
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_workingDirectory = (CreateContainerRecipe -> Maybe Text)
-> (CreateContainerRecipe -> Maybe Text -> CreateContainerRecipe)
-> Lens
CreateContainerRecipe
CreateContainerRecipe
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Maybe Text
workingDirectory :: Maybe Text
$sel:workingDirectory:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Text
workingDirectory} -> Maybe Text
workingDirectory) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Maybe Text
a -> CreateContainerRecipe
s {$sel:workingDirectory:CreateContainerRecipe' :: Maybe Text
workingDirectory = Maybe Text
a} :: CreateContainerRecipe)
createContainerRecipe_dockerfileTemplateUri :: Lens.Lens' CreateContainerRecipe (Prelude.Maybe Prelude.Text)
createContainerRecipe_dockerfileTemplateUri :: (Maybe Text -> f (Maybe Text))
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_dockerfileTemplateUri = (CreateContainerRecipe -> Maybe Text)
-> (CreateContainerRecipe -> Maybe Text -> CreateContainerRecipe)
-> Lens
CreateContainerRecipe
CreateContainerRecipe
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Maybe Text
dockerfileTemplateUri :: Maybe Text
$sel:dockerfileTemplateUri:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Text
dockerfileTemplateUri} -> Maybe Text
dockerfileTemplateUri) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Maybe Text
a -> CreateContainerRecipe
s {$sel:dockerfileTemplateUri:CreateContainerRecipe' :: Maybe Text
dockerfileTemplateUri = Maybe Text
a} :: CreateContainerRecipe)
createContainerRecipe_kmsKeyId :: Lens.Lens' CreateContainerRecipe (Prelude.Maybe Prelude.Text)
createContainerRecipe_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_kmsKeyId = (CreateContainerRecipe -> Maybe Text)
-> (CreateContainerRecipe -> Maybe Text -> CreateContainerRecipe)
-> Lens
CreateContainerRecipe
CreateContainerRecipe
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Maybe Text
a -> CreateContainerRecipe
s {$sel:kmsKeyId:CreateContainerRecipe' :: Maybe Text
kmsKeyId = Maybe Text
a} :: CreateContainerRecipe)
createContainerRecipe_platformOverride :: Lens.Lens' CreateContainerRecipe (Prelude.Maybe Platform)
createContainerRecipe_platformOverride :: (Maybe Platform -> f (Maybe Platform))
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_platformOverride = (CreateContainerRecipe -> Maybe Platform)
-> (CreateContainerRecipe
-> Maybe Platform -> CreateContainerRecipe)
-> Lens
CreateContainerRecipe
CreateContainerRecipe
(Maybe Platform)
(Maybe Platform)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Maybe Platform
platformOverride :: Maybe Platform
$sel:platformOverride:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Platform
platformOverride} -> Maybe Platform
platformOverride) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Maybe Platform
a -> CreateContainerRecipe
s {$sel:platformOverride:CreateContainerRecipe' :: Maybe Platform
platformOverride = Maybe Platform
a} :: CreateContainerRecipe)
createContainerRecipe_description :: Lens.Lens' CreateContainerRecipe (Prelude.Maybe Prelude.Text)
createContainerRecipe_description :: (Maybe Text -> f (Maybe Text))
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_description = (CreateContainerRecipe -> Maybe Text)
-> (CreateContainerRecipe -> Maybe Text -> CreateContainerRecipe)
-> Lens
CreateContainerRecipe
CreateContainerRecipe
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Maybe Text
description :: Maybe Text
$sel:description:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Maybe Text
a -> CreateContainerRecipe
s {$sel:description:CreateContainerRecipe' :: Maybe Text
description = Maybe Text
a} :: CreateContainerRecipe)
createContainerRecipe_tags :: Lens.Lens' CreateContainerRecipe (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createContainerRecipe_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_tags = (CreateContainerRecipe -> Maybe (HashMap Text Text))
-> (CreateContainerRecipe
-> Maybe (HashMap Text Text) -> CreateContainerRecipe)
-> Lens
CreateContainerRecipe
CreateContainerRecipe
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Maybe (HashMap Text Text)
a -> CreateContainerRecipe
s {$sel:tags:CreateContainerRecipe' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateContainerRecipe) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateContainerRecipe -> f CreateContainerRecipe)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateContainerRecipe
-> f CreateContainerRecipe
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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 AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createContainerRecipe_instanceConfiguration :: Lens.Lens' CreateContainerRecipe (Prelude.Maybe InstanceConfiguration)
createContainerRecipe_instanceConfiguration :: (Maybe InstanceConfiguration -> f (Maybe InstanceConfiguration))
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_instanceConfiguration = (CreateContainerRecipe -> Maybe InstanceConfiguration)
-> (CreateContainerRecipe
-> Maybe InstanceConfiguration -> CreateContainerRecipe)
-> Lens
CreateContainerRecipe
CreateContainerRecipe
(Maybe InstanceConfiguration)
(Maybe InstanceConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Maybe InstanceConfiguration
instanceConfiguration :: Maybe InstanceConfiguration
$sel:instanceConfiguration:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe InstanceConfiguration
instanceConfiguration} -> Maybe InstanceConfiguration
instanceConfiguration) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Maybe InstanceConfiguration
a -> CreateContainerRecipe
s {$sel:instanceConfiguration:CreateContainerRecipe' :: Maybe InstanceConfiguration
instanceConfiguration = Maybe InstanceConfiguration
a} :: CreateContainerRecipe)
createContainerRecipe_containerType :: Lens.Lens' CreateContainerRecipe ContainerType
createContainerRecipe_containerType :: (ContainerType -> f ContainerType)
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_containerType = (CreateContainerRecipe -> ContainerType)
-> (CreateContainerRecipe
-> ContainerType -> CreateContainerRecipe)
-> Lens
CreateContainerRecipe
CreateContainerRecipe
ContainerType
ContainerType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {ContainerType
containerType :: ContainerType
$sel:containerType:CreateContainerRecipe' :: CreateContainerRecipe -> ContainerType
containerType} -> ContainerType
containerType) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} ContainerType
a -> CreateContainerRecipe
s {$sel:containerType:CreateContainerRecipe' :: ContainerType
containerType = ContainerType
a} :: CreateContainerRecipe)
createContainerRecipe_name :: Lens.Lens' CreateContainerRecipe Prelude.Text
createContainerRecipe_name :: (Text -> f Text)
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_name = (CreateContainerRecipe -> Text)
-> (CreateContainerRecipe -> Text -> CreateContainerRecipe)
-> Lens CreateContainerRecipe CreateContainerRecipe Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Text
name :: Text
$sel:name:CreateContainerRecipe' :: CreateContainerRecipe -> Text
name} -> Text
name) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Text
a -> CreateContainerRecipe
s {$sel:name:CreateContainerRecipe' :: Text
name = Text
a} :: CreateContainerRecipe)
createContainerRecipe_semanticVersion :: Lens.Lens' CreateContainerRecipe Prelude.Text
createContainerRecipe_semanticVersion :: (Text -> f Text)
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_semanticVersion = (CreateContainerRecipe -> Text)
-> (CreateContainerRecipe -> Text -> CreateContainerRecipe)
-> Lens CreateContainerRecipe CreateContainerRecipe Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Text
semanticVersion :: Text
$sel:semanticVersion:CreateContainerRecipe' :: CreateContainerRecipe -> Text
semanticVersion} -> Text
semanticVersion) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Text
a -> CreateContainerRecipe
s {$sel:semanticVersion:CreateContainerRecipe' :: Text
semanticVersion = Text
a} :: CreateContainerRecipe)
createContainerRecipe_components :: Lens.Lens' CreateContainerRecipe (Prelude.NonEmpty ComponentConfiguration)
createContainerRecipe_components :: (NonEmpty ComponentConfiguration
-> f (NonEmpty ComponentConfiguration))
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_components = (CreateContainerRecipe -> NonEmpty ComponentConfiguration)
-> (CreateContainerRecipe
-> NonEmpty ComponentConfiguration -> CreateContainerRecipe)
-> Lens
CreateContainerRecipe
CreateContainerRecipe
(NonEmpty ComponentConfiguration)
(NonEmpty ComponentConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {NonEmpty ComponentConfiguration
components :: NonEmpty ComponentConfiguration
$sel:components:CreateContainerRecipe' :: CreateContainerRecipe -> NonEmpty ComponentConfiguration
components} -> NonEmpty ComponentConfiguration
components) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} NonEmpty ComponentConfiguration
a -> CreateContainerRecipe
s {$sel:components:CreateContainerRecipe' :: NonEmpty ComponentConfiguration
components = NonEmpty ComponentConfiguration
a} :: CreateContainerRecipe) ((NonEmpty ComponentConfiguration
-> f (NonEmpty ComponentConfiguration))
-> CreateContainerRecipe -> f CreateContainerRecipe)
-> ((NonEmpty ComponentConfiguration
-> f (NonEmpty ComponentConfiguration))
-> NonEmpty ComponentConfiguration
-> f (NonEmpty ComponentConfiguration))
-> (NonEmpty ComponentConfiguration
-> f (NonEmpty ComponentConfiguration))
-> CreateContainerRecipe
-> f CreateContainerRecipe
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty ComponentConfiguration
-> f (NonEmpty ComponentConfiguration))
-> NonEmpty ComponentConfiguration
-> f (NonEmpty ComponentConfiguration)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createContainerRecipe_parentImage :: Lens.Lens' CreateContainerRecipe Prelude.Text
createContainerRecipe_parentImage :: (Text -> f Text)
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_parentImage = (CreateContainerRecipe -> Text)
-> (CreateContainerRecipe -> Text -> CreateContainerRecipe)
-> Lens CreateContainerRecipe CreateContainerRecipe Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Text
parentImage :: Text
$sel:parentImage:CreateContainerRecipe' :: CreateContainerRecipe -> Text
parentImage} -> Text
parentImage) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Text
a -> CreateContainerRecipe
s {$sel:parentImage:CreateContainerRecipe' :: Text
parentImage = Text
a} :: CreateContainerRecipe)
createContainerRecipe_targetRepository :: Lens.Lens' CreateContainerRecipe TargetContainerRepository
createContainerRecipe_targetRepository :: (TargetContainerRepository -> f TargetContainerRepository)
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_targetRepository = (CreateContainerRecipe -> TargetContainerRepository)
-> (CreateContainerRecipe
-> TargetContainerRepository -> CreateContainerRecipe)
-> Lens
CreateContainerRecipe
CreateContainerRecipe
TargetContainerRepository
TargetContainerRepository
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {TargetContainerRepository
targetRepository :: TargetContainerRepository
$sel:targetRepository:CreateContainerRecipe' :: CreateContainerRecipe -> TargetContainerRepository
targetRepository} -> TargetContainerRepository
targetRepository) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} TargetContainerRepository
a -> CreateContainerRecipe
s {$sel:targetRepository:CreateContainerRecipe' :: TargetContainerRepository
targetRepository = TargetContainerRepository
a} :: CreateContainerRecipe)
createContainerRecipe_clientToken :: Lens.Lens' CreateContainerRecipe Prelude.Text
createContainerRecipe_clientToken :: (Text -> f Text)
-> CreateContainerRecipe -> f CreateContainerRecipe
createContainerRecipe_clientToken = (CreateContainerRecipe -> Text)
-> (CreateContainerRecipe -> Text -> CreateContainerRecipe)
-> Lens CreateContainerRecipe CreateContainerRecipe Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipe' {Text
clientToken :: Text
$sel:clientToken:CreateContainerRecipe' :: CreateContainerRecipe -> Text
clientToken} -> Text
clientToken) (\s :: CreateContainerRecipe
s@CreateContainerRecipe' {} Text
a -> CreateContainerRecipe
s {$sel:clientToken:CreateContainerRecipe' :: Text
clientToken = Text
a} :: CreateContainerRecipe)
instance Core.AWSRequest CreateContainerRecipe where
type
AWSResponse CreateContainerRecipe =
CreateContainerRecipeResponse
request :: CreateContainerRecipe -> Request CreateContainerRecipe
request = Service -> CreateContainerRecipe -> Request CreateContainerRecipe
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateContainerRecipe
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateContainerRecipe)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateContainerRecipe))
-> Logger
-> Service
-> Proxy CreateContainerRecipe
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateContainerRecipe)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text -> Maybe Text -> Int -> CreateContainerRecipeResponse
CreateContainerRecipeResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateContainerRecipeResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> CreateContainerRecipeResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"requestId")
Either
String
(Maybe Text -> Maybe Text -> Int -> CreateContainerRecipeResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> CreateContainerRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"clientToken")
Either String (Maybe Text -> Int -> CreateContainerRecipeResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateContainerRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"containerRecipeArn")
Either String (Int -> CreateContainerRecipeResponse)
-> Either String Int -> Either String CreateContainerRecipeResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable CreateContainerRecipe
instance Prelude.NFData CreateContainerRecipe
instance Core.ToHeaders CreateContainerRecipe where
toHeaders :: CreateContainerRecipe -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateContainerRecipe -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreateContainerRecipe where
toJSON :: CreateContainerRecipe -> Value
toJSON CreateContainerRecipe' {Maybe Text
Maybe (HashMap Text Text)
Maybe InstanceConfiguration
Maybe Platform
NonEmpty ComponentConfiguration
Text
ContainerType
TargetContainerRepository
clientToken :: Text
targetRepository :: TargetContainerRepository
parentImage :: Text
components :: NonEmpty ComponentConfiguration
semanticVersion :: Text
name :: Text
containerType :: ContainerType
instanceConfiguration :: Maybe InstanceConfiguration
tags :: Maybe (HashMap Text Text)
description :: Maybe Text
platformOverride :: Maybe Platform
kmsKeyId :: Maybe Text
dockerfileTemplateUri :: Maybe Text
workingDirectory :: Maybe Text
imageOsVersionOverride :: Maybe Text
dockerfileTemplateData :: Maybe Text
$sel:clientToken:CreateContainerRecipe' :: CreateContainerRecipe -> Text
$sel:targetRepository:CreateContainerRecipe' :: CreateContainerRecipe -> TargetContainerRepository
$sel:parentImage:CreateContainerRecipe' :: CreateContainerRecipe -> Text
$sel:components:CreateContainerRecipe' :: CreateContainerRecipe -> NonEmpty ComponentConfiguration
$sel:semanticVersion:CreateContainerRecipe' :: CreateContainerRecipe -> Text
$sel:name:CreateContainerRecipe' :: CreateContainerRecipe -> Text
$sel:containerType:CreateContainerRecipe' :: CreateContainerRecipe -> ContainerType
$sel:instanceConfiguration:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe InstanceConfiguration
$sel:tags:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe (HashMap Text Text)
$sel:description:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Text
$sel:platformOverride:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Platform
$sel:kmsKeyId:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Text
$sel:dockerfileTemplateUri:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Text
$sel:workingDirectory:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Text
$sel:imageOsVersionOverride:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Text
$sel:dockerfileTemplateData:CreateContainerRecipe' :: CreateContainerRecipe -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"dockerfileTemplateData" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
dockerfileTemplateData,
(Text
"imageOsVersionOverride" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
imageOsVersionOverride,
(Text
"workingDirectory" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
workingDirectory,
(Text
"dockerfileTemplateUri" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
dockerfileTemplateUri,
(Text
"kmsKeyId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
kmsKeyId,
(Text
"platformOverride" Text -> Platform -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Platform -> Pair) -> Maybe Platform -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Platform
platformOverride,
(Text
"description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
(Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
(Text
"instanceConfiguration" Text -> InstanceConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(InstanceConfiguration -> Pair)
-> Maybe InstanceConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InstanceConfiguration
instanceConfiguration,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"containerType" Text -> ContainerType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ContainerType
containerType),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"semanticVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
semanticVersion),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"components" Text -> NonEmpty ComponentConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty ComponentConfiguration
components),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"parentImage" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
parentImage),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"targetRepository" Text -> TargetContainerRepository -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= TargetContainerRepository
targetRepository),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"clientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clientToken)
]
)
instance Core.ToPath CreateContainerRecipe where
toPath :: CreateContainerRecipe -> ByteString
toPath = ByteString -> CreateContainerRecipe -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/CreateContainerRecipe"
instance Core.ToQuery CreateContainerRecipe where
toQuery :: CreateContainerRecipe -> QueryString
toQuery = QueryString -> CreateContainerRecipe -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateContainerRecipeResponse = CreateContainerRecipeResponse'
{
CreateContainerRecipeResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
CreateContainerRecipeResponse -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateContainerRecipeResponse -> Maybe Text
containerRecipeArn :: Prelude.Maybe Prelude.Text,
CreateContainerRecipeResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateContainerRecipeResponse
-> CreateContainerRecipeResponse -> Bool
(CreateContainerRecipeResponse
-> CreateContainerRecipeResponse -> Bool)
-> (CreateContainerRecipeResponse
-> CreateContainerRecipeResponse -> Bool)
-> Eq CreateContainerRecipeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateContainerRecipeResponse
-> CreateContainerRecipeResponse -> Bool
$c/= :: CreateContainerRecipeResponse
-> CreateContainerRecipeResponse -> Bool
== :: CreateContainerRecipeResponse
-> CreateContainerRecipeResponse -> Bool
$c== :: CreateContainerRecipeResponse
-> CreateContainerRecipeResponse -> Bool
Prelude.Eq, ReadPrec [CreateContainerRecipeResponse]
ReadPrec CreateContainerRecipeResponse
Int -> ReadS CreateContainerRecipeResponse
ReadS [CreateContainerRecipeResponse]
(Int -> ReadS CreateContainerRecipeResponse)
-> ReadS [CreateContainerRecipeResponse]
-> ReadPrec CreateContainerRecipeResponse
-> ReadPrec [CreateContainerRecipeResponse]
-> Read CreateContainerRecipeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateContainerRecipeResponse]
$creadListPrec :: ReadPrec [CreateContainerRecipeResponse]
readPrec :: ReadPrec CreateContainerRecipeResponse
$creadPrec :: ReadPrec CreateContainerRecipeResponse
readList :: ReadS [CreateContainerRecipeResponse]
$creadList :: ReadS [CreateContainerRecipeResponse]
readsPrec :: Int -> ReadS CreateContainerRecipeResponse
$creadsPrec :: Int -> ReadS CreateContainerRecipeResponse
Prelude.Read, Int -> CreateContainerRecipeResponse -> ShowS
[CreateContainerRecipeResponse] -> ShowS
CreateContainerRecipeResponse -> String
(Int -> CreateContainerRecipeResponse -> ShowS)
-> (CreateContainerRecipeResponse -> String)
-> ([CreateContainerRecipeResponse] -> ShowS)
-> Show CreateContainerRecipeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateContainerRecipeResponse] -> ShowS
$cshowList :: [CreateContainerRecipeResponse] -> ShowS
show :: CreateContainerRecipeResponse -> String
$cshow :: CreateContainerRecipeResponse -> String
showsPrec :: Int -> CreateContainerRecipeResponse -> ShowS
$cshowsPrec :: Int -> CreateContainerRecipeResponse -> ShowS
Prelude.Show, (forall x.
CreateContainerRecipeResponse
-> Rep CreateContainerRecipeResponse x)
-> (forall x.
Rep CreateContainerRecipeResponse x
-> CreateContainerRecipeResponse)
-> Generic CreateContainerRecipeResponse
forall x.
Rep CreateContainerRecipeResponse x
-> CreateContainerRecipeResponse
forall x.
CreateContainerRecipeResponse
-> Rep CreateContainerRecipeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateContainerRecipeResponse x
-> CreateContainerRecipeResponse
$cfrom :: forall x.
CreateContainerRecipeResponse
-> Rep CreateContainerRecipeResponse x
Prelude.Generic)
newCreateContainerRecipeResponse ::
Prelude.Int ->
CreateContainerRecipeResponse
newCreateContainerRecipeResponse :: Int -> CreateContainerRecipeResponse
newCreateContainerRecipeResponse Int
pHttpStatus_ =
CreateContainerRecipeResponse' :: Maybe Text
-> Maybe Text -> Maybe Text -> Int -> CreateContainerRecipeResponse
CreateContainerRecipeResponse'
{ $sel:requestId:CreateContainerRecipeResponse' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clientToken:CreateContainerRecipeResponse' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:containerRecipeArn:CreateContainerRecipeResponse' :: Maybe Text
containerRecipeArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateContainerRecipeResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createContainerRecipeResponse_requestId :: Lens.Lens' CreateContainerRecipeResponse (Prelude.Maybe Prelude.Text)
createContainerRecipeResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> CreateContainerRecipeResponse -> f CreateContainerRecipeResponse
createContainerRecipeResponse_requestId = (CreateContainerRecipeResponse -> Maybe Text)
-> (CreateContainerRecipeResponse
-> Maybe Text -> CreateContainerRecipeResponse)
-> Lens
CreateContainerRecipeResponse
CreateContainerRecipeResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipeResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:CreateContainerRecipeResponse' :: CreateContainerRecipeResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: CreateContainerRecipeResponse
s@CreateContainerRecipeResponse' {} Maybe Text
a -> CreateContainerRecipeResponse
s {$sel:requestId:CreateContainerRecipeResponse' :: Maybe Text
requestId = Maybe Text
a} :: CreateContainerRecipeResponse)
createContainerRecipeResponse_clientToken :: Lens.Lens' CreateContainerRecipeResponse (Prelude.Maybe Prelude.Text)
createContainerRecipeResponse_clientToken :: (Maybe Text -> f (Maybe Text))
-> CreateContainerRecipeResponse -> f CreateContainerRecipeResponse
createContainerRecipeResponse_clientToken = (CreateContainerRecipeResponse -> Maybe Text)
-> (CreateContainerRecipeResponse
-> Maybe Text -> CreateContainerRecipeResponse)
-> Lens
CreateContainerRecipeResponse
CreateContainerRecipeResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipeResponse' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateContainerRecipeResponse' :: CreateContainerRecipeResponse -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateContainerRecipeResponse
s@CreateContainerRecipeResponse' {} Maybe Text
a -> CreateContainerRecipeResponse
s {$sel:clientToken:CreateContainerRecipeResponse' :: Maybe Text
clientToken = Maybe Text
a} :: CreateContainerRecipeResponse)
createContainerRecipeResponse_containerRecipeArn :: Lens.Lens' CreateContainerRecipeResponse (Prelude.Maybe Prelude.Text)
createContainerRecipeResponse_containerRecipeArn :: (Maybe Text -> f (Maybe Text))
-> CreateContainerRecipeResponse -> f CreateContainerRecipeResponse
createContainerRecipeResponse_containerRecipeArn = (CreateContainerRecipeResponse -> Maybe Text)
-> (CreateContainerRecipeResponse
-> Maybe Text -> CreateContainerRecipeResponse)
-> Lens
CreateContainerRecipeResponse
CreateContainerRecipeResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipeResponse' {Maybe Text
containerRecipeArn :: Maybe Text
$sel:containerRecipeArn:CreateContainerRecipeResponse' :: CreateContainerRecipeResponse -> Maybe Text
containerRecipeArn} -> Maybe Text
containerRecipeArn) (\s :: CreateContainerRecipeResponse
s@CreateContainerRecipeResponse' {} Maybe Text
a -> CreateContainerRecipeResponse
s {$sel:containerRecipeArn:CreateContainerRecipeResponse' :: Maybe Text
containerRecipeArn = Maybe Text
a} :: CreateContainerRecipeResponse)
createContainerRecipeResponse_httpStatus :: Lens.Lens' CreateContainerRecipeResponse Prelude.Int
createContainerRecipeResponse_httpStatus :: (Int -> f Int)
-> CreateContainerRecipeResponse -> f CreateContainerRecipeResponse
createContainerRecipeResponse_httpStatus = (CreateContainerRecipeResponse -> Int)
-> (CreateContainerRecipeResponse
-> Int -> CreateContainerRecipeResponse)
-> Lens
CreateContainerRecipeResponse CreateContainerRecipeResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateContainerRecipeResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateContainerRecipeResponse' :: CreateContainerRecipeResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateContainerRecipeResponse
s@CreateContainerRecipeResponse' {} Int
a -> CreateContainerRecipeResponse
s {$sel:httpStatus:CreateContainerRecipeResponse' :: Int
httpStatus = Int
a} :: CreateContainerRecipeResponse)
instance Prelude.NFData CreateContainerRecipeResponse