{-# 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.Config.BatchGetResourceConfig
(
BatchGetResourceConfig (..),
newBatchGetResourceConfig,
batchGetResourceConfig_resourceKeys,
BatchGetResourceConfigResponse (..),
newBatchGetResourceConfigResponse,
batchGetResourceConfigResponse_baseConfigurationItems,
batchGetResourceConfigResponse_unprocessedResourceKeys,
batchGetResourceConfigResponse_httpStatus,
)
where
import Amazonka.Config.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 BatchGetResourceConfig = BatchGetResourceConfig'
{
BatchGetResourceConfig -> NonEmpty ResourceKey
resourceKeys :: Prelude.NonEmpty ResourceKey
}
deriving (BatchGetResourceConfig -> BatchGetResourceConfig -> Bool
(BatchGetResourceConfig -> BatchGetResourceConfig -> Bool)
-> (BatchGetResourceConfig -> BatchGetResourceConfig -> Bool)
-> Eq BatchGetResourceConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetResourceConfig -> BatchGetResourceConfig -> Bool
$c/= :: BatchGetResourceConfig -> BatchGetResourceConfig -> Bool
== :: BatchGetResourceConfig -> BatchGetResourceConfig -> Bool
$c== :: BatchGetResourceConfig -> BatchGetResourceConfig -> Bool
Prelude.Eq, ReadPrec [BatchGetResourceConfig]
ReadPrec BatchGetResourceConfig
Int -> ReadS BatchGetResourceConfig
ReadS [BatchGetResourceConfig]
(Int -> ReadS BatchGetResourceConfig)
-> ReadS [BatchGetResourceConfig]
-> ReadPrec BatchGetResourceConfig
-> ReadPrec [BatchGetResourceConfig]
-> Read BatchGetResourceConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetResourceConfig]
$creadListPrec :: ReadPrec [BatchGetResourceConfig]
readPrec :: ReadPrec BatchGetResourceConfig
$creadPrec :: ReadPrec BatchGetResourceConfig
readList :: ReadS [BatchGetResourceConfig]
$creadList :: ReadS [BatchGetResourceConfig]
readsPrec :: Int -> ReadS BatchGetResourceConfig
$creadsPrec :: Int -> ReadS BatchGetResourceConfig
Prelude.Read, Int -> BatchGetResourceConfig -> ShowS
[BatchGetResourceConfig] -> ShowS
BatchGetResourceConfig -> String
(Int -> BatchGetResourceConfig -> ShowS)
-> (BatchGetResourceConfig -> String)
-> ([BatchGetResourceConfig] -> ShowS)
-> Show BatchGetResourceConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetResourceConfig] -> ShowS
$cshowList :: [BatchGetResourceConfig] -> ShowS
show :: BatchGetResourceConfig -> String
$cshow :: BatchGetResourceConfig -> String
showsPrec :: Int -> BatchGetResourceConfig -> ShowS
$cshowsPrec :: Int -> BatchGetResourceConfig -> ShowS
Prelude.Show, (forall x. BatchGetResourceConfig -> Rep BatchGetResourceConfig x)
-> (forall x.
Rep BatchGetResourceConfig x -> BatchGetResourceConfig)
-> Generic BatchGetResourceConfig
forall x. Rep BatchGetResourceConfig x -> BatchGetResourceConfig
forall x. BatchGetResourceConfig -> Rep BatchGetResourceConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchGetResourceConfig x -> BatchGetResourceConfig
$cfrom :: forall x. BatchGetResourceConfig -> Rep BatchGetResourceConfig x
Prelude.Generic)
newBatchGetResourceConfig ::
Prelude.NonEmpty ResourceKey ->
BatchGetResourceConfig
newBatchGetResourceConfig :: NonEmpty ResourceKey -> BatchGetResourceConfig
newBatchGetResourceConfig NonEmpty ResourceKey
pResourceKeys_ =
BatchGetResourceConfig' :: NonEmpty ResourceKey -> BatchGetResourceConfig
BatchGetResourceConfig'
{ $sel:resourceKeys:BatchGetResourceConfig' :: NonEmpty ResourceKey
resourceKeys =
Tagged (NonEmpty ResourceKey) (Identity (NonEmpty ResourceKey))
-> Tagged (NonEmpty ResourceKey) (Identity (NonEmpty ResourceKey))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty ResourceKey) (Identity (NonEmpty ResourceKey))
-> Tagged (NonEmpty ResourceKey) (Identity (NonEmpty ResourceKey)))
-> NonEmpty ResourceKey -> NonEmpty ResourceKey
forall t b. AReview t b -> b -> t
Lens.# NonEmpty ResourceKey
pResourceKeys_
}
batchGetResourceConfig_resourceKeys :: Lens.Lens' BatchGetResourceConfig (Prelude.NonEmpty ResourceKey)
batchGetResourceConfig_resourceKeys :: (NonEmpty ResourceKey -> f (NonEmpty ResourceKey))
-> BatchGetResourceConfig -> f BatchGetResourceConfig
batchGetResourceConfig_resourceKeys = (BatchGetResourceConfig -> NonEmpty ResourceKey)
-> (BatchGetResourceConfig
-> NonEmpty ResourceKey -> BatchGetResourceConfig)
-> Lens
BatchGetResourceConfig
BatchGetResourceConfig
(NonEmpty ResourceKey)
(NonEmpty ResourceKey)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetResourceConfig' {NonEmpty ResourceKey
resourceKeys :: NonEmpty ResourceKey
$sel:resourceKeys:BatchGetResourceConfig' :: BatchGetResourceConfig -> NonEmpty ResourceKey
resourceKeys} -> NonEmpty ResourceKey
resourceKeys) (\s :: BatchGetResourceConfig
s@BatchGetResourceConfig' {} NonEmpty ResourceKey
a -> BatchGetResourceConfig
s {$sel:resourceKeys:BatchGetResourceConfig' :: NonEmpty ResourceKey
resourceKeys = NonEmpty ResourceKey
a} :: BatchGetResourceConfig) ((NonEmpty ResourceKey -> f (NonEmpty ResourceKey))
-> BatchGetResourceConfig -> f BatchGetResourceConfig)
-> ((NonEmpty ResourceKey -> f (NonEmpty ResourceKey))
-> NonEmpty ResourceKey -> f (NonEmpty ResourceKey))
-> (NonEmpty ResourceKey -> f (NonEmpty ResourceKey))
-> BatchGetResourceConfig
-> f BatchGetResourceConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty ResourceKey -> f (NonEmpty ResourceKey))
-> NonEmpty ResourceKey -> f (NonEmpty ResourceKey)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest BatchGetResourceConfig where
type
AWSResponse BatchGetResourceConfig =
BatchGetResourceConfigResponse
request :: BatchGetResourceConfig -> Request BatchGetResourceConfig
request = Service -> BatchGetResourceConfig -> Request BatchGetResourceConfig
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy BatchGetResourceConfig
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchGetResourceConfig)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse BatchGetResourceConfig))
-> Logger
-> Service
-> Proxy BatchGetResourceConfig
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchGetResourceConfig)))
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 [BaseConfigurationItem]
-> Maybe (NonEmpty ResourceKey)
-> Int
-> BatchGetResourceConfigResponse
BatchGetResourceConfigResponse'
(Maybe [BaseConfigurationItem]
-> Maybe (NonEmpty ResourceKey)
-> Int
-> BatchGetResourceConfigResponse)
-> Either String (Maybe [BaseConfigurationItem])
-> Either
String
(Maybe (NonEmpty ResourceKey)
-> Int -> BatchGetResourceConfigResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Key -> Either String (Maybe (Maybe [BaseConfigurationItem]))
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"baseConfigurationItems"
Either String (Maybe (Maybe [BaseConfigurationItem]))
-> Maybe [BaseConfigurationItem]
-> Either String (Maybe [BaseConfigurationItem])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [BaseConfigurationItem]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe (NonEmpty ResourceKey)
-> Int -> BatchGetResourceConfigResponse)
-> Either String (Maybe (NonEmpty ResourceKey))
-> Either String (Int -> BatchGetResourceConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe (NonEmpty ResourceKey))
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"unprocessedResourceKeys")
Either String (Int -> BatchGetResourceConfigResponse)
-> Either String Int
-> Either String BatchGetResourceConfigResponse
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 BatchGetResourceConfig
instance Prelude.NFData BatchGetResourceConfig
instance Core.ToHeaders BatchGetResourceConfig where
toHeaders :: BatchGetResourceConfig -> ResponseHeaders
toHeaders =
ResponseHeaders -> BatchGetResourceConfig -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"StarlingDoveService.BatchGetResourceConfig" ::
Prelude.ByteString
),
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 BatchGetResourceConfig where
toJSON :: BatchGetResourceConfig -> Value
toJSON BatchGetResourceConfig' {NonEmpty ResourceKey
resourceKeys :: NonEmpty ResourceKey
$sel:resourceKeys:BatchGetResourceConfig' :: BatchGetResourceConfig -> NonEmpty ResourceKey
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Key
"resourceKeys" Key -> NonEmpty ResourceKey -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Core..= NonEmpty ResourceKey
resourceKeys)]
)
instance Core.ToPath BatchGetResourceConfig where
toPath :: BatchGetResourceConfig -> ByteString
toPath = ByteString -> BatchGetResourceConfig -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery BatchGetResourceConfig where
toQuery :: BatchGetResourceConfig -> QueryString
toQuery = QueryString -> BatchGetResourceConfig -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data BatchGetResourceConfigResponse = BatchGetResourceConfigResponse'
{
BatchGetResourceConfigResponse -> Maybe [BaseConfigurationItem]
baseConfigurationItems :: Prelude.Maybe [BaseConfigurationItem],
BatchGetResourceConfigResponse -> Maybe (NonEmpty ResourceKey)
unprocessedResourceKeys :: Prelude.Maybe (Prelude.NonEmpty ResourceKey),
BatchGetResourceConfigResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchGetResourceConfigResponse
-> BatchGetResourceConfigResponse -> Bool
(BatchGetResourceConfigResponse
-> BatchGetResourceConfigResponse -> Bool)
-> (BatchGetResourceConfigResponse
-> BatchGetResourceConfigResponse -> Bool)
-> Eq BatchGetResourceConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetResourceConfigResponse
-> BatchGetResourceConfigResponse -> Bool
$c/= :: BatchGetResourceConfigResponse
-> BatchGetResourceConfigResponse -> Bool
== :: BatchGetResourceConfigResponse
-> BatchGetResourceConfigResponse -> Bool
$c== :: BatchGetResourceConfigResponse
-> BatchGetResourceConfigResponse -> Bool
Prelude.Eq, ReadPrec [BatchGetResourceConfigResponse]
ReadPrec BatchGetResourceConfigResponse
Int -> ReadS BatchGetResourceConfigResponse
ReadS [BatchGetResourceConfigResponse]
(Int -> ReadS BatchGetResourceConfigResponse)
-> ReadS [BatchGetResourceConfigResponse]
-> ReadPrec BatchGetResourceConfigResponse
-> ReadPrec [BatchGetResourceConfigResponse]
-> Read BatchGetResourceConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetResourceConfigResponse]
$creadListPrec :: ReadPrec [BatchGetResourceConfigResponse]
readPrec :: ReadPrec BatchGetResourceConfigResponse
$creadPrec :: ReadPrec BatchGetResourceConfigResponse
readList :: ReadS [BatchGetResourceConfigResponse]
$creadList :: ReadS [BatchGetResourceConfigResponse]
readsPrec :: Int -> ReadS BatchGetResourceConfigResponse
$creadsPrec :: Int -> ReadS BatchGetResourceConfigResponse
Prelude.Read, Int -> BatchGetResourceConfigResponse -> ShowS
[BatchGetResourceConfigResponse] -> ShowS
BatchGetResourceConfigResponse -> String
(Int -> BatchGetResourceConfigResponse -> ShowS)
-> (BatchGetResourceConfigResponse -> String)
-> ([BatchGetResourceConfigResponse] -> ShowS)
-> Show BatchGetResourceConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetResourceConfigResponse] -> ShowS
$cshowList :: [BatchGetResourceConfigResponse] -> ShowS
show :: BatchGetResourceConfigResponse -> String
$cshow :: BatchGetResourceConfigResponse -> String
showsPrec :: Int -> BatchGetResourceConfigResponse -> ShowS
$cshowsPrec :: Int -> BatchGetResourceConfigResponse -> ShowS
Prelude.Show, (forall x.
BatchGetResourceConfigResponse
-> Rep BatchGetResourceConfigResponse x)
-> (forall x.
Rep BatchGetResourceConfigResponse x
-> BatchGetResourceConfigResponse)
-> Generic BatchGetResourceConfigResponse
forall x.
Rep BatchGetResourceConfigResponse x
-> BatchGetResourceConfigResponse
forall x.
BatchGetResourceConfigResponse
-> Rep BatchGetResourceConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchGetResourceConfigResponse x
-> BatchGetResourceConfigResponse
$cfrom :: forall x.
BatchGetResourceConfigResponse
-> Rep BatchGetResourceConfigResponse x
Prelude.Generic)
newBatchGetResourceConfigResponse ::
Prelude.Int ->
BatchGetResourceConfigResponse
newBatchGetResourceConfigResponse :: Int -> BatchGetResourceConfigResponse
newBatchGetResourceConfigResponse Int
pHttpStatus_ =
BatchGetResourceConfigResponse' :: Maybe [BaseConfigurationItem]
-> Maybe (NonEmpty ResourceKey)
-> Int
-> BatchGetResourceConfigResponse
BatchGetResourceConfigResponse'
{ $sel:baseConfigurationItems:BatchGetResourceConfigResponse' :: Maybe [BaseConfigurationItem]
baseConfigurationItems =
Maybe [BaseConfigurationItem]
forall a. Maybe a
Prelude.Nothing,
$sel:unprocessedResourceKeys:BatchGetResourceConfigResponse' :: Maybe (NonEmpty ResourceKey)
unprocessedResourceKeys = Maybe (NonEmpty ResourceKey)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchGetResourceConfigResponse' :: Int
httpStatus = Int
pHttpStatus_
}
batchGetResourceConfigResponse_baseConfigurationItems :: Lens.Lens' BatchGetResourceConfigResponse (Prelude.Maybe [BaseConfigurationItem])
batchGetResourceConfigResponse_baseConfigurationItems :: (Maybe [BaseConfigurationItem]
-> f (Maybe [BaseConfigurationItem]))
-> BatchGetResourceConfigResponse
-> f BatchGetResourceConfigResponse
batchGetResourceConfigResponse_baseConfigurationItems = (BatchGetResourceConfigResponse -> Maybe [BaseConfigurationItem])
-> (BatchGetResourceConfigResponse
-> Maybe [BaseConfigurationItem] -> BatchGetResourceConfigResponse)
-> Lens
BatchGetResourceConfigResponse
BatchGetResourceConfigResponse
(Maybe [BaseConfigurationItem])
(Maybe [BaseConfigurationItem])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetResourceConfigResponse' {Maybe [BaseConfigurationItem]
baseConfigurationItems :: Maybe [BaseConfigurationItem]
$sel:baseConfigurationItems:BatchGetResourceConfigResponse' :: BatchGetResourceConfigResponse -> Maybe [BaseConfigurationItem]
baseConfigurationItems} -> Maybe [BaseConfigurationItem]
baseConfigurationItems) (\s :: BatchGetResourceConfigResponse
s@BatchGetResourceConfigResponse' {} Maybe [BaseConfigurationItem]
a -> BatchGetResourceConfigResponse
s {$sel:baseConfigurationItems:BatchGetResourceConfigResponse' :: Maybe [BaseConfigurationItem]
baseConfigurationItems = Maybe [BaseConfigurationItem]
a} :: BatchGetResourceConfigResponse) ((Maybe [BaseConfigurationItem]
-> f (Maybe [BaseConfigurationItem]))
-> BatchGetResourceConfigResponse
-> f BatchGetResourceConfigResponse)
-> ((Maybe [BaseConfigurationItem]
-> f (Maybe [BaseConfigurationItem]))
-> Maybe [BaseConfigurationItem]
-> f (Maybe [BaseConfigurationItem]))
-> (Maybe [BaseConfigurationItem]
-> f (Maybe [BaseConfigurationItem]))
-> BatchGetResourceConfigResponse
-> f BatchGetResourceConfigResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[BaseConfigurationItem]
[BaseConfigurationItem]
[BaseConfigurationItem]
[BaseConfigurationItem]
-> Iso
(Maybe [BaseConfigurationItem])
(Maybe [BaseConfigurationItem])
(Maybe [BaseConfigurationItem])
(Maybe [BaseConfigurationItem])
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
[BaseConfigurationItem]
[BaseConfigurationItem]
[BaseConfigurationItem]
[BaseConfigurationItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchGetResourceConfigResponse_unprocessedResourceKeys :: Lens.Lens' BatchGetResourceConfigResponse (Prelude.Maybe (Prelude.NonEmpty ResourceKey))
batchGetResourceConfigResponse_unprocessedResourceKeys :: (Maybe (NonEmpty ResourceKey) -> f (Maybe (NonEmpty ResourceKey)))
-> BatchGetResourceConfigResponse
-> f BatchGetResourceConfigResponse
batchGetResourceConfigResponse_unprocessedResourceKeys = (BatchGetResourceConfigResponse -> Maybe (NonEmpty ResourceKey))
-> (BatchGetResourceConfigResponse
-> Maybe (NonEmpty ResourceKey) -> BatchGetResourceConfigResponse)
-> Lens
BatchGetResourceConfigResponse
BatchGetResourceConfigResponse
(Maybe (NonEmpty ResourceKey))
(Maybe (NonEmpty ResourceKey))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetResourceConfigResponse' {Maybe (NonEmpty ResourceKey)
unprocessedResourceKeys :: Maybe (NonEmpty ResourceKey)
$sel:unprocessedResourceKeys:BatchGetResourceConfigResponse' :: BatchGetResourceConfigResponse -> Maybe (NonEmpty ResourceKey)
unprocessedResourceKeys} -> Maybe (NonEmpty ResourceKey)
unprocessedResourceKeys) (\s :: BatchGetResourceConfigResponse
s@BatchGetResourceConfigResponse' {} Maybe (NonEmpty ResourceKey)
a -> BatchGetResourceConfigResponse
s {$sel:unprocessedResourceKeys:BatchGetResourceConfigResponse' :: Maybe (NonEmpty ResourceKey)
unprocessedResourceKeys = Maybe (NonEmpty ResourceKey)
a} :: BatchGetResourceConfigResponse) ((Maybe (NonEmpty ResourceKey) -> f (Maybe (NonEmpty ResourceKey)))
-> BatchGetResourceConfigResponse
-> f BatchGetResourceConfigResponse)
-> ((Maybe (NonEmpty ResourceKey)
-> f (Maybe (NonEmpty ResourceKey)))
-> Maybe (NonEmpty ResourceKey)
-> f (Maybe (NonEmpty ResourceKey)))
-> (Maybe (NonEmpty ResourceKey)
-> f (Maybe (NonEmpty ResourceKey)))
-> BatchGetResourceConfigResponse
-> f BatchGetResourceConfigResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty ResourceKey)
(NonEmpty ResourceKey)
(NonEmpty ResourceKey)
(NonEmpty ResourceKey)
-> Iso
(Maybe (NonEmpty ResourceKey))
(Maybe (NonEmpty ResourceKey))
(Maybe (NonEmpty ResourceKey))
(Maybe (NonEmpty ResourceKey))
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
(NonEmpty ResourceKey)
(NonEmpty ResourceKey)
(NonEmpty ResourceKey)
(NonEmpty ResourceKey)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchGetResourceConfigResponse_httpStatus :: Lens.Lens' BatchGetResourceConfigResponse Prelude.Int
batchGetResourceConfigResponse_httpStatus :: (Int -> f Int)
-> BatchGetResourceConfigResponse
-> f BatchGetResourceConfigResponse
batchGetResourceConfigResponse_httpStatus = (BatchGetResourceConfigResponse -> Int)
-> (BatchGetResourceConfigResponse
-> Int -> BatchGetResourceConfigResponse)
-> Lens
BatchGetResourceConfigResponse
BatchGetResourceConfigResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetResourceConfigResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchGetResourceConfigResponse' :: BatchGetResourceConfigResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchGetResourceConfigResponse
s@BatchGetResourceConfigResponse' {} Int
a -> BatchGetResourceConfigResponse
s {$sel:httpStatus:BatchGetResourceConfigResponse' :: Int
httpStatus = Int
a} :: BatchGetResourceConfigResponse)
instance
Prelude.NFData
BatchGetResourceConfigResponse