{-# 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.Signer.ListSigningPlatforms
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists all signing platforms available in code signing that match the
-- request parameters. If additional jobs remain to be listed, code signing
-- returns a @nextToken@ value. Use this value in subsequent calls to
-- @ListSigningJobs@ to fetch the remaining values. You can continue
-- calling @ListSigningJobs@ with your @maxResults@ parameter and with new
-- values that code signing returns in the @nextToken@ parameter until all
-- of your signing jobs have been returned.
--
-- This operation returns paginated results.
module Amazonka.Signer.ListSigningPlatforms
  ( -- * Creating a Request
    ListSigningPlatforms (..),
    newListSigningPlatforms,

    -- * Request Lenses
    listSigningPlatforms_category,
    listSigningPlatforms_maxResults,
    listSigningPlatforms_nextToken,
    listSigningPlatforms_partner,
    listSigningPlatforms_target,

    -- * Destructuring the Response
    ListSigningPlatformsResponse (..),
    newListSigningPlatformsResponse,

    -- * Response Lenses
    listSigningPlatformsResponse_nextToken,
    listSigningPlatformsResponse_platforms,
    listSigningPlatformsResponse_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.Signer.Types

-- | /See:/ 'newListSigningPlatforms' smart constructor.
data ListSigningPlatforms = ListSigningPlatforms'
  { -- | The category type of a signing platform.
    ListSigningPlatforms -> Maybe Text
category :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to be returned by this operation.
    ListSigningPlatforms -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Value for specifying the next set of paginated results to return. After
    -- you receive a response with truncated results, use this parameter in a
    -- subsequent request. Set it to the value of @nextToken@ from the response
    -- that you just received.
    ListSigningPlatforms -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Any partner entities connected to a signing platform.
    ListSigningPlatforms -> Maybe Text
partner :: Prelude.Maybe Prelude.Text,
    -- | The validation template that is used by the target signing platform.
    ListSigningPlatforms -> Maybe Text
target :: Prelude.Maybe Prelude.Text
  }
  deriving (ListSigningPlatforms -> ListSigningPlatforms -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSigningPlatforms -> ListSigningPlatforms -> Bool
$c/= :: ListSigningPlatforms -> ListSigningPlatforms -> Bool
== :: ListSigningPlatforms -> ListSigningPlatforms -> Bool
$c== :: ListSigningPlatforms -> ListSigningPlatforms -> Bool
Prelude.Eq, ReadPrec [ListSigningPlatforms]
ReadPrec ListSigningPlatforms
Int -> ReadS ListSigningPlatforms
ReadS [ListSigningPlatforms]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSigningPlatforms]
$creadListPrec :: ReadPrec [ListSigningPlatforms]
readPrec :: ReadPrec ListSigningPlatforms
$creadPrec :: ReadPrec ListSigningPlatforms
readList :: ReadS [ListSigningPlatforms]
$creadList :: ReadS [ListSigningPlatforms]
readsPrec :: Int -> ReadS ListSigningPlatforms
$creadsPrec :: Int -> ReadS ListSigningPlatforms
Prelude.Read, Int -> ListSigningPlatforms -> ShowS
[ListSigningPlatforms] -> ShowS
ListSigningPlatforms -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSigningPlatforms] -> ShowS
$cshowList :: [ListSigningPlatforms] -> ShowS
show :: ListSigningPlatforms -> String
$cshow :: ListSigningPlatforms -> String
showsPrec :: Int -> ListSigningPlatforms -> ShowS
$cshowsPrec :: Int -> ListSigningPlatforms -> ShowS
Prelude.Show, forall x. Rep ListSigningPlatforms x -> ListSigningPlatforms
forall x. ListSigningPlatforms -> Rep ListSigningPlatforms x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSigningPlatforms x -> ListSigningPlatforms
$cfrom :: forall x. ListSigningPlatforms -> Rep ListSigningPlatforms x
Prelude.Generic)

