{-# 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.Lambda.ListCodeSigningConfigs
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a list of
-- <https://docs.aws.amazon.com/lambda/latest/dg/configuring-codesigning.html code signing configurations>.
-- A request returns up to 10,000 configurations per call. You can use the
-- @MaxItems@ parameter to return fewer configurations per call.
--
-- This operation returns paginated results.
module Amazonka.Lambda.ListCodeSigningConfigs
  ( -- * Creating a Request
    ListCodeSigningConfigs (..),
    newListCodeSigningConfigs,

    -- * Request Lenses
    listCodeSigningConfigs_marker,
    listCodeSigningConfigs_maxItems,

    -- * Destructuring the Response
    ListCodeSigningConfigsResponse (..),
    newListCodeSigningConfigsResponse,

    -- * Response Lenses
    listCodeSigningConfigsResponse_codeSigningConfigs,
    listCodeSigningConfigsResponse_nextMarker,
    listCodeSigningConfigsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Lambda.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListCodeSigningConfigs' smart constructor.
data ListCodeSigningConfigs = ListCodeSigningConfigs'
  { -- | Specify the pagination token that\'s returned by a previous request to
    -- retrieve the next page of results.
    ListCodeSigningConfigs -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | Maximum number of items to return.
    ListCodeSigningConfigs -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListCodeSigningConfigs -> ListCodeSigningConfigs -> Bool
(ListCodeSigningConfigs -> ListCodeSigningConfigs -> Bool)
-> (ListCodeSigningConfigs -> ListCodeSigningConfigs -> Bool)
-> Eq ListCodeSigningConfigs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCodeSigningConfigs -> ListCodeSigningConfigs -> Bool
$c/= :: ListCodeSigningConfigs -> ListCodeSigningConfigs -> Bool
== :: ListCodeSigningConfigs -> ListCodeSigningConfigs -> Bool
$c== :: ListCodeSigningConfigs -> ListCodeSigningConfigs -> Bool
Prelude.Eq, ReadPrec [ListCodeSigningConfigs]
ReadPrec ListCodeSigningConfigs
Int -> ReadS ListCodeSigningConfigs
ReadS [ListCodeSigningConfigs]
(Int -> ReadS ListCodeSigningConfigs)
-> ReadS [ListCodeSigningConfigs]
-> ReadPrec ListCodeSigningConfigs
-> ReadPrec [ListCodeSigningConfigs]
-> Read ListCodeSigningConfigs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCodeSigningConfigs]
$creadListPrec :: ReadPrec [ListCodeSigningConfigs]
readPrec :: ReadPrec ListCodeSigningConfigs
$creadPrec :: ReadPrec ListCodeSigningConfigs
readList :: ReadS [ListCodeSigningConfigs]
$creadList :: ReadS [ListCodeSigningConfigs]
readsPrec :: Int -> ReadS ListCodeSigningConfigs
$creadsPrec :: Int -> ReadS ListCodeSigningConfigs
Prelude.Read, Int -> ListCodeSigningConfigs -> ShowS
[ListCodeSigningConfigs] -> ShowS
ListCodeSigningConfigs -> String
(Int -> ListCodeSigningConfigs -> ShowS)
-> (ListCodeSigningConfigs -> String)
-> ([ListCodeSigningConfigs] -> ShowS)
-> Show ListCodeSigningConfigs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCodeSigningConfigs] -> ShowS
$cshowList :: [ListCodeSigningConfigs] -> ShowS
show :: ListCodeSigningConfigs -> String
$cshow :: ListCodeSigningConfigs -> String
showsPrec :: Int -> ListCodeSigningConfigs -> ShowS
$cshowsPrec :: Int -> ListCodeSigningConfigs -> ShowS
Prelude.Show, (forall x. ListCodeSigningConfigs -> Rep ListCodeSigningConfigs x)
-> (forall x.
    Rep ListCodeSigningConfigs x -> ListCodeSigningConfigs)
-> Generic ListCodeSigningConfigs
forall x. Rep ListCodeSigningConfigs x -> ListCodeSigningConfigs
forall x. ListCodeSigningConfigs -> Rep ListCodeSigningConfigs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListCodeSigningConfigs x -> ListCodeSigningConfigs
$cfrom :: forall x. ListCodeSigningConfigs -> Rep ListCodeSigningConfigs x
Prelude.Generic)

-- |
-- Create a value of 'ListCodeSigningConfigs' 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:
--
-- 'marker', 'listCodeSigningConfigs_marker' - Specify the pagination token that\'s returned by a previous request to
-- retrieve the next page of results.
--
-- 'maxItems', 'listCodeSigningConfigs_maxItems' - Maximum number of items to return.
newListCodeSigningConfigs ::
  ListCodeSigningConfigs
