{-# 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.ComposeEnvironments
(
ComposeEnvironments (..),
newComposeEnvironments,
composeEnvironments_applicationName,
composeEnvironments_groupName,
composeEnvironments_versionLabels,
EnvironmentDescriptionsMessage (..),
newEnvironmentDescriptionsMessage,
environmentDescriptionsMessage_environments,
environmentDescriptionsMessage_nextToken,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.ElasticBeanstalk.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ComposeEnvironments = ComposeEnvironments'
{
ComposeEnvironments -> Maybe Text
applicationName :: Prelude.Maybe Prelude.Text,
ComposeEnvironments -> Maybe Text
groupName :: Prelude.Maybe Prelude.Text,
ComposeEnvironments -> Maybe [Text]
versionLabels :: Prelude.Maybe [Prelude.Text]
}
deriving (ComposeEnvironments -> ComposeEnvironments -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ComposeEnvironments -> ComposeEnvironments -> Bool
$c/= :: ComposeEnvironments -> ComposeEnvironments -> Bool
== :: ComposeEnvironments -> ComposeEnvironments -> Bool
$c== :: ComposeEnvironments -> ComposeEnvironments -> Bool
Prelude.Eq, ReadPrec [ComposeEnvironments]
ReadPrec ComposeEnvironments
Int -> ReadS ComposeEnvironments
ReadS [ComposeEnvironments]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ComposeEnvironments]
$creadListPrec :: ReadPrec [ComposeEnvironments]
readPrec :: ReadPrec ComposeEnvironments
$creadPrec :: ReadPrec ComposeEnvironments
readList :: ReadS [ComposeEnvironments]
$creadList :: ReadS [ComposeEnvironments]
readsPrec :: Int -> ReadS ComposeEnvironments
$creadsPrec :: Int -> ReadS ComposeEnvironments
Prelude.Read, Int -> ComposeEnvironments -> ShowS
[ComposeEnvironments] -> ShowS
ComposeEnvironments -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ComposeEnvironments] -> ShowS
$cshowList :: [ComposeEnvironments] -> ShowS
show :: ComposeEnvironments -> String
$cshow :: ComposeEnvironments -> String
showsPrec :: Int -> ComposeEnvironments -> ShowS
$cshowsPrec :: Int -> ComposeEnvironments -> ShowS
Prelude.Show, forall x. Rep ComposeEnvironments x -> ComposeEnvironments
forall x. ComposeEnvironments -> Rep ComposeEnvironments x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ComposeEnvironments x -> ComposeEnvironments
$cfrom :: forall x. ComposeEnvironments -> Rep ComposeEnvironments x
Prelude.Generic)
newComposeEnvironments ::
ComposeEnvironments
newComposeEnvironments :: ComposeEnvironments
newComposeEnvironments =
ComposeEnvironments'
{ $sel:applicationName:ComposeEnvironments' :: Maybe Text
applicationName =
forall a. Maybe a
Prelude.Nothing,
$sel:groupName:ComposeEnvironments' :: Maybe Text
groupName = forall a. Maybe a
Prelude.Nothing,
$sel:versionLabels:ComposeEnvironments' :: Maybe [Text]
versionLabels = forall a. Maybe a
Prelude.Nothing
}
composeEnvironments_applicationName :: Lens.Lens' ComposeEnvironments (Prelude.Maybe Prelude.Text)
composeEnvironments_applicationName :: Lens' ComposeEnvironments (Maybe Text)
composeEnvironments_applicationName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComposeEnvironments' {Maybe Text
applicationName :: Maybe Text
$sel:applicationName:ComposeEnvironments' :: ComposeEnvironments -> Maybe Text
applicationName} -> Maybe Text
applicationName) (\s :: ComposeEnvironments
s@ComposeEnvironments' {} Maybe Text
a -> ComposeEnvironments
s {$sel:applicationName:ComposeEnvironments' :: Maybe Text
applicationName = Maybe Text
a} :: ComposeEnvironments)
composeEnvironments_groupName :: Lens.Lens' ComposeEnvironments (Prelude.Maybe Prelude.Text)
composeEnvironments_groupName :: Lens' ComposeEnvironments (Maybe Text)
composeEnvironments_groupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComposeEnvironments' {Maybe Text
groupName :: Maybe Text
$sel:groupName:ComposeEnvironments' :: ComposeEnvironments -> Maybe Text
groupName} -> Maybe Text
groupName) (\s :: ComposeEnvironments
s@ComposeEnvironments' {} Maybe Text
a -> ComposeEnvironments
s {$sel:groupName:ComposeEnvironments' :: Maybe Text
groupName = Maybe Text
a} :: ComposeEnvironments)
composeEnvironments_versionLabels :: Lens.Lens' ComposeEnvironments (Prelude.Maybe [Prelude.Text])
composeEnvironments_versionLabels :: Lens' ComposeEnvironments (Maybe [Text])
composeEnvironments_versionLabels = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComposeEnvironments' {Maybe [Text]
versionLabels :: Maybe [Text]
$sel:versionLabels:ComposeEnvironments' :: ComposeEnvironments -> Maybe [Text]
versionLabels} -> Maybe [Text]
versionLabels) (\s :: ComposeEnvironments
s@ComposeEnvironments' {} Maybe [Text]
a -> ComposeEnvironments
s {$sel:versionLabels:ComposeEnvironments' :: Maybe [Text]
versionLabels = Maybe [Text]
a} :: ComposeEnvironments) 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
instance Core.AWSRequest ComposeEnvironments where
type
AWSResponse ComposeEnvironments =
EnvironmentDescriptionsMessage
request :: (Service -> Service)
-> ComposeEnvironments -> Request ComposeEnvironments
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ComposeEnvironments
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ComposeEnvironments)))
response =
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"ComposeEnvironmentsResult"
(\Int
s ResponseHeaders
h [Node]
x -> forall a. FromXML a => [Node] -> Either String a
Data.parseXML [Node]
x)
instance Prelude.Hashable ComposeEnvironments where
hashWithSalt :: Int -> ComposeEnvironments -> Int
hashWithSalt Int
_salt ComposeEnvironments' {Maybe [Text]
Maybe Text
versionLabels :: Maybe [Text]
groupName :: Maybe Text
applicationName :: Maybe Text
$sel:versionLabels:ComposeEnvironments' :: ComposeEnvironments -> Maybe [Text]
$sel:groupName:ComposeEnvironments' :: ComposeEnvironments -> Maybe Text
$sel:applicationName:ComposeEnvironments' :: ComposeEnvironments -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
applicationName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
groupName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
versionLabels
instance Prelude.NFData ComposeEnvironments where
rnf :: ComposeEnvironments -> ()
rnf ComposeEnvironments' {Maybe [Text]
Maybe Text
versionLabels :: Maybe [Text]
groupName :: Maybe Text
applicationName :: Maybe Text
$sel:versionLabels:ComposeEnvironments' :: ComposeEnvironments -> Maybe [Text]
$sel:groupName:ComposeEnvironments' :: ComposeEnvironments -> Maybe Text
$sel:applicationName:ComposeEnvironments' :: ComposeEnvironments -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
applicationName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
groupName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
versionLabels
instance Data.ToHeaders ComposeEnvironments where
toHeaders :: ComposeEnvironments -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath ComposeEnvironments where
toPath :: ComposeEnvironments -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery ComposeEnvironments where
toQuery :: ComposeEnvironments -> QueryString
toQuery ComposeEnvironments' {Maybe [Text]
Maybe Text
versionLabels :: Maybe [Text]
groupName :: Maybe Text
applicationName :: Maybe Text
$sel:versionLabels:ComposeEnvironments' :: ComposeEnvironments -> Maybe [Text]
$sel:groupName:ComposeEnvironments' :: ComposeEnvironments -> Maybe Text
$sel:applicationName:ComposeEnvironments' :: ComposeEnvironments -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"ComposeEnvironments" :: Prelude.ByteString),
ByteString
"Version"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
ByteString
"ApplicationName" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
applicationName,
ByteString
"GroupName" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
groupName,
ByteString
"VersionLabels"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"member"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
versionLabels
)
]