-- |
-- Create a value of 'ListSigningPlatforms' 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:
--
-- 'category', 'listSigningPlatforms_category' - The category type of a signing platform.
--
-- 'maxResults', 'listSigningPlatforms_maxResults' - The maximum number of results to be returned by this operation.
--
-- 'nextToken', 'listSigningPlatforms_nextToken' - Value for specifying the next set of paginated results to return. After
-- you receive a response with truncated results, use this parameter in a
-- subsequent request. Set it to the value of @nextToken@ from the response
-- that you just received.
--
-- 'partner', 'listSigningPlatforms_partner' - Any partner entities connected to a signing platform.
--
-- 'target', 'listSigningPlatforms_target' - The validation template that is used by the target signing platform.
newListSigningPlatforms ::
  ListSigningPlatforms
newListSigningPlatforms :: ListSigningPlatforms
newListSigningPlatforms =
  ListSigningPlatforms'
    { $sel:category:ListSigningPlatforms' :: Maybe Text
category = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListSigningPlatforms' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListSigningPlatforms' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:partner:ListSigningPlatforms' :: Maybe Text
partner = forall a. Maybe a
Prelude.Nothing,
      $sel:target:ListSigningPlatforms' :: Maybe Text
target = forall a. Maybe a
Prelude.Nothing
    }

-- | The category type of a signing platform.
listSigningPlatforms_category :: Lens.Lens' ListSigningPlatforms (Prelude.Maybe Prelude.Text)
listSigningPlatforms_category :: Lens' ListSigningPlatforms (Maybe Text)
listSigningPlatforms_category = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSigningPlatforms' {Maybe Text
category :: Maybe Text
$sel:category:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
category} -> Maybe Text
category) (\s :: ListSigningPlatforms
s@ListSigningPlatforms' {} Maybe Text
a -> ListSigningPlatforms
s {$sel:category:ListSigningPlatforms' :: Maybe Text
category = Maybe Text
a} :: ListSigningPlatforms)

-- | The maximum number of results to be returned by this operation.
listSigningPlatforms_maxResults :: Lens.Lens' ListSigningPlatforms (Prelude.Maybe Prelude.Natural)
listSigningPlatforms_maxResults :: Lens' ListSigningPlatforms (Maybe Natural)
listSigningPlatforms_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSigningPlatforms' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSigningPlatforms
s@ListSigningPlatforms' {} Maybe Natural
a -> ListSigningPlatforms
s {$sel:maxResults:ListSigningPlatforms' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSigningPlatforms)

-- | Value for specifying the next set of paginated results to return. After
-- you receive a response with truncated results, use this parameter in a
-- subsequent request. Set it to the value of @nextToken@ from the response
-- that you just received.
listSigningPlatforms_nextToken :: Lens.Lens' ListSigningPlatforms (Prelude.Maybe Prelude.Text)
listSigningPlatforms_nextToken :: Lens' ListSigningPlatforms (Maybe Text)
listSigningPlatforms_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSigningPlatforms' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSigningPlatforms
s@ListSigningPlatforms' {} Maybe Text
a -> ListSigningPlatforms
s {$sel:nextToken:ListSigningPlatforms' :: Maybe Text
nextToken = Maybe Text
a} :: ListSigningPlatforms)

-- | Any partner entities connected to a signing platform.
listSigningPlatforms_partner :: Lens.Lens' ListSigningPlatforms (Prelude.Maybe Prelude.Text)
listSigningPlatforms_partner :: Lens' ListSigningPlatforms (Maybe Text)
listSigningPlatforms_partner = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSigningPlatforms' {Maybe Text
partner :: Maybe Text
$sel:partner:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
partner} -> Maybe Text
partner) (\s :: ListSigningPlatforms
s@ListSigningPlatforms' {} Maybe Text
a -> ListSigningPlatforms
s {$sel:partner:ListSigningPlatforms' :: Maybe Text
partner = Maybe Text
a} :: ListSigningPlatforms)

-- | The validation template that is used by the target signing platform.
listSigningPlatforms_target :: Lens.Lens' ListSigningPlatforms (Prelude.Maybe Prelude.Text)
listSigningPlatforms_target :: Lens' ListSigningPlatforms (Maybe Text)
listSigningPlatforms_target = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSigningPlatforms' {Maybe Text
target :: Maybe Text
$sel:target:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
target} -> Maybe Text
target) (\s :: ListSigningPlatforms
s@ListSigningPlatforms' {} Maybe Text
a -> ListSigningPlatforms
s {$sel:target:ListSigningPlatforms' :: Maybe Text
target = Maybe Text
a} :: ListSigningPlatforms)

