{-# 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.CertificateManager.ListCertificates
(
ListCertificates (..),
newListCertificates,
listCertificates_certificateStatuses,
listCertificates_nextToken,
listCertificates_includes,
listCertificates_maxItems,
ListCertificatesResponse (..),
newListCertificatesResponse,
listCertificatesResponse_certificateSummaryList,
listCertificatesResponse_nextToken,
listCertificatesResponse_httpStatus,
)
where
import Amazonka.CertificateManager.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 ListCertificates = ListCertificates'
{
ListCertificates -> Maybe [CertificateStatus]
certificateStatuses :: Prelude.Maybe [CertificateStatus],
ListCertificates -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListCertificates -> Maybe Filters
includes :: Prelude.Maybe Filters,
ListCertificates -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural
}
deriving (ListCertificates -> ListCertificates -> Bool
(ListCertificates -> ListCertificates -> Bool)
-> (ListCertificates -> ListCertificates -> Bool)
-> Eq ListCertificates
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCertificates -> ListCertificates -> Bool
$c/= :: ListCertificates -> ListCertificates -> Bool
== :: ListCertificates -> ListCertificates -> Bool
$c== :: ListCertificates -> ListCertificates -> Bool
Prelude.Eq, ReadPrec [ListCertificates]
ReadPrec ListCertificates
Int -> ReadS ListCertificates
ReadS [ListCertificates]
(Int -> ReadS ListCertificates)
-> ReadS [ListCertificates]
-> ReadPrec ListCertificates
-> ReadPrec [ListCertificates]
-> Read ListCertificates
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCertificates]
$creadListPrec :: ReadPrec [ListCertificates]
readPrec :: ReadPrec ListCertificates
$creadPrec :: ReadPrec ListCertificates
readList :: ReadS [ListCertificates]
$creadList :: ReadS [ListCertificates]
readsPrec :: Int -> ReadS ListCertificates
$creadsPrec :: Int -> ReadS ListCertificates
Prelude.Read, Int -> ListCertificates -> ShowS
[ListCertificates] -> ShowS
ListCertificates -> String
(Int -> ListCertificates -> ShowS)
-> (ListCertificates -> String)
-> ([ListCertificates] -> ShowS)
-> Show ListCertificates
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCertificates] -> ShowS
$cshowList :: [ListCertificates] -> ShowS
show :: ListCertificates -> String
$cshow :: ListCertificates -> String
showsPrec :: Int -> ListCertificates -> ShowS
$cshowsPrec :: Int -> ListCertificates -> ShowS
Prelude.Show, (forall x. ListCertificates -> Rep ListCertificates x)
-> (forall x. Rep ListCertificates x -> ListCertificates)
-> Generic ListCertificates
forall x. Rep ListCertificates x -> ListCertificates
forall x. ListCertificates -> Rep ListCertificates x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListCertificates x -> ListCertificates
$cfrom :: forall x. ListCertificates -> Rep ListCertificates x
Prelude.Generic)
newListCertificates ::
ListCertificates
newListCertificates :: ListCertificates
newListCertificates =
ListCertificates' :: Maybe [CertificateStatus]
-> Maybe Text -> Maybe Filters -> Maybe Natural -> ListCertificates
ListCertificates'
{ $sel:certificateStatuses:ListCertificates' :: Maybe [CertificateStatus]
certificateStatuses =
Maybe [CertificateStatus]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListCertificates' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:includes:ListCertificates' :: Maybe Filters
includes = Maybe Filters
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListCertificates' :: Maybe Natural
maxItems = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listCertificates_certificateStatuses :: Lens.Lens' ListCertificates (Prelude.Maybe [CertificateStatus])
listCertificates_certificateStatuses :: (Maybe [CertificateStatus] -> f (Maybe [CertificateStatus]))
-> ListCertificates -> f ListCertificates
listCertificates_certificateStatuses = (ListCertificates -> Maybe [CertificateStatus])
-> (ListCertificates
-> Maybe [CertificateStatus] -> ListCertificates)
-> Lens
ListCertificates
ListCertificates
(Maybe [CertificateStatus])
(Maybe [CertificateStatus])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificates' {Maybe [CertificateStatus]
certificateStatuses :: Maybe [CertificateStatus]
$sel:certificateStatuses:ListCertificates' :: ListCertificates -> Maybe [CertificateStatus]
certificateStatuses} -> Maybe [CertificateStatus]
certificateStatuses) (\s :: ListCertificates
s@ListCertificates' {} Maybe [CertificateStatus]
a -> ListCertificates
s {$sel:certificateStatuses:ListCertificates' :: Maybe [CertificateStatus]
certificateStatuses = Maybe [CertificateStatus]
a} :: ListCertificates) ((Maybe [CertificateStatus] -> f (Maybe [CertificateStatus]))
-> ListCertificates -> f ListCertificates)
-> ((Maybe [CertificateStatus] -> f (Maybe [CertificateStatus]))
-> Maybe [CertificateStatus] -> f (Maybe [CertificateStatus]))
-> (Maybe [CertificateStatus] -> f (Maybe [CertificateStatus]))
-> ListCertificates
-> f ListCertificates
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[CertificateStatus]
[CertificateStatus]
[CertificateStatus]
[CertificateStatus]
-> Iso
(Maybe [CertificateStatus])
(Maybe [CertificateStatus])
(Maybe [CertificateStatus])
(Maybe [CertificateStatus])
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
[CertificateStatus]
[CertificateStatus]
[CertificateStatus]
[CertificateStatus]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listCertificates_nextToken :: Lens.Lens' ListCertificates (Prelude.Maybe Prelude.Text)
listCertificates_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListCertificates -> f ListCertificates
listCertificates_nextToken = (ListCertificates -> Maybe Text)
-> (ListCertificates -> Maybe Text -> ListCertificates)
-> Lens ListCertificates ListCertificates (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificates' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCertificates' :: ListCertificates -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCertificates
s@ListCertificates' {} Maybe Text
a -> ListCertificates
s {$sel:nextToken:ListCertificates' :: Maybe Text
nextToken = Maybe Text
a} :: ListCertificates)
listCertificates_includes :: Lens.Lens' ListCertificates (Prelude.Maybe Filters)
listCertificates_includes :: (Maybe Filters -> f (Maybe Filters))
-> ListCertificates -> f ListCertificates
listCertificates_includes = (ListCertificates -> Maybe Filters)
-> (ListCertificates -> Maybe Filters -> ListCertificates)
-> Lens
ListCertificates ListCertificates (Maybe Filters) (Maybe Filters)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificates' {Maybe Filters
includes :: Maybe Filters
$sel:includes:ListCertificates' :: ListCertificates -> Maybe Filters
includes} -> Maybe Filters
includes) (\s :: ListCertificates
s@ListCertificates' {} Maybe Filters
a -> ListCertificates
s {$sel:includes:ListCertificates' :: Maybe Filters
includes = Maybe Filters
a} :: ListCertificates)
listCertificates_maxItems :: Lens.Lens' ListCertificates (Prelude.Maybe Prelude.Natural)
listCertificates_maxItems :: (Maybe Natural -> f (Maybe Natural))
-> ListCertificates -> f ListCertificates
listCertificates_maxItems = (ListCertificates -> Maybe Natural)
-> (ListCertificates -> Maybe Natural -> ListCertificates)
-> Lens
ListCertificates ListCertificates (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificates' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListCertificates' :: ListCertificates -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListCertificates
s@ListCertificates' {} Maybe Natural
a -> ListCertificates
s {$sel:maxItems:ListCertificates' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListCertificates)
instance Core.AWSPager ListCertificates where
page :: ListCertificates
-> AWSResponse ListCertificates -> Maybe ListCertificates
page ListCertificates
rq AWSResponse ListCertificates
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListCertificates
ListCertificatesResponse
rs
ListCertificatesResponse
-> Getting (First Text) ListCertificatesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListCertificatesResponse
-> Const (First Text) ListCertificatesResponse
Lens' ListCertificatesResponse (Maybe Text)
listCertificatesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListCertificatesResponse
-> Const (First Text) ListCertificatesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListCertificatesResponse 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 ListCertificates
forall a. Maybe a
Prelude.Nothing
| Maybe [CertificateSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListCertificates
ListCertificatesResponse
rs
ListCertificatesResponse
-> Getting
(First [CertificateSummary])
ListCertificatesResponse
[CertificateSummary]
-> Maybe [CertificateSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [CertificateSummary]
-> Const (First [CertificateSummary]) (Maybe [CertificateSummary]))
-> ListCertificatesResponse
-> Const (First [CertificateSummary]) ListCertificatesResponse
Lens' ListCertificatesResponse (Maybe [CertificateSummary])
listCertificatesResponse_certificateSummaryList
((Maybe [CertificateSummary]
-> Const (First [CertificateSummary]) (Maybe [CertificateSummary]))
-> ListCertificatesResponse
-> Const (First [CertificateSummary]) ListCertificatesResponse)
-> (([CertificateSummary]
-> Const (First [CertificateSummary]) [CertificateSummary])
-> Maybe [CertificateSummary]
-> Const (First [CertificateSummary]) (Maybe [CertificateSummary]))
-> Getting
(First [CertificateSummary])
ListCertificatesResponse
[CertificateSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([CertificateSummary]
-> Const (First [CertificateSummary]) [CertificateSummary])
-> Maybe [CertificateSummary]
-> Const (First [CertificateSummary]) (Maybe [CertificateSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListCertificates
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListCertificates -> Maybe ListCertificates
forall a. a -> Maybe a
Prelude.Just (ListCertificates -> Maybe ListCertificates)
-> ListCertificates -> Maybe ListCertificates
forall a b. (a -> b) -> a -> b
Prelude.$
ListCertificates
rq
ListCertificates
-> (ListCertificates -> ListCertificates) -> ListCertificates
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListCertificates -> Identity ListCertificates
Lens ListCertificates ListCertificates (Maybe Text) (Maybe Text)
listCertificates_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListCertificates -> Identity ListCertificates)
-> Maybe Text -> ListCertificates -> ListCertificates
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListCertificates
ListCertificatesResponse
rs
ListCertificatesResponse
-> Getting (First Text) ListCertificatesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListCertificatesResponse
-> Const (First Text) ListCertificatesResponse
Lens' ListCertificatesResponse (Maybe Text)
listCertificatesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListCertificatesResponse
-> Const (First Text) ListCertificatesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListCertificatesResponse 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 ListCertificates where
type
AWSResponse ListCertificates =
ListCertificatesResponse
request :: ListCertificates -> Request ListCertificates
request = Service -> ListCertificates -> Request ListCertificates
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListCertificates
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListCertificates)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListCertificates))
-> Logger
-> Service
-> Proxy ListCertificates
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListCertificates)))
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 [CertificateSummary]
-> Maybe Text -> Int -> ListCertificatesResponse
ListCertificatesResponse'
(Maybe [CertificateSummary]
-> Maybe Text -> Int -> ListCertificatesResponse)
-> Either String (Maybe [CertificateSummary])
-> Either String (Maybe Text -> Int -> ListCertificatesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [CertificateSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CertificateSummaryList"
Either String (Maybe (Maybe [CertificateSummary]))
-> Maybe [CertificateSummary]
-> Either String (Maybe [CertificateSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [CertificateSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListCertificatesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListCertificatesResponse)
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
"NextToken")
Either String (Int -> ListCertificatesResponse)
-> Either String Int -> Either String ListCertificatesResponse
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 ListCertificates
instance Prelude.NFData ListCertificates
instance Core.ToHeaders ListCertificates where
toHeaders :: ListCertificates -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListCertificates -> 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
"CertificateManager.ListCertificates" ::
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 ListCertificates where
toJSON :: ListCertificates -> Value
toJSON ListCertificates' {Maybe Natural
Maybe [CertificateStatus]
Maybe Text
Maybe Filters
maxItems :: Maybe Natural
includes :: Maybe Filters
nextToken :: Maybe Text
certificateStatuses :: Maybe [CertificateStatus]
$sel:maxItems:ListCertificates' :: ListCertificates -> Maybe Natural
$sel:includes:ListCertificates' :: ListCertificates -> Maybe Filters
$sel:nextToken:ListCertificates' :: ListCertificates -> Maybe Text
$sel:certificateStatuses:ListCertificates' :: ListCertificates -> Maybe [CertificateStatus]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"CertificateStatuses" Text -> [CertificateStatus] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([CertificateStatus] -> Pair)
-> Maybe [CertificateStatus] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CertificateStatus]
certificateStatuses,
(Text
"NextToken" 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
nextToken,
(Text
"Includes" Text -> Filters -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Filters -> Pair) -> Maybe Filters -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Filters
includes,
(Text
"MaxItems" 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
maxItems
]
)
instance Core.ToPath ListCertificates where
toPath :: ListCertificates -> ByteString
toPath = ByteString -> ListCertificates -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListCertificates where
toQuery :: ListCertificates -> QueryString
toQuery = QueryString -> ListCertificates -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListCertificatesResponse = ListCertificatesResponse'
{
ListCertificatesResponse -> Maybe [CertificateSummary]
certificateSummaryList :: Prelude.Maybe [CertificateSummary],
ListCertificatesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListCertificatesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListCertificatesResponse -> ListCertificatesResponse -> Bool
(ListCertificatesResponse -> ListCertificatesResponse -> Bool)
-> (ListCertificatesResponse -> ListCertificatesResponse -> Bool)
-> Eq ListCertificatesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCertificatesResponse -> ListCertificatesResponse -> Bool
$c/= :: ListCertificatesResponse -> ListCertificatesResponse -> Bool
== :: ListCertificatesResponse -> ListCertificatesResponse -> Bool
$c== :: ListCertificatesResponse -> ListCertificatesResponse -> Bool
Prelude.Eq, ReadPrec [ListCertificatesResponse]
ReadPrec ListCertificatesResponse
Int -> ReadS ListCertificatesResponse
ReadS [ListCertificatesResponse]
(Int -> ReadS ListCertificatesResponse)
-> ReadS [ListCertificatesResponse]
-> ReadPrec ListCertificatesResponse
-> ReadPrec [ListCertificatesResponse]
-> Read ListCertificatesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCertificatesResponse]
$creadListPrec :: ReadPrec [ListCertificatesResponse]
readPrec :: ReadPrec ListCertificatesResponse
$creadPrec :: ReadPrec ListCertificatesResponse
readList :: ReadS [ListCertificatesResponse]
$creadList :: ReadS [ListCertificatesResponse]
readsPrec :: Int -> ReadS ListCertificatesResponse
$creadsPrec :: Int -> ReadS ListCertificatesResponse
Prelude.Read, Int -> ListCertificatesResponse -> ShowS
[ListCertificatesResponse] -> ShowS
ListCertificatesResponse -> String
(Int -> ListCertificatesResponse -> ShowS)
-> (ListCertificatesResponse -> String)
-> ([ListCertificatesResponse] -> ShowS)
-> Show ListCertificatesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCertificatesResponse] -> ShowS
$cshowList :: [ListCertificatesResponse] -> ShowS
show :: ListCertificatesResponse -> String
$cshow :: ListCertificatesResponse -> String
showsPrec :: Int -> ListCertificatesResponse -> ShowS
$cshowsPrec :: Int -> ListCertificatesResponse -> ShowS
Prelude.Show, (forall x.
ListCertificatesResponse -> Rep ListCertificatesResponse x)
-> (forall x.
Rep ListCertificatesResponse x -> ListCertificatesResponse)
-> Generic ListCertificatesResponse
forall x.
Rep ListCertificatesResponse x -> ListCertificatesResponse
forall x.
ListCertificatesResponse -> Rep ListCertificatesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListCertificatesResponse x -> ListCertificatesResponse
$cfrom :: forall x.
ListCertificatesResponse -> Rep ListCertificatesResponse x
Prelude.Generic)
newListCertificatesResponse ::
Prelude.Int ->
ListCertificatesResponse
newListCertificatesResponse :: Int -> ListCertificatesResponse
newListCertificatesResponse Int
pHttpStatus_ =
ListCertificatesResponse' :: Maybe [CertificateSummary]
-> Maybe Text -> Int -> ListCertificatesResponse
ListCertificatesResponse'
{ $sel:certificateSummaryList:ListCertificatesResponse' :: Maybe [CertificateSummary]
certificateSummaryList =
Maybe [CertificateSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListCertificatesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListCertificatesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listCertificatesResponse_certificateSummaryList :: Lens.Lens' ListCertificatesResponse (Prelude.Maybe [CertificateSummary])
listCertificatesResponse_certificateSummaryList :: (Maybe [CertificateSummary] -> f (Maybe [CertificateSummary]))
-> ListCertificatesResponse -> f ListCertificatesResponse
listCertificatesResponse_certificateSummaryList = (ListCertificatesResponse -> Maybe [CertificateSummary])
-> (ListCertificatesResponse
-> Maybe [CertificateSummary] -> ListCertificatesResponse)
-> Lens' ListCertificatesResponse (Maybe [CertificateSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificatesResponse' {Maybe [CertificateSummary]
certificateSummaryList :: Maybe [CertificateSummary]
$sel:certificateSummaryList:ListCertificatesResponse' :: ListCertificatesResponse -> Maybe [CertificateSummary]
certificateSummaryList} -> Maybe [CertificateSummary]
certificateSummaryList) (\s :: ListCertificatesResponse
s@ListCertificatesResponse' {} Maybe [CertificateSummary]
a -> ListCertificatesResponse
s {$sel:certificateSummaryList:ListCertificatesResponse' :: Maybe [CertificateSummary]
certificateSummaryList = Maybe [CertificateSummary]
a} :: ListCertificatesResponse) ((Maybe [CertificateSummary] -> f (Maybe [CertificateSummary]))
-> ListCertificatesResponse -> f ListCertificatesResponse)
-> ((Maybe [CertificateSummary] -> f (Maybe [CertificateSummary]))
-> Maybe [CertificateSummary] -> f (Maybe [CertificateSummary]))
-> (Maybe [CertificateSummary] -> f (Maybe [CertificateSummary]))
-> ListCertificatesResponse
-> f ListCertificatesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[CertificateSummary]
[CertificateSummary]
[CertificateSummary]
[CertificateSummary]
-> Iso
(Maybe [CertificateSummary])
(Maybe [CertificateSummary])
(Maybe [CertificateSummary])
(Maybe [CertificateSummary])
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
[CertificateSummary]
[CertificateSummary]
[CertificateSummary]
[CertificateSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listCertificatesResponse_nextToken :: Lens.Lens' ListCertificatesResponse (Prelude.Maybe Prelude.Text)
listCertificatesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListCertificatesResponse -> f ListCertificatesResponse
listCertificatesResponse_nextToken = (ListCertificatesResponse -> Maybe Text)
-> (ListCertificatesResponse
-> Maybe Text -> ListCertificatesResponse)
-> Lens' ListCertificatesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificatesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCertificatesResponse' :: ListCertificatesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCertificatesResponse
s@ListCertificatesResponse' {} Maybe Text
a -> ListCertificatesResponse
s {$sel:nextToken:ListCertificatesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListCertificatesResponse)
listCertificatesResponse_httpStatus :: Lens.Lens' ListCertificatesResponse Prelude.Int
listCertificatesResponse_httpStatus :: (Int -> f Int)
-> ListCertificatesResponse -> f ListCertificatesResponse
listCertificatesResponse_httpStatus = (ListCertificatesResponse -> Int)
-> (ListCertificatesResponse -> Int -> ListCertificatesResponse)
-> Lens ListCertificatesResponse ListCertificatesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificatesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListCertificatesResponse' :: ListCertificatesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListCertificatesResponse
s@ListCertificatesResponse' {} Int
a -> ListCertificatesResponse
s {$sel:httpStatus:ListCertificatesResponse' :: Int
httpStatus = Int
a} :: ListCertificatesResponse)
instance Prelude.NFData ListCertificatesResponse