{-# 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.KMS.DescribeCustomKeyStores
(
DescribeCustomKeyStores (..),
newDescribeCustomKeyStores,
describeCustomKeyStores_customKeyStoreName,
describeCustomKeyStores_marker,
describeCustomKeyStores_limit,
describeCustomKeyStores_customKeyStoreId,
DescribeCustomKeyStoresResponse (..),
newDescribeCustomKeyStoresResponse,
describeCustomKeyStoresResponse_truncated,
describeCustomKeyStoresResponse_nextMarker,
describeCustomKeyStoresResponse_customKeyStores,
describeCustomKeyStoresResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.KMS.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 DescribeCustomKeyStores = DescribeCustomKeyStores'
{
DescribeCustomKeyStores -> Maybe Text
customKeyStoreName :: Prelude.Maybe Prelude.Text,
DescribeCustomKeyStores -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeCustomKeyStores -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
DescribeCustomKeyStores -> Maybe Text
customKeyStoreId :: Prelude.Maybe Prelude.Text
}
deriving (DescribeCustomKeyStores -> DescribeCustomKeyStores -> Bool
(DescribeCustomKeyStores -> DescribeCustomKeyStores -> Bool)
-> (DescribeCustomKeyStores -> DescribeCustomKeyStores -> Bool)
-> Eq DescribeCustomKeyStores
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeCustomKeyStores -> DescribeCustomKeyStores -> Bool
$c/= :: DescribeCustomKeyStores -> DescribeCustomKeyStores -> Bool
== :: DescribeCustomKeyStores -> DescribeCustomKeyStores -> Bool
$c== :: DescribeCustomKeyStores -> DescribeCustomKeyStores -> Bool
Prelude.Eq, ReadPrec [DescribeCustomKeyStores]
ReadPrec DescribeCustomKeyStores
Int -> ReadS DescribeCustomKeyStores
ReadS [DescribeCustomKeyStores]
(Int -> ReadS DescribeCustomKeyStores)
-> ReadS [DescribeCustomKeyStores]
-> ReadPrec DescribeCustomKeyStores
-> ReadPrec [DescribeCustomKeyStores]
-> Read DescribeCustomKeyStores
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeCustomKeyStores]
$creadListPrec :: ReadPrec [DescribeCustomKeyStores]
readPrec :: ReadPrec DescribeCustomKeyStores
$creadPrec :: ReadPrec DescribeCustomKeyStores
readList :: ReadS [DescribeCustomKeyStores]
$creadList :: ReadS [DescribeCustomKeyStores]
readsPrec :: Int -> ReadS DescribeCustomKeyStores
$creadsPrec :: Int -> ReadS DescribeCustomKeyStores
Prelude.Read, Int -> DescribeCustomKeyStores -> ShowS
[DescribeCustomKeyStores] -> ShowS
DescribeCustomKeyStores -> String
(Int -> DescribeCustomKeyStores -> ShowS)
-> (DescribeCustomKeyStores -> String)
-> ([DescribeCustomKeyStores] -> ShowS)
-> Show DescribeCustomKeyStores
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeCustomKeyStores] -> ShowS
$cshowList :: [DescribeCustomKeyStores] -> ShowS
show :: DescribeCustomKeyStores -> String
$cshow :: DescribeCustomKeyStores -> String
showsPrec :: Int -> DescribeCustomKeyStores -> ShowS
$cshowsPrec :: Int -> DescribeCustomKeyStores -> ShowS
Prelude.Show, (forall x.
DescribeCustomKeyStores -> Rep DescribeCustomKeyStores x)
-> (forall x.
Rep DescribeCustomKeyStores x -> DescribeCustomKeyStores)
-> Generic DescribeCustomKeyStores
forall x. Rep DescribeCustomKeyStores x -> DescribeCustomKeyStores
forall x. DescribeCustomKeyStores -> Rep DescribeCustomKeyStores x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeCustomKeyStores x -> DescribeCustomKeyStores
$cfrom :: forall x. DescribeCustomKeyStores -> Rep DescribeCustomKeyStores x
Prelude.Generic)
newDescribeCustomKeyStores ::
DescribeCustomKeyStores
newDescribeCustomKeyStores :: DescribeCustomKeyStores
newDescribeCustomKeyStores =
DescribeCustomKeyStores' :: Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> DescribeCustomKeyStores
DescribeCustomKeyStores'
{ $sel:customKeyStoreName:DescribeCustomKeyStores' :: Maybe Text
customKeyStoreName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeCustomKeyStores' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:DescribeCustomKeyStores' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:customKeyStoreId:DescribeCustomKeyStores' :: Maybe Text
customKeyStoreId = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeCustomKeyStores_customKeyStoreName :: Lens.Lens' DescribeCustomKeyStores (Prelude.Maybe Prelude.Text)
describeCustomKeyStores_customKeyStoreName :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomKeyStores -> f DescribeCustomKeyStores
describeCustomKeyStores_customKeyStoreName = (DescribeCustomKeyStores -> Maybe Text)
-> (DescribeCustomKeyStores
-> Maybe Text -> DescribeCustomKeyStores)
-> Lens
DescribeCustomKeyStores
DescribeCustomKeyStores
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomKeyStores' {Maybe Text
customKeyStoreName :: Maybe Text
$sel:customKeyStoreName:DescribeCustomKeyStores' :: DescribeCustomKeyStores -> Maybe Text
customKeyStoreName} -> Maybe Text
customKeyStoreName) (\s :: DescribeCustomKeyStores
s@DescribeCustomKeyStores' {} Maybe Text
a -> DescribeCustomKeyStores
s {$sel:customKeyStoreName:DescribeCustomKeyStores' :: Maybe Text
customKeyStoreName = Maybe Text
a} :: DescribeCustomKeyStores)
describeCustomKeyStores_marker :: Lens.Lens' DescribeCustomKeyStores (Prelude.Maybe Prelude.Text)
describeCustomKeyStores_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomKeyStores -> f DescribeCustomKeyStores
describeCustomKeyStores_marker = (DescribeCustomKeyStores -> Maybe Text)
-> (DescribeCustomKeyStores
-> Maybe Text -> DescribeCustomKeyStores)
-> Lens
DescribeCustomKeyStores
DescribeCustomKeyStores
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomKeyStores' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeCustomKeyStores' :: DescribeCustomKeyStores -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeCustomKeyStores
s@DescribeCustomKeyStores' {} Maybe Text
a -> DescribeCustomKeyStores
s {$sel:marker:DescribeCustomKeyStores' :: Maybe Text
marker = Maybe Text
a} :: DescribeCustomKeyStores)
describeCustomKeyStores_limit :: Lens.Lens' DescribeCustomKeyStores (Prelude.Maybe Prelude.Natural)
describeCustomKeyStores_limit :: (Maybe Natural -> f (Maybe Natural))
-> DescribeCustomKeyStores -> f DescribeCustomKeyStores
describeCustomKeyStores_limit = (DescribeCustomKeyStores -> Maybe Natural)
-> (DescribeCustomKeyStores
-> Maybe Natural -> DescribeCustomKeyStores)
-> Lens
DescribeCustomKeyStores
DescribeCustomKeyStores
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomKeyStores' {Maybe Natural
limit :: Maybe Natural
$sel:limit:DescribeCustomKeyStores' :: DescribeCustomKeyStores -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: DescribeCustomKeyStores
s@DescribeCustomKeyStores' {} Maybe Natural
a -> DescribeCustomKeyStores
s {$sel:limit:DescribeCustomKeyStores' :: Maybe Natural
limit = Maybe Natural
a} :: DescribeCustomKeyStores)
describeCustomKeyStores_customKeyStoreId :: Lens.Lens' DescribeCustomKeyStores (Prelude.Maybe Prelude.Text)
describeCustomKeyStores_customKeyStoreId :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomKeyStores -> f DescribeCustomKeyStores
describeCustomKeyStores_customKeyStoreId = (DescribeCustomKeyStores -> Maybe Text)
-> (DescribeCustomKeyStores
-> Maybe Text -> DescribeCustomKeyStores)
-> Lens
DescribeCustomKeyStores
DescribeCustomKeyStores
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomKeyStores' {Maybe Text
customKeyStoreId :: Maybe Text
$sel:customKeyStoreId:DescribeCustomKeyStores' :: DescribeCustomKeyStores -> Maybe Text
customKeyStoreId} -> Maybe Text
customKeyStoreId) (\s :: DescribeCustomKeyStores
s@DescribeCustomKeyStores' {} Maybe Text
a -> DescribeCustomKeyStores
s {$sel:customKeyStoreId:DescribeCustomKeyStores' :: Maybe Text
customKeyStoreId = Maybe Text
a} :: DescribeCustomKeyStores)
instance Core.AWSRequest DescribeCustomKeyStores where
type
AWSResponse DescribeCustomKeyStores =
DescribeCustomKeyStoresResponse
request :: DescribeCustomKeyStores -> Request DescribeCustomKeyStores
request = Service
-> DescribeCustomKeyStores -> Request DescribeCustomKeyStores
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeCustomKeyStores
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeCustomKeyStores)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeCustomKeyStores))
-> Logger
-> Service
-> Proxy DescribeCustomKeyStores
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeCustomKeyStores)))
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 Bool
-> Maybe Text
-> Maybe [CustomKeyStoresListEntry]
-> Int
-> DescribeCustomKeyStoresResponse
DescribeCustomKeyStoresResponse'
(Maybe Bool
-> Maybe Text
-> Maybe [CustomKeyStoresListEntry]
-> Int
-> DescribeCustomKeyStoresResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe [CustomKeyStoresListEntry]
-> Int
-> DescribeCustomKeyStoresResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Truncated")
Either
String
(Maybe Text
-> Maybe [CustomKeyStoresListEntry]
-> Int
-> DescribeCustomKeyStoresResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [CustomKeyStoresListEntry]
-> Int -> DescribeCustomKeyStoresResponse)
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
"NextMarker")
Either
String
(Maybe [CustomKeyStoresListEntry]
-> Int -> DescribeCustomKeyStoresResponse)
-> Either String (Maybe [CustomKeyStoresListEntry])
-> Either String (Int -> DescribeCustomKeyStoresResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [CustomKeyStoresListEntry]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CustomKeyStores"
Either String (Maybe (Maybe [CustomKeyStoresListEntry]))
-> Maybe [CustomKeyStoresListEntry]
-> Either String (Maybe [CustomKeyStoresListEntry])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [CustomKeyStoresListEntry]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> DescribeCustomKeyStoresResponse)
-> Either String Int
-> Either String DescribeCustomKeyStoresResponse
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 DescribeCustomKeyStores
instance Prelude.NFData DescribeCustomKeyStores
instance Core.ToHeaders DescribeCustomKeyStores where
toHeaders :: DescribeCustomKeyStores -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeCustomKeyStores -> 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
"TrentService.DescribeCustomKeyStores" ::
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 DescribeCustomKeyStores where
toJSON :: DescribeCustomKeyStores -> Value
toJSON DescribeCustomKeyStores' {Maybe Natural
Maybe Text
customKeyStoreId :: Maybe Text
limit :: Maybe Natural
marker :: Maybe Text
customKeyStoreName :: Maybe Text
$sel:customKeyStoreId:DescribeCustomKeyStores' :: DescribeCustomKeyStores -> Maybe Text
$sel:limit:DescribeCustomKeyStores' :: DescribeCustomKeyStores -> Maybe Natural
$sel:marker:DescribeCustomKeyStores' :: DescribeCustomKeyStores -> Maybe Text
$sel:customKeyStoreName:DescribeCustomKeyStores' :: DescribeCustomKeyStores -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"CustomKeyStoreName" 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
customKeyStoreName,
(Text
"Marker" 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
marker,
(Text
"Limit" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit,
(Text
"CustomKeyStoreId" 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
customKeyStoreId
]
)
instance Core.ToPath DescribeCustomKeyStores where
toPath :: DescribeCustomKeyStores -> ByteString
toPath = ByteString -> DescribeCustomKeyStores -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeCustomKeyStores where
toQuery :: DescribeCustomKeyStores -> QueryString
toQuery = QueryString -> DescribeCustomKeyStores -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeCustomKeyStoresResponse = DescribeCustomKeyStoresResponse'
{
DescribeCustomKeyStoresResponse -> Maybe Bool
truncated :: Prelude.Maybe Prelude.Bool,
DescribeCustomKeyStoresResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
DescribeCustomKeyStoresResponse -> Maybe [CustomKeyStoresListEntry]
customKeyStores :: Prelude.Maybe [CustomKeyStoresListEntry],
DescribeCustomKeyStoresResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeCustomKeyStoresResponse
-> DescribeCustomKeyStoresResponse -> Bool
(DescribeCustomKeyStoresResponse
-> DescribeCustomKeyStoresResponse -> Bool)
-> (DescribeCustomKeyStoresResponse
-> DescribeCustomKeyStoresResponse -> Bool)
-> Eq DescribeCustomKeyStoresResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeCustomKeyStoresResponse
-> DescribeCustomKeyStoresResponse -> Bool
$c/= :: DescribeCustomKeyStoresResponse
-> DescribeCustomKeyStoresResponse -> Bool
== :: DescribeCustomKeyStoresResponse
-> DescribeCustomKeyStoresResponse -> Bool
$c== :: DescribeCustomKeyStoresResponse
-> DescribeCustomKeyStoresResponse -> Bool
Prelude.Eq, ReadPrec [DescribeCustomKeyStoresResponse]
ReadPrec DescribeCustomKeyStoresResponse
Int -> ReadS DescribeCustomKeyStoresResponse
ReadS [DescribeCustomKeyStoresResponse]
(Int -> ReadS DescribeCustomKeyStoresResponse)
-> ReadS [DescribeCustomKeyStoresResponse]
-> ReadPrec DescribeCustomKeyStoresResponse
-> ReadPrec [DescribeCustomKeyStoresResponse]
-> Read DescribeCustomKeyStoresResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeCustomKeyStoresResponse]
$creadListPrec :: ReadPrec [DescribeCustomKeyStoresResponse]
readPrec :: ReadPrec DescribeCustomKeyStoresResponse
$creadPrec :: ReadPrec DescribeCustomKeyStoresResponse
readList :: ReadS [DescribeCustomKeyStoresResponse]
$creadList :: ReadS [DescribeCustomKeyStoresResponse]
readsPrec :: Int -> ReadS DescribeCustomKeyStoresResponse
$creadsPrec :: Int -> ReadS DescribeCustomKeyStoresResponse
Prelude.Read, Int -> DescribeCustomKeyStoresResponse -> ShowS
[DescribeCustomKeyStoresResponse] -> ShowS
DescribeCustomKeyStoresResponse -> String
(Int -> DescribeCustomKeyStoresResponse -> ShowS)
-> (DescribeCustomKeyStoresResponse -> String)
-> ([DescribeCustomKeyStoresResponse] -> ShowS)
-> Show DescribeCustomKeyStoresResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeCustomKeyStoresResponse] -> ShowS
$cshowList :: [DescribeCustomKeyStoresResponse] -> ShowS
show :: DescribeCustomKeyStoresResponse -> String
$cshow :: DescribeCustomKeyStoresResponse -> String
showsPrec :: Int -> DescribeCustomKeyStoresResponse -> ShowS
$cshowsPrec :: Int -> DescribeCustomKeyStoresResponse -> ShowS
Prelude.Show, (forall x.
DescribeCustomKeyStoresResponse
-> Rep DescribeCustomKeyStoresResponse x)
-> (forall x.
Rep DescribeCustomKeyStoresResponse x
-> DescribeCustomKeyStoresResponse)
-> Generic DescribeCustomKeyStoresResponse
forall x.
Rep DescribeCustomKeyStoresResponse x
-> DescribeCustomKeyStoresResponse
forall x.
DescribeCustomKeyStoresResponse
-> Rep DescribeCustomKeyStoresResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeCustomKeyStoresResponse x
-> DescribeCustomKeyStoresResponse
$cfrom :: forall x.
DescribeCustomKeyStoresResponse
-> Rep DescribeCustomKeyStoresResponse x
Prelude.Generic)
newDescribeCustomKeyStoresResponse ::
Prelude.Int ->
DescribeCustomKeyStoresResponse
newDescribeCustomKeyStoresResponse :: Int -> DescribeCustomKeyStoresResponse
newDescribeCustomKeyStoresResponse Int
pHttpStatus_ =
DescribeCustomKeyStoresResponse' :: Maybe Bool
-> Maybe Text
-> Maybe [CustomKeyStoresListEntry]
-> Int
-> DescribeCustomKeyStoresResponse
DescribeCustomKeyStoresResponse'
{ $sel:truncated:DescribeCustomKeyStoresResponse' :: Maybe Bool
truncated =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:nextMarker:DescribeCustomKeyStoresResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:customKeyStores:DescribeCustomKeyStoresResponse' :: Maybe [CustomKeyStoresListEntry]
customKeyStores = Maybe [CustomKeyStoresListEntry]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeCustomKeyStoresResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeCustomKeyStoresResponse_truncated :: Lens.Lens' DescribeCustomKeyStoresResponse (Prelude.Maybe Prelude.Bool)
describeCustomKeyStoresResponse_truncated :: (Maybe Bool -> f (Maybe Bool))
-> DescribeCustomKeyStoresResponse
-> f DescribeCustomKeyStoresResponse
describeCustomKeyStoresResponse_truncated = (DescribeCustomKeyStoresResponse -> Maybe Bool)
-> (DescribeCustomKeyStoresResponse
-> Maybe Bool -> DescribeCustomKeyStoresResponse)
-> Lens
DescribeCustomKeyStoresResponse
DescribeCustomKeyStoresResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomKeyStoresResponse' {Maybe Bool
truncated :: Maybe Bool
$sel:truncated:DescribeCustomKeyStoresResponse' :: DescribeCustomKeyStoresResponse -> Maybe Bool
truncated} -> Maybe Bool
truncated) (\s :: DescribeCustomKeyStoresResponse
s@DescribeCustomKeyStoresResponse' {} Maybe Bool
a -> DescribeCustomKeyStoresResponse
s {$sel:truncated:DescribeCustomKeyStoresResponse' :: Maybe Bool
truncated = Maybe Bool
a} :: DescribeCustomKeyStoresResponse)
describeCustomKeyStoresResponse_nextMarker :: Lens.Lens' DescribeCustomKeyStoresResponse (Prelude.Maybe Prelude.Text)
describeCustomKeyStoresResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomKeyStoresResponse
-> f DescribeCustomKeyStoresResponse
describeCustomKeyStoresResponse_nextMarker = (DescribeCustomKeyStoresResponse -> Maybe Text)
-> (DescribeCustomKeyStoresResponse
-> Maybe Text -> DescribeCustomKeyStoresResponse)
-> Lens
DescribeCustomKeyStoresResponse
DescribeCustomKeyStoresResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomKeyStoresResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:DescribeCustomKeyStoresResponse' :: DescribeCustomKeyStoresResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: DescribeCustomKeyStoresResponse
s@DescribeCustomKeyStoresResponse' {} Maybe Text
a -> DescribeCustomKeyStoresResponse
s {$sel:nextMarker:DescribeCustomKeyStoresResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: DescribeCustomKeyStoresResponse)
describeCustomKeyStoresResponse_customKeyStores :: Lens.Lens' DescribeCustomKeyStoresResponse (Prelude.Maybe [CustomKeyStoresListEntry])
describeCustomKeyStoresResponse_customKeyStores :: (Maybe [CustomKeyStoresListEntry]
-> f (Maybe [CustomKeyStoresListEntry]))
-> DescribeCustomKeyStoresResponse
-> f DescribeCustomKeyStoresResponse
describeCustomKeyStoresResponse_customKeyStores = (DescribeCustomKeyStoresResponse
-> Maybe [CustomKeyStoresListEntry])
-> (DescribeCustomKeyStoresResponse
-> Maybe [CustomKeyStoresListEntry]
-> DescribeCustomKeyStoresResponse)
-> Lens
DescribeCustomKeyStoresResponse
DescribeCustomKeyStoresResponse
(Maybe [CustomKeyStoresListEntry])
(Maybe [CustomKeyStoresListEntry])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomKeyStoresResponse' {Maybe [CustomKeyStoresListEntry]
customKeyStores :: Maybe [CustomKeyStoresListEntry]
$sel:customKeyStores:DescribeCustomKeyStoresResponse' :: DescribeCustomKeyStoresResponse -> Maybe [CustomKeyStoresListEntry]
customKeyStores} -> Maybe [CustomKeyStoresListEntry]
customKeyStores) (\s :: DescribeCustomKeyStoresResponse
s@DescribeCustomKeyStoresResponse' {} Maybe [CustomKeyStoresListEntry]
a -> DescribeCustomKeyStoresResponse
s {$sel:customKeyStores:DescribeCustomKeyStoresResponse' :: Maybe [CustomKeyStoresListEntry]
customKeyStores = Maybe [CustomKeyStoresListEntry]
a} :: DescribeCustomKeyStoresResponse) ((Maybe [CustomKeyStoresListEntry]
-> f (Maybe [CustomKeyStoresListEntry]))
-> DescribeCustomKeyStoresResponse
-> f DescribeCustomKeyStoresResponse)
-> ((Maybe [CustomKeyStoresListEntry]
-> f (Maybe [CustomKeyStoresListEntry]))
-> Maybe [CustomKeyStoresListEntry]
-> f (Maybe [CustomKeyStoresListEntry]))
-> (Maybe [CustomKeyStoresListEntry]
-> f (Maybe [CustomKeyStoresListEntry]))
-> DescribeCustomKeyStoresResponse
-> f DescribeCustomKeyStoresResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[CustomKeyStoresListEntry]
[CustomKeyStoresListEntry]
[CustomKeyStoresListEntry]
[CustomKeyStoresListEntry]
-> Iso
(Maybe [CustomKeyStoresListEntry])
(Maybe [CustomKeyStoresListEntry])
(Maybe [CustomKeyStoresListEntry])
(Maybe [CustomKeyStoresListEntry])
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
[CustomKeyStoresListEntry]
[CustomKeyStoresListEntry]
[CustomKeyStoresListEntry]
[CustomKeyStoresListEntry]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeCustomKeyStoresResponse_httpStatus :: Lens.Lens' DescribeCustomKeyStoresResponse Prelude.Int
describeCustomKeyStoresResponse_httpStatus :: (Int -> f Int)
-> DescribeCustomKeyStoresResponse
-> f DescribeCustomKeyStoresResponse
describeCustomKeyStoresResponse_httpStatus = (DescribeCustomKeyStoresResponse -> Int)
-> (DescribeCustomKeyStoresResponse
-> Int -> DescribeCustomKeyStoresResponse)
-> Lens
DescribeCustomKeyStoresResponse
DescribeCustomKeyStoresResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomKeyStoresResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeCustomKeyStoresResponse' :: DescribeCustomKeyStoresResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeCustomKeyStoresResponse
s@DescribeCustomKeyStoresResponse' {} Int
a -> DescribeCustomKeyStoresResponse
s {$sel:httpStatus:DescribeCustomKeyStoresResponse' :: Int
httpStatus = Int
a} :: DescribeCustomKeyStoresResponse)
instance
Prelude.NFData
DescribeCustomKeyStoresResponse