instance Core.AWSPager ListSigningPlatforms where
  page :: ListSigningPlatforms
-> AWSResponse ListSigningPlatforms -> Maybe ListSigningPlatforms
page ListSigningPlatforms
rq AWSResponse ListSigningPlatforms
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListSigningPlatforms
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSigningPlatformsResponse (Maybe Text)
listSigningPlatformsResponse_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 ListSigningPlatforms
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSigningPlatformsResponse (Maybe [SigningPlatform])
listSigningPlatformsResponse_platforms
            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.$ ListSigningPlatforms
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListSigningPlatforms (Maybe Text)
listSigningPlatforms_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSigningPlatforms
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSigningPlatformsResponse (Maybe Text)
listSigningPlatformsResponse_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 ListSigningPlatforms where
  type
    AWSResponse ListSigningPlatforms =
      ListSigningPlatformsResponse
  request :: (Service -> Service)
-> ListSigningPlatforms -> Request ListSigningPlatforms
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 ListSigningPlatforms
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListSigningPlatforms)))
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 Text
-> Maybe [SigningPlatform] -> Int -> ListSigningPlatformsResponse
ListSigningPlatformsResponse'
            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
"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
"platforms" 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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListSigningPlatforms where
  hashWithSalt :: Int -> ListSigningPlatforms -> Int
