{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.GroundStation.GetConfig
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns @Config@ information.
--
-- Only one @Config@ response can be returned.
module Amazonka.GroundStation.GetConfig
  ( -- * Creating a Request
    GetConfig (..),
    newGetConfig,

    -- * Request Lenses
    getConfig_configId,
    getConfig_configType,

    -- * Destructuring the Response
    GetConfigResponse (..),
    newGetConfigResponse,

    -- * Response Lenses
    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

-- |
--
-- /See:/ 'newGetConfig' smart constructor.
data GetConfig = GetConfig'
  { -- | UUID of a @Config@.
    GetConfig -> Text
configId :: Prelude.Text,
    -- | Type of a @Config@.
    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)

-- |
-- Create a value of 'GetConfig' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'configId', 'getConfig_configId' - UUID of a @Config@.
--
-- 'configType', 'getConfig_configType' - Type of a @Config@.
newGetConfig ::
  -- | 'configId'
  Prelude.Text ->
  -- | 'configType'
  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_
    }

-- | UUID of a @Config@.
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)

-- | Type of a @Config@.
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

-- |
--
-- /See:/ 'newGetConfigResponse' smart constructor.
data GetConfigResponse = GetConfigResponse'
  { -- | Type of a @Config@.
    GetConfigResponse -> Maybe ConfigCapabilityType
configType :: Prelude.Maybe ConfigCapabilityType,
    -- | Tags assigned to a @Config@.
    GetConfigResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    GetConfigResponse -> Int
httpStatus :: Prelude.Int,
    -- | ARN of a @Config@
    GetConfigResponse -> Text
configArn :: Prelude.Text,
    -- | Data elements in a @Config@.
    GetConfigResponse -> ConfigTypeData
configData :: ConfigTypeData,
    -- | UUID of a @Config@.
    GetConfigResponse -> Text
configId :: Prelude.Text,
    -- | Name of a @Config@.
    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)

-- |
-- Create a value of 'GetConfigResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'configType', 'getConfigResponse_configType' - Type of a @Config@.
--
-- 'tags', 'getConfigResponse_tags' - Tags assigned to a @Config@.
--
-- 'httpStatus', 'getConfigResponse_httpStatus' - The response's http status code.
--
-- 'configArn', 'getConfigResponse_configArn' - ARN of a @Config@
--
-- 'configData', 'getConfigResponse_configData' - Data elements in a @Config@.
--
-- 'configId', 'getConfigResponse_configId' - UUID of a @Config@.
--
-- 'name', 'getConfigResponse_name' - Name of a @Config@.
newGetConfigResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'configArn'
  Prelude.Text ->
  -- | 'configData'
  ConfigTypeData ->
  -- | 'configId'
  Prelude.Text ->
  -- | 'name'
  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_
      }

-- | Type of a @Config@.
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)

-- | Tags assigned to a @Config@.
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

-- | The response's http status code.
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)

-- | ARN of a @Config@
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)

-- | Data elements in a @Config@.
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)

-- | UUID of a @Config@.
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)

-- | Name of a @Config@.
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