{-# 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_includes,
listCertificates_maxItems,
listCertificates_nextToken,
listCertificates_sortBy,
listCertificates_sortOrder,
ListCertificatesResponse (..),
newListCertificatesResponse,
listCertificatesResponse_certificateSummaryList,
listCertificatesResponse_nextToken,
listCertificatesResponse_httpStatus,
)
where
import Amazonka.CertificateManager.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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 Filters
includes :: Prelude.Maybe Filters,
ListCertificates -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural,
ListCertificates -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListCertificates -> Maybe SortBy
sortBy :: Prelude.Maybe SortBy,
ListCertificates -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder
}
deriving (ListCertificates -> ListCertificates -> Bool
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]
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
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. 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'
{ $sel:certificateStatuses:ListCertificates' :: Maybe [CertificateStatus]
certificateStatuses =
forall a. Maybe a
Prelude.Nothing,
$sel:includes:ListCertificates' :: Maybe Filters
includes = forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListCertificates' :: Maybe Natural
maxItems = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListCertificates' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:sortBy:ListCertificates' :: Maybe SortBy
sortBy = forall a. Maybe a
Prelude.Nothing,
$sel:sortOrder:ListCertificates' :: Maybe SortOrder
sortOrder = forall a. Maybe a
Prelude.Nothing
}
listCertificates_certificateStatuses :: Lens.Lens' ListCertificates (Prelude.Maybe [CertificateStatus])
listCertificates_certificateStatuses :: Lens' ListCertificates (Maybe [CertificateStatus])
listCertificates_certificateStatuses = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listCertificates_includes :: Lens.Lens' ListCertificates (Prelude.Maybe Filters)
listCertificates_includes :: Lens' ListCertificates (Maybe Filters)
listCertificates_includes = 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 :: Lens' ListCertificates (Maybe Natural)
listCertificates_maxItems = 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)
listCertificates_nextToken :: Lens.Lens' ListCertificates (Prelude.Maybe Prelude.Text)
listCertificates_nextToken :: Lens' ListCertificates (Maybe Text)
listCertificates_nextToken = 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_sortBy :: Lens.Lens' ListCertificates (Prelude.Maybe SortBy)
listCertificates_sortBy :: Lens' ListCertificates (Maybe SortBy)
listCertificates_sortBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificates' {Maybe SortBy
sortBy :: Maybe SortBy
$sel:sortBy:ListCertificates' :: ListCertificates -> Maybe SortBy
sortBy} -> Maybe SortBy
sortBy) (\s :: ListCertificates
s@ListCertificates' {} Maybe SortBy
a -> ListCertificates
s {$sel:sortBy:ListCertificates' :: Maybe SortBy
sortBy = Maybe SortBy
a} :: ListCertificates)
listCertificates_sortOrder :: Lens.Lens' ListCertificates (Prelude.Maybe SortOrder)
listCertificates_sortOrder :: Lens' ListCertificates (Maybe SortOrder)
listCertificates_sortOrder = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCertificates' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListCertificates' :: ListCertificates -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListCertificates
s@ListCertificates' {} Maybe SortOrder
a -> ListCertificates
s {$sel:sortOrder:ListCertificates' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListCertificates)
instance Core.AWSPager ListCertificates where
page :: ListCertificates
-> AWSResponse ListCertificates -> Maybe ListCertificates
page ListCertificates
rq AWSResponse ListCertificates
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListCertificates
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListCertificatesResponse (Maybe Text)
listCertificatesResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListCertificates
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListCertificatesResponse (Maybe [CertificateSummary])
listCertificatesResponse_certificateSummaryList
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListCertificates
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListCertificates (Maybe Text)
listCertificates_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListCertificates
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListCertificatesResponse (Maybe Text)
listCertificatesResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListCertificates where
type
AWSResponse ListCertificates =
ListCertificatesResponse
request :: (Service -> Service)
-> ListCertificates -> Request ListCertificates
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListCertificates
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListCertificates)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> 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'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CertificateSummaryList"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListCertificates where
hashWithSalt :: Int -> ListCertificates -> Int
hashWithSalt Int
_salt ListCertificates' {Maybe Natural
Maybe [CertificateStatus]
Maybe Text
Maybe Filters
Maybe SortBy
Maybe SortOrder
sortOrder :: Maybe SortOrder
sortBy :: Maybe SortBy
nextToken :: Maybe Text
maxItems :: Maybe Natural
includes :: Maybe Filters
certificateStatuses :: Maybe [CertificateStatus]
$sel:sortOrder:ListCertificates' :: ListCertificates -> Maybe SortOrder
$sel:sortBy:ListCertificates' :: ListCertificates -> Maybe SortBy
$sel:nextToken:ListCertificates' :: ListCertificates -> Maybe Text
$sel:maxItems:ListCertificates' :: ListCertificates -> Maybe Natural
$sel:includes:ListCertificates' :: ListCertificates -> Maybe Filters
$sel:certificateStatuses:ListCertificates' :: ListCertificates -> Maybe [CertificateStatus]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [CertificateStatus]
certificateStatuses
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Filters
includes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxItems
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SortBy
sortBy
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SortOrder
sortOrder
instance Prelude.NFData ListCertificates where
rnf :: ListCertificates -> ()
rnf ListCertificates' {Maybe Natural
Maybe [CertificateStatus]
Maybe Text
Maybe Filters
Maybe SortBy
Maybe SortOrder
sortOrder :: Maybe SortOrder
sortBy :: Maybe SortBy
nextToken :: Maybe Text
maxItems :: Maybe Natural
includes :: Maybe Filters
certificateStatuses :: Maybe [CertificateStatus]
$sel:sortOrder:ListCertificates' :: ListCertificates -> Maybe SortOrder
$sel:sortBy:ListCertificates' :: ListCertificates -> Maybe SortBy
$sel:nextToken:ListCertificates' :: ListCertificates -> Maybe Text
$sel:maxItems:ListCertificates' :: ListCertificates -> Maybe Natural
$sel:includes:ListCertificates' :: ListCertificates -> Maybe Filters
$sel:certificateStatuses:ListCertificates' :: ListCertificates -> Maybe [CertificateStatus]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [CertificateStatus]
certificateStatuses
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Filters
includes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxItems
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SortBy
sortBy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SortOrder
sortOrder
instance Data.ToHeaders ListCertificates where
toHeaders :: ListCertificates -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"CertificateManager.ListCertificates" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON ListCertificates where
toJSON :: ListCertificates -> Value
toJSON ListCertificates' {Maybe Natural
Maybe [CertificateStatus]
Maybe Text
Maybe Filters
Maybe SortBy
Maybe SortOrder
sortOrder :: Maybe SortOrder
sortBy :: Maybe SortBy
nextToken :: Maybe Text
maxItems :: Maybe Natural
includes :: Maybe Filters
certificateStatuses :: Maybe [CertificateStatus]
$sel:sortOrder:ListCertificates' :: ListCertificates -> Maybe SortOrder
$sel:sortBy:ListCertificates' :: ListCertificates -> Maybe SortBy
$sel:nextToken:ListCertificates' :: ListCertificates -> Maybe Text
$sel:maxItems:ListCertificates' :: ListCertificates -> Maybe Natural
$sel:includes:ListCertificates' :: ListCertificates -> Maybe Filters
$sel:certificateStatuses:ListCertificates' :: ListCertificates -> Maybe [CertificateStatus]
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"CertificateStatuses" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CertificateStatus]
certificateStatuses,
(Key
"Includes" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Filters
includes,
(Key
"MaxItems" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxItems,
(Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Key
"SortBy" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortBy
sortBy,
(Key
"SortOrder" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortOrder
sortOrder
]
)
instance Data.ToPath ListCertificates where
toPath :: ListCertificates -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery ListCertificates where
toQuery :: ListCertificates -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const 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
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]
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
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.
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'
{ $sel:certificateSummaryList:ListCertificatesResponse' :: Maybe [CertificateSummary]
certificateSummaryList =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListCertificatesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListCertificatesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listCertificatesResponse_certificateSummaryList :: Lens.Lens' ListCertificatesResponse (Prelude.Maybe [CertificateSummary])
listCertificatesResponse_certificateSummaryList :: Lens' ListCertificatesResponse (Maybe [CertificateSummary])
listCertificatesResponse_certificateSummaryList = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 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 :: Lens' ListCertificatesResponse (Maybe Text)
listCertificatesResponse_nextToken = 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 :: Lens' ListCertificatesResponse Int
listCertificatesResponse_httpStatus = 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 where
rnf :: ListCertificatesResponse -> ()
rnf ListCertificatesResponse' {Int
Maybe [CertificateSummary]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
certificateSummaryList :: Maybe [CertificateSummary]
$sel:httpStatus:ListCertificatesResponse' :: ListCertificatesResponse -> Int
$sel:nextToken:ListCertificatesResponse' :: ListCertificatesResponse -> Maybe Text
$sel:certificateSummaryList:ListCertificatesResponse' :: ListCertificatesResponse -> Maybe [CertificateSummary]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [CertificateSummary]
certificateSummaryList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus