{-# 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.GroundStation.GetConfig
(
GetConfig (..),
newGetConfig,
getConfig_configId,
getConfig_configType,
GetConfigResponse (..),
newGetConfigResponse,
getConfigResponse_configType,
getConfigResponse_tags,
getConfigResponse_httpStatus,
getConfigResponse_configArn,
getConfigResponse_configData,
getConfigResponse_configId,
getConfigResponse_name,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GroundStation.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 GetConfig = GetConfig'
{
GetConfig -> Text
configId :: Prelude.Text,
GetConfig -> ConfigCapabilityType
configType :: ConfigCapabilityType
}
deriving (GetConfig -> GetConfig -> Bool
(GetConfig -> GetConfig -> Bool)
-> (GetConfig -> GetConfig -> Bool) -> Eq GetConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetConfig -> GetConfig -> Bool
$c/= :: GetConfig -> GetConfig -> Bool
== :: GetConfig -> GetConfig -> Bool
$c== :: GetConfig -> GetConfig -> Bool
Prelude.Eq, ReadPrec [GetConfig]
ReadPrec GetConfig
Int -> ReadS GetConfig
ReadS [GetConfig]
(Int -> ReadS GetConfig)
-> ReadS [GetConfig]
-> ReadPrec GetConfig
-> ReadPrec [GetConfig]
-> Read GetConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetConfig]
$creadListPrec :: ReadPrec [GetConfig]
readPrec :: ReadPrec GetConfig
$creadPrec :: ReadPrec GetConfig
readList :: ReadS [GetConfig]
$creadList :: ReadS [GetConfig]
readsPrec :: Int -> ReadS GetConfig
$creadsPrec :: Int -> ReadS GetConfig
Prelude.Read, Int -> GetConfig -> ShowS
[GetConfig] -> ShowS
GetConfig -> String
(Int -> GetConfig -> ShowS)
-> (GetConfig -> String)
-> ([GetConfig] -> ShowS)
-> Show GetConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetConfig] -> ShowS
$cshowList :: [GetConfig] -> ShowS
show :: GetConfig -> String
$cshow :: GetConfig -> String
showsPrec :: Int -> GetConfig -> ShowS
$cshowsPrec :: Int -> GetConfig -> ShowS
Prelude.Show, (forall x. GetConfig -> Rep GetConfig x)
-> (forall x. Rep GetConfig x -> GetConfig) -> Generic GetConfig
forall x. Rep GetConfig x -> GetConfig
forall x. GetConfig -> Rep GetConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetConfig x -> GetConfig
$cfrom :: forall x. GetConfig -> Rep GetConfig x
Prelude.Generic)
newGetConfig ::
Prelude.Text ->
ConfigCapabilityType ->
GetConfig
newGetConfig :: Text -> ConfigCapabilityType -> GetConfig
newGetConfig Text
pConfigId_ ConfigCapabilityType
pConfigType_ =
GetConfig' :: Text -> ConfigCapabilityType -> GetConfig
GetConfig'
{ $sel:configId:GetConfig' :: Text
configId = Text
pConfigId_,
$sel:configType:GetConfig' :: ConfigCapabilityType
configType = ConfigCapabilityType
pConfigType_
}
getConfig_configId :: Lens.Lens' GetConfig Prelude.Text
getConfig_configId :: (Text -> f Text) -> GetConfig -> f GetConfig
getConfig_configId = (GetConfig -> Text)
-> (GetConfig -> Text -> GetConfig)
-> Lens GetConfig GetConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetConfig' {Text
configId :: Text
$sel:configId:GetConfig' :: GetConfig -> Text
configId} -> Text
configId) (\s :: GetConfig
s@GetConfig' {} Text
a -> GetConfig
s {$sel:configId:GetConfig' :: Text
configId = Text
a} :: GetConfig)
getConfig_configType :: Lens.Lens' GetConfig ConfigCapabilityType
getConfig_configType :: (ConfigCapabilityType -> f ConfigCapabilityType)
-> GetConfig -> f GetConfig
getConfig_configType = (GetConfig -> ConfigCapabilityType)
-> (GetConfig -> ConfigCapabilityType -> GetConfig)
-> Lens
GetConfig GetConfig ConfigCapabilityType ConfigCapabilityType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetConfig' {ConfigCapabilityType
configType :: ConfigCapabilityType
$sel:configType:GetConfig' :: GetConfig -> ConfigCapabilityType
configType} -> ConfigCapabilityType
configType) (\s :: GetConfig
s@GetConfig' {} ConfigCapabilityType
a -> GetConfig
s {$sel:configType:GetConfig' :: ConfigCapabilityType
configType = ConfigCapabilityType
a} :: GetConfig)
instance Core.AWSRequest GetConfig where
type AWSResponse GetConfig = GetConfigResponse
request :: GetConfig -> Request GetConfig
request = Service -> GetConfig -> Request GetConfig
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetConfig
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetConfig)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetConfig))
-> Logger
-> Service
-> Proxy GetConfig
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetConfig)))
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 ConfigCapabilityType
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> ConfigTypeData
-> Text
-> Text
-> GetConfigResponse
GetConfigResponse'
(Maybe ConfigCapabilityType
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> ConfigTypeData
-> Text
-> Text
-> GetConfigResponse)
-> Either String (Maybe ConfigCapabilityType)
-> Either
String
(Maybe (HashMap Text Text)
-> Int
-> Text
-> ConfigTypeData
-> Text
-> Text
-> GetConfigResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ConfigCapabilityType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"configType")
Either
String
(Maybe (HashMap Text Text)
-> Int
-> Text
-> ConfigTypeData
-> Text
-> Text
-> GetConfigResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
String
(Int
-> Text -> ConfigTypeData -> Text -> Text -> GetConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Int
-> Text -> ConfigTypeData -> Text -> Text -> GetConfigResponse)
-> Either String Int
-> Either
String
(Text -> ConfigTypeData -> Text -> Text -> GetConfigResponse)
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))
Either
String
(Text -> ConfigTypeData -> Text -> Text -> GetConfigResponse)
-> Either String Text
-> Either
String (ConfigTypeData -> Text -> Text -> GetConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"configArn")
Either String (ConfigTypeData -> Text -> Text -> GetConfigResponse)
-> Either String ConfigTypeData
-> Either String (Text -> Text -> GetConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String ConfigTypeData
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"configData")
Either String (Text -> Text -> GetConfigResponse)
-> Either String Text -> Either String (Text -> GetConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"configId")
Either String (Text -> GetConfigResponse)
-> Either String Text -> Either String GetConfigResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"name")
)
instance Prelude.Hashable GetConfig
instance Prelude.NFData GetConfig
instance Core.ToHeaders GetConfig where
toHeaders :: GetConfig -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetConfig -> 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.ToPath GetConfig where
toPath :: GetConfig -> ByteString
toPath GetConfig' {Text
ConfigCapabilityType
configType :: ConfigCapabilityType
configId :: Text
$sel:configType:GetConfig' :: GetConfig -> ConfigCapabilityType
$sel:configId:GetConfig' :: GetConfig -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/config/",
ConfigCapabilityType -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS ConfigCapabilityType
configType,
ByteString
"/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
configId
]
instance Core.ToQuery GetConfig where
toQuery :: GetConfig -> QueryString
toQuery = QueryString -> GetConfig -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetConfigResponse = GetConfigResponse'
{
GetConfigResponse -> Maybe ConfigCapabilityType
configType :: Prelude.Maybe ConfigCapabilityType,
GetConfigResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetConfigResponse -> Int
httpStatus :: Prelude.Int,
GetConfigResponse -> Text
configArn :: Prelude.Text,
GetConfigResponse -> ConfigTypeData
configData :: ConfigTypeData,
GetConfigResponse -> Text
configId :: Prelude.Text,
GetConfigResponse -> Text
name :: Prelude.Text
}
deriving (GetConfigResponse -> GetConfigResponse -> Bool
(GetConfigResponse -> GetConfigResponse -> Bool)
-> (GetConfigResponse -> GetConfigResponse -> Bool)
-> Eq GetConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetConfigResponse -> GetConfigResponse -> Bool
$c/= :: GetConfigResponse -> GetConfigResponse -> Bool
== :: GetConfigResponse -> GetConfigResponse -> Bool
$c== :: GetConfigResponse -> GetConfigResponse -> Bool
Prelude.Eq, ReadPrec [GetConfigResponse]
ReadPrec GetConfigResponse
Int -> ReadS GetConfigResponse
ReadS [GetConfigResponse]
(Int -> ReadS GetConfigResponse)
-> ReadS [GetConfigResponse]
-> ReadPrec GetConfigResponse
-> ReadPrec [GetConfigResponse]
-> Read GetConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetConfigResponse]
$creadListPrec :: ReadPrec [GetConfigResponse]
readPrec :: ReadPrec GetConfigResponse
$creadPrec :: ReadPrec GetConfigResponse
readList :: ReadS [GetConfigResponse]
$creadList :: ReadS [GetConfigResponse]
readsPrec :: Int -> ReadS GetConfigResponse
$creadsPrec :: Int -> ReadS GetConfigResponse
Prelude.Read, Int -> GetConfigResponse -> ShowS
[GetConfigResponse] -> ShowS
GetConfigResponse -> String
(Int -> GetConfigResponse -> ShowS)
-> (GetConfigResponse -> String)
-> ([GetConfigResponse] -> ShowS)
-> Show GetConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetConfigResponse] -> ShowS
$cshowList :: [GetConfigResponse] -> ShowS
show :: GetConfigResponse -> String
$cshow :: GetConfigResponse -> String
showsPrec :: Int -> GetConfigResponse -> ShowS
$cshowsPrec :: Int -> GetConfigResponse -> ShowS
Prelude.Show, (forall x. GetConfigResponse -> Rep GetConfigResponse x)
-> (forall x. Rep GetConfigResponse x -> GetConfigResponse)
-> Generic GetConfigResponse
forall x. Rep GetConfigResponse x -> GetConfigResponse
forall x. GetConfigResponse -> Rep GetConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetConfigResponse x -> GetConfigResponse
$cfrom :: forall x. GetConfigResponse -> Rep GetConfigResponse x
Prelude.Generic)
newGetConfigResponse ::
Prelude.Int ->
Prelude.Text ->
ConfigTypeData ->
Prelude.Text ->
Prelude.Text ->
GetConfigResponse
newGetConfigResponse :: Int -> Text -> ConfigTypeData -> Text -> Text -> GetConfigResponse
newGetConfigResponse
Int
pHttpStatus_
Text
pConfigArn_
ConfigTypeData
pConfigData_
Text
pConfigId_
Text
pName_ =
GetConfigResponse' :: Maybe ConfigCapabilityType
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> ConfigTypeData
-> Text
-> Text
-> GetConfigResponse
GetConfigResponse'
{ $sel:configType:GetConfigResponse' :: Maybe ConfigCapabilityType
configType = Maybe ConfigCapabilityType
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetConfigResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetConfigResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:configArn:GetConfigResponse' :: Text
configArn = Text
pConfigArn_,
$sel:configData:GetConfigResponse' :: ConfigTypeData
configData = ConfigTypeData
pConfigData_,
$sel:configId:GetConfigResponse' :: Text
configId = Text
pConfigId_,
$sel:name:GetConfigResponse' :: Text
name = Text
pName_
}
getConfigResponse_configType :: Lens.Lens' GetConfigResponse (Prelude.Maybe ConfigCapabilityType)
getConfigResponse_configType :: (Maybe ConfigCapabilityType -> f (Maybe ConfigCapabilityType))
-> GetConfigResponse -> f GetConfigResponse
getConfigResponse_configType = (GetConfigResponse -> Maybe ConfigCapabilityType)
-> (GetConfigResponse
-> Maybe ConfigCapabilityType -> GetConfigResponse)
-> Lens
GetConfigResponse
GetConfigResponse
(Maybe ConfigCapabilityType)
(Maybe ConfigCapabilityType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetConfigResponse' {Maybe ConfigCapabilityType
configType :: Maybe ConfigCapabilityType
$sel:configType:GetConfigResponse' :: GetConfigResponse -> Maybe ConfigCapabilityType
configType} -> Maybe ConfigCapabilityType
configType) (\s :: GetConfigResponse
s@GetConfigResponse' {} Maybe ConfigCapabilityType
a -> GetConfigResponse
s {$sel:configType:GetConfigResponse' :: Maybe ConfigCapabilityType
configType = Maybe ConfigCapabilityType
a} :: GetConfigResponse)
getConfigResponse_tags :: Lens.Lens' GetConfigResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getConfigResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetConfigResponse -> f GetConfigResponse
getConfigResponse_tags = (GetConfigResponse -> Maybe (HashMap Text Text))
-> (GetConfigResponse
-> Maybe (HashMap Text Text) -> GetConfigResponse)
-> Lens
GetConfigResponse
GetConfigResponse
(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 (\GetConfigResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetConfigResponse' :: GetConfigResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetConfigResponse
s@GetConfigResponse' {} Maybe (HashMap Text Text)
a -> GetConfigResponse
s {$sel:tags:GetConfigResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetConfigResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetConfigResponse -> f GetConfigResponse)
-> ((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)))
-> GetConfigResponse
-> f GetConfigResponse
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
getConfigResponse_httpStatus :: Lens.Lens' GetConfigResponse Prelude.Int
getConfigResponse_httpStatus :: (Int -> f Int) -> GetConfigResponse -> f GetConfigResponse
getConfigResponse_httpStatus = (GetConfigResponse -> Int)
-> (GetConfigResponse -> Int -> GetConfigResponse)
-> Lens GetConfigResponse GetConfigResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetConfigResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetConfigResponse' :: GetConfigResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetConfigResponse
s@GetConfigResponse' {} Int
a -> GetConfigResponse
s {$sel:httpStatus:GetConfigResponse' :: Int
httpStatus = Int
a} :: GetConfigResponse)
getConfigResponse_configArn :: Lens.Lens' GetConfigResponse Prelude.Text
getConfigResponse_configArn :: (Text -> f Text) -> GetConfigResponse -> f GetConfigResponse
getConfigResponse_configArn = (GetConfigResponse -> Text)
-> (GetConfigResponse -> Text -> GetConfigResponse)
-> Lens GetConfigResponse GetConfigResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetConfigResponse' {Text
configArn :: Text
$sel:configArn:GetConfigResponse' :: GetConfigResponse -> Text
configArn} -> Text
configArn) (\s :: GetConfigResponse
s@GetConfigResponse' {} Text
a -> GetConfigResponse
s {$sel:configArn:GetConfigResponse' :: Text
configArn = Text
a} :: GetConfigResponse)
getConfigResponse_configData :: Lens.Lens' GetConfigResponse ConfigTypeData
getConfigResponse_configData :: (ConfigTypeData -> f ConfigTypeData)
-> GetConfigResponse -> f GetConfigResponse
getConfigResponse_configData = (GetConfigResponse -> ConfigTypeData)
-> (GetConfigResponse -> ConfigTypeData -> GetConfigResponse)
-> Lens
GetConfigResponse GetConfigResponse ConfigTypeData ConfigTypeData
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetConfigResponse' {ConfigTypeData
configData :: ConfigTypeData
$sel:configData:GetConfigResponse' :: GetConfigResponse -> ConfigTypeData
configData} -> ConfigTypeData
configData) (\s :: GetConfigResponse
s@GetConfigResponse' {} ConfigTypeData
a -> GetConfigResponse
s {$sel:configData:GetConfigResponse' :: ConfigTypeData
configData = ConfigTypeData
a} :: GetConfigResponse)
getConfigResponse_configId :: Lens.Lens' GetConfigResponse Prelude.Text
getConfigResponse_configId :: (Text -> f Text) -> GetConfigResponse -> f GetConfigResponse
getConfigResponse_configId = (GetConfigResponse -> Text)
-> (GetConfigResponse -> Text -> GetConfigResponse)
-> Lens GetConfigResponse GetConfigResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetConfigResponse' {Text
configId :: Text
$sel:configId:GetConfigResponse' :: GetConfigResponse -> Text
configId} -> Text
configId) (\s :: GetConfigResponse
s@GetConfigResponse' {} Text
a -> GetConfigResponse
s {$sel:configId:GetConfigResponse' :: Text
configId = Text
a} :: GetConfigResponse)
getConfigResponse_name :: Lens.Lens' GetConfigResponse Prelude.Text
getConfigResponse_name :: (Text -> f Text) -> GetConfigResponse -> f GetConfigResponse
getConfigResponse_name = (GetConfigResponse -> Text)
-> (GetConfigResponse -> Text -> GetConfigResponse)
-> Lens GetConfigResponse GetConfigResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetConfigResponse' {Text
name :: Text
$sel:name:GetConfigResponse' :: GetConfigResponse -> Text
name} -> Text
name) (\s :: GetConfigResponse
s@GetConfigResponse' {} Text
a -> GetConfigResponse
s {$sel:name:GetConfigResponse' :: Text
name = Text
a} :: GetConfigResponse)
instance Prelude.NFData GetConfigResponse