{-# 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.IoT.ListCertificatesByCA
(
ListCertificatesByCA (..),
newListCertificatesByCA,
listCertificatesByCA_marker,
listCertificatesByCA_ascendingOrder,
listCertificatesByCA_pageSize,
listCertificatesByCA_caCertificateId,
ListCertificatesByCAResponse (..),
newListCertificatesByCAResponse,
listCertificatesByCAResponse_certificates,
listCertificatesByCAResponse_nextMarker,
listCertificatesByCAResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoT.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 ListCertificatesByCA = ListCertificatesByCA'
{
ListCertificatesByCA -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListCertificatesByCA -> Maybe Bool
ascendingOrder :: Prelude.Maybe Prelude.Bool,
ListCertificatesByCA -> Maybe Natural
pageSize :: Prelude.Maybe Prelude.Natural,
ListCertificatesByCA -> Text
caCertificateId :: Prelude.Text
}
deriving (ListCertificatesByCA -> ListCertificatesByCA -> Bool
(ListCertificatesByCA -> ListCertificatesByCA -> Bool)
-> (ListCertificatesByCA -> ListCertificatesByCA -> Bool)
-> Eq ListCertificatesByCA
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCertificatesByCA -> ListCertificatesByCA -> Bool
$c/= :: ListCertificatesByCA -> ListCertificatesByCA -> Bool
== :: ListCertificatesByCA -> ListCertificatesByCA -> Bool
$c== :: ListCertificatesByCA -> ListCertificatesByCA -> Bool
Prelude.Eq, ReadPrec [ListCertificatesByCA]
ReadPrec ListCertificatesByCA
Int -> ReadS ListCertificatesByCA
ReadS [ListCertificatesByCA]
(Int -> ReadS ListCertificatesByCA)
-> ReadS [ListCertificatesByCA]
-> ReadPrec ListCertificatesByCA
-> ReadPrec [ListCertificatesByCA]
-> Read ListCertificatesByCA
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCertificatesByCA]
$creadListPrec :: ReadPrec [ListCertificatesByCA]
readPrec :: ReadPrec ListCertificatesByCA
$creadPrec :: ReadPrec ListCertificatesByCA
readList :: ReadS [ListCertificatesByCA]
$creadList :: ReadS [ListCertificatesByCA]
readsPrec :: Int -> ReadS ListCertificatesByCA
$creadsPrec :: Int -> ReadS ListCertificatesByCA
Prelude.Read, Int -> ListCertificatesByCA -> ShowS
[ListCertificatesByCA] -> ShowS
ListCertificatesByCA -> String
(Int -> ListCertificatesByCA -> ShowS)
-> (ListCertificatesByCA -> String)
-> ([ListCertificatesByCA] -> ShowS)
-> Show ListCertificatesByCA
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCertificatesByCA] -> ShowS
$cshowList :: [ListCertificatesByCA] -> ShowS
show :: ListCertificatesByCA -> String
$cshow :: ListCertificatesByCA -> String
showsPrec :: Int -> ListCertificatesByCA -> ShowS
$cshowsPrec :: Int -> ListCertificatesByCA -> ShowS
Prelude.Show, (forall x. ListCertificatesByCA -> Rep ListCertificatesByCA x)
-> (forall x. Rep ListCertificatesByCA x -> ListCertificatesByCA)
-> Generic ListCertificatesByCA
forall x. Rep ListCertificatesByCA x -> ListCertificatesByCA
forall x. ListCertificatesByCA -> Rep ListCertificatesByCA x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListCertificatesByCA x -> ListCertificatesByCA
$cfrom :: forall x. ListCertificatesByCA -> Rep ListCertificatesByCA x
Prelude.Generic)
newListCertificatesByCA ::
Prelude.Text ->
ListCertificatesByCA
newListCertificatesByCA :: Text -> ListCertificatesByCA
newListCertificatesByCA Text
pCaCertificateId_ =
ListCertificatesByCA' :: Maybe Text
-> Maybe Bool -> Maybe Natural -> Text -> ListCertificatesByCA
ListCertificatesByCA'
{ $sel:marker:ListCertificatesByCA' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:ascendingOrder:ListCertificatesByCA' :: Maybe Bool
ascendingOrder = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:pageSize:ListCertificatesByCA' :: Maybe Natural
pageSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:caCertificateId:ListCertificatesByCA' :: Text
caCertificateId = Text
pCaCertificateId_
}
listCertificatesByCA_marker :: Lens.Lens' ListCertificatesByCA (Prelude.Maybe Prelude.Text)
listCertificatesByCA_marker :: (Maybe Text -> f (Maybe Text))
-> ListCertificatesByCA -> f ListCertificatesByCA
listCertificatesByCA_marker = (ListCertificatesByCA -> Maybe Text)
-> (ListCertificatesByCA -> Maybe Text -> ListCertificatesByCA)
-> Lens
ListCertificatesByCA ListCertificatesByCA (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificatesByCA' {Maybe Text
marker :: Maybe Text
$sel:marker:ListCertificatesByCA' :: ListCertificatesByCA -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListCertificatesByCA
s@ListCertificatesByCA' {} Maybe Text
a -> ListCertificatesByCA
s {$sel:marker:ListCertificatesByCA' :: Maybe Text
marker = Maybe Text
a} :: ListCertificatesByCA)
listCertificatesByCA_ascendingOrder :: Lens.Lens' ListCertificatesByCA (Prelude.Maybe Prelude.Bool)
listCertificatesByCA_ascendingOrder :: (Maybe Bool -> f (Maybe Bool))
-> ListCertificatesByCA -> f ListCertificatesByCA
listCertificatesByCA_ascendingOrder = (ListCertificatesByCA -> Maybe Bool)
-> (ListCertificatesByCA -> Maybe Bool -> ListCertificatesByCA)
-> Lens
ListCertificatesByCA ListCertificatesByCA (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificatesByCA' {Maybe Bool
ascendingOrder :: Maybe Bool
$sel:ascendingOrder:ListCertificatesByCA' :: ListCertificatesByCA -> Maybe Bool
ascendingOrder} -> Maybe Bool
ascendingOrder) (\s :: ListCertificatesByCA
s@ListCertificatesByCA' {} Maybe Bool
a -> ListCertificatesByCA
s {$sel:ascendingOrder:ListCertificatesByCA' :: Maybe Bool
ascendingOrder = Maybe Bool
a} :: ListCertificatesByCA)
listCertificatesByCA_pageSize :: Lens.Lens' ListCertificatesByCA (Prelude.Maybe Prelude.Natural)
listCertificatesByCA_pageSize :: (Maybe Natural -> f (Maybe Natural))
-> ListCertificatesByCA -> f ListCertificatesByCA
listCertificatesByCA_pageSize = (ListCertificatesByCA -> Maybe Natural)
-> (ListCertificatesByCA -> Maybe Natural -> ListCertificatesByCA)
-> Lens
ListCertificatesByCA
ListCertificatesByCA
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificatesByCA' {Maybe Natural
pageSize :: Maybe Natural
$sel:pageSize:ListCertificatesByCA' :: ListCertificatesByCA -> Maybe Natural
pageSize} -> Maybe Natural
pageSize) (\s :: ListCertificatesByCA
s@ListCertificatesByCA' {} Maybe Natural
a -> ListCertificatesByCA
s {$sel:pageSize:ListCertificatesByCA' :: Maybe Natural
pageSize = Maybe Natural
a} :: ListCertificatesByCA)
listCertificatesByCA_caCertificateId :: Lens.Lens' ListCertificatesByCA Prelude.Text
listCertificatesByCA_caCertificateId :: (Text -> f Text) -> ListCertificatesByCA -> f ListCertificatesByCA
listCertificatesByCA_caCertificateId = (ListCertificatesByCA -> Text)
-> (ListCertificatesByCA -> Text -> ListCertificatesByCA)
-> Lens ListCertificatesByCA ListCertificatesByCA Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificatesByCA' {Text
caCertificateId :: Text
$sel:caCertificateId:ListCertificatesByCA' :: ListCertificatesByCA -> Text
caCertificateId} -> Text
caCertificateId) (\s :: ListCertificatesByCA
s@ListCertificatesByCA' {} Text
a -> ListCertificatesByCA
s {$sel:caCertificateId:ListCertificatesByCA' :: Text
caCertificateId = Text
a} :: ListCertificatesByCA)
instance Core.AWSPager ListCertificatesByCA where
page :: ListCertificatesByCA
-> AWSResponse ListCertificatesByCA -> Maybe ListCertificatesByCA
page ListCertificatesByCA
rq AWSResponse ListCertificatesByCA
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListCertificatesByCA
ListCertificatesByCAResponse
rs
ListCertificatesByCAResponse
-> Getting (First Text) ListCertificatesByCAResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListCertificatesByCAResponse
-> Const (First Text) ListCertificatesByCAResponse
Lens' ListCertificatesByCAResponse (Maybe Text)
listCertificatesByCAResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListCertificatesByCAResponse
-> Const (First Text) ListCertificatesByCAResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListCertificatesByCAResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListCertificatesByCA
forall a. Maybe a
Prelude.Nothing
| Maybe [Certificate] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListCertificatesByCA
ListCertificatesByCAResponse
rs
ListCertificatesByCAResponse
-> Getting
(First [Certificate]) ListCertificatesByCAResponse [Certificate]
-> Maybe [Certificate]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Certificate]
-> Const (First [Certificate]) (Maybe [Certificate]))
-> ListCertificatesByCAResponse
-> Const (First [Certificate]) ListCertificatesByCAResponse
Lens' ListCertificatesByCAResponse (Maybe [Certificate])
listCertificatesByCAResponse_certificates
((Maybe [Certificate]
-> Const (First [Certificate]) (Maybe [Certificate]))
-> ListCertificatesByCAResponse
-> Const (First [Certificate]) ListCertificatesByCAResponse)
-> (([Certificate] -> Const (First [Certificate]) [Certificate])
-> Maybe [Certificate]
-> Const (First [Certificate]) (Maybe [Certificate]))
-> Getting
(First [Certificate]) ListCertificatesByCAResponse [Certificate]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Certificate] -> Const (First [Certificate]) [Certificate])
-> Maybe [Certificate]
-> Const (First [Certificate]) (Maybe [Certificate])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListCertificatesByCA
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListCertificatesByCA -> Maybe ListCertificatesByCA
forall a. a -> Maybe a
Prelude.Just (ListCertificatesByCA -> Maybe ListCertificatesByCA)
-> ListCertificatesByCA -> Maybe ListCertificatesByCA
forall a b. (a -> b) -> a -> b
Prelude.$
ListCertificatesByCA
rq
ListCertificatesByCA
-> (ListCertificatesByCA -> ListCertificatesByCA)
-> ListCertificatesByCA
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListCertificatesByCA -> Identity ListCertificatesByCA
Lens
ListCertificatesByCA ListCertificatesByCA (Maybe Text) (Maybe Text)
listCertificatesByCA_marker
((Maybe Text -> Identity (Maybe Text))
-> ListCertificatesByCA -> Identity ListCertificatesByCA)
-> Maybe Text -> ListCertificatesByCA -> ListCertificatesByCA
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListCertificatesByCA
ListCertificatesByCAResponse
rs
ListCertificatesByCAResponse
-> Getting (First Text) ListCertificatesByCAResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListCertificatesByCAResponse
-> Const (First Text) ListCertificatesByCAResponse
Lens' ListCertificatesByCAResponse (Maybe Text)
listCertificatesByCAResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListCertificatesByCAResponse
-> Const (First Text) ListCertificatesByCAResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListCertificatesByCAResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListCertificatesByCA where
type
AWSResponse ListCertificatesByCA =
ListCertificatesByCAResponse
request :: ListCertificatesByCA -> Request ListCertificatesByCA
request = Service -> ListCertificatesByCA -> Request ListCertificatesByCA
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListCertificatesByCA
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListCertificatesByCA)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListCertificatesByCA))
-> Logger
-> Service
-> Proxy ListCertificatesByCA
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListCertificatesByCA)))
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 [Certificate]
-> Maybe Text -> Int -> ListCertificatesByCAResponse
ListCertificatesByCAResponse'
(Maybe [Certificate]
-> Maybe Text -> Int -> ListCertificatesByCAResponse)
-> Either String (Maybe [Certificate])
-> Either
String (Maybe Text -> Int -> ListCertificatesByCAResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Certificate]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"certificates" Either String (Maybe (Maybe [Certificate]))
-> Maybe [Certificate] -> Either String (Maybe [Certificate])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Certificate]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListCertificatesByCAResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListCertificatesByCAResponse)
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 (Int -> ListCertificatesByCAResponse)
-> Either String Int -> Either String ListCertificatesByCAResponse
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 ListCertificatesByCA
instance Prelude.NFData ListCertificatesByCA
instance Core.ToHeaders ListCertificatesByCA where
toHeaders :: ListCertificatesByCA -> ResponseHeaders
toHeaders = ResponseHeaders -> ListCertificatesByCA -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListCertificatesByCA where
toPath :: ListCertificatesByCA -> ByteString
toPath ListCertificatesByCA' {Maybe Bool
Maybe Natural
Maybe Text
Text
caCertificateId :: Text
pageSize :: Maybe Natural
ascendingOrder :: Maybe Bool
marker :: Maybe Text
$sel:caCertificateId:ListCertificatesByCA' :: ListCertificatesByCA -> Text
$sel:pageSize:ListCertificatesByCA' :: ListCertificatesByCA -> Maybe Natural
$sel:ascendingOrder:ListCertificatesByCA' :: ListCertificatesByCA -> Maybe Bool
$sel:marker:ListCertificatesByCA' :: ListCertificatesByCA -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/certificates-by-ca/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
caCertificateId]
instance Core.ToQuery ListCertificatesByCA where
toQuery :: ListCertificatesByCA -> QueryString
toQuery ListCertificatesByCA' {Maybe Bool
Maybe Natural
Maybe Text
Text
caCertificateId :: Text
pageSize :: Maybe Natural
ascendingOrder :: Maybe Bool
marker :: Maybe Text
$sel:caCertificateId:ListCertificatesByCA' :: ListCertificatesByCA -> Text
$sel:pageSize:ListCertificatesByCA' :: ListCertificatesByCA -> Maybe Natural
$sel:ascendingOrder:ListCertificatesByCA' :: ListCertificatesByCA -> Maybe Bool
$sel:marker:ListCertificatesByCA' :: ListCertificatesByCA -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"isAscendingOrder" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
ascendingOrder,
ByteString
"pageSize" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
pageSize
]
data ListCertificatesByCAResponse = ListCertificatesByCAResponse'
{
ListCertificatesByCAResponse -> Maybe [Certificate]
certificates :: Prelude.Maybe [Certificate],
ListCertificatesByCAResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
ListCertificatesByCAResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListCertificatesByCAResponse
-> ListCertificatesByCAResponse -> Bool
(ListCertificatesByCAResponse
-> ListCertificatesByCAResponse -> Bool)
-> (ListCertificatesByCAResponse
-> ListCertificatesByCAResponse -> Bool)
-> Eq ListCertificatesByCAResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCertificatesByCAResponse
-> ListCertificatesByCAResponse -> Bool
$c/= :: ListCertificatesByCAResponse
-> ListCertificatesByCAResponse -> Bool
== :: ListCertificatesByCAResponse
-> ListCertificatesByCAResponse -> Bool
$c== :: ListCertificatesByCAResponse
-> ListCertificatesByCAResponse -> Bool
Prelude.Eq, ReadPrec [ListCertificatesByCAResponse]
ReadPrec ListCertificatesByCAResponse
Int -> ReadS ListCertificatesByCAResponse
ReadS [ListCertificatesByCAResponse]
(Int -> ReadS ListCertificatesByCAResponse)
-> ReadS [ListCertificatesByCAResponse]
-> ReadPrec ListCertificatesByCAResponse
-> ReadPrec [ListCertificatesByCAResponse]
-> Read ListCertificatesByCAResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCertificatesByCAResponse]
$creadListPrec :: ReadPrec [ListCertificatesByCAResponse]
readPrec :: ReadPrec ListCertificatesByCAResponse
$creadPrec :: ReadPrec ListCertificatesByCAResponse
readList :: ReadS [ListCertificatesByCAResponse]
$creadList :: ReadS [ListCertificatesByCAResponse]
readsPrec :: Int -> ReadS ListCertificatesByCAResponse
$creadsPrec :: Int -> ReadS ListCertificatesByCAResponse
Prelude.Read, Int -> ListCertificatesByCAResponse -> ShowS
[ListCertificatesByCAResponse] -> ShowS
ListCertificatesByCAResponse -> String
(Int -> ListCertificatesByCAResponse -> ShowS)
-> (ListCertificatesByCAResponse -> String)
-> ([ListCertificatesByCAResponse] -> ShowS)
-> Show ListCertificatesByCAResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCertificatesByCAResponse] -> ShowS
$cshowList :: [ListCertificatesByCAResponse] -> ShowS
show :: ListCertificatesByCAResponse -> String
$cshow :: ListCertificatesByCAResponse -> String
showsPrec :: Int -> ListCertificatesByCAResponse -> ShowS
$cshowsPrec :: Int -> ListCertificatesByCAResponse -> ShowS
Prelude.Show, (forall x.
ListCertificatesByCAResponse -> Rep ListCertificatesByCAResponse x)
-> (forall x.
Rep ListCertificatesByCAResponse x -> ListCertificatesByCAResponse)
-> Generic ListCertificatesByCAResponse
forall x.
Rep ListCertificatesByCAResponse x -> ListCertificatesByCAResponse
forall x.
ListCertificatesByCAResponse -> Rep ListCertificatesByCAResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListCertificatesByCAResponse x -> ListCertificatesByCAResponse
$cfrom :: forall x.
ListCertificatesByCAResponse -> Rep ListCertificatesByCAResponse x
Prelude.Generic)
newListCertificatesByCAResponse ::
Prelude.Int ->
ListCertificatesByCAResponse
newListCertificatesByCAResponse :: Int -> ListCertificatesByCAResponse
newListCertificatesByCAResponse Int
pHttpStatus_ =
ListCertificatesByCAResponse' :: Maybe [Certificate]
-> Maybe Text -> Int -> ListCertificatesByCAResponse
ListCertificatesByCAResponse'
{ $sel:certificates:ListCertificatesByCAResponse' :: Maybe [Certificate]
certificates =
Maybe [Certificate]
forall a. Maybe a
Prelude.Nothing,
$sel:nextMarker:ListCertificatesByCAResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListCertificatesByCAResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listCertificatesByCAResponse_certificates :: Lens.Lens' ListCertificatesByCAResponse (Prelude.Maybe [Certificate])
listCertificatesByCAResponse_certificates :: (Maybe [Certificate] -> f (Maybe [Certificate]))
-> ListCertificatesByCAResponse -> f ListCertificatesByCAResponse
listCertificatesByCAResponse_certificates = (ListCertificatesByCAResponse -> Maybe [Certificate])
-> (ListCertificatesByCAResponse
-> Maybe [Certificate] -> ListCertificatesByCAResponse)
-> Lens' ListCertificatesByCAResponse (Maybe [Certificate])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificatesByCAResponse' {Maybe [Certificate]
certificates :: Maybe [Certificate]
$sel:certificates:ListCertificatesByCAResponse' :: ListCertificatesByCAResponse -> Maybe [Certificate]
certificates} -> Maybe [Certificate]
certificates) (\s :: ListCertificatesByCAResponse
s@ListCertificatesByCAResponse' {} Maybe [Certificate]
a -> ListCertificatesByCAResponse
s {$sel:certificates:ListCertificatesByCAResponse' :: Maybe [Certificate]
certificates = Maybe [Certificate]
a} :: ListCertificatesByCAResponse) ((Maybe [Certificate] -> f (Maybe [Certificate]))
-> ListCertificatesByCAResponse -> f ListCertificatesByCAResponse)
-> ((Maybe [Certificate] -> f (Maybe [Certificate]))
-> Maybe [Certificate] -> f (Maybe [Certificate]))
-> (Maybe [Certificate] -> f (Maybe [Certificate]))
-> ListCertificatesByCAResponse
-> f ListCertificatesByCAResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Certificate] [Certificate] [Certificate] [Certificate]
-> Iso
(Maybe [Certificate])
(Maybe [Certificate])
(Maybe [Certificate])
(Maybe [Certificate])
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 [Certificate] [Certificate] [Certificate] [Certificate]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listCertificatesByCAResponse_nextMarker :: Lens.Lens' ListCertificatesByCAResponse (Prelude.Maybe Prelude.Text)
listCertificatesByCAResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListCertificatesByCAResponse -> f ListCertificatesByCAResponse
listCertificatesByCAResponse_nextMarker = (ListCertificatesByCAResponse -> Maybe Text)
-> (ListCertificatesByCAResponse
-> Maybe Text -> ListCertificatesByCAResponse)
-> Lens' ListCertificatesByCAResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificatesByCAResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListCertificatesByCAResponse' :: ListCertificatesByCAResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListCertificatesByCAResponse
s@ListCertificatesByCAResponse' {} Maybe Text
a -> ListCertificatesByCAResponse
s {$sel:nextMarker:ListCertificatesByCAResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: ListCertificatesByCAResponse)
listCertificatesByCAResponse_httpStatus :: Lens.Lens' ListCertificatesByCAResponse Prelude.Int
listCertificatesByCAResponse_httpStatus :: (Int -> f Int)
-> ListCertificatesByCAResponse -> f ListCertificatesByCAResponse
listCertificatesByCAResponse_httpStatus = (ListCertificatesByCAResponse -> Int)
-> (ListCertificatesByCAResponse
-> Int -> ListCertificatesByCAResponse)
-> Lens
ListCertificatesByCAResponse ListCertificatesByCAResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificatesByCAResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListCertificatesByCAResponse' :: ListCertificatesByCAResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListCertificatesByCAResponse
s@ListCertificatesByCAResponse' {} Int
a -> ListCertificatesByCAResponse
s {$sel:httpStatus:ListCertificatesByCAResponse' :: Int
httpStatus = Int
a} :: ListCertificatesByCAResponse)
instance Prelude.NFData ListCertificatesByCAResponse