{-# 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.RequestEnvironmentInfo
(
RequestEnvironmentInfo (..),
newRequestEnvironmentInfo,
requestEnvironmentInfo_environmentName,
requestEnvironmentInfo_environmentId,
requestEnvironmentInfo_infoType,
RequestEnvironmentInfoResponse (..),
newRequestEnvironmentInfoResponse,
)
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 RequestEnvironmentInfo = RequestEnvironmentInfo'
{
RequestEnvironmentInfo -> Maybe Text
environmentName :: Prelude.Maybe Prelude.Text,
RequestEnvironmentInfo -> Maybe Text
environmentId :: Prelude.Maybe Prelude.Text,
RequestEnvironmentInfo -> EnvironmentInfoType
infoType :: EnvironmentInfoType
}
deriving (RequestEnvironmentInfo -> RequestEnvironmentInfo -> Bool
(RequestEnvironmentInfo -> RequestEnvironmentInfo -> Bool)
-> (RequestEnvironmentInfo -> RequestEnvironmentInfo -> Bool)
-> Eq RequestEnvironmentInfo
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RequestEnvironmentInfo -> RequestEnvironmentInfo -> Bool
$c/= :: RequestEnvironmentInfo -> RequestEnvironmentInfo -> Bool
== :: RequestEnvironmentInfo -> RequestEnvironmentInfo -> Bool
$c== :: RequestEnvironmentInfo -> RequestEnvironmentInfo -> Bool
Prelude.Eq, ReadPrec [RequestEnvironmentInfo]
ReadPrec RequestEnvironmentInfo
Int -> ReadS RequestEnvironmentInfo
ReadS [RequestEnvironmentInfo]
(Int -> ReadS RequestEnvironmentInfo)
-> ReadS [RequestEnvironmentInfo]
-> ReadPrec RequestEnvironmentInfo
-> ReadPrec [RequestEnvironmentInfo]
-> Read RequestEnvironmentInfo
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RequestEnvironmentInfo]
$creadListPrec :: ReadPrec [RequestEnvironmentInfo]
readPrec :: ReadPrec RequestEnvironmentInfo
$creadPrec :: ReadPrec RequestEnvironmentInfo
readList :: ReadS [RequestEnvironmentInfo]
$creadList :: ReadS [RequestEnvironmentInfo]
readsPrec :: Int -> ReadS RequestEnvironmentInfo
$creadsPrec :: Int -> ReadS RequestEnvironmentInfo
Prelude.Read, Int -> RequestEnvironmentInfo -> ShowS
[RequestEnvironmentInfo] -> ShowS
RequestEnvironmentInfo -> String
(Int -> RequestEnvironmentInfo -> ShowS)
-> (RequestEnvironmentInfo -> String)
-> ([RequestEnvironmentInfo] -> ShowS)
-> Show RequestEnvironmentInfo
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RequestEnvironmentInfo] -> ShowS
$cshowList :: [RequestEnvironmentInfo] -> ShowS
show :: RequestEnvironmentInfo -> String
$cshow :: RequestEnvironmentInfo -> String
showsPrec :: Int -> RequestEnvironmentInfo -> ShowS
$cshowsPrec :: Int -> RequestEnvironmentInfo -> ShowS
Prelude.Show, (forall x. RequestEnvironmentInfo -> Rep RequestEnvironmentInfo x)
-> (forall x.
Rep RequestEnvironmentInfo x -> RequestEnvironmentInfo)
-> Generic RequestEnvironmentInfo
forall x. Rep RequestEnvironmentInfo x -> RequestEnvironmentInfo
forall x. RequestEnvironmentInfo -> Rep RequestEnvironmentInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RequestEnvironmentInfo x -> RequestEnvironmentInfo
$cfrom :: forall x. RequestEnvironmentInfo -> Rep RequestEnvironmentInfo x
Prelude.Generic)
newRequestEnvironmentInfo ::
EnvironmentInfoType ->
RequestEnvironmentInfo
newRequestEnvironmentInfo :: EnvironmentInfoType -> RequestEnvironmentInfo
newRequestEnvironmentInfo EnvironmentInfoType
pInfoType_ =
RequestEnvironmentInfo' :: Maybe Text
-> Maybe Text -> EnvironmentInfoType -> RequestEnvironmentInfo
RequestEnvironmentInfo'
{ $sel:environmentName:RequestEnvironmentInfo' :: Maybe Text
environmentName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:environmentId:RequestEnvironmentInfo' :: Maybe Text
environmentId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:infoType:RequestEnvironmentInfo' :: EnvironmentInfoType
infoType = EnvironmentInfoType
pInfoType_
}
requestEnvironmentInfo_environmentName :: Lens.Lens' RequestEnvironmentInfo (Prelude.Maybe Prelude.Text)
requestEnvironmentInfo_environmentName :: (Maybe Text -> f (Maybe Text))
-> RequestEnvironmentInfo -> f RequestEnvironmentInfo
requestEnvironmentInfo_environmentName = (RequestEnvironmentInfo -> Maybe Text)
-> (RequestEnvironmentInfo -> Maybe Text -> RequestEnvironmentInfo)
-> Lens
RequestEnvironmentInfo
RequestEnvironmentInfo
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestEnvironmentInfo' {Maybe Text
environmentName :: Maybe Text
$sel:environmentName:RequestEnvironmentInfo' :: RequestEnvironmentInfo -> Maybe Text
environmentName} -> Maybe Text
environmentName) (\s :: RequestEnvironmentInfo
s@RequestEnvironmentInfo' {} Maybe Text
a -> RequestEnvironmentInfo
s {$sel:environmentName:RequestEnvironmentInfo' :: Maybe Text
environmentName = Maybe Text
a} :: RequestEnvironmentInfo)
requestEnvironmentInfo_environmentId :: Lens.Lens' RequestEnvironmentInfo (Prelude.Maybe Prelude.Text)
requestEnvironmentInfo_environmentId :: (Maybe Text -> f (Maybe Text))
-> RequestEnvironmentInfo -> f RequestEnvironmentInfo
requestEnvironmentInfo_environmentId = (RequestEnvironmentInfo -> Maybe Text)
-> (RequestEnvironmentInfo -> Maybe Text -> RequestEnvironmentInfo)
-> Lens
RequestEnvironmentInfo
RequestEnvironmentInfo
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestEnvironmentInfo' {Maybe Text
environmentId :: Maybe Text
$sel:environmentId:RequestEnvironmentInfo' :: RequestEnvironmentInfo -> Maybe Text
environmentId} -> Maybe Text
environmentId) (\s :: RequestEnvironmentInfo
s@RequestEnvironmentInfo' {} Maybe Text
a -> RequestEnvironmentInfo
s {$sel:environmentId:RequestEnvironmentInfo' :: Maybe Text
environmentId = Maybe Text
a} :: RequestEnvironmentInfo)
requestEnvironmentInfo_infoType :: Lens.Lens' RequestEnvironmentInfo EnvironmentInfoType
requestEnvironmentInfo_infoType :: (EnvironmentInfoType -> f EnvironmentInfoType)
-> RequestEnvironmentInfo -> f RequestEnvironmentInfo
requestEnvironmentInfo_infoType = (RequestEnvironmentInfo -> EnvironmentInfoType)
-> (RequestEnvironmentInfo
-> EnvironmentInfoType -> RequestEnvironmentInfo)
-> Lens
RequestEnvironmentInfo
RequestEnvironmentInfo
EnvironmentInfoType
EnvironmentInfoType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestEnvironmentInfo' {EnvironmentInfoType
infoType :: EnvironmentInfoType
$sel:infoType:RequestEnvironmentInfo' :: RequestEnvironmentInfo -> EnvironmentInfoType
infoType} -> EnvironmentInfoType
infoType) (\s :: RequestEnvironmentInfo
s@RequestEnvironmentInfo' {} EnvironmentInfoType
a -> RequestEnvironmentInfo
s {$sel:infoType:RequestEnvironmentInfo' :: EnvironmentInfoType
infoType = EnvironmentInfoType
a} :: RequestEnvironmentInfo)
instance Core.AWSRequest RequestEnvironmentInfo where
type
AWSResponse RequestEnvironmentInfo =
RequestEnvironmentInfoResponse
request :: RequestEnvironmentInfo -> Request RequestEnvironmentInfo
request = Service -> RequestEnvironmentInfo -> Request RequestEnvironmentInfo
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy RequestEnvironmentInfo
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse RequestEnvironmentInfo)))
response =
AWSResponse RequestEnvironmentInfo
-> Logger
-> Service
-> Proxy RequestEnvironmentInfo
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse RequestEnvironmentInfo)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse RequestEnvironmentInfo
RequestEnvironmentInfoResponse
RequestEnvironmentInfoResponse'
instance Prelude.Hashable RequestEnvironmentInfo
instance Prelude.NFData RequestEnvironmentInfo
instance Core.ToHeaders RequestEnvironmentInfo where
toHeaders :: RequestEnvironmentInfo -> [Header]
toHeaders = [Header] -> RequestEnvironmentInfo -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath RequestEnvironmentInfo where
toPath :: RequestEnvironmentInfo -> ByteString
toPath = ByteString -> RequestEnvironmentInfo -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery RequestEnvironmentInfo where
toQuery :: RequestEnvironmentInfo -> QueryString
toQuery RequestEnvironmentInfo' {Maybe Text
EnvironmentInfoType
infoType :: EnvironmentInfoType
environmentId :: Maybe Text
environmentName :: Maybe Text
$sel:infoType:RequestEnvironmentInfo' :: RequestEnvironmentInfo -> EnvironmentInfoType
$sel:environmentId:RequestEnvironmentInfo' :: RequestEnvironmentInfo -> Maybe Text
$sel:environmentName:RequestEnvironmentInfo' :: RequestEnvironmentInfo -> 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
"RequestEnvironmentInfo" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
ByteString
"EnvironmentName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
environmentName,
ByteString
"EnvironmentId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
environmentId,
ByteString
"InfoType" ByteString -> EnvironmentInfoType -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: EnvironmentInfoType
infoType
]
data RequestEnvironmentInfoResponse = RequestEnvironmentInfoResponse'
{
}
deriving (RequestEnvironmentInfoResponse
-> RequestEnvironmentInfoResponse -> Bool
(RequestEnvironmentInfoResponse
-> RequestEnvironmentInfoResponse -> Bool)
-> (RequestEnvironmentInfoResponse
-> RequestEnvironmentInfoResponse -> Bool)
-> Eq RequestEnvironmentInfoResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RequestEnvironmentInfoResponse
-> RequestEnvironmentInfoResponse -> Bool
$c/= :: RequestEnvironmentInfoResponse
-> RequestEnvironmentInfoResponse -> Bool
== :: RequestEnvironmentInfoResponse
-> RequestEnvironmentInfoResponse -> Bool
$c== :: RequestEnvironmentInfoResponse
-> RequestEnvironmentInfoResponse -> Bool
Prelude.Eq, ReadPrec [RequestEnvironmentInfoResponse]
ReadPrec RequestEnvironmentInfoResponse
Int -> ReadS RequestEnvironmentInfoResponse
ReadS [RequestEnvironmentInfoResponse]
(Int -> ReadS RequestEnvironmentInfoResponse)
-> ReadS [RequestEnvironmentInfoResponse]
-> ReadPrec RequestEnvironmentInfoResponse
-> ReadPrec [RequestEnvironmentInfoResponse]
-> Read RequestEnvironmentInfoResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RequestEnvironmentInfoResponse]
$creadListPrec :: ReadPrec [RequestEnvironmentInfoResponse]
readPrec :: ReadPrec RequestEnvironmentInfoResponse
$creadPrec :: ReadPrec RequestEnvironmentInfoResponse
readList :: ReadS [RequestEnvironmentInfoResponse]
$creadList :: ReadS [RequestEnvironmentInfoResponse]
readsPrec :: Int -> ReadS RequestEnvironmentInfoResponse
$creadsPrec :: Int -> ReadS RequestEnvironmentInfoResponse
Prelude.Read, Int -> RequestEnvironmentInfoResponse -> ShowS
[RequestEnvironmentInfoResponse] -> ShowS
RequestEnvironmentInfoResponse -> String
(Int -> RequestEnvironmentInfoResponse -> ShowS)
-> (RequestEnvironmentInfoResponse -> String)
-> ([RequestEnvironmentInfoResponse] -> ShowS)
-> Show RequestEnvironmentInfoResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RequestEnvironmentInfoResponse] -> ShowS
$cshowList :: [RequestEnvironmentInfoResponse] -> ShowS
show :: RequestEnvironmentInfoResponse -> String
$cshow :: RequestEnvironmentInfoResponse -> String
showsPrec :: Int -> RequestEnvironmentInfoResponse -> ShowS
$cshowsPrec :: Int -> RequestEnvironmentInfoResponse -> ShowS
Prelude.Show, (forall x.
RequestEnvironmentInfoResponse
-> Rep RequestEnvironmentInfoResponse x)
-> (forall x.
Rep RequestEnvironmentInfoResponse x
-> RequestEnvironmentInfoResponse)
-> Generic RequestEnvironmentInfoResponse
forall x.
Rep RequestEnvironmentInfoResponse x
-> RequestEnvironmentInfoResponse
forall x.
RequestEnvironmentInfoResponse
-> Rep RequestEnvironmentInfoResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RequestEnvironmentInfoResponse x
-> RequestEnvironmentInfoResponse
$cfrom :: forall x.
RequestEnvironmentInfoResponse
-> Rep RequestEnvironmentInfoResponse x
Prelude.Generic)
newRequestEnvironmentInfoResponse ::
RequestEnvironmentInfoResponse
newRequestEnvironmentInfoResponse :: RequestEnvironmentInfoResponse
newRequestEnvironmentInfoResponse =
RequestEnvironmentInfoResponse
RequestEnvironmentInfoResponse'
instance
Prelude.NFData
RequestEnvironmentInfoResponse