{-# 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.APIGateway.TestInvokeAuthorizer
(
TestInvokeAuthorizer (..),
newTestInvokeAuthorizer,
testInvokeAuthorizer_pathWithQueryString,
testInvokeAuthorizer_body,
testInvokeAuthorizer_additionalContext,
testInvokeAuthorizer_stageVariables,
testInvokeAuthorizer_headers,
testInvokeAuthorizer_multiValueHeaders,
testInvokeAuthorizer_restApiId,
testInvokeAuthorizer_authorizerId,
TestInvokeAuthorizerResponse (..),
newTestInvokeAuthorizerResponse,
testInvokeAuthorizerResponse_log,
testInvokeAuthorizerResponse_principalId,
testInvokeAuthorizerResponse_latency,
testInvokeAuthorizerResponse_authorization,
testInvokeAuthorizerResponse_claims,
testInvokeAuthorizerResponse_clientStatus,
testInvokeAuthorizerResponse_policy,
testInvokeAuthorizerResponse_httpStatus,
)
where
import Amazonka.APIGateway.Types
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
data TestInvokeAuthorizer = TestInvokeAuthorizer'
{
TestInvokeAuthorizer -> Maybe Text
pathWithQueryString :: Prelude.Maybe Prelude.Text,
TestInvokeAuthorizer -> Maybe Text
body :: Prelude.Maybe Prelude.Text,
TestInvokeAuthorizer -> Maybe (HashMap Text Text)
additionalContext :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
TestInvokeAuthorizer -> Maybe (HashMap Text Text)
stageVariables :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
:: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
:: Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]),
TestInvokeAuthorizer -> Text
restApiId :: Prelude.Text,
TestInvokeAuthorizer -> Text
authorizerId :: Prelude.Text
}
deriving (TestInvokeAuthorizer -> TestInvokeAuthorizer -> Bool
(TestInvokeAuthorizer -> TestInvokeAuthorizer -> Bool)
-> (TestInvokeAuthorizer -> TestInvokeAuthorizer -> Bool)
-> Eq TestInvokeAuthorizer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TestInvokeAuthorizer -> TestInvokeAuthorizer -> Bool
$c/= :: TestInvokeAuthorizer -> TestInvokeAuthorizer -> Bool
== :: TestInvokeAuthorizer -> TestInvokeAuthorizer -> Bool
$c== :: TestInvokeAuthorizer -> TestInvokeAuthorizer -> Bool
Prelude.Eq, ReadPrec [TestInvokeAuthorizer]
ReadPrec TestInvokeAuthorizer
Int -> ReadS TestInvokeAuthorizer
ReadS [TestInvokeAuthorizer]
(Int -> ReadS TestInvokeAuthorizer)
-> ReadS [TestInvokeAuthorizer]
-> ReadPrec TestInvokeAuthorizer
-> ReadPrec [TestInvokeAuthorizer]
-> Read TestInvokeAuthorizer
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TestInvokeAuthorizer]
$creadListPrec :: ReadPrec [TestInvokeAuthorizer]
readPrec :: ReadPrec TestInvokeAuthorizer
$creadPrec :: ReadPrec TestInvokeAuthorizer
readList :: ReadS [TestInvokeAuthorizer]
$creadList :: ReadS [TestInvokeAuthorizer]
readsPrec :: Int -> ReadS TestInvokeAuthorizer
$creadsPrec :: Int -> ReadS TestInvokeAuthorizer
Prelude.Read, Int -> TestInvokeAuthorizer -> ShowS
[TestInvokeAuthorizer] -> ShowS
TestInvokeAuthorizer -> String
(Int -> TestInvokeAuthorizer -> ShowS)
-> (TestInvokeAuthorizer -> String)
-> ([TestInvokeAuthorizer] -> ShowS)
-> Show TestInvokeAuthorizer
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TestInvokeAuthorizer] -> ShowS
$cshowList :: [TestInvokeAuthorizer] -> ShowS
show :: TestInvokeAuthorizer -> String
$cshow :: TestInvokeAuthorizer -> String
showsPrec :: Int -> TestInvokeAuthorizer -> ShowS
$cshowsPrec :: Int -> TestInvokeAuthorizer -> ShowS
Prelude.Show, (forall x. TestInvokeAuthorizer -> Rep TestInvokeAuthorizer x)
-> (forall x. Rep TestInvokeAuthorizer x -> TestInvokeAuthorizer)
-> Generic TestInvokeAuthorizer
forall x. Rep TestInvokeAuthorizer x -> TestInvokeAuthorizer
forall x. TestInvokeAuthorizer -> Rep TestInvokeAuthorizer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TestInvokeAuthorizer x -> TestInvokeAuthorizer
$cfrom :: forall x. TestInvokeAuthorizer -> Rep TestInvokeAuthorizer x
Prelude.Generic)
newTestInvokeAuthorizer ::
Prelude.Text ->
Prelude.Text ->
TestInvokeAuthorizer
newTestInvokeAuthorizer :: Text -> Text -> TestInvokeAuthorizer
newTestInvokeAuthorizer Text
pRestApiId_ Text
pAuthorizerId_ =
TestInvokeAuthorizer' :: Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text [Text])
-> Text
-> Text
-> TestInvokeAuthorizer
TestInvokeAuthorizer'
{ $sel:pathWithQueryString:TestInvokeAuthorizer' :: Maybe Text
pathWithQueryString =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:body:TestInvokeAuthorizer' :: Maybe Text
body = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:additionalContext:TestInvokeAuthorizer' :: Maybe (HashMap Text Text)
additionalContext = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:stageVariables:TestInvokeAuthorizer' :: Maybe (HashMap Text Text)
stageVariables = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:headers:TestInvokeAuthorizer' :: Maybe (HashMap Text Text)
headers = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:multiValueHeaders:TestInvokeAuthorizer' :: Maybe (HashMap Text [Text])
multiValueHeaders = Maybe (HashMap Text [Text])
forall a. Maybe a
Prelude.Nothing,
$sel:restApiId:TestInvokeAuthorizer' :: Text
restApiId = Text
pRestApiId_,
$sel:authorizerId:TestInvokeAuthorizer' :: Text
authorizerId = Text
pAuthorizerId_
}
testInvokeAuthorizer_pathWithQueryString :: Lens.Lens' TestInvokeAuthorizer (Prelude.Maybe Prelude.Text)
testInvokeAuthorizer_pathWithQueryString :: (Maybe Text -> f (Maybe Text))
-> TestInvokeAuthorizer -> f TestInvokeAuthorizer
testInvokeAuthorizer_pathWithQueryString = (TestInvokeAuthorizer -> Maybe Text)
-> (TestInvokeAuthorizer -> Maybe Text -> TestInvokeAuthorizer)
-> Lens
TestInvokeAuthorizer TestInvokeAuthorizer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizer' {Maybe Text
pathWithQueryString :: Maybe Text
$sel:pathWithQueryString:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe Text
pathWithQueryString} -> Maybe Text
pathWithQueryString) (\s :: TestInvokeAuthorizer
s@TestInvokeAuthorizer' {} Maybe Text
a -> TestInvokeAuthorizer
s {$sel:pathWithQueryString:TestInvokeAuthorizer' :: Maybe Text
pathWithQueryString = Maybe Text
a} :: TestInvokeAuthorizer)
testInvokeAuthorizer_body :: Lens.Lens' TestInvokeAuthorizer (Prelude.Maybe Prelude.Text)
testInvokeAuthorizer_body :: (Maybe Text -> f (Maybe Text))
-> TestInvokeAuthorizer -> f TestInvokeAuthorizer
testInvokeAuthorizer_body = (TestInvokeAuthorizer -> Maybe Text)
-> (TestInvokeAuthorizer -> Maybe Text -> TestInvokeAuthorizer)
-> Lens
TestInvokeAuthorizer TestInvokeAuthorizer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizer' {Maybe Text
body :: Maybe Text
$sel:body:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe Text
body} -> Maybe Text
body) (\s :: TestInvokeAuthorizer
s@TestInvokeAuthorizer' {} Maybe Text
a -> TestInvokeAuthorizer
s {$sel:body:TestInvokeAuthorizer' :: Maybe Text
body = Maybe Text
a} :: TestInvokeAuthorizer)
testInvokeAuthorizer_additionalContext :: Lens.Lens' TestInvokeAuthorizer (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
testInvokeAuthorizer_additionalContext :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> TestInvokeAuthorizer -> f TestInvokeAuthorizer
testInvokeAuthorizer_additionalContext = (TestInvokeAuthorizer -> Maybe (HashMap Text Text))
-> (TestInvokeAuthorizer
-> Maybe (HashMap Text Text) -> TestInvokeAuthorizer)
-> Lens
TestInvokeAuthorizer
TestInvokeAuthorizer
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizer' {Maybe (HashMap Text Text)
additionalContext :: Maybe (HashMap Text Text)
$sel:additionalContext:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe (HashMap Text Text)
additionalContext} -> Maybe (HashMap Text Text)
additionalContext) (\s :: TestInvokeAuthorizer
s@TestInvokeAuthorizer' {} Maybe (HashMap Text Text)
a -> TestInvokeAuthorizer
s {$sel:additionalContext:TestInvokeAuthorizer' :: Maybe (HashMap Text Text)
additionalContext = Maybe (HashMap Text Text)
a} :: TestInvokeAuthorizer) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> TestInvokeAuthorizer -> f TestInvokeAuthorizer)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> TestInvokeAuthorizer
-> f TestInvokeAuthorizer
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
testInvokeAuthorizer_stageVariables :: Lens.Lens' TestInvokeAuthorizer (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
testInvokeAuthorizer_stageVariables :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> TestInvokeAuthorizer -> f TestInvokeAuthorizer
testInvokeAuthorizer_stageVariables = (TestInvokeAuthorizer -> Maybe (HashMap Text Text))
-> (TestInvokeAuthorizer
-> Maybe (HashMap Text Text) -> TestInvokeAuthorizer)
-> Lens
TestInvokeAuthorizer
TestInvokeAuthorizer
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizer' {Maybe (HashMap Text Text)
stageVariables :: Maybe (HashMap Text Text)
$sel:stageVariables:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe (HashMap Text Text)
stageVariables} -> Maybe (HashMap Text Text)
stageVariables) (\s :: TestInvokeAuthorizer
s@TestInvokeAuthorizer' {} Maybe (HashMap Text Text)
a -> TestInvokeAuthorizer
s {$sel:stageVariables:TestInvokeAuthorizer' :: Maybe (HashMap Text Text)
stageVariables = Maybe (HashMap Text Text)
a} :: TestInvokeAuthorizer) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> TestInvokeAuthorizer -> f TestInvokeAuthorizer)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> TestInvokeAuthorizer
-> f TestInvokeAuthorizer
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
testInvokeAuthorizer_headers :: Lens.Lens' TestInvokeAuthorizer (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
= (TestInvokeAuthorizer -> Maybe (HashMap Text Text))
-> (TestInvokeAuthorizer
-> Maybe (HashMap Text Text) -> TestInvokeAuthorizer)
-> Lens
TestInvokeAuthorizer
TestInvokeAuthorizer
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizer' {Maybe (HashMap Text Text)
headers :: Maybe (HashMap Text Text)
$sel:headers:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe (HashMap Text Text)
headers} -> Maybe (HashMap Text Text)
headers) (\s :: TestInvokeAuthorizer
s@TestInvokeAuthorizer' {} Maybe (HashMap Text Text)
a -> TestInvokeAuthorizer
s {$sel:headers:TestInvokeAuthorizer' :: Maybe (HashMap Text Text)
headers = Maybe (HashMap Text Text)
a} :: TestInvokeAuthorizer) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> TestInvokeAuthorizer -> f TestInvokeAuthorizer)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> TestInvokeAuthorizer
-> f TestInvokeAuthorizer
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
testInvokeAuthorizer_multiValueHeaders :: Lens.Lens' TestInvokeAuthorizer (Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]))
= (TestInvokeAuthorizer -> Maybe (HashMap Text [Text]))
-> (TestInvokeAuthorizer
-> Maybe (HashMap Text [Text]) -> TestInvokeAuthorizer)
-> Lens
TestInvokeAuthorizer
TestInvokeAuthorizer
(Maybe (HashMap Text [Text]))
(Maybe (HashMap Text [Text]))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizer' {Maybe (HashMap Text [Text])
multiValueHeaders :: Maybe (HashMap Text [Text])
$sel:multiValueHeaders:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe (HashMap Text [Text])
multiValueHeaders} -> Maybe (HashMap Text [Text])
multiValueHeaders) (\s :: TestInvokeAuthorizer
s@TestInvokeAuthorizer' {} Maybe (HashMap Text [Text])
a -> TestInvokeAuthorizer
s {$sel:multiValueHeaders:TestInvokeAuthorizer' :: Maybe (HashMap Text [Text])
multiValueHeaders = Maybe (HashMap Text [Text])
a} :: TestInvokeAuthorizer) ((Maybe (HashMap Text [Text]) -> f (Maybe (HashMap Text [Text])))
-> TestInvokeAuthorizer -> f TestInvokeAuthorizer)
-> ((Maybe (HashMap Text [Text])
-> f (Maybe (HashMap Text [Text])))
-> Maybe (HashMap Text [Text]) -> f (Maybe (HashMap Text [Text])))
-> (Maybe (HashMap Text [Text]) -> f (Maybe (HashMap Text [Text])))
-> TestInvokeAuthorizer
-> f TestInvokeAuthorizer
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text [Text])
(HashMap Text [Text])
(HashMap Text [Text])
(HashMap Text [Text])
-> Iso
(Maybe (HashMap Text [Text]))
(Maybe (HashMap Text [Text]))
(Maybe (HashMap Text [Text]))
(Maybe (HashMap Text [Text]))
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
(HashMap Text [Text])
(HashMap Text [Text])
(HashMap Text [Text])
(HashMap Text [Text])
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
testInvokeAuthorizer_restApiId :: Lens.Lens' TestInvokeAuthorizer Prelude.Text
testInvokeAuthorizer_restApiId :: (Text -> f Text) -> TestInvokeAuthorizer -> f TestInvokeAuthorizer
testInvokeAuthorizer_restApiId = (TestInvokeAuthorizer -> Text)
-> (TestInvokeAuthorizer -> Text -> TestInvokeAuthorizer)
-> Lens TestInvokeAuthorizer TestInvokeAuthorizer Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizer' {Text
restApiId :: Text
$sel:restApiId:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Text
restApiId} -> Text
restApiId) (\s :: TestInvokeAuthorizer
s@TestInvokeAuthorizer' {} Text
a -> TestInvokeAuthorizer
s {$sel:restApiId:TestInvokeAuthorizer' :: Text
restApiId = Text
a} :: TestInvokeAuthorizer)
testInvokeAuthorizer_authorizerId :: Lens.Lens' TestInvokeAuthorizer Prelude.Text
testInvokeAuthorizer_authorizerId :: (Text -> f Text) -> TestInvokeAuthorizer -> f TestInvokeAuthorizer
testInvokeAuthorizer_authorizerId = (TestInvokeAuthorizer -> Text)
-> (TestInvokeAuthorizer -> Text -> TestInvokeAuthorizer)
-> Lens TestInvokeAuthorizer TestInvokeAuthorizer Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizer' {Text
authorizerId :: Text
$sel:authorizerId:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Text
authorizerId} -> Text
authorizerId) (\s :: TestInvokeAuthorizer
s@TestInvokeAuthorizer' {} Text
a -> TestInvokeAuthorizer
s {$sel:authorizerId:TestInvokeAuthorizer' :: Text
authorizerId = Text
a} :: TestInvokeAuthorizer)
instance Core.AWSRequest TestInvokeAuthorizer where
type
AWSResponse TestInvokeAuthorizer =
TestInvokeAuthorizerResponse
request :: TestInvokeAuthorizer -> Request TestInvokeAuthorizer
request = Service -> TestInvokeAuthorizer -> Request TestInvokeAuthorizer
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy TestInvokeAuthorizer
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse TestInvokeAuthorizer)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse TestInvokeAuthorizer))
-> Logger
-> Service
-> Proxy TestInvokeAuthorizer
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse TestInvokeAuthorizer)))
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 Text
-> Maybe Text
-> Maybe Integer
-> Maybe (HashMap Text [Text])
-> Maybe (HashMap Text Text)
-> Maybe Int
-> Maybe Text
-> Int
-> TestInvokeAuthorizerResponse
TestInvokeAuthorizerResponse'
(Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe (HashMap Text [Text])
-> Maybe (HashMap Text Text)
-> Maybe Int
-> Maybe Text
-> Int
-> TestInvokeAuthorizerResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Integer
-> Maybe (HashMap Text [Text])
-> Maybe (HashMap Text Text)
-> Maybe Int
-> Maybe Text
-> Int
-> TestInvokeAuthorizerResponse)
forall (f :: * -> *) a b. Functor 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
"log")
Either
String
(Maybe Text
-> Maybe Integer
-> Maybe (HashMap Text [Text])
-> Maybe (HashMap Text Text)
-> Maybe Int
-> Maybe Text
-> Int
-> TestInvokeAuthorizerResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Integer
-> Maybe (HashMap Text [Text])
-> Maybe (HashMap Text Text)
-> Maybe Int
-> Maybe Text
-> Int
-> TestInvokeAuthorizerResponse)
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
"principalId")
Either
String
(Maybe Integer
-> Maybe (HashMap Text [Text])
-> Maybe (HashMap Text Text)
-> Maybe Int
-> Maybe Text
-> Int
-> TestInvokeAuthorizerResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe (HashMap Text [Text])
-> Maybe (HashMap Text Text)
-> Maybe Int
-> Maybe Text
-> Int
-> TestInvokeAuthorizerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"latency")
Either
String
(Maybe (HashMap Text [Text])
-> Maybe (HashMap Text Text)
-> Maybe Int
-> Maybe Text
-> Int
-> TestInvokeAuthorizerResponse)
-> Either String (Maybe (HashMap Text [Text]))
-> Either
String
(Maybe (HashMap Text Text)
-> Maybe Int -> Maybe Text -> Int -> TestInvokeAuthorizerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe (HashMap Text [Text])))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"authorization" Either String (Maybe (Maybe (HashMap Text [Text])))
-> Maybe (HashMap Text [Text])
-> Either String (Maybe (HashMap Text [Text]))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text [Text])
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe (HashMap Text Text)
-> Maybe Int -> Maybe Text -> Int -> TestInvokeAuthorizerResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
String
(Maybe Int -> Maybe Text -> Int -> TestInvokeAuthorizerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"claims" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Int -> Maybe Text -> Int -> TestInvokeAuthorizerResponse)
-> Either String (Maybe Int)
-> Either
String (Maybe Text -> Int -> TestInvokeAuthorizerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"clientStatus")
Either String (Maybe Text -> Int -> TestInvokeAuthorizerResponse)
-> Either String (Maybe Text)
-> Either String (Int -> TestInvokeAuthorizerResponse)
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
"policy")
Either String (Int -> TestInvokeAuthorizerResponse)
-> Either String Int -> Either String TestInvokeAuthorizerResponse
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 TestInvokeAuthorizer
instance Prelude.NFData TestInvokeAuthorizer
instance Core.ToHeaders TestInvokeAuthorizer where
toHeaders :: TestInvokeAuthorizer -> ResponseHeaders
toHeaders =
ResponseHeaders -> TestInvokeAuthorizer -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Accept"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"application/json" :: Prelude.ByteString)
]
)
instance Core.ToJSON TestInvokeAuthorizer where
toJSON :: TestInvokeAuthorizer -> Value
toJSON TestInvokeAuthorizer' {Maybe Text
Maybe (HashMap Text [Text])
Maybe (HashMap Text Text)
Text
authorizerId :: Text
restApiId :: Text
multiValueHeaders :: Maybe (HashMap Text [Text])
headers :: Maybe (HashMap Text Text)
stageVariables :: Maybe (HashMap Text Text)
additionalContext :: Maybe (HashMap Text Text)
body :: Maybe Text
pathWithQueryString :: Maybe Text
$sel:authorizerId:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Text
$sel:restApiId:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Text
$sel:multiValueHeaders:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe (HashMap Text [Text])
$sel:headers:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe (HashMap Text Text)
$sel:stageVariables:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe (HashMap Text Text)
$sel:additionalContext:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe (HashMap Text Text)
$sel:body:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe Text
$sel:pathWithQueryString:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"pathWithQueryString" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pathWithQueryString,
(Text
"body" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
body,
(Text
"additionalContext" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
additionalContext,
(Text
"stageVariables" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
stageVariables,
(Text
"headers" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
headers,
(Text
"multiValueHeaders" Text -> HashMap Text [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(HashMap Text [Text] -> Pair)
-> Maybe (HashMap Text [Text]) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text [Text])
multiValueHeaders
]
)
instance Core.ToPath TestInvokeAuthorizer where
toPath :: TestInvokeAuthorizer -> ByteString
toPath TestInvokeAuthorizer' {Maybe Text
Maybe (HashMap Text [Text])
Maybe (HashMap Text Text)
Text
authorizerId :: Text
restApiId :: Text
multiValueHeaders :: Maybe (HashMap Text [Text])
headers :: Maybe (HashMap Text Text)
stageVariables :: Maybe (HashMap Text Text)
additionalContext :: Maybe (HashMap Text Text)
body :: Maybe Text
pathWithQueryString :: Maybe Text
$sel:authorizerId:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Text
$sel:restApiId:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Text
$sel:multiValueHeaders:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe (HashMap Text [Text])
$sel:headers:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe (HashMap Text Text)
$sel:stageVariables:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe (HashMap Text Text)
$sel:additionalContext:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe (HashMap Text Text)
$sel:body:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe Text
$sel:pathWithQueryString:TestInvokeAuthorizer' :: TestInvokeAuthorizer -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/restapis/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
restApiId,
ByteString
"/authorizers/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
authorizerId
]
instance Core.ToQuery TestInvokeAuthorizer where
toQuery :: TestInvokeAuthorizer -> QueryString
toQuery = QueryString -> TestInvokeAuthorizer -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data TestInvokeAuthorizerResponse = TestInvokeAuthorizerResponse'
{
TestInvokeAuthorizerResponse -> Maybe Text
log :: Prelude.Maybe Prelude.Text,
TestInvokeAuthorizerResponse -> Maybe Text
principalId :: Prelude.Maybe Prelude.Text,
TestInvokeAuthorizerResponse -> Maybe Integer
latency :: Prelude.Maybe Prelude.Integer,
TestInvokeAuthorizerResponse -> Maybe (HashMap Text [Text])
authorization :: Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]),
TestInvokeAuthorizerResponse -> Maybe (HashMap Text Text)
claims :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
TestInvokeAuthorizerResponse -> Maybe Int
clientStatus :: Prelude.Maybe Prelude.Int,
TestInvokeAuthorizerResponse -> Maybe Text
policy :: Prelude.Maybe Prelude.Text,
TestInvokeAuthorizerResponse -> Int
httpStatus :: Prelude.Int
}
deriving (TestInvokeAuthorizerResponse
-> TestInvokeAuthorizerResponse -> Bool
(TestInvokeAuthorizerResponse
-> TestInvokeAuthorizerResponse -> Bool)
-> (TestInvokeAuthorizerResponse
-> TestInvokeAuthorizerResponse -> Bool)
-> Eq TestInvokeAuthorizerResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TestInvokeAuthorizerResponse
-> TestInvokeAuthorizerResponse -> Bool
$c/= :: TestInvokeAuthorizerResponse
-> TestInvokeAuthorizerResponse -> Bool
== :: TestInvokeAuthorizerResponse
-> TestInvokeAuthorizerResponse -> Bool
$c== :: TestInvokeAuthorizerResponse
-> TestInvokeAuthorizerResponse -> Bool
Prelude.Eq, ReadPrec [TestInvokeAuthorizerResponse]
ReadPrec TestInvokeAuthorizerResponse
Int -> ReadS TestInvokeAuthorizerResponse
ReadS [TestInvokeAuthorizerResponse]
(Int -> ReadS TestInvokeAuthorizerResponse)
-> ReadS [TestInvokeAuthorizerResponse]
-> ReadPrec TestInvokeAuthorizerResponse
-> ReadPrec [TestInvokeAuthorizerResponse]
-> Read TestInvokeAuthorizerResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TestInvokeAuthorizerResponse]
$creadListPrec :: ReadPrec [TestInvokeAuthorizerResponse]
readPrec :: ReadPrec TestInvokeAuthorizerResponse
$creadPrec :: ReadPrec TestInvokeAuthorizerResponse
readList :: ReadS [TestInvokeAuthorizerResponse]
$creadList :: ReadS [TestInvokeAuthorizerResponse]
readsPrec :: Int -> ReadS TestInvokeAuthorizerResponse
$creadsPrec :: Int -> ReadS TestInvokeAuthorizerResponse
Prelude.Read, Int -> TestInvokeAuthorizerResponse -> ShowS
[TestInvokeAuthorizerResponse] -> ShowS
TestInvokeAuthorizerResponse -> String
(Int -> TestInvokeAuthorizerResponse -> ShowS)
-> (TestInvokeAuthorizerResponse -> String)
-> ([TestInvokeAuthorizerResponse] -> ShowS)
-> Show TestInvokeAuthorizerResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TestInvokeAuthorizerResponse] -> ShowS
$cshowList :: [TestInvokeAuthorizerResponse] -> ShowS
show :: TestInvokeAuthorizerResponse -> String
$cshow :: TestInvokeAuthorizerResponse -> String
showsPrec :: Int -> TestInvokeAuthorizerResponse -> ShowS
$cshowsPrec :: Int -> TestInvokeAuthorizerResponse -> ShowS
Prelude.Show, (forall x.
TestInvokeAuthorizerResponse -> Rep TestInvokeAuthorizerResponse x)
-> (forall x.
Rep TestInvokeAuthorizerResponse x -> TestInvokeAuthorizerResponse)
-> Generic TestInvokeAuthorizerResponse
forall x.
Rep TestInvokeAuthorizerResponse x -> TestInvokeAuthorizerResponse
forall x.
TestInvokeAuthorizerResponse -> Rep TestInvokeAuthorizerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TestInvokeAuthorizerResponse x -> TestInvokeAuthorizerResponse
$cfrom :: forall x.
TestInvokeAuthorizerResponse -> Rep TestInvokeAuthorizerResponse x
Prelude.Generic)
newTestInvokeAuthorizerResponse ::
Prelude.Int ->
TestInvokeAuthorizerResponse
newTestInvokeAuthorizerResponse :: Int -> TestInvokeAuthorizerResponse
newTestInvokeAuthorizerResponse Int
pHttpStatus_ =
TestInvokeAuthorizerResponse' :: Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe (HashMap Text [Text])
-> Maybe (HashMap Text Text)
-> Maybe Int
-> Maybe Text
-> Int
-> TestInvokeAuthorizerResponse
TestInvokeAuthorizerResponse'
{ $sel:log:TestInvokeAuthorizerResponse' :: Maybe Text
log =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:principalId:TestInvokeAuthorizerResponse' :: Maybe Text
principalId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:latency:TestInvokeAuthorizerResponse' :: Maybe Integer
latency = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:authorization:TestInvokeAuthorizerResponse' :: Maybe (HashMap Text [Text])
authorization = Maybe (HashMap Text [Text])
forall a. Maybe a
Prelude.Nothing,
$sel:claims:TestInvokeAuthorizerResponse' :: Maybe (HashMap Text Text)
claims = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:clientStatus:TestInvokeAuthorizerResponse' :: Maybe Int
clientStatus = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:policy:TestInvokeAuthorizerResponse' :: Maybe Text
policy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:TestInvokeAuthorizerResponse' :: Int
httpStatus = Int
pHttpStatus_
}
testInvokeAuthorizerResponse_log :: Lens.Lens' TestInvokeAuthorizerResponse (Prelude.Maybe Prelude.Text)
testInvokeAuthorizerResponse_log :: (Maybe Text -> f (Maybe Text))
-> TestInvokeAuthorizerResponse -> f TestInvokeAuthorizerResponse
testInvokeAuthorizerResponse_log = (TestInvokeAuthorizerResponse -> Maybe Text)
-> (TestInvokeAuthorizerResponse
-> Maybe Text -> TestInvokeAuthorizerResponse)
-> Lens
TestInvokeAuthorizerResponse
TestInvokeAuthorizerResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizerResponse' {Maybe Text
log :: Maybe Text
$sel:log:TestInvokeAuthorizerResponse' :: TestInvokeAuthorizerResponse -> Maybe Text
log} -> Maybe Text
log) (\s :: TestInvokeAuthorizerResponse
s@TestInvokeAuthorizerResponse' {} Maybe Text
a -> TestInvokeAuthorizerResponse
s {$sel:log:TestInvokeAuthorizerResponse' :: Maybe Text
log = Maybe Text
a} :: TestInvokeAuthorizerResponse)
testInvokeAuthorizerResponse_principalId :: Lens.Lens' TestInvokeAuthorizerResponse (Prelude.Maybe Prelude.Text)
testInvokeAuthorizerResponse_principalId :: (Maybe Text -> f (Maybe Text))
-> TestInvokeAuthorizerResponse -> f TestInvokeAuthorizerResponse
testInvokeAuthorizerResponse_principalId = (TestInvokeAuthorizerResponse -> Maybe Text)
-> (TestInvokeAuthorizerResponse
-> Maybe Text -> TestInvokeAuthorizerResponse)
-> Lens
TestInvokeAuthorizerResponse
TestInvokeAuthorizerResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizerResponse' {Maybe Text
principalId :: Maybe Text
$sel:principalId:TestInvokeAuthorizerResponse' :: TestInvokeAuthorizerResponse -> Maybe Text
principalId} -> Maybe Text
principalId) (\s :: TestInvokeAuthorizerResponse
s@TestInvokeAuthorizerResponse' {} Maybe Text
a -> TestInvokeAuthorizerResponse
s {$sel:principalId:TestInvokeAuthorizerResponse' :: Maybe Text
principalId = Maybe Text
a} :: TestInvokeAuthorizerResponse)
testInvokeAuthorizerResponse_latency :: Lens.Lens' TestInvokeAuthorizerResponse (Prelude.Maybe Prelude.Integer)
testInvokeAuthorizerResponse_latency :: (Maybe Integer -> f (Maybe Integer))
-> TestInvokeAuthorizerResponse -> f TestInvokeAuthorizerResponse
testInvokeAuthorizerResponse_latency = (TestInvokeAuthorizerResponse -> Maybe Integer)
-> (TestInvokeAuthorizerResponse
-> Maybe Integer -> TestInvokeAuthorizerResponse)
-> Lens
TestInvokeAuthorizerResponse
TestInvokeAuthorizerResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizerResponse' {Maybe Integer
latency :: Maybe Integer
$sel:latency:TestInvokeAuthorizerResponse' :: TestInvokeAuthorizerResponse -> Maybe Integer
latency} -> Maybe Integer
latency) (\s :: TestInvokeAuthorizerResponse
s@TestInvokeAuthorizerResponse' {} Maybe Integer
a -> TestInvokeAuthorizerResponse
s {$sel:latency:TestInvokeAuthorizerResponse' :: Maybe Integer
latency = Maybe Integer
a} :: TestInvokeAuthorizerResponse)
testInvokeAuthorizerResponse_authorization :: Lens.Lens' TestInvokeAuthorizerResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]))
testInvokeAuthorizerResponse_authorization :: (Maybe (HashMap Text [Text]) -> f (Maybe (HashMap Text [Text])))
-> TestInvokeAuthorizerResponse -> f TestInvokeAuthorizerResponse
testInvokeAuthorizerResponse_authorization = (TestInvokeAuthorizerResponse -> Maybe (HashMap Text [Text]))
-> (TestInvokeAuthorizerResponse
-> Maybe (HashMap Text [Text]) -> TestInvokeAuthorizerResponse)
-> Lens
TestInvokeAuthorizerResponse
TestInvokeAuthorizerResponse
(Maybe (HashMap Text [Text]))
(Maybe (HashMap Text [Text]))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizerResponse' {Maybe (HashMap Text [Text])
authorization :: Maybe (HashMap Text [Text])
$sel:authorization:TestInvokeAuthorizerResponse' :: TestInvokeAuthorizerResponse -> Maybe (HashMap Text [Text])
authorization} -> Maybe (HashMap Text [Text])
authorization) (\s :: TestInvokeAuthorizerResponse
s@TestInvokeAuthorizerResponse' {} Maybe (HashMap Text [Text])
a -> TestInvokeAuthorizerResponse
s {$sel:authorization:TestInvokeAuthorizerResponse' :: Maybe (HashMap Text [Text])
authorization = Maybe (HashMap Text [Text])
a} :: TestInvokeAuthorizerResponse) ((Maybe (HashMap Text [Text]) -> f (Maybe (HashMap Text [Text])))
-> TestInvokeAuthorizerResponse -> f TestInvokeAuthorizerResponse)
-> ((Maybe (HashMap Text [Text])
-> f (Maybe (HashMap Text [Text])))
-> Maybe (HashMap Text [Text]) -> f (Maybe (HashMap Text [Text])))
-> (Maybe (HashMap Text [Text]) -> f (Maybe (HashMap Text [Text])))
-> TestInvokeAuthorizerResponse
-> f TestInvokeAuthorizerResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text [Text])
(HashMap Text [Text])
(HashMap Text [Text])
(HashMap Text [Text])
-> Iso
(Maybe (HashMap Text [Text]))
(Maybe (HashMap Text [Text]))
(Maybe (HashMap Text [Text]))
(Maybe (HashMap Text [Text]))
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
(HashMap Text [Text])
(HashMap Text [Text])
(HashMap Text [Text])
(HashMap Text [Text])
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
testInvokeAuthorizerResponse_claims :: Lens.Lens' TestInvokeAuthorizerResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
testInvokeAuthorizerResponse_claims :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> TestInvokeAuthorizerResponse -> f TestInvokeAuthorizerResponse
testInvokeAuthorizerResponse_claims = (TestInvokeAuthorizerResponse -> Maybe (HashMap Text Text))
-> (TestInvokeAuthorizerResponse
-> Maybe (HashMap Text Text) -> TestInvokeAuthorizerResponse)
-> Lens
TestInvokeAuthorizerResponse
TestInvokeAuthorizerResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizerResponse' {Maybe (HashMap Text Text)
claims :: Maybe (HashMap Text Text)
$sel:claims:TestInvokeAuthorizerResponse' :: TestInvokeAuthorizerResponse -> Maybe (HashMap Text Text)
claims} -> Maybe (HashMap Text Text)
claims) (\s :: TestInvokeAuthorizerResponse
s@TestInvokeAuthorizerResponse' {} Maybe (HashMap Text Text)
a -> TestInvokeAuthorizerResponse
s {$sel:claims:TestInvokeAuthorizerResponse' :: Maybe (HashMap Text Text)
claims = Maybe (HashMap Text Text)
a} :: TestInvokeAuthorizerResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> TestInvokeAuthorizerResponse -> f TestInvokeAuthorizerResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> TestInvokeAuthorizerResponse
-> f TestInvokeAuthorizerResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
testInvokeAuthorizerResponse_clientStatus :: Lens.Lens' TestInvokeAuthorizerResponse (Prelude.Maybe Prelude.Int)
testInvokeAuthorizerResponse_clientStatus :: (Maybe Int -> f (Maybe Int))
-> TestInvokeAuthorizerResponse -> f TestInvokeAuthorizerResponse
testInvokeAuthorizerResponse_clientStatus = (TestInvokeAuthorizerResponse -> Maybe Int)
-> (TestInvokeAuthorizerResponse
-> Maybe Int -> TestInvokeAuthorizerResponse)
-> Lens
TestInvokeAuthorizerResponse
TestInvokeAuthorizerResponse
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizerResponse' {Maybe Int
clientStatus :: Maybe Int
$sel:clientStatus:TestInvokeAuthorizerResponse' :: TestInvokeAuthorizerResponse -> Maybe Int
clientStatus} -> Maybe Int
clientStatus) (\s :: TestInvokeAuthorizerResponse
s@TestInvokeAuthorizerResponse' {} Maybe Int
a -> TestInvokeAuthorizerResponse
s {$sel:clientStatus:TestInvokeAuthorizerResponse' :: Maybe Int
clientStatus = Maybe Int
a} :: TestInvokeAuthorizerResponse)
testInvokeAuthorizerResponse_policy :: Lens.Lens' TestInvokeAuthorizerResponse (Prelude.Maybe Prelude.Text)
testInvokeAuthorizerResponse_policy :: (Maybe Text -> f (Maybe Text))
-> TestInvokeAuthorizerResponse -> f TestInvokeAuthorizerResponse
testInvokeAuthorizerResponse_policy = (TestInvokeAuthorizerResponse -> Maybe Text)
-> (TestInvokeAuthorizerResponse
-> Maybe Text -> TestInvokeAuthorizerResponse)
-> Lens
TestInvokeAuthorizerResponse
TestInvokeAuthorizerResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizerResponse' {Maybe Text
policy :: Maybe Text
$sel:policy:TestInvokeAuthorizerResponse' :: TestInvokeAuthorizerResponse -> Maybe Text
policy} -> Maybe Text
policy) (\s :: TestInvokeAuthorizerResponse
s@TestInvokeAuthorizerResponse' {} Maybe Text
a -> TestInvokeAuthorizerResponse
s {$sel:policy:TestInvokeAuthorizerResponse' :: Maybe Text
policy = Maybe Text
a} :: TestInvokeAuthorizerResponse)
testInvokeAuthorizerResponse_httpStatus :: Lens.Lens' TestInvokeAuthorizerResponse Prelude.Int
testInvokeAuthorizerResponse_httpStatus :: (Int -> f Int)
-> TestInvokeAuthorizerResponse -> f TestInvokeAuthorizerResponse
testInvokeAuthorizerResponse_httpStatus = (TestInvokeAuthorizerResponse -> Int)
-> (TestInvokeAuthorizerResponse
-> Int -> TestInvokeAuthorizerResponse)
-> Lens
TestInvokeAuthorizerResponse TestInvokeAuthorizerResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestInvokeAuthorizerResponse' {Int
httpStatus :: Int
$sel:httpStatus:TestInvokeAuthorizerResponse' :: TestInvokeAuthorizerResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: TestInvokeAuthorizerResponse
s@TestInvokeAuthorizerResponse' {} Int
a -> TestInvokeAuthorizerResponse
s {$sel:httpStatus:TestInvokeAuthorizerResponse' :: Int
httpStatus = Int
a} :: TestInvokeAuthorizerResponse)
instance Prelude.NFData TestInvokeAuthorizerResponse