{-# 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.ElasticBeanstalk.CreateEnvironment
(
CreateEnvironment (..),
newCreateEnvironment,
createEnvironment_cNAMEPrefix,
createEnvironment_templateName,
createEnvironment_optionsToRemove,
createEnvironment_optionSettings,
createEnvironment_versionLabel,
createEnvironment_operationsRole,
createEnvironment_platformArn,
createEnvironment_tier,
createEnvironment_environmentName,
createEnvironment_solutionStackName,
createEnvironment_groupName,
createEnvironment_description,
createEnvironment_tags,
createEnvironment_applicationName,
EnvironmentDescription (..),
newEnvironmentDescription,
environmentDescription_status,
environmentDescription_cname,
environmentDescription_templateName,
environmentDescription_abortableOperationInProgress,
environmentDescription_endpointURL,
environmentDescription_resources,
environmentDescription_dateUpdated,
environmentDescription_dateCreated,
environmentDescription_health,
environmentDescription_versionLabel,
environmentDescription_operationsRole,
environmentDescription_platformArn,
environmentDescription_tier,
environmentDescription_environmentName,
environmentDescription_applicationName,
environmentDescription_environmentArn,
environmentDescription_solutionStackName,
environmentDescription_environmentId,
environmentDescription_healthStatus,
environmentDescription_environmentLinks,
environmentDescription_description,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ElasticBeanstalk.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 CreateEnvironment = CreateEnvironment'
{
CreateEnvironment -> Maybe Text
cNAMEPrefix :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe Text
templateName :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe [OptionSpecification]
optionsToRemove :: Prelude.Maybe [OptionSpecification],
CreateEnvironment -> Maybe [ConfigurationOptionSetting]
optionSettings :: Prelude.Maybe [ConfigurationOptionSetting],
CreateEnvironment -> Maybe Text
versionLabel :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe Text
operationsRole :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe Text
platformArn :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe EnvironmentTier
tier :: Prelude.Maybe EnvironmentTier,
CreateEnvironment -> Maybe Text
environmentName :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe Text
solutionStackName :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe Text
groupName :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateEnvironment -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateEnvironment -> Text
applicationName :: Prelude.Text
}
deriving (CreateEnvironment -> CreateEnvironment -> Bool
(CreateEnvironment -> CreateEnvironment -> Bool)
-> (CreateEnvironment -> CreateEnvironment -> Bool)
-> Eq CreateEnvironment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateEnvironment -> CreateEnvironment -> Bool
$c/= :: CreateEnvironment -> CreateEnvironment -> Bool
== :: CreateEnvironment -> CreateEnvironment -> Bool
$c== :: CreateEnvironment -> CreateEnvironment -> Bool
Prelude.Eq, ReadPrec [CreateEnvironment]
ReadPrec CreateEnvironment
Int -> ReadS CreateEnvironment
ReadS [CreateEnvironment]
(Int -> ReadS CreateEnvironment)
-> ReadS [CreateEnvironment]
-> ReadPrec CreateEnvironment
-> ReadPrec [CreateEnvironment]
-> Read CreateEnvironment
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateEnvironment]
$creadListPrec :: ReadPrec [CreateEnvironment]
readPrec :: ReadPrec CreateEnvironment
$creadPrec :: ReadPrec CreateEnvironment
readList :: ReadS [CreateEnvironment]
$creadList :: ReadS [CreateEnvironment]
readsPrec :: Int -> ReadS CreateEnvironment
$creadsPrec :: Int -> ReadS CreateEnvironment
Prelude.Read, Int -> CreateEnvironment -> ShowS
[CreateEnvironment] -> ShowS
CreateEnvironment -> String
(Int -> CreateEnvironment -> ShowS)
-> (CreateEnvironment -> String)
-> ([CreateEnvironment] -> ShowS)
-> Show CreateEnvironment
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateEnvironment] -> ShowS
$cshowList :: [CreateEnvironment] -> ShowS
show :: CreateEnvironment -> String
$cshow :: CreateEnvironment -> String
showsPrec :: Int -> CreateEnvironment -> ShowS
$cshowsPrec :: Int -> CreateEnvironment -> ShowS
Prelude.Show, (forall x. CreateEnvironment -> Rep CreateEnvironment x)
-> (forall x. Rep CreateEnvironment x -> CreateEnvironment)
-> Generic CreateEnvironment
forall x. Rep CreateEnvironment x -> CreateEnvironment
forall x. CreateEnvironment -> Rep CreateEnvironment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateEnvironment x -> CreateEnvironment
$cfrom :: forall x. CreateEnvironment -> Rep CreateEnvironment x
Prelude.Generic)
newCreateEnvironment ::
Prelude.Text ->
CreateEnvironment
newCreateEnvironment :: Text -> CreateEnvironment
newCreateEnvironment Text
pApplicationName_ =
CreateEnvironment' :: Maybe Text
-> Maybe Text
-> Maybe [OptionSpecification]
-> Maybe [ConfigurationOptionSetting]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EnvironmentTier
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Text
-> CreateEnvironment
CreateEnvironment'
{ $sel:cNAMEPrefix:CreateEnvironment' :: Maybe Text
cNAMEPrefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateName:CreateEnvironment' :: Maybe Text
templateName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:optionsToRemove:CreateEnvironment' :: Maybe [OptionSpecification]
optionsToRemove = Maybe [OptionSpecification]
forall a. Maybe a
Prelude.Nothing,
$sel:optionSettings:CreateEnvironment' :: Maybe [ConfigurationOptionSetting]
optionSettings = Maybe [ConfigurationOptionSetting]
forall a. Maybe a
Prelude.Nothing,
$sel:versionLabel:CreateEnvironment' :: Maybe Text
versionLabel = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:operationsRole:CreateEnvironment' :: Maybe Text
operationsRole = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:platformArn:CreateEnvironment' :: Maybe Text
platformArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tier:CreateEnvironment' :: Maybe EnvironmentTier
tier = Maybe EnvironmentTier
forall a. Maybe a
Prelude.Nothing,
$sel:environmentName:CreateEnvironment' :: Maybe Text
environmentName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:solutionStackName:CreateEnvironment' :: Maybe Text
solutionStackName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:groupName:CreateEnvironment' :: Maybe Text
groupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateEnvironment' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateEnvironment' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:applicationName:CreateEnvironment' :: Text
applicationName = Text
pApplicationName_
}
createEnvironment_cNAMEPrefix :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_cNAMEPrefix :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_cNAMEPrefix = (CreateEnvironment -> Maybe Text)
-> (CreateEnvironment -> Maybe Text -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Text
cNAMEPrefix :: Maybe Text
$sel:cNAMEPrefix:CreateEnvironment' :: CreateEnvironment -> Maybe Text
cNAMEPrefix} -> Maybe Text
cNAMEPrefix) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:cNAMEPrefix:CreateEnvironment' :: Maybe Text
cNAMEPrefix = Maybe Text
a} :: CreateEnvironment)
createEnvironment_templateName :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_templateName :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_templateName = (CreateEnvironment -> Maybe Text)
-> (CreateEnvironment -> Maybe Text -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Text
templateName :: Maybe Text
$sel:templateName:CreateEnvironment' :: CreateEnvironment -> Maybe Text
templateName} -> Maybe Text
templateName) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:templateName:CreateEnvironment' :: Maybe Text
templateName = Maybe Text
a} :: CreateEnvironment)
createEnvironment_optionsToRemove :: Lens.Lens' CreateEnvironment (Prelude.Maybe [OptionSpecification])
createEnvironment_optionsToRemove :: (Maybe [OptionSpecification] -> f (Maybe [OptionSpecification]))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_optionsToRemove = (CreateEnvironment -> Maybe [OptionSpecification])
-> (CreateEnvironment
-> Maybe [OptionSpecification] -> CreateEnvironment)
-> Lens
CreateEnvironment
CreateEnvironment
(Maybe [OptionSpecification])
(Maybe [OptionSpecification])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe [OptionSpecification]
optionsToRemove :: Maybe [OptionSpecification]
$sel:optionsToRemove:CreateEnvironment' :: CreateEnvironment -> Maybe [OptionSpecification]
optionsToRemove} -> Maybe [OptionSpecification]
optionsToRemove) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe [OptionSpecification]
a -> CreateEnvironment
s {$sel:optionsToRemove:CreateEnvironment' :: Maybe [OptionSpecification]
optionsToRemove = Maybe [OptionSpecification]
a} :: CreateEnvironment) ((Maybe [OptionSpecification] -> f (Maybe [OptionSpecification]))
-> CreateEnvironment -> f CreateEnvironment)
-> ((Maybe [OptionSpecification]
-> f (Maybe [OptionSpecification]))
-> Maybe [OptionSpecification] -> f (Maybe [OptionSpecification]))
-> (Maybe [OptionSpecification] -> f (Maybe [OptionSpecification]))
-> CreateEnvironment
-> f CreateEnvironment
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[OptionSpecification]
[OptionSpecification]
[OptionSpecification]
[OptionSpecification]
-> Iso
(Maybe [OptionSpecification])
(Maybe [OptionSpecification])
(Maybe [OptionSpecification])
(Maybe [OptionSpecification])
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
[OptionSpecification]
[OptionSpecification]
[OptionSpecification]
[OptionSpecification]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createEnvironment_optionSettings :: Lens.Lens' CreateEnvironment (Prelude.Maybe [ConfigurationOptionSetting])
createEnvironment_optionSettings :: (Maybe [ConfigurationOptionSetting]
-> f (Maybe [ConfigurationOptionSetting]))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_optionSettings = (CreateEnvironment -> Maybe [ConfigurationOptionSetting])
-> (CreateEnvironment
-> Maybe [ConfigurationOptionSetting] -> CreateEnvironment)
-> Lens
CreateEnvironment
CreateEnvironment
(Maybe [ConfigurationOptionSetting])
(Maybe [ConfigurationOptionSetting])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe [ConfigurationOptionSetting]
optionSettings :: Maybe [ConfigurationOptionSetting]
$sel:optionSettings:CreateEnvironment' :: CreateEnvironment -> Maybe [ConfigurationOptionSetting]
optionSettings} -> Maybe [ConfigurationOptionSetting]
optionSettings) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe [ConfigurationOptionSetting]
a -> CreateEnvironment
s {$sel:optionSettings:CreateEnvironment' :: Maybe [ConfigurationOptionSetting]
optionSettings = Maybe [ConfigurationOptionSetting]
a} :: CreateEnvironment) ((Maybe [ConfigurationOptionSetting]
-> f (Maybe [ConfigurationOptionSetting]))
-> CreateEnvironment -> f CreateEnvironment)
-> ((Maybe [ConfigurationOptionSetting]
-> f (Maybe [ConfigurationOptionSetting]))
-> Maybe [ConfigurationOptionSetting]
-> f (Maybe [ConfigurationOptionSetting]))
-> (Maybe [ConfigurationOptionSetting]
-> f (Maybe [ConfigurationOptionSetting]))
-> CreateEnvironment
-> f CreateEnvironment
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ConfigurationOptionSetting]
[ConfigurationOptionSetting]
[ConfigurationOptionSetting]
[ConfigurationOptionSetting]
-> Iso
(Maybe [ConfigurationOptionSetting])
(Maybe [ConfigurationOptionSetting])
(Maybe [ConfigurationOptionSetting])
(Maybe [ConfigurationOptionSetting])
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
[ConfigurationOptionSetting]
[ConfigurationOptionSetting]
[ConfigurationOptionSetting]
[ConfigurationOptionSetting]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createEnvironment_versionLabel :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_versionLabel :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_versionLabel = (CreateEnvironment -> Maybe Text)
-> (CreateEnvironment -> Maybe Text -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Text
versionLabel :: Maybe Text
$sel:versionLabel:CreateEnvironment' :: CreateEnvironment -> Maybe Text
versionLabel} -> Maybe Text
versionLabel) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:versionLabel:CreateEnvironment' :: Maybe Text
versionLabel = Maybe Text
a} :: CreateEnvironment)
createEnvironment_operationsRole :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_operationsRole :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_operationsRole = (CreateEnvironment -> Maybe Text)
-> (CreateEnvironment -> Maybe Text -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Text
operationsRole :: Maybe Text
$sel:operationsRole:CreateEnvironment' :: CreateEnvironment -> Maybe Text
operationsRole} -> Maybe Text
operationsRole) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:operationsRole:CreateEnvironment' :: Maybe Text
operationsRole = Maybe Text
a} :: CreateEnvironment)
createEnvironment_platformArn :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_platformArn :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_platformArn = (CreateEnvironment -> Maybe Text)
-> (CreateEnvironment -> Maybe Text -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Text
platformArn :: Maybe Text
$sel:platformArn:CreateEnvironment' :: CreateEnvironment -> Maybe Text
platformArn} -> Maybe Text
platformArn) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:platformArn:CreateEnvironment' :: Maybe Text
platformArn = Maybe Text
a} :: CreateEnvironment)
createEnvironment_tier :: Lens.Lens' CreateEnvironment (Prelude.Maybe EnvironmentTier)
createEnvironment_tier :: (Maybe EnvironmentTier -> f (Maybe EnvironmentTier))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_tier = (CreateEnvironment -> Maybe EnvironmentTier)
-> (CreateEnvironment
-> Maybe EnvironmentTier -> CreateEnvironment)
-> Lens
CreateEnvironment
CreateEnvironment
(Maybe EnvironmentTier)
(Maybe EnvironmentTier)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe EnvironmentTier
tier :: Maybe EnvironmentTier
$sel:tier:CreateEnvironment' :: CreateEnvironment -> Maybe EnvironmentTier
tier} -> Maybe EnvironmentTier
tier) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe EnvironmentTier
a -> CreateEnvironment
s {$sel:tier:CreateEnvironment' :: Maybe EnvironmentTier
tier = Maybe EnvironmentTier
a} :: CreateEnvironment)
createEnvironment_environmentName :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_environmentName :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_environmentName = (CreateEnvironment -> Maybe Text)
-> (CreateEnvironment -> Maybe Text -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Text
environmentName :: Maybe Text
$sel:environmentName:CreateEnvironment' :: CreateEnvironment -> Maybe Text
environmentName} -> Maybe Text
environmentName) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:environmentName:CreateEnvironment' :: Maybe Text
environmentName = Maybe Text
a} :: CreateEnvironment)
createEnvironment_solutionStackName :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_solutionStackName :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_solutionStackName = (CreateEnvironment -> Maybe Text)
-> (CreateEnvironment -> Maybe Text -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Text
solutionStackName :: Maybe Text
$sel:solutionStackName:CreateEnvironment' :: CreateEnvironment -> Maybe Text
solutionStackName} -> Maybe Text
solutionStackName) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:solutionStackName:CreateEnvironment' :: Maybe Text
solutionStackName = Maybe Text
a} :: CreateEnvironment)
createEnvironment_groupName :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_groupName :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_groupName = (CreateEnvironment -> Maybe Text)
-> (CreateEnvironment -> Maybe Text -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Text
groupName :: Maybe Text
$sel:groupName:CreateEnvironment' :: CreateEnvironment -> Maybe Text
groupName} -> Maybe Text
groupName) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:groupName:CreateEnvironment' :: Maybe Text
groupName = Maybe Text
a} :: CreateEnvironment)
createEnvironment_description :: Lens.Lens' CreateEnvironment (Prelude.Maybe Prelude.Text)
createEnvironment_description :: (Maybe Text -> f (Maybe Text))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_description = (CreateEnvironment -> Maybe Text)
-> (CreateEnvironment -> Maybe Text -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe Text
description :: Maybe Text
$sel:description:CreateEnvironment' :: CreateEnvironment -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe Text
a -> CreateEnvironment
s {$sel:description:CreateEnvironment' :: Maybe Text
description = Maybe Text
a} :: CreateEnvironment)
createEnvironment_tags :: Lens.Lens' CreateEnvironment (Prelude.Maybe [Tag])
createEnvironment_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateEnvironment -> f CreateEnvironment
createEnvironment_tags = (CreateEnvironment -> Maybe [Tag])
-> (CreateEnvironment -> Maybe [Tag] -> CreateEnvironment)
-> Lens
CreateEnvironment CreateEnvironment (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateEnvironment' :: CreateEnvironment -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateEnvironment
s@CreateEnvironment' {} Maybe [Tag]
a -> CreateEnvironment
s {$sel:tags:CreateEnvironment' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateEnvironment) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateEnvironment -> f CreateEnvironment)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateEnvironment
-> f CreateEnvironment
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createEnvironment_applicationName :: Lens.Lens' CreateEnvironment Prelude.Text
createEnvironment_applicationName :: (Text -> f Text) -> CreateEnvironment -> f CreateEnvironment
createEnvironment_applicationName = (CreateEnvironment -> Text)
-> (CreateEnvironment -> Text -> CreateEnvironment)
-> Lens CreateEnvironment CreateEnvironment Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEnvironment' {Text
applicationName :: Text
$sel:applicationName:CreateEnvironment' :: CreateEnvironment -> Text
applicationName} -> Text
applicationName) (\s :: CreateEnvironment
s@CreateEnvironment' {} Text
a -> CreateEnvironment
s {$sel:applicationName:CreateEnvironment' :: Text
applicationName = Text
a} :: CreateEnvironment)
instance Core.AWSRequest CreateEnvironment where
type
AWSResponse CreateEnvironment =
EnvironmentDescription
request :: CreateEnvironment -> Request CreateEnvironment
request = Service -> CreateEnvironment -> Request CreateEnvironment
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy CreateEnvironment
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateEnvironment)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateEnvironment))
-> Logger
-> Service
-> Proxy CreateEnvironment
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateEnvironment)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"CreateEnvironmentResult"
(\Int
s ResponseHeaders
h [Node]
x -> [Node] -> Either String EnvironmentDescription
forall a. FromXML a => [Node] -> Either String a
Core.parseXML [Node]
x)
instance Prelude.Hashable CreateEnvironment
instance Prelude.NFData CreateEnvironment
instance Core.ToHeaders CreateEnvironment where
toHeaders :: CreateEnvironment -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateEnvironment -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath CreateEnvironment where
toPath :: CreateEnvironment -> ByteString
toPath = ByteString -> CreateEnvironment -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateEnvironment where
toQuery :: CreateEnvironment -> QueryString
toQuery CreateEnvironment' {Maybe [ConfigurationOptionSetting]
Maybe [OptionSpecification]
Maybe [Tag]
Maybe Text
Maybe EnvironmentTier
Text
applicationName :: Text
tags :: Maybe [Tag]
description :: Maybe Text
groupName :: Maybe Text
solutionStackName :: Maybe Text
environmentName :: Maybe Text
tier :: Maybe EnvironmentTier
platformArn :: Maybe Text
operationsRole :: Maybe Text
versionLabel :: Maybe Text
optionSettings :: Maybe [ConfigurationOptionSetting]
optionsToRemove :: Maybe [OptionSpecification]
templateName :: Maybe Text
cNAMEPrefix :: Maybe Text
$sel:applicationName:CreateEnvironment' :: CreateEnvironment -> Text
$sel:tags:CreateEnvironment' :: CreateEnvironment -> Maybe [Tag]
$sel:description:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:groupName:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:solutionStackName:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:environmentName:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:tier:CreateEnvironment' :: CreateEnvironment -> Maybe EnvironmentTier
$sel:platformArn:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:operationsRole:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:versionLabel:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:optionSettings:CreateEnvironment' :: CreateEnvironment -> Maybe [ConfigurationOptionSetting]
$sel:optionsToRemove:CreateEnvironment' :: CreateEnvironment -> Maybe [OptionSpecification]
$sel:templateName:CreateEnvironment' :: CreateEnvironment -> Maybe Text
$sel:cNAMEPrefix:CreateEnvironment' :: CreateEnvironment -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"CreateEnvironment" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
ByteString
"CNAMEPrefix" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
cNAMEPrefix,
ByteString
"TemplateName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
templateName,
ByteString
"OptionsToRemove"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [OptionSpecification] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
([OptionSpecification] -> QueryString)
-> Maybe [OptionSpecification] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [OptionSpecification]
optionsToRemove
),
ByteString
"OptionSettings"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [ConfigurationOptionSetting] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
([ConfigurationOptionSetting] -> QueryString)
-> Maybe [ConfigurationOptionSetting] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConfigurationOptionSetting]
optionSettings
),
ByteString
"VersionLabel" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
versionLabel,
ByteString
"OperationsRole" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
operationsRole,
ByteString
"PlatformArn" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
platformArn,
ByteString
"Tier" ByteString -> Maybe EnvironmentTier -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe EnvironmentTier
tier,
ByteString
"EnvironmentName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
environmentName,
ByteString
"SolutionStackName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
solutionStackName,
ByteString
"GroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
groupName,
ByteString
"Description" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
description,
ByteString
"Tags"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Tag] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Tag] -> QueryString) -> Maybe [Tag] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags),
ByteString
"ApplicationName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
applicationName
]