{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.WorkSpacesWeb.ListTrustStoreCertificates
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves a list of trust store certificates.
module Amazonka.WorkSpacesWeb.ListTrustStoreCertificates
  ( -- * Creating a Request
    ListTrustStoreCertificates (..),
    newListTrustStoreCertificates,

    -- * Request Lenses
    listTrustStoreCertificates_maxResults,
    listTrustStoreCertificates_nextToken,
    listTrustStoreCertificates_trustStoreArn,

    -- * Destructuring the Response
    ListTrustStoreCertificatesResponse (..),
    newListTrustStoreCertificatesResponse,

    -- * Response Lenses
    listTrustStoreCertificatesResponse_certificateList,
    listTrustStoreCertificatesResponse_nextToken,
    listTrustStoreCertificatesResponse_trustStoreArn,
    listTrustStoreCertificatesResponse_httpStatus,
  )
where

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
import Amazonka.WorkSpacesWeb.Types

-- | /See:/ 'newListTrustStoreCertificates' smart constructor.
data ListTrustStoreCertificates = ListTrustStoreCertificates'
  { -- | The maximum number of results to be included in the next page.
    ListTrustStoreCertificates -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The pagination token used to retrieve the next page of results for this
    -- operation.
    ListTrustStoreCertificates -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the trust store
    ListTrustStoreCertificates -> Text
trustStoreArn :: Prelude.Text
  }
  deriving (ListTrustStoreCertificates -> ListTrustStoreCertificates -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTrustStoreCertificates -> ListTrustStoreCertificates -> Bool
$c/= :: ListTrustStoreCertificates -> ListTrustStoreCertificates -> Bool
== :: ListTrustStoreCertificates -> ListTrustStoreCertificates -> Bool
$c== :: ListTrustStoreCertificates -> ListTrustStoreCertificates -> Bool
Prelude.Eq, ReadPrec [ListTrustStoreCertificates]
ReadPrec ListTrustStoreCertificates
Int -> ReadS ListTrustStoreCertificates
ReadS [ListTrustStoreCertificates]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTrustStoreCertificates]
$creadListPrec :: ReadPrec [ListTrustStoreCertificates]
readPrec :: ReadPrec ListTrustStoreCertificates
$creadPrec :: ReadPrec ListTrustStoreCertificates
readList :: ReadS [ListTrustStoreCertificates]
$creadList :: ReadS [ListTrustStoreCertificates]
readsPrec :: Int -> ReadS ListTrustStoreCertificates
$creadsPrec :: Int -> ReadS ListTrustStoreCertificates
Prelude.Read, Int -> ListTrustStoreCertificates -> ShowS
[ListTrustStoreCertificates] -> ShowS
ListTrustStoreCertificates -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTrustStoreCertificates] -> ShowS
$cshowList :: [ListTrustStoreCertificates] -> ShowS
show :: ListTrustStoreCertificates -> String
$cshow :: ListTrustStoreCertificates -> String
showsPrec :: Int -> ListTrustStoreCertificates -> ShowS
$cshowsPrec :: Int -> ListTrustStoreCertificates -> ShowS
Prelude.Show, forall x.
Rep ListTrustStoreCertificates x -> ListTrustStoreCertificates
forall x.
ListTrustStoreCertificates -> Rep ListTrustStoreCertificates x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTrustStoreCertificates x -> ListTrustStoreCertificates
$cfrom :: forall x.
ListTrustStoreCertificates -> Rep ListTrustStoreCertificates x
Prelude.Generic)

-- |
-- Create a value of 'ListTrustStoreCertificates' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'maxResults', 'listTrustStoreCertificates_maxResults' - The maximum number of results to be included in the next page.
--
-- 'nextToken', 'listTrustStoreCertificates_nextToken' - The pagination token used to retrieve the next page of results for this
-- operation.
--
-- 'trustStoreArn', 'listTrustStoreCertificates_trustStoreArn' - The ARN of the trust store
newListTrustStoreCertificates ::
  -- | 'trustStoreArn'
  Prelude.Text ->
  ListTrustStoreCertificates
newListTrustStoreCertificates :: Text -> ListTrustStoreCertificates
newListTrustStoreCertificates Text
pTrustStoreArn_ =
  ListTrustStoreCertificates'
    { $sel:maxResults:ListTrustStoreCertificates' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListTrustStoreCertificates' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:trustStoreArn:ListTrustStoreCertificates' :: Text
trustStoreArn = Text
pTrustStoreArn_
    }

