{-# 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.AmplifyBackend.GetBackend
(
GetBackend (..),
newGetBackend,
getBackend_backendEnvironmentName,
getBackend_appId,
GetBackendResponse (..),
newGetBackendResponse,
getBackendResponse_error,
getBackendResponse_appName,
getBackendResponse_amplifyMetaConfig,
getBackendResponse_appId,
getBackendResponse_amplifyFeatureFlags,
getBackendResponse_backendEnvironmentList,
getBackendResponse_backendEnvironmentName,
getBackendResponse_httpStatus,
)
where
import Amazonka.AmplifyBackend.Types
import qualified Amazonka.Core as Core
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 GetBackend = GetBackend'
{
GetBackend -> Maybe Text
backendEnvironmentName :: Prelude.Maybe Prelude.Text,
GetBackend -> Text
appId :: Prelude.Text
}
deriving (GetBackend -> GetBackend -> Bool
(GetBackend -> GetBackend -> Bool)
-> (GetBackend -> GetBackend -> Bool) -> Eq GetBackend
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBackend -> GetBackend -> Bool
$c/= :: GetBackend -> GetBackend -> Bool
== :: GetBackend -> GetBackend -> Bool
$c== :: GetBackend -> GetBackend -> Bool
Prelude.Eq, ReadPrec [GetBackend]
ReadPrec GetBackend
Int -> ReadS GetBackend
ReadS [GetBackend]
(Int -> ReadS GetBackend)
-> ReadS [GetBackend]
-> ReadPrec GetBackend
-> ReadPrec [GetBackend]
-> Read GetBackend
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBackend]
$creadListPrec :: ReadPrec [GetBackend]
readPrec :: ReadPrec GetBackend
$creadPrec :: ReadPrec GetBackend
readList :: ReadS [GetBackend]
$creadList :: ReadS [GetBackend]
readsPrec :: Int -> ReadS GetBackend
$creadsPrec :: Int -> ReadS GetBackend
Prelude.Read, Int -> GetBackend -> ShowS
[GetBackend] -> ShowS
GetBackend -> String
(Int -> GetBackend -> ShowS)
-> (GetBackend -> String)
-> ([GetBackend] -> ShowS)
-> Show GetBackend
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBackend] -> ShowS
$cshowList :: [GetBackend] -> ShowS
show :: GetBackend -> String
$cshow :: GetBackend -> String
showsPrec :: Int -> GetBackend -> ShowS
$cshowsPrec :: Int -> GetBackend -> ShowS
Prelude.Show, (forall x. GetBackend -> Rep GetBackend x)
-> (forall x. Rep GetBackend x -> GetBackend) -> Generic GetBackend
forall x. Rep GetBackend x -> GetBackend
forall x. GetBackend -> Rep GetBackend x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetBackend x -> GetBackend
$cfrom :: forall x. GetBackend -> Rep GetBackend x
Prelude.Generic)
newGetBackend ::
Prelude.Text ->
GetBackend
newGetBackend :: Text -> GetBackend
newGetBackend Text
pAppId_ =
GetBackend' :: Maybe Text -> Text -> GetBackend
GetBackend'
{ $sel:backendEnvironmentName:GetBackend' :: Maybe Text
backendEnvironmentName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:appId:GetBackend' :: Text
appId = Text
pAppId_
}
getBackend_backendEnvironmentName :: Lens.Lens' GetBackend (Prelude.Maybe Prelude.Text)
getBackend_backendEnvironmentName :: (Maybe Text -> f (Maybe Text)) -> GetBackend -> f GetBackend
getBackend_backendEnvironmentName = (GetBackend -> Maybe Text)
-> (GetBackend -> Maybe Text -> GetBackend)
-> Lens GetBackend GetBackend (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackend' {Maybe Text
backendEnvironmentName :: Maybe Text
$sel:backendEnvironmentName:GetBackend' :: GetBackend -> Maybe Text
backendEnvironmentName} -> Maybe Text
backendEnvironmentName) (\s :: GetBackend
s@GetBackend' {} Maybe Text
a -> GetBackend
s {$sel:backendEnvironmentName:GetBackend' :: Maybe Text
backendEnvironmentName = Maybe Text
a} :: GetBackend)
getBackend_appId :: Lens.Lens' GetBackend Prelude.Text
getBackend_appId :: (Text -> f Text) -> GetBackend -> f GetBackend
getBackend_appId = (GetBackend -> Text)
-> (GetBackend -> Text -> GetBackend)
-> Lens GetBackend GetBackend Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackend' {Text
appId :: Text
$sel:appId:GetBackend' :: GetBackend -> Text
appId} -> Text
appId) (\s :: GetBackend
s@GetBackend' {} Text
a -> GetBackend
s {$sel:appId:GetBackend' :: Text
appId = Text
a} :: GetBackend)
instance Core.AWSRequest GetBackend where
type AWSResponse GetBackend = GetBackendResponse
request :: GetBackend -> Request GetBackend
request = Service -> GetBackend -> Request GetBackend
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetBackend
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetBackend)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetBackend))
-> Logger
-> Service
-> Proxy GetBackend
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetBackend)))
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
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Int
-> GetBackendResponse
GetBackendResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Int
-> GetBackendResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Int
-> GetBackendResponse)
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
"error")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Int
-> GetBackendResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Int
-> GetBackendResponse)
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
"appName")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Int
-> GetBackendResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Int
-> GetBackendResponse)
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
"amplifyMetaConfig")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Int
-> GetBackendResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [Text] -> Maybe Text -> Int -> GetBackendResponse)
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
"appId")
Either
String
(Maybe Text
-> Maybe [Text] -> Maybe Text -> Int -> GetBackendResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Text] -> Maybe Text -> Int -> GetBackendResponse)
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
"amplifyFeatureFlags")
Either
String (Maybe [Text] -> Maybe Text -> Int -> GetBackendResponse)
-> Either String (Maybe [Text])
-> Either String (Maybe Text -> Int -> GetBackendResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"backendEnvironmentList"
Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> GetBackendResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetBackendResponse)
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
"backendEnvironmentName")
Either String (Int -> GetBackendResponse)
-> Either String Int -> Either String GetBackendResponse
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 GetBackend
instance Prelude.NFData GetBackend
instance Core.ToHeaders GetBackend where
toHeaders :: GetBackend -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetBackend -> 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 GetBackend where
toJSON :: GetBackend -> Value
toJSON GetBackend' {Maybe Text
Text
appId :: Text
backendEnvironmentName :: Maybe Text
$sel:appId:GetBackend' :: GetBackend -> Text
$sel:backendEnvironmentName:GetBackend' :: GetBackend -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"backendEnvironmentName" 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
backendEnvironmentName
]
)
instance Core.ToPath GetBackend where
toPath :: GetBackend -> ByteString
toPath GetBackend' {Maybe Text
Text
appId :: Text
backendEnvironmentName :: Maybe Text
$sel:appId:GetBackend' :: GetBackend -> Text
$sel:backendEnvironmentName:GetBackend' :: GetBackend -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/backend/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
appId, ByteString
"/details"]
instance Core.ToQuery GetBackend where
toQuery :: GetBackend -> QueryString
toQuery = QueryString -> GetBackend -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetBackendResponse = GetBackendResponse'
{
GetBackendResponse -> Maybe Text
error :: Prelude.Maybe Prelude.Text,
GetBackendResponse -> Maybe Text
appName :: Prelude.Maybe Prelude.Text,
GetBackendResponse -> Maybe Text
amplifyMetaConfig :: Prelude.Maybe Prelude.Text,
GetBackendResponse -> Maybe Text
appId :: Prelude.Maybe Prelude.Text,
GetBackendResponse -> Maybe Text
amplifyFeatureFlags :: Prelude.Maybe Prelude.Text,
GetBackendResponse -> Maybe [Text]
backendEnvironmentList :: Prelude.Maybe [Prelude.Text],
GetBackendResponse -> Maybe Text
backendEnvironmentName :: Prelude.Maybe Prelude.Text,
GetBackendResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetBackendResponse -> GetBackendResponse -> Bool
(GetBackendResponse -> GetBackendResponse -> Bool)
-> (GetBackendResponse -> GetBackendResponse -> Bool)
-> Eq GetBackendResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBackendResponse -> GetBackendResponse -> Bool
$c/= :: GetBackendResponse -> GetBackendResponse -> Bool
== :: GetBackendResponse -> GetBackendResponse -> Bool
$c== :: GetBackendResponse -> GetBackendResponse -> Bool
Prelude.Eq, ReadPrec [GetBackendResponse]
ReadPrec GetBackendResponse
Int -> ReadS GetBackendResponse
ReadS [GetBackendResponse]
(Int -> ReadS GetBackendResponse)
-> ReadS [GetBackendResponse]
-> ReadPrec GetBackendResponse
-> ReadPrec [GetBackendResponse]
-> Read GetBackendResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBackendResponse]
$creadListPrec :: ReadPrec [GetBackendResponse]
readPrec :: ReadPrec GetBackendResponse
$creadPrec :: ReadPrec GetBackendResponse
readList :: ReadS [GetBackendResponse]
$creadList :: ReadS [GetBackendResponse]
readsPrec :: Int -> ReadS GetBackendResponse
$creadsPrec :: Int -> ReadS GetBackendResponse
Prelude.Read, Int -> GetBackendResponse -> ShowS
[GetBackendResponse] -> ShowS
GetBackendResponse -> String
(Int -> GetBackendResponse -> ShowS)
-> (GetBackendResponse -> String)
-> ([GetBackendResponse] -> ShowS)
-> Show GetBackendResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBackendResponse] -> ShowS
$cshowList :: [GetBackendResponse] -> ShowS
show :: GetBackendResponse -> String
$cshow :: GetBackendResponse -> String
showsPrec :: Int -> GetBackendResponse -> ShowS
$cshowsPrec :: Int -> GetBackendResponse -> ShowS
Prelude.Show, (forall x. GetBackendResponse -> Rep GetBackendResponse x)
-> (forall x. Rep GetBackendResponse x -> GetBackendResponse)
-> Generic GetBackendResponse
forall x. Rep GetBackendResponse x -> GetBackendResponse
forall x. GetBackendResponse -> Rep GetBackendResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetBackendResponse x -> GetBackendResponse
$cfrom :: forall x. GetBackendResponse -> Rep GetBackendResponse x
Prelude.Generic)
newGetBackendResponse ::
Prelude.Int ->
GetBackendResponse
newGetBackendResponse :: Int -> GetBackendResponse
newGetBackendResponse Int
pHttpStatus_ =
GetBackendResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Int
-> GetBackendResponse
GetBackendResponse'
{ $sel:error:GetBackendResponse' :: Maybe Text
error = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:appName:GetBackendResponse' :: Maybe Text
appName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:amplifyMetaConfig:GetBackendResponse' :: Maybe Text
amplifyMetaConfig = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:appId:GetBackendResponse' :: Maybe Text
appId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:amplifyFeatureFlags:GetBackendResponse' :: Maybe Text
amplifyFeatureFlags = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:backendEnvironmentList:GetBackendResponse' :: Maybe [Text]
backendEnvironmentList = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:backendEnvironmentName:GetBackendResponse' :: Maybe Text
backendEnvironmentName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetBackendResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getBackendResponse_error :: Lens.Lens' GetBackendResponse (Prelude.Maybe Prelude.Text)
getBackendResponse_error :: (Maybe Text -> f (Maybe Text))
-> GetBackendResponse -> f GetBackendResponse
getBackendResponse_error = (GetBackendResponse -> Maybe Text)
-> (GetBackendResponse -> Maybe Text -> GetBackendResponse)
-> Lens
GetBackendResponse GetBackendResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackendResponse' {Maybe Text
error :: Maybe Text
$sel:error:GetBackendResponse' :: GetBackendResponse -> Maybe Text
error} -> Maybe Text
error) (\s :: GetBackendResponse
s@GetBackendResponse' {} Maybe Text
a -> GetBackendResponse
s {$sel:error:GetBackendResponse' :: Maybe Text
error = Maybe Text
a} :: GetBackendResponse)
getBackendResponse_appName :: Lens.Lens' GetBackendResponse (Prelude.Maybe Prelude.Text)
getBackendResponse_appName :: (Maybe Text -> f (Maybe Text))
-> GetBackendResponse -> f GetBackendResponse
getBackendResponse_appName = (GetBackendResponse -> Maybe Text)
-> (GetBackendResponse -> Maybe Text -> GetBackendResponse)
-> Lens
GetBackendResponse GetBackendResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackendResponse' {Maybe Text
appName :: Maybe Text
$sel:appName:GetBackendResponse' :: GetBackendResponse -> Maybe Text
appName} -> Maybe Text
appName) (\s :: GetBackendResponse
s@GetBackendResponse' {} Maybe Text
a -> GetBackendResponse
s {$sel:appName:GetBackendResponse' :: Maybe Text
appName = Maybe Text
a} :: GetBackendResponse)
getBackendResponse_amplifyMetaConfig :: Lens.Lens' GetBackendResponse (Prelude.Maybe Prelude.Text)
getBackendResponse_amplifyMetaConfig :: (Maybe Text -> f (Maybe Text))
-> GetBackendResponse -> f GetBackendResponse
getBackendResponse_amplifyMetaConfig = (GetBackendResponse -> Maybe Text)
-> (GetBackendResponse -> Maybe Text -> GetBackendResponse)
-> Lens
GetBackendResponse GetBackendResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackendResponse' {Maybe Text
amplifyMetaConfig :: Maybe Text
$sel:amplifyMetaConfig:GetBackendResponse' :: GetBackendResponse -> Maybe Text
amplifyMetaConfig} -> Maybe Text
amplifyMetaConfig) (\s :: GetBackendResponse
s@GetBackendResponse' {} Maybe Text
a -> GetBackendResponse
s {$sel:amplifyMetaConfig:GetBackendResponse' :: Maybe Text
amplifyMetaConfig = Maybe Text
a} :: GetBackendResponse)
getBackendResponse_appId :: Lens.Lens' GetBackendResponse (Prelude.Maybe Prelude.Text)
getBackendResponse_appId :: (Maybe Text -> f (Maybe Text))
-> GetBackendResponse -> f GetBackendResponse
getBackendResponse_appId = (GetBackendResponse -> Maybe Text)
-> (GetBackendResponse -> Maybe Text -> GetBackendResponse)
-> Lens
GetBackendResponse GetBackendResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackendResponse' {Maybe Text
appId :: Maybe Text
$sel:appId:GetBackendResponse' :: GetBackendResponse -> Maybe Text
appId} -> Maybe Text
appId) (\s :: GetBackendResponse
s@GetBackendResponse' {} Maybe Text
a -> GetBackendResponse
s {$sel:appId:GetBackendResponse' :: Maybe Text
appId = Maybe Text
a} :: GetBackendResponse)
getBackendResponse_amplifyFeatureFlags :: Lens.Lens' GetBackendResponse (Prelude.Maybe Prelude.Text)
getBackendResponse_amplifyFeatureFlags :: (Maybe Text -> f (Maybe Text))
-> GetBackendResponse -> f GetBackendResponse
getBackendResponse_amplifyFeatureFlags = (GetBackendResponse -> Maybe Text)
-> (GetBackendResponse -> Maybe Text -> GetBackendResponse)
-> Lens
GetBackendResponse GetBackendResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackendResponse' {Maybe Text
amplifyFeatureFlags :: Maybe Text
$sel:amplifyFeatureFlags:GetBackendResponse' :: GetBackendResponse -> Maybe Text
amplifyFeatureFlags} -> Maybe Text
amplifyFeatureFlags) (\s :: GetBackendResponse
s@GetBackendResponse' {} Maybe Text
a -> GetBackendResponse
s {$sel:amplifyFeatureFlags:GetBackendResponse' :: Maybe Text
amplifyFeatureFlags = Maybe Text
a} :: GetBackendResponse)
getBackendResponse_backendEnvironmentList :: Lens.Lens' GetBackendResponse (Prelude.Maybe [Prelude.Text])
getBackendResponse_backendEnvironmentList :: (Maybe [Text] -> f (Maybe [Text]))
-> GetBackendResponse -> f GetBackendResponse
getBackendResponse_backendEnvironmentList = (GetBackendResponse -> Maybe [Text])
-> (GetBackendResponse -> Maybe [Text] -> GetBackendResponse)
-> Lens
GetBackendResponse GetBackendResponse (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackendResponse' {Maybe [Text]
backendEnvironmentList :: Maybe [Text]
$sel:backendEnvironmentList:GetBackendResponse' :: GetBackendResponse -> Maybe [Text]
backendEnvironmentList} -> Maybe [Text]
backendEnvironmentList) (\s :: GetBackendResponse
s@GetBackendResponse' {} Maybe [Text]
a -> GetBackendResponse
s {$sel:backendEnvironmentList:GetBackendResponse' :: Maybe [Text]
backendEnvironmentList = Maybe [Text]
a} :: GetBackendResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> GetBackendResponse -> f GetBackendResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> GetBackendResponse
-> f GetBackendResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getBackendResponse_backendEnvironmentName :: Lens.Lens' GetBackendResponse (Prelude.Maybe Prelude.Text)
getBackendResponse_backendEnvironmentName :: (Maybe Text -> f (Maybe Text))
-> GetBackendResponse -> f GetBackendResponse
getBackendResponse_backendEnvironmentName = (GetBackendResponse -> Maybe Text)
-> (GetBackendResponse -> Maybe Text -> GetBackendResponse)
-> Lens
GetBackendResponse GetBackendResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackendResponse' {Maybe Text
backendEnvironmentName :: Maybe Text
$sel:backendEnvironmentName:GetBackendResponse' :: GetBackendResponse -> Maybe Text
backendEnvironmentName} -> Maybe Text
backendEnvironmentName) (\s :: GetBackendResponse
s@GetBackendResponse' {} Maybe Text
a -> GetBackendResponse
s {$sel:backendEnvironmentName:GetBackendResponse' :: Maybe Text
backendEnvironmentName = Maybe Text
a} :: GetBackendResponse)
getBackendResponse_httpStatus :: Lens.Lens' GetBackendResponse Prelude.Int
getBackendResponse_httpStatus :: (Int -> f Int) -> GetBackendResponse -> f GetBackendResponse
getBackendResponse_httpStatus = (GetBackendResponse -> Int)
-> (GetBackendResponse -> Int -> GetBackendResponse)
-> Lens GetBackendResponse GetBackendResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackendResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetBackendResponse' :: GetBackendResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetBackendResponse
s@GetBackendResponse' {} Int
a -> GetBackendResponse
s {$sel:httpStatus:GetBackendResponse' :: Int
httpStatus = Int
a} :: GetBackendResponse)
instance Prelude.NFData GetBackendResponse