hashWithSalt Int
_salt ListSigningPlatforms' {Maybe Natural
Maybe Text
target :: Maybe Text
partner :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
category :: Maybe Text
$sel:target:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
$sel:partner:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
$sel:nextToken:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
$sel:maxResults:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Natural
$sel:category:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
category
      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` Maybe Text
partner
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
target

instance Prelude.NFData ListSigningPlatforms where
  rnf :: ListSigningPlatforms -> ()
rnf ListSigningPlatforms' {Maybe Natural
Maybe Text
target :: Maybe Text
partner :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
category :: Maybe Text
$sel:target:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
$sel:partner:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
$sel:nextToken:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
$sel:maxResults:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Natural
$sel:category:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
category
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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 Maybe Text
partner
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
target

instance Data.ToHeaders ListSigningPlatforms where
  toHeaders :: ListSigningPlatforms -> 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 ListSigningPlatforms where
  toPath :: ListSigningPlatforms -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/signing-platforms"

instance Data.ToQuery ListSigningPlatforms where
  toQuery :: ListSigningPlatforms -> QueryString
toQuery ListSigningPlatforms' {Maybe Natural
Maybe Text
target :: Maybe Text
partner :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
category :: Maybe Text
$sel:target:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
$sel:partner:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
$sel:nextToken:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
$sel:maxResults:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Natural
$sel:category:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"category" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
category,
        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,
        ByteString
"partner" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
partner,
        ByteString
"target" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
target
      ]

-- | /See:/ 'newListSigningPlatformsResponse' smart constructor.
data ListSigningPlatformsResponse = ListSigningPlatformsResponse'
  { -- | Value for specifying the next set of paginated results to return.
    ListSigningPlatformsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A list of all platforms that match the request parameters.
    ListSigningPlatformsResponse -> Maybe [SigningPlatform]
platforms :: Prelude.Maybe [SigningPlatform],
    -- | The response's http status code.
    ListSigningPlatformsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListSigningPlatformsResponse
-> ListSigningPlatformsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSigningPlatformsResponse
-> ListSigningPlatformsResponse -> Bool
$c/= :: ListSigningPlatformsResponse
-> ListSigningPlatformsResponse -> Bool
== :: ListSigningPlatformsResponse
-> ListSigningPlatformsResponse -> Bool
$c== :: ListSigningPlatformsResponse
-> ListSigningPlatformsResponse -> Bool
Prelude.Eq, ReadPrec [ListSigningPlatformsResponse]
ReadPrec ListSigningPlatformsResponse
Int -> ReadS ListSigningPlatformsResponse
ReadS [ListSigningPlatformsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSigningPlatformsResponse]
$creadListPrec :: ReadPrec [ListSigningPlatformsResponse]
readPrec :: ReadPrec ListSigningPlatformsResponse
$creadPrec :: ReadPrec ListSigningPlatformsResponse
readList :: ReadS [ListSigningPlatformsResponse]
$creadList :: ReadS [ListSigningPlatformsResponse]
readsPrec :: Int -> ReadS ListSigningPlatformsResponse
$creadsPrec :: Int -> ReadS ListSigningPlatformsResponse
Prelude.Read, Int -> ListSigningPlatformsResponse -> ShowS
[ListSigningPlatformsResponse] -> ShowS
ListSigningPlatformsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSigningPlatformsResponse] -> ShowS
$cshowList :: [ListSigningPlatformsResponse] -> ShowS
show :: ListSigningPlatformsResponse -> String
$cshow :: ListSigningPlatformsResponse -> String
showsPrec :: Int -> ListSigningPlatformsResponse -> ShowS
$cshowsPrec :: Int -> ListSigningPlatformsResponse -> ShowS
Prelude.Show, forall x.
Rep ListSigningPlatformsResponse x -> ListSigningPlatformsResponse
forall x.
ListSigningPlatformsResponse -> Rep ListSigningPlatformsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSigningPlatformsResponse x -> ListSigningPlatformsResponse
$cfrom :: forall x.
ListSigningPlatformsResponse -> Rep ListSigningPlatformsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListSigningPlatformsResponse' 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:
--
-- 'nextToken', 'listSigningPlatformsResponse_nextToken' - Value for specifying the next set of paginated results to return.
--
-- 'platforms', 'listSigningPlatformsResponse_platforms' - A list of all platforms that match the request parameters.
--
-- 'httpStatus', 'listSigningPlatformsResponse_httpStatus' - The response's http status code.
newListSigningPlatformsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListSigningPlatformsResponse
newListSigningPlatformsResponse :: Int -> ListSigningPlatformsResponse
newListSigningPlatformsResponse Int
pHttpStatus_ =
  ListSigningPlatformsResponse'
    { $sel:nextToken:ListSigningPlatformsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:platforms:ListSigningPlatformsResponse' :: Maybe [SigningPlatform]
platforms = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListSigningPlatformsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Value for specifying the next set of paginated results to return.
listSigningPlatformsResponse_nextToken :: Lens.Lens' ListSigningPlatformsResponse (Prelude.Maybe Prelude.Text)
listSigningPlatformsResponse_nextToken :: Lens' ListSigningPlatformsResponse (Maybe Text)
listSigningPlatformsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSigningPlatformsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSigningPlatformsResponse' :: ListSigningPlatformsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSigningPlatformsResponse
s@ListSigningPlatformsResponse' {} Maybe Text
a -> ListSigningPlatformsResponse
s {$sel:nextToken:ListSigningPlatformsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSigningPlatformsResponse)

-- | A list of all platforms that match the request parameters.
listSigningPlatformsResponse_platforms :: Lens.Lens' ListSigningPlatformsResponse (Prelude.Maybe [SigningPlatform])
listSigningPlatformsResponse_platforms :: Lens' ListSigningPlatformsResponse (Maybe [SigningPlatform])
listSigningPlatformsResponse_platforms = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSigningPlatformsResponse' {Maybe [SigningPlatform]
platforms :: Maybe [SigningPlatform]
$sel:platforms:ListSigningPlatformsResponse' :: ListSigningPlatformsResponse -> Maybe [SigningPlatform]
platforms} -> Maybe [SigningPlatform]
platforms) (\s :: ListSigningPlatformsResponse
s@ListSigningPlatformsResponse' {} Maybe [SigningPlatform]
a -> ListSigningPlatformsResponse
s {$sel:platforms:ListSigningPlatformsResponse' :: Maybe [SigningPlatform]
platforms = Maybe [SigningPlatform]
a} :: ListSigningPlatformsResponse) 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 response's http status code.
listSigningPlatformsResponse_httpStatus :: Lens.Lens' ListSigningPlatformsResponse Prelude.Int
listSigningPlatformsResponse_httpStatus :: Lens' ListSigningPlatformsResponse Int
listSigningPlatformsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSigningPlatformsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSigningPlatformsResponse' :: ListSigningPlatformsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSigningPlatformsResponse
s@ListSigningPlatformsResponse' {} Int
a -> ListSigningPlatformsResponse
s {$sel:httpStatus:ListSigningPlatformsResponse' :: Int
httpStatus = Int
a} :: ListSigningPlatformsResponse)

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