-- | The maximum number of results to be included in the next page.
listTrustStoreCertificates_maxResults :: Lens.Lens' ListTrustStoreCertificates (Prelude.Maybe Prelude.Natural)
listTrustStoreCertificates_maxResults :: Lens' ListTrustStoreCertificates (Maybe Natural)
listTrustStoreCertificates_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrustStoreCertificates' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListTrustStoreCertificates
s@ListTrustStoreCertificates' {} Maybe Natural
a -> ListTrustStoreCertificates
s {$sel:maxResults:ListTrustStoreCertificates' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListTrustStoreCertificates)

-- | The pagination token used to retrieve the next page of results for this
-- operation.
listTrustStoreCertificates_nextToken :: Lens.Lens' ListTrustStoreCertificates (Prelude.Maybe Prelude.Text)
listTrustStoreCertificates_nextToken :: Lens' ListTrustStoreCertificates (Maybe Text)
listTrustStoreCertificates_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrustStoreCertificates' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTrustStoreCertificates
s@ListTrustStoreCertificates' {} Maybe Text
a -> ListTrustStoreCertificates
s {$sel:nextToken:ListTrustStoreCertificates' :: Maybe Text
nextToken = Maybe Text
a} :: ListTrustStoreCertificates)

-- | The ARN of the trust store
listTrustStoreCertificates_trustStoreArn :: Lens.Lens' ListTrustStoreCertificates Prelude.Text
listTrustStoreCertificates_trustStoreArn :: Lens' ListTrustStoreCertificates Text
listTrustStoreCertificates_trustStoreArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrustStoreCertificates' {Text
trustStoreArn :: Text
$sel:trustStoreArn:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Text
trustStoreArn} -> Text
trustStoreArn) (\s :: ListTrustStoreCertificates
s@ListTrustStoreCertificates' {} Text
a -> ListTrustStoreCertificates
s {$sel:trustStoreArn:ListTrustStoreCertificates' :: Text
trustStoreArn = Text
a} :: ListTrustStoreCertificates)

instance Core.AWSRequest ListTrustStoreCertificates where
  type
    AWSResponse ListTrustStoreCertificates =
      ListTrustStoreCertificatesResponse
  request :: (Service -> Service)
-> ListTrustStoreCertificates -> Request ListTrustStoreCertificates
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListTrustStoreCertificates
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListTrustStoreCertificates)))
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
-> Maybe Text
-> Int
-> ListTrustStoreCertificatesResponse
ListTrustStoreCertificatesResponse'
            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
"certificateList"
                            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.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"trustStoreArn")
            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 ListTrustStoreCertificates where
  hashWithSalt :: Int -> ListTrustStoreCertificates -> Int
hashWithSalt Int
_salt ListTrustStoreCertificates' {Maybe Natural
Maybe Text
Text
trustStoreArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:trustStoreArn:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Text
$sel:nextToken:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Maybe Text
$sel:maxResults:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
trustStoreArn

instance Prelude.NFData ListTrustStoreCertificates where
  rnf :: ListTrustStoreCertificates -> ()
rnf ListTrustStoreCertificates' {Maybe Natural
Maybe Text
Text
trustStoreArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:trustStoreArn:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Text
$sel:nextToken:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Maybe Text
$sel:maxResults:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      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 Text
trustStoreArn

instance Data.ToHeaders ListTrustStoreCertificates where
  toHeaders :: ListTrustStoreCertificates -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath ListTrustStoreCertificates where
  toPath :: ListTrustStoreCertificates -> ByteString
toPath ListTrustStoreCertificates' {Maybe Natural
Maybe Text
Text
trustStoreArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:trustStoreArn:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Text
$sel:nextToken:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Maybe Text
$sel:maxResults:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/trustStores/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
trustStoreArn,
        ByteString
"/certificates"
      ]

instance Data.ToQuery ListTrustStoreCertificates where
  toQuery :: ListTrustStoreCertificates -> QueryString