newListCodeSigningConfigs :: ListCodeSigningConfigs
newListCodeSigningConfigs =
  ListCodeSigningConfigs' :: Maybe Text -> Maybe Natural -> ListCodeSigningConfigs
ListCodeSigningConfigs'
    { $sel:marker:ListCodeSigningConfigs' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxItems:ListCodeSigningConfigs' :: Maybe Natural
maxItems = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | Specify the pagination token that\'s returned by a previous request to
-- retrieve the next page of results.
listCodeSigningConfigs_marker :: Lens.Lens' ListCodeSigningConfigs (Prelude.Maybe Prelude.Text)
listCodeSigningConfigs_marker :: (Maybe Text -> f (Maybe Text))
-> ListCodeSigningConfigs -> f ListCodeSigningConfigs
listCodeSigningConfigs_marker = (ListCodeSigningConfigs -> Maybe Text)
-> (ListCodeSigningConfigs -> Maybe Text -> ListCodeSigningConfigs)
-> Lens
     ListCodeSigningConfigs
     ListCodeSigningConfigs
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCodeSigningConfigs' {Maybe Text
marker :: Maybe Text
$sel:marker:ListCodeSigningConfigs' :: ListCodeSigningConfigs -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListCodeSigningConfigs
s@ListCodeSigningConfigs' {} Maybe Text
a -> ListCodeSigningConfigs
s {$sel:marker:ListCodeSigningConfigs' :: Maybe Text
marker = Maybe Text
a} :: ListCodeSigningConfigs)

-- | Maximum number of items to return.
listCodeSigningConfigs_maxItems :: Lens.Lens' ListCodeSigningConfigs (Prelude.Maybe Prelude.Natural)
listCodeSigningConfigs_maxItems :: (Maybe Natural -> f (Maybe Natural))
-> ListCodeSigningConfigs -> f ListCodeSigningConfigs
listCodeSigningConfigs_maxItems = (ListCodeSigningConfigs -> Maybe Natural)
-> (ListCodeSigningConfigs
    -> Maybe Natural -> ListCodeSigningConfigs)
-> Lens
     ListCodeSigningConfigs
     ListCodeSigningConfigs
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCodeSigningConfigs' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListCodeSigningConfigs' :: ListCodeSigningConfigs -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListCodeSigningConfigs
s@ListCodeSigningConfigs' {} Maybe Natural
a -> ListCodeSigningConfigs
s {$sel:maxItems:ListCodeSigningConfigs' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListCodeSigningConfigs)

instance Core.AWSPager ListCodeSigningConfigs where
  page :: ListCodeSigningConfigs
-> AWSResponse ListCodeSigningConfigs
-> Maybe ListCodeSigningConfigs
page ListCodeSigningConfigs
rq AWSResponse ListCodeSigningConfigs
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListCodeSigningConfigs
ListCodeSigningConfigsResponse
rs
            ListCodeSigningConfigsResponse
-> Getting (First Text) ListCodeSigningConfigsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListCodeSigningConfigsResponse
-> Const (First Text) ListCodeSigningConfigsResponse
Lens' ListCodeSigningConfigsResponse (Maybe Text)
listCodeSigningConfigsResponse_nextMarker
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListCodeSigningConfigsResponse
 -> Const (First Text) ListCodeSigningConfigsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListCodeSigningConfigsResponse 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 ListCodeSigningConfigs
forall a. Maybe a
Prelude.Nothing
    | Maybe [CodeSigningConfig] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListCodeSigningConfigs
ListCodeSigningConfigsResponse
rs
            ListCodeSigningConfigsResponse
-> Getting
     (First [CodeSigningConfig])
     ListCodeSigningConfigsResponse
     [CodeSigningConfig]
-> Maybe [CodeSigningConfig]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [CodeSigningConfig]
 -> Const (First [CodeSigningConfig]) (Maybe [CodeSigningConfig]))
-> ListCodeSigningConfigsResponse
-> Const (First [CodeSigningConfig]) ListCodeSigningConfigsResponse
Lens' ListCodeSigningConfigsResponse (Maybe [CodeSigningConfig])
listCodeSigningConfigsResponse_codeSigningConfigs
              ((Maybe [CodeSigningConfig]
  -> Const (First [CodeSigningConfig]) (Maybe [CodeSigningConfig]))
 -> ListCodeSigningConfigsResponse
 -> Const
      (First [CodeSigningConfig]) ListCodeSigningConfigsResponse)
