{-# 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.Signer.ListSigningPlatforms
(
ListSigningPlatforms (..),
newListSigningPlatforms,
listSigningPlatforms_category,
listSigningPlatforms_partner,
listSigningPlatforms_nextToken,
listSigningPlatforms_maxResults,
listSigningPlatforms_target,
ListSigningPlatformsResponse (..),
newListSigningPlatformsResponse,
listSigningPlatformsResponse_platforms,
listSigningPlatformsResponse_nextToken,
listSigningPlatformsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Signer.Types
data ListSigningPlatforms = ListSigningPlatforms'
{
ListSigningPlatforms -> Maybe Text
category :: Prelude.Maybe Prelude.Text,
ListSigningPlatforms -> Maybe Text
partner :: Prelude.Maybe Prelude.Text,
ListSigningPlatforms -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSigningPlatforms -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListSigningPlatforms -> Maybe Text
target :: Prelude.Maybe Prelude.Text
}
deriving (ListSigningPlatforms -> ListSigningPlatforms -> Bool
(ListSigningPlatforms -> ListSigningPlatforms -> Bool)
-> (ListSigningPlatforms -> ListSigningPlatforms -> Bool)
-> Eq ListSigningPlatforms
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]
(Int -> ReadS ListSigningPlatforms)
-> ReadS [ListSigningPlatforms]
-> ReadPrec ListSigningPlatforms
-> ReadPrec [ListSigningPlatforms]
-> Read 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
(Int -> ListSigningPlatforms -> ShowS)
-> (ListSigningPlatforms -> String)
-> ([ListSigningPlatforms] -> ShowS)
-> Show ListSigningPlatforms
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. ListSigningPlatforms -> Rep ListSigningPlatforms x)
-> (forall x. Rep ListSigningPlatforms x -> ListSigningPlatforms)
-> Generic ListSigningPlatforms
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)
newListSigningPlatforms ::
ListSigningPlatforms
newListSigningPlatforms :: ListSigningPlatforms
newListSigningPlatforms =
ListSigningPlatforms' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ListSigningPlatforms
ListSigningPlatforms'
{ $sel:category:ListSigningPlatforms' :: Maybe Text
category = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:partner:ListSigningPlatforms' :: Maybe Text
partner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListSigningPlatforms' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListSigningPlatforms' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:target:ListSigningPlatforms' :: Maybe Text
target = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
listSigningPlatforms_category :: Lens.Lens' ListSigningPlatforms (Prelude.Maybe Prelude.Text)
listSigningPlatforms_category :: (Maybe Text -> f (Maybe Text))
-> ListSigningPlatforms -> f ListSigningPlatforms
listSigningPlatforms_category = (ListSigningPlatforms -> Maybe Text)
-> (ListSigningPlatforms -> Maybe Text -> ListSigningPlatforms)
-> Lens
ListSigningPlatforms ListSigningPlatforms (Maybe Text) (Maybe Text)
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)
listSigningPlatforms_partner :: Lens.Lens' ListSigningPlatforms (Prelude.Maybe Prelude.Text)
listSigningPlatforms_partner :: (Maybe Text -> f (Maybe Text))
-> ListSigningPlatforms -> f ListSigningPlatforms
listSigningPlatforms_partner = (ListSigningPlatforms -> Maybe Text)
-> (ListSigningPlatforms -> Maybe Text -> ListSigningPlatforms)
-> Lens
ListSigningPlatforms ListSigningPlatforms (Maybe Text) (Maybe Text)
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)
listSigningPlatforms_nextToken :: Lens.Lens' ListSigningPlatforms (Prelude.Maybe Prelude.Text)
listSigningPlatforms_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSigningPlatforms -> f ListSigningPlatforms
listSigningPlatforms_nextToken = (ListSigningPlatforms -> Maybe Text)
-> (ListSigningPlatforms -> Maybe Text -> ListSigningPlatforms)
-> Lens
ListSigningPlatforms ListSigningPlatforms (Maybe Text) (Maybe Text)
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)
listSigningPlatforms_maxResults :: Lens.Lens' ListSigningPlatforms (Prelude.Maybe Prelude.Natural)
listSigningPlatforms_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListSigningPlatforms -> f ListSigningPlatforms
listSigningPlatforms_maxResults = (ListSigningPlatforms -> Maybe Natural)
-> (ListSigningPlatforms -> Maybe Natural -> ListSigningPlatforms)
-> Lens
ListSigningPlatforms
ListSigningPlatforms
(Maybe Natural)
(Maybe Natural)
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)
listSigningPlatforms_target :: Lens.Lens' ListSigningPlatforms (Prelude.Maybe Prelude.Text)
listSigningPlatforms_target :: (Maybe Text -> f (Maybe Text))
-> ListSigningPlatforms -> f ListSigningPlatforms
listSigningPlatforms_target = (ListSigningPlatforms -> Maybe Text)
-> (ListSigningPlatforms -> Maybe Text -> ListSigningPlatforms)
-> Lens
ListSigningPlatforms ListSigningPlatforms (Maybe Text) (Maybe Text)
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
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSigningPlatforms
ListSigningPlatformsResponse
rs
ListSigningPlatformsResponse
-> Getting (First Text) ListSigningPlatformsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSigningPlatformsResponse
-> Const (First Text) ListSigningPlatformsResponse
Lens' ListSigningPlatformsResponse (Maybe Text)
listSigningPlatformsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSigningPlatformsResponse
-> Const (First Text) ListSigningPlatformsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSigningPlatformsResponse 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 ListSigningPlatforms
forall a. Maybe a
Prelude.Nothing
| Maybe [SigningPlatform] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSigningPlatforms
ListSigningPlatformsResponse
rs
ListSigningPlatformsResponse
-> Getting
(First [SigningPlatform])
ListSigningPlatformsResponse
[SigningPlatform]
-> Maybe [SigningPlatform]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [SigningPlatform]
-> Const (First [SigningPlatform]) (Maybe [SigningPlatform]))
-> ListSigningPlatformsResponse
-> Const (First [SigningPlatform]) ListSigningPlatformsResponse
Lens' ListSigningPlatformsResponse (Maybe [SigningPlatform])
listSigningPlatformsResponse_platforms
((Maybe [SigningPlatform]
-> Const (First [SigningPlatform]) (Maybe [SigningPlatform]))
-> ListSigningPlatformsResponse
-> Const (First [SigningPlatform]) ListSigningPlatformsResponse)
-> (([SigningPlatform]
-> Const (First [SigningPlatform]) [SigningPlatform])
-> Maybe [SigningPlatform]
-> Const (First [SigningPlatform]) (Maybe [SigningPlatform]))
-> Getting
(First [SigningPlatform])
ListSigningPlatformsResponse
[SigningPlatform]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([SigningPlatform]
-> Const (First [SigningPlatform]) [SigningPlatform])
-> Maybe [SigningPlatform]
-> Const (First [SigningPlatform]) (Maybe [SigningPlatform])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListSigningPlatforms
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListSigningPlatforms -> Maybe ListSigningPlatforms
forall a. a -> Maybe a
Prelude.Just (ListSigningPlatforms -> Maybe ListSigningPlatforms)
-> ListSigningPlatforms -> Maybe ListSigningPlatforms
forall a b. (a -> b) -> a -> b
Prelude.$
ListSigningPlatforms
rq
ListSigningPlatforms
-> (ListSigningPlatforms -> ListSigningPlatforms)
-> ListSigningPlatforms
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListSigningPlatforms -> Identity ListSigningPlatforms
Lens
ListSigningPlatforms ListSigningPlatforms (Maybe Text) (Maybe Text)
listSigningPlatforms_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListSigningPlatforms -> Identity ListSigningPlatforms)
-> Maybe Text -> ListSigningPlatforms -> ListSigningPlatforms
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSigningPlatforms
ListSigningPlatformsResponse
rs
ListSigningPlatformsResponse
-> Getting (First Text) ListSigningPlatformsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSigningPlatformsResponse
-> Const (First Text) ListSigningPlatformsResponse
Lens' ListSigningPlatformsResponse (Maybe Text)
listSigningPlatformsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSigningPlatformsResponse
-> Const (First Text) ListSigningPlatformsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSigningPlatformsResponse 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 ListSigningPlatforms where
type
AWSResponse ListSigningPlatforms =
ListSigningPlatformsResponse
request :: ListSigningPlatforms -> Request ListSigningPlatforms
request = Service -> ListSigningPlatforms -> Request ListSigningPlatforms
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListSigningPlatforms
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSigningPlatforms)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListSigningPlatforms))
-> Logger
-> Service
-> Proxy ListSigningPlatforms
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSigningPlatforms)))
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 [SigningPlatform]
-> Maybe Text -> Int -> ListSigningPlatformsResponse
ListSigningPlatformsResponse'
(Maybe [SigningPlatform]
-> Maybe Text -> Int -> ListSigningPlatformsResponse)
-> Either String (Maybe [SigningPlatform])
-> Either
String (Maybe Text -> Int -> ListSigningPlatformsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [SigningPlatform]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"platforms" Either String (Maybe (Maybe [SigningPlatform]))
-> Maybe [SigningPlatform]
-> Either String (Maybe [SigningPlatform])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SigningPlatform]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListSigningPlatformsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListSigningPlatformsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"nextToken")
Either String (Int -> ListSigningPlatformsResponse)
-> Either String Int -> Either String ListSigningPlatformsResponse
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 ListSigningPlatforms
instance Prelude.NFData ListSigningPlatforms
instance Core.ToHeaders ListSigningPlatforms where
toHeaders :: ListSigningPlatforms -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListSigningPlatforms -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath ListSigningPlatforms where
toPath :: ListSigningPlatforms -> ByteString
toPath = ByteString -> ListSigningPlatforms -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/signing-platforms"
instance Core.ToQuery ListSigningPlatforms where
toQuery :: ListSigningPlatforms -> QueryString
toQuery ListSigningPlatforms' {Maybe Natural
Maybe Text
target :: Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
partner :: Maybe Text
category :: Maybe Text
$sel:target:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
$sel:maxResults:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Natural
$sel:nextToken:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
$sel:partner:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
$sel:category:ListSigningPlatforms' :: ListSigningPlatforms -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"category" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
category,
ByteString
"partner" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
partner,
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults,
ByteString
"target" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
target
]
data ListSigningPlatformsResponse = ListSigningPlatformsResponse'
{
ListSigningPlatformsResponse -> Maybe [SigningPlatform]
platforms :: Prelude.Maybe [SigningPlatform],
ListSigningPlatformsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSigningPlatformsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListSigningPlatformsResponse
-> ListSigningPlatformsResponse -> Bool
(ListSigningPlatformsResponse
-> ListSigningPlatformsResponse -> Bool)
-> (ListSigningPlatformsResponse
-> ListSigningPlatformsResponse -> Bool)
-> Eq ListSigningPlatformsResponse
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]
(Int -> ReadS ListSigningPlatformsResponse)
-> ReadS [ListSigningPlatformsResponse]
-> ReadPrec ListSigningPlatformsResponse
-> ReadPrec [ListSigningPlatformsResponse]
-> Read 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
(Int -> ListSigningPlatformsResponse -> ShowS)
-> (ListSigningPlatformsResponse -> String)
-> ([ListSigningPlatformsResponse] -> ShowS)
-> Show ListSigningPlatformsResponse
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.
ListSigningPlatformsResponse -> Rep ListSigningPlatformsResponse x)
-> (forall x.
Rep ListSigningPlatformsResponse x -> ListSigningPlatformsResponse)
-> Generic ListSigningPlatformsResponse
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)
newListSigningPlatformsResponse ::
Prelude.Int ->
ListSigningPlatformsResponse
newListSigningPlatformsResponse :: Int -> ListSigningPlatformsResponse
newListSigningPlatformsResponse Int
pHttpStatus_ =
ListSigningPlatformsResponse' :: Maybe [SigningPlatform]
-> Maybe Text -> Int -> ListSigningPlatformsResponse
ListSigningPlatformsResponse'
{ $sel:platforms:ListSigningPlatformsResponse' :: Maybe [SigningPlatform]
platforms =
Maybe [SigningPlatform]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListSigningPlatformsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListSigningPlatformsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listSigningPlatformsResponse_platforms :: Lens.Lens' ListSigningPlatformsResponse (Prelude.Maybe [SigningPlatform])
listSigningPlatformsResponse_platforms :: (Maybe [SigningPlatform] -> f (Maybe [SigningPlatform]))
-> ListSigningPlatformsResponse -> f ListSigningPlatformsResponse
listSigningPlatformsResponse_platforms = (ListSigningPlatformsResponse -> Maybe [SigningPlatform])
-> (ListSigningPlatformsResponse
-> Maybe [SigningPlatform] -> ListSigningPlatformsResponse)
-> Lens' ListSigningPlatformsResponse (Maybe [SigningPlatform])
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) ((Maybe [SigningPlatform] -> f (Maybe [SigningPlatform]))
-> ListSigningPlatformsResponse -> f ListSigningPlatformsResponse)
-> ((Maybe [SigningPlatform] -> f (Maybe [SigningPlatform]))
-> Maybe [SigningPlatform] -> f (Maybe [SigningPlatform]))
-> (Maybe [SigningPlatform] -> f (Maybe [SigningPlatform]))
-> ListSigningPlatformsResponse
-> f ListSigningPlatformsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SigningPlatform]
[SigningPlatform]
[SigningPlatform]
[SigningPlatform]
-> Iso
(Maybe [SigningPlatform])
(Maybe [SigningPlatform])
(Maybe [SigningPlatform])
(Maybe [SigningPlatform])
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
[SigningPlatform]
[SigningPlatform]
[SigningPlatform]
[SigningPlatform]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listSigningPlatformsResponse_nextToken :: Lens.Lens' ListSigningPlatformsResponse (Prelude.Maybe Prelude.Text)
listSigningPlatformsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSigningPlatformsResponse -> f ListSigningPlatformsResponse
listSigningPlatformsResponse_nextToken = (ListSigningPlatformsResponse -> Maybe Text)
-> (ListSigningPlatformsResponse
-> Maybe Text -> ListSigningPlatformsResponse)
-> Lens' ListSigningPlatformsResponse (Maybe Text)
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)
listSigningPlatformsResponse_httpStatus :: Lens.Lens' ListSigningPlatformsResponse Prelude.Int
listSigningPlatformsResponse_httpStatus :: (Int -> f Int)
-> ListSigningPlatformsResponse -> f ListSigningPlatformsResponse
listSigningPlatformsResponse_httpStatus = (ListSigningPlatformsResponse -> Int)
-> (ListSigningPlatformsResponse
-> Int -> ListSigningPlatformsResponse)
-> Lens
ListSigningPlatformsResponse ListSigningPlatformsResponse Int Int
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