toQuery ListTrustStoreCertificates' {Maybe Natural
Maybe Text
Text
trustStoreArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:trustStoreArn:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Text
$sel:nextToken:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Maybe Text
$sel:maxResults:ListTrustStoreCertificates' :: ListTrustStoreCertificates -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newListTrustStoreCertificatesResponse' smart constructor.
data ListTrustStoreCertificatesResponse = ListTrustStoreCertificatesResponse'
  { -- | The certificate list.
    ListTrustStoreCertificatesResponse -> Maybe [CertificateSummary]
certificateList :: Prelude.Maybe [CertificateSummary],
    -- | The pagination token used to retrieve the next page of results for this
    -- operation.>
    ListTrustStoreCertificatesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the trust store.
    ListTrustStoreCertificatesResponse -> Maybe Text
trustStoreArn :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListTrustStoreCertificatesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListTrustStoreCertificatesResponse
-> ListTrustStoreCertificatesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTrustStoreCertificatesResponse
-> ListTrustStoreCertificatesResponse -> Bool
$c/= :: ListTrustStoreCertificatesResponse
-> ListTrustStoreCertificatesResponse -> Bool
== :: ListTrustStoreCertificatesResponse
-> ListTrustStoreCertificatesResponse -> Bool
$c== :: ListTrustStoreCertificatesResponse
-> ListTrustStoreCertificatesResponse -> Bool
Prelude.Eq, ReadPrec [ListTrustStoreCertificatesResponse]
ReadPrec ListTrustStoreCertificatesResponse
Int -> ReadS ListTrustStoreCertificatesResponse
ReadS [ListTrustStoreCertificatesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTrustStoreCertificatesResponse]
$creadListPrec :: ReadPrec [ListTrustStoreCertificatesResponse]
readPrec :: ReadPrec ListTrustStoreCertificatesResponse
$creadPrec :: ReadPrec ListTrustStoreCertificatesResponse
readList :: ReadS [ListTrustStoreCertificatesResponse]
$creadList :: ReadS [ListTrustStoreCertificatesResponse]
readsPrec :: Int -> ReadS ListTrustStoreCertificatesResponse
$creadsPrec :: Int -> ReadS ListTrustStoreCertificatesResponse
Prelude.Read, Int -> ListTrustStoreCertificatesResponse -> ShowS
[ListTrustStoreCertificatesResponse] -> ShowS
ListTrustStoreCertificatesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTrustStoreCertificatesResponse] -> ShowS
$cshowList :: [ListTrustStoreCertificatesResponse] -> ShowS
show :: ListTrustStoreCertificatesResponse -> String
$cshow :: ListTrustStoreCertificatesResponse -> String
showsPrec :: Int -> ListTrustStoreCertificatesResponse -> ShowS
$cshowsPrec :: Int -> ListTrustStoreCertificatesResponse -> ShowS
Prelude.Show, forall x.
Rep ListTrustStoreCertificatesResponse x
-> ListTrustStoreCertificatesResponse
forall x.
ListTrustStoreCertificatesResponse
-> Rep ListTrustStoreCertificatesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTrustStoreCertificatesResponse x
-> ListTrustStoreCertificatesResponse
$cfrom :: forall x.
ListTrustStoreCertificatesResponse
-> Rep ListTrustStoreCertificatesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListTrustStoreCertificatesResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'certificateList', 'listTrustStoreCertificatesResponse_certificateList' - The certificate list.
--
-- 'nextToken', 'listTrustStoreCertificatesResponse_nextToken' - The pagination token used to retrieve the next page of results for this
-- operation.>
--
-- 'trustStoreArn', 'listTrustStoreCertificatesResponse_trustStoreArn' - The ARN of the trust store.
--
-- 'httpStatus', 'listTrustStoreCertificatesResponse_httpStatus' - The response's http status code.
newListTrustStoreCertificatesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListTrustStoreCertificatesResponse
newListTrustStoreCertificatesResponse :: Int -> ListTrustStoreCertificatesResponse
newListTrustStoreCertificatesResponse Int
pHttpStatus_ =
  ListTrustStoreCertificatesResponse'
    { $sel:certificateList:ListTrustStoreCertificatesResponse' :: Maybe [CertificateSummary]
certificateList =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListTrustStoreCertificatesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:trustStoreArn:ListTrustStoreCertificatesResponse' :: Maybe Text
trustStoreArn = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListTrustStoreCertificatesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The certificate list.
listTrustStoreCertificatesResponse_certificateList :: Lens.Lens' ListTrustStoreCertificatesResponse (Prelude.Maybe [CertificateSummary])
listTrustStoreCertificatesResponse_certificateList :: Lens'
  ListTrustStoreCertificatesResponse (Maybe [CertificateSummary])
listTrustStoreCertificatesResponse_certificateList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrustStoreCertificatesResponse' {Maybe [CertificateSummary]
certificateList :: Maybe [CertificateSummary]
$sel:certificateList:ListTrustStoreCertificatesResponse' :: ListTrustStoreCertificatesResponse -> Maybe [CertificateSummary]
certificateList} -> Maybe [CertificateSummary]
certificateList) (\s :: ListTrustStoreCertificatesResponse
s@ListTrustStoreCertificatesResponse' {} Maybe [CertificateSummary]
a -> ListTrustStoreCertificatesResponse
s {$sel:certificateList:ListTrustStoreCertificatesResponse' :: Maybe [CertificateSummary]
certificateList = Maybe [CertificateSummary]
a} :: ListTrustStoreCertificatesResponse) 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