-> (([CodeSigningConfig]
     -> Const (First [CodeSigningConfig]) [CodeSigningConfig])
    -> Maybe [CodeSigningConfig]
    -> Const (First [CodeSigningConfig]) (Maybe [CodeSigningConfig]))
-> Getting
     (First [CodeSigningConfig])
     ListCodeSigningConfigsResponse
     [CodeSigningConfig]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([CodeSigningConfig]
 -> Const (First [CodeSigningConfig]) [CodeSigningConfig])
-> Maybe [CodeSigningConfig]
-> Const (First [CodeSigningConfig]) (Maybe [CodeSigningConfig])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListCodeSigningConfigs
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListCodeSigningConfigs -> Maybe ListCodeSigningConfigs
forall a. a -> Maybe a
Prelude.Just (ListCodeSigningConfigs -> Maybe ListCodeSigningConfigs)
-> ListCodeSigningConfigs -> Maybe ListCodeSigningConfigs
forall a b. (a -> b) -> a -> b
Prelude.$
        ListCodeSigningConfigs
rq
          ListCodeSigningConfigs
-> (ListCodeSigningConfigs -> ListCodeSigningConfigs)
-> ListCodeSigningConfigs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListCodeSigningConfigs -> Identity ListCodeSigningConfigs
Lens
  ListCodeSigningConfigs
  ListCodeSigningConfigs
  (Maybe Text)
  (Maybe Text)
listCodeSigningConfigs_marker
          ((Maybe Text -> Identity (Maybe Text))
 -> ListCodeSigningConfigs -> Identity ListCodeSigningConfigs)
-> Maybe Text -> ListCodeSigningConfigs -> ListCodeSigningConfigs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListCodeSigningConfigs
ListCodeSigningConfigsResponse
rs
          ListCodeSigningConfigsResponse
-> Getting (First Text) ListCodeSigningConfigsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListCodeSigningConfigsResponse
-> Const (First Text) ListCodeSigningConfigsResponse
Lens' ListCodeSigningConfigsResponse (Maybe Text)
listCodeSigningConfigsResponse_nextMarker
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListCodeSigningConfigsResponse
 -> Const (First Text) ListCodeSigningConfigsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListCodeSigningConfigsResponse 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 ListCodeSigningConfigs where
  type
    AWSResponse ListCodeSigningConfigs =
      ListCodeSigningConfigsResponse
  request :: ListCodeSigningConfigs -> Request ListCodeSigningConfigs
request = Service -> ListCodeSigningConfigs -> Request ListCodeSigningConfigs
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListCodeSigningConfigs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListCodeSigningConfigs)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListCodeSigningConfigs))
-> Logger
-> Service
-> Proxy ListCodeSigningConfigs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListCodeSigningConfigs)))
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 [CodeSigningConfig]
-> Maybe Text -> Int -> ListCodeSigningConfigsResponse
ListCodeSigningConfigsResponse'
            (Maybe [CodeSigningConfig]
 -> Maybe Text -> Int -> ListCodeSigningConfigsResponse)
-> Either String (Maybe [CodeSigningConfig])
-> Either
     String (Maybe Text -> Int -> ListCodeSigningConfigsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [CodeSigningConfig]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CodeSigningConfigs"
                            Either String (Maybe (Maybe [CodeSigningConfig]))
-> Maybe [CodeSigningConfig]
-> Either String (Maybe [CodeSigningConfig])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [CodeSigningConfig]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Maybe Text -> Int -> ListCodeSigningConfigsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListCodeSigningConfigsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextMarker")
            Either String (Int -> ListCodeSigningConfigsResponse)
-> Either String Int
-> Either String ListCodeSigningConfigsResponse
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 ListCodeSigningConfigs

instance Prelude.NFData ListCodeSigningConfigs

instance Core.ToHeaders ListCodeSigningConfigs where
  toHeaders :: ListCodeSigningConfigs -> ResponseHeaders
toHeaders = ResponseHeaders -> ListCodeSigningConfigs -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath ListCodeSigningConfigs where
  toPath :: ListCodeSigningConfigs -> ByteString
toPath =
    ByteString -> ListCodeSigningConfigs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/2020-04-22/code-signing-configs/"

instance Core.ToQuery ListCodeSigningConfigs where
  toQuery :: ListCodeSigningConfigs -> QueryString
toQuery ListCodeSigningConfigs' {Maybe Natural
Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:maxItems:ListCodeSigningConfigs' :: ListCodeSigningConfigs -> Maybe Natural
$sel:marker:ListCodeSigningConfigs' :: ListCodeSigningConfigs -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
        ByteString
"MaxItems" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxItems
      ]

-- | /See:/ 'newListCodeSigningConfigsResponse' smart constructor.
data ListCodeSigningConfigsResponse = ListCodeSigningConfigsResponse'
  { -- | The code signing configurations
    ListCodeSigningConfigsResponse -> Maybe [CodeSigningConfig]
codeSigningConfigs :: Prelude.Maybe [CodeSigningConfig],
    -- | The pagination token that\'s included if more results are available.
    ListCodeSigningConfigsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListCodeSigningConfigsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListCodeSigningConfigsResponse
-> ListCodeSigningConfigsResponse -> Bool
(ListCodeSigningConfigsResponse
 -> ListCodeSigningConfigsResponse -> Bool)
-> (ListCodeSigningConfigsResponse
    -> ListCodeSigningConfigsResponse -> Bool)
-> Eq ListCodeSigningConfigsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCodeSigningConfigsResponse
-> ListCodeSigningConfigsResponse -> Bool
$c/= :: ListCodeSigningConfigsResponse
-> ListCodeSigningConfigsResponse -> Bool
== :: ListCodeSigningConfigsResponse
-> ListCodeSigningConfigsResponse -> Bool
$c== :: ListCodeSigningConfigsResponse
-> ListCodeSigningConfigsResponse -> Bool
Prelude.Eq, ReadPrec [ListCodeSigningConfigsResponse]
ReadPrec ListCodeSigningConfigsResponse
Int -> ReadS ListCodeSigningConfigsResponse
ReadS [ListCodeSigningConfigsResponse]
(Int -> ReadS ListCodeSigningConfigsResponse)
-> ReadS [ListCodeSigningConfigsResponse]
-> ReadPrec ListCodeSigningConfigsResponse
-> ReadPrec [ListCodeSigningConfigsResponse]
-> Read ListCodeSigningConfigsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCodeSigningConfigsResponse]
$creadListPrec :: ReadPrec [ListCodeSigningConfigsResponse]
readPrec :: ReadPrec ListCodeSigningConfigsResponse
$creadPrec :: ReadPrec ListCodeSigningConfigsResponse
readList :: ReadS [ListCodeSigningConfigsResponse]
$creadList :: ReadS [ListCodeSigningConfigsResponse]
readsPrec :: Int -> ReadS ListCodeSigningConfigsResponse
$creadsPrec :: Int -> ReadS ListCodeSigningConfigsResponse
Prelude.Read, Int -> ListCodeSigningConfigsResponse -> ShowS
[ListCodeSigningConfigsResponse] -> ShowS
ListCodeSigningConfigsResponse -> String
(Int -> ListCodeSigningConfigsResponse -> ShowS)
-> (ListCodeSigningConfigsResponse -> String)
-> ([ListCodeSigningConfigsResponse] -> ShowS)
-> Show ListCodeSigningConfigsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCodeSigningConfigsResponse] -> ShowS
$cshowList :: [ListCodeSigningConfigsResponse] -> ShowS
show :: ListCodeSigningConfigsResponse -> String
$cshow :: ListCodeSigningConfigsResponse -> String
showsPrec :: Int -> ListCodeSigningConfigsResponse -> ShowS
$cshowsPrec :: Int -> ListCodeSigningConfigsResponse -> ShowS
Prelude.Show, (forall x.
 ListCodeSigningConfigsResponse
 -> Rep ListCodeSigningConfigsResponse x)
-> (forall x.
    Rep ListCodeSigningConfigsResponse x
    -> ListCodeSigningConfigsResponse)
-> Generic ListCodeSigningConfigsResponse
forall x.
Rep ListCodeSigningConfigsResponse x
-> ListCodeSigningConfigsResponse
forall x.
ListCodeSigningConfigsResponse
-> Rep ListCodeSigningConfigsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListCodeSigningConfigsResponse x
-> ListCodeSigningConfigsResponse
$cfrom :: forall x.
ListCodeSigningConfigsResponse
-> Rep ListCodeSigningConfigsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListCodeSigningConfigsResponse' 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:
--
-- 'codeSigningConfigs', 'listCodeSigningConfigsResponse_codeSigningConfigs' - The code signing configurations
--
-- 'nextMarker', 'listCodeSigningConfigsResponse_nextMarker' - The pagination token that\'s included if more results are available.
--
-- 'httpStatus', 'listCodeSigningConfigsResponse_httpStatus' - The response's http status code.
newListCodeSigningConfigsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListCodeSigningConfigsResponse
newListCodeSigningConfigsResponse :: Int -> ListCodeSigningConfigsResponse
newListCodeSigningConfigsResponse Int
pHttpStatus_ =
  ListCodeSigningConfigsResponse' :: Maybe [CodeSigningConfig]
-> Maybe Text -> Int -> ListCodeSigningConfigsResponse
ListCodeSigningConfigsResponse'
    { $sel:codeSigningConfigs:ListCodeSigningConfigsResponse' :: Maybe [CodeSigningConfig]
codeSigningConfigs =
        Maybe [CodeSigningConfig]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextMarker:ListCodeSigningConfigsResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListCodeSigningConfigsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The code signing configurations
listCodeSigningConfigsResponse_codeSigningConfigs :: Lens.Lens' ListCodeSigningConfigsResponse (Prelude.Maybe [CodeSigningConfig])
listCodeSigningConfigsResponse_codeSigningConfigs :: (Maybe [CodeSigningConfig] -> f (Maybe [CodeSigningConfig]))
-> ListCodeSigningConfigsResponse
-> f ListCodeSigningConfigsResponse
listCodeSigningConfigsResponse_codeSigningConfigs = (ListCodeSigningConfigsResponse -> Maybe [CodeSigningConfig])
-> (ListCodeSigningConfigsResponse
    -> Maybe [CodeSigningConfig] -> ListCodeSigningConfigsResponse)
-> Lens' ListCodeSigningConfigsResponse (Maybe [CodeSigningConfig])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCodeSigningConfigsResponse' {Maybe [CodeSigningConfig]
codeSigningConfigs :: Maybe [CodeSigningConfig]
$sel:codeSigningConfigs:ListCodeSigningConfigsResponse' :: ListCodeSigningConfigsResponse -> Maybe [CodeSigningConfig]
codeSigningConfigs} -> Maybe [CodeSigningConfig]
codeSigningConfigs) (\s :: ListCodeSigningConfigsResponse
s@ListCodeSigningConfigsResponse' {} Maybe [CodeSigningConfig]
a -> ListCodeSigningConfigsResponse
s {$sel:codeSigningConfigs:ListCodeSigningConfigsResponse' :: Maybe [CodeSigningConfig]
codeSigningConfigs = Maybe [CodeSigningConfig]
a} :: ListCodeSigningConfigsResponse) ((Maybe [CodeSigningConfig] -> f (Maybe [CodeSigningConfig]))
 -> ListCodeSigningConfigsResponse
 -> f ListCodeSigningConfigsResponse)
-> ((Maybe [CodeSigningConfig] -> f (Maybe [CodeSigningConfig]))
    -> Maybe [CodeSigningConfig] -> f (Maybe [CodeSigningConfig]))
-> (Maybe [CodeSigningConfig] -> f (Maybe [CodeSigningConfig]))
-> ListCodeSigningConfigsResponse
-> f ListCodeSigningConfigsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [CodeSigningConfig]
  [CodeSigningConfig]
  [CodeSigningConfig]
  [CodeSigningConfig]
-> Iso
     (Maybe [CodeSigningConfig])
     (Maybe [CodeSigningConfig])
     (Maybe [CodeSigningConfig])
     (Maybe [CodeSigningConfig])
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
  [CodeSigningConfig]
  [CodeSigningConfig]
  [CodeSigningConfig]
  [CodeSigningConfig]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The pagination token that\'s included if more results are available.
listCodeSigningConfigsResponse_nextMarker :: Lens.Lens' ListCodeSigningConfigsResponse (Prelude.Maybe Prelude.Text)
listCodeSigningConfigsResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListCodeSigningConfigsResponse
-> f ListCodeSigningConfigsResponse
listCodeSigningConfigsResponse_nextMarker = (ListCodeSigningConfigsResponse -> Maybe Text)
-> (ListCodeSigningConfigsResponse
    -> Maybe Text -> ListCodeSigningConfigsResponse)
-> Lens' ListCodeSigningConfigsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCodeSigningConfigsResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListCodeSigningConfigsResponse' :: ListCodeSigningConfigsResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListCodeSigningConfigsResponse
s@ListCodeSigningConfigsResponse' {} Maybe Text
a -> ListCodeSigningConfigsResponse
s {$sel:nextMarker:ListCodeSigningConfigsResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: ListCodeSigningConfigsResponse)

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

instance
  Prelude.NFData
    ListCodeSigningConfigsResponse