-- | The pagination token used to retrieve the next page of results for this
-- operation.>
listTrustStoreCertificatesResponse_nextToken :: Lens.Lens' ListTrustStoreCertificatesResponse (Prelude.Maybe Prelude.Text)
listTrustStoreCertificatesResponse_nextToken :: Lens' ListTrustStoreCertificatesResponse (Maybe Text)
listTrustStoreCertificatesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrustStoreCertificatesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTrustStoreCertificatesResponse' :: ListTrustStoreCertificatesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTrustStoreCertificatesResponse
s@ListTrustStoreCertificatesResponse' {} Maybe Text
a -> ListTrustStoreCertificatesResponse
s {$sel:nextToken:ListTrustStoreCertificatesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTrustStoreCertificatesResponse)

-- | The ARN of the trust store.
listTrustStoreCertificatesResponse_trustStoreArn :: Lens.Lens' ListTrustStoreCertificatesResponse (Prelude.Maybe Prelude.Text)
listTrustStoreCertificatesResponse_trustStoreArn :: Lens' ListTrustStoreCertificatesResponse (Maybe Text)
listTrustStoreCertificatesResponse_trustStoreArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrustStoreCertificatesResponse' {Maybe Text
trustStoreArn :: Maybe Text
$sel:trustStoreArn:ListTrustStoreCertificatesResponse' :: ListTrustStoreCertificatesResponse -> Maybe Text
trustStoreArn} -> Maybe Text
trustStoreArn) (\s :: ListTrustStoreCertificatesResponse
s@ListTrustStoreCertificatesResponse' {} Maybe Text
a -> ListTrustStoreCertificatesResponse
s {$sel:trustStoreArn:ListTrustStoreCertificatesResponse' :: Maybe Text
trustStoreArn = Maybe Text
a} :: ListTrustStoreCertificatesResponse)

-- | The response's http status code.
listTrustStoreCertificatesResponse_httpStatus :: Lens.Lens' ListTrustStoreCertificatesResponse Prelude.Int
listTrustStoreCertificatesResponse_httpStatus :: Lens' ListTrustStoreCertificatesResponse Int
listTrustStoreCertificatesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrustStoreCertificatesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListTrustStoreCertificatesResponse' :: ListTrustStoreCertificatesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListTrustStoreCertificatesResponse
s@ListTrustStoreCertificatesResponse' {} Int
a -> ListTrustStoreCertificatesResponse
s {$sel:httpStatus:ListTrustStoreCertificatesResponse' :: Int
httpStatus = Int
a} :: ListTrustStoreCertificatesResponse)

instance
  Prelude.NFData
    ListTrustStoreCertificatesResponse
  where
  rnf :: ListTrustStoreCertificatesResponse -> ()
rnf ListTrustStoreCertificatesResponse' {Int
Maybe [CertificateSummary]
Maybe Text
httpStatus :: Int
trustStoreArn :: Maybe Text
nextToken :: Maybe Text
certificateList :: Maybe [CertificateSummary]
$sel:httpStatus:ListTrustStoreCertificatesResponse' :: ListTrustStoreCertificatesResponse -> Int
$sel:trustStoreArn:ListTrustStoreCertificatesResponse' :: ListTrustStoreCertificatesResponse -> Maybe Text
$sel:nextToken:ListTrustStoreCertificatesResponse' :: ListTrustStoreCertificatesResponse -> Maybe Text
$sel:certificateList:ListTrustStoreCertificatesResponse' :: ListTrustStoreCertificatesResponse -> Maybe [CertificateSummary]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [CertificateSummary]
certificateList
      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 Text
trustStoreArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus