{-# 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.ApiGatewayV2.GetAuthorizer
(
GetAuthorizer (..),
newGetAuthorizer,
getAuthorizer_authorizerId,
getAuthorizer_apiId,
GetAuthorizerResponse (..),
newGetAuthorizerResponse,
getAuthorizerResponse_authorizerCredentialsArn,
getAuthorizerResponse_authorizerId,
getAuthorizerResponse_authorizerPayloadFormatVersion,
getAuthorizerResponse_authorizerResultTtlInSeconds,
getAuthorizerResponse_authorizerType,
getAuthorizerResponse_authorizerUri,
getAuthorizerResponse_enableSimpleResponses,
getAuthorizerResponse_identitySource,
getAuthorizerResponse_identityValidationExpression,
getAuthorizerResponse_jwtConfiguration,
getAuthorizerResponse_name,
getAuthorizerResponse_httpStatus,
)
where
import Amazonka.ApiGatewayV2.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetAuthorizer = GetAuthorizer'
{
GetAuthorizer -> Text
authorizerId :: Prelude.Text,
GetAuthorizer -> Text
apiId :: Prelude.Text
}
deriving (GetAuthorizer -> GetAuthorizer -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetAuthorizer -> GetAuthorizer -> Bool
$c/= :: GetAuthorizer -> GetAuthorizer -> Bool
== :: GetAuthorizer -> GetAuthorizer -> Bool
$c== :: GetAuthorizer -> GetAuthorizer -> Bool
Prelude.Eq, ReadPrec [GetAuthorizer]
ReadPrec GetAuthorizer
Int -> ReadS GetAuthorizer
ReadS [GetAuthorizer]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetAuthorizer]
$creadListPrec :: ReadPrec [GetAuthorizer]
readPrec :: ReadPrec GetAuthorizer
$creadPrec :: ReadPrec GetAuthorizer
readList :: ReadS [GetAuthorizer]
$creadList :: ReadS [GetAuthorizer]
readsPrec :: Int -> ReadS GetAuthorizer
$creadsPrec :: Int -> ReadS GetAuthorizer
Prelude.Read, Int -> GetAuthorizer -> ShowS
[GetAuthorizer] -> ShowS
GetAuthorizer -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetAuthorizer] -> ShowS
$cshowList :: [GetAuthorizer] -> ShowS
show :: GetAuthorizer -> String
$cshow :: GetAuthorizer -> String
showsPrec :: Int -> GetAuthorizer -> ShowS
$cshowsPrec :: Int -> GetAuthorizer -> ShowS
Prelude.Show, forall x. Rep GetAuthorizer x -> GetAuthorizer
forall x. GetAuthorizer -> Rep GetAuthorizer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetAuthorizer x -> GetAuthorizer
$cfrom :: forall x. GetAuthorizer -> Rep GetAuthorizer x
Prelude.Generic)
newGetAuthorizer ::
Prelude.Text ->
Prelude.Text ->
GetAuthorizer
newGetAuthorizer :: Text -> Text -> GetAuthorizer
newGetAuthorizer Text
pAuthorizerId_ Text
pApiId_ =
GetAuthorizer'
{ $sel:authorizerId:GetAuthorizer' :: Text
authorizerId = Text
pAuthorizerId_,
$sel:apiId:GetAuthorizer' :: Text
apiId = Text
pApiId_
}
getAuthorizer_authorizerId :: Lens.Lens' GetAuthorizer Prelude.Text
getAuthorizer_authorizerId :: Lens' GetAuthorizer Text
getAuthorizer_authorizerId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizer' {Text
authorizerId :: Text
$sel:authorizerId:GetAuthorizer' :: GetAuthorizer -> Text
authorizerId} -> Text
authorizerId) (\s :: GetAuthorizer
s@GetAuthorizer' {} Text
a -> GetAuthorizer
s {$sel:authorizerId:GetAuthorizer' :: Text
authorizerId = Text
a} :: GetAuthorizer)
getAuthorizer_apiId :: Lens.Lens' GetAuthorizer Prelude.Text
getAuthorizer_apiId :: Lens' GetAuthorizer Text
getAuthorizer_apiId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizer' {Text
apiId :: Text
$sel:apiId:GetAuthorizer' :: GetAuthorizer -> Text
apiId} -> Text
apiId) (\s :: GetAuthorizer
s@GetAuthorizer' {} Text
a -> GetAuthorizer
s {$sel:apiId:GetAuthorizer' :: Text
apiId = Text
a} :: GetAuthorizer)
instance Core.AWSRequest GetAuthorizer where
type
AWSResponse GetAuthorizer =
GetAuthorizerResponse
request :: (Service -> Service) -> GetAuthorizer -> Request GetAuthorizer
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetAuthorizer
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetAuthorizer)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe AuthorizerType
-> Maybe Text
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Int
-> GetAuthorizerResponse
GetAuthorizerResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"authorizerCredentialsArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"authorizerId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"authorizerPayloadFormatVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"authorizerResultTtlInSeconds")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"authorizerType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"authorizerUri")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"enableSimpleResponses")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"identitySource" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"identityValidationExpression")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"jwtConfiguration")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable GetAuthorizer where
hashWithSalt :: Int -> GetAuthorizer -> Int
hashWithSalt Int
_salt GetAuthorizer' {Text
apiId :: Text
authorizerId :: Text
$sel:apiId:GetAuthorizer' :: GetAuthorizer -> Text
$sel:authorizerId:GetAuthorizer' :: GetAuthorizer -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
authorizerId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
apiId
instance Prelude.NFData GetAuthorizer where
rnf :: GetAuthorizer -> ()
rnf GetAuthorizer' {Text
apiId :: Text
authorizerId :: Text
$sel:apiId:GetAuthorizer' :: GetAuthorizer -> Text
$sel:authorizerId:GetAuthorizer' :: GetAuthorizer -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
authorizerId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
apiId
instance Data.ToHeaders GetAuthorizer where
toHeaders :: GetAuthorizer -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath GetAuthorizer where
toPath :: GetAuthorizer -> ByteString
toPath GetAuthorizer' {Text
apiId :: Text
authorizerId :: Text
$sel:apiId:GetAuthorizer' :: GetAuthorizer -> Text
$sel:authorizerId:GetAuthorizer' :: GetAuthorizer -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v2/apis/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
apiId,
ByteString
"/authorizers/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
authorizerId
]
instance Data.ToQuery GetAuthorizer where
toQuery :: GetAuthorizer -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data GetAuthorizerResponse = GetAuthorizerResponse'
{
GetAuthorizerResponse -> Maybe Text
authorizerCredentialsArn :: Prelude.Maybe Prelude.Text,
GetAuthorizerResponse -> Maybe Text
authorizerId :: Prelude.Maybe Prelude.Text,
GetAuthorizerResponse -> Maybe Text
authorizerPayloadFormatVersion :: Prelude.Maybe Prelude.Text,
GetAuthorizerResponse -> Maybe Natural
authorizerResultTtlInSeconds :: Prelude.Maybe Prelude.Natural,
GetAuthorizerResponse -> Maybe AuthorizerType
authorizerType :: Prelude.Maybe AuthorizerType,
GetAuthorizerResponse -> Maybe Text
authorizerUri :: Prelude.Maybe Prelude.Text,
GetAuthorizerResponse -> Maybe Bool
enableSimpleResponses :: Prelude.Maybe Prelude.Bool,
GetAuthorizerResponse -> Maybe [Text]
identitySource :: Prelude.Maybe [Prelude.Text],
GetAuthorizerResponse -> Maybe Text
identityValidationExpression :: Prelude.Maybe Prelude.Text,
GetAuthorizerResponse -> Maybe JWTConfiguration
jwtConfiguration :: Prelude.Maybe JWTConfiguration,
GetAuthorizerResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GetAuthorizerResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetAuthorizerResponse -> GetAuthorizerResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetAuthorizerResponse -> GetAuthorizerResponse -> Bool
$c/= :: GetAuthorizerResponse -> GetAuthorizerResponse -> Bool
== :: GetAuthorizerResponse -> GetAuthorizerResponse -> Bool
$c== :: GetAuthorizerResponse -> GetAuthorizerResponse -> Bool
Prelude.Eq, ReadPrec [GetAuthorizerResponse]
ReadPrec GetAuthorizerResponse
Int -> ReadS GetAuthorizerResponse
ReadS [GetAuthorizerResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetAuthorizerResponse]
$creadListPrec :: ReadPrec [GetAuthorizerResponse]
readPrec :: ReadPrec GetAuthorizerResponse
$creadPrec :: ReadPrec GetAuthorizerResponse
readList :: ReadS [GetAuthorizerResponse]
$creadList :: ReadS [GetAuthorizerResponse]
readsPrec :: Int -> ReadS GetAuthorizerResponse
$creadsPrec :: Int -> ReadS GetAuthorizerResponse
Prelude.Read, Int -> GetAuthorizerResponse -> ShowS
[GetAuthorizerResponse] -> ShowS
GetAuthorizerResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetAuthorizerResponse] -> ShowS
$cshowList :: [GetAuthorizerResponse] -> ShowS
show :: GetAuthorizerResponse -> String
$cshow :: GetAuthorizerResponse -> String
showsPrec :: Int -> GetAuthorizerResponse -> ShowS
$cshowsPrec :: Int -> GetAuthorizerResponse -> ShowS
Prelude.Show, forall x. Rep GetAuthorizerResponse x -> GetAuthorizerResponse
forall x. GetAuthorizerResponse -> Rep GetAuthorizerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetAuthorizerResponse x -> GetAuthorizerResponse
$cfrom :: forall x. GetAuthorizerResponse -> Rep GetAuthorizerResponse x
Prelude.Generic)
newGetAuthorizerResponse ::
Prelude.Int ->
GetAuthorizerResponse
newGetAuthorizerResponse :: Int -> GetAuthorizerResponse
newGetAuthorizerResponse Int
pHttpStatus_ =
GetAuthorizerResponse'
{ $sel:authorizerCredentialsArn:GetAuthorizerResponse' :: Maybe Text
authorizerCredentialsArn =
forall a. Maybe a
Prelude.Nothing,
$sel:authorizerId:GetAuthorizerResponse' :: Maybe Text
authorizerId = forall a. Maybe a
Prelude.Nothing,
$sel:authorizerPayloadFormatVersion:GetAuthorizerResponse' :: Maybe Text
authorizerPayloadFormatVersion = forall a. Maybe a
Prelude.Nothing,
$sel:authorizerResultTtlInSeconds:GetAuthorizerResponse' :: Maybe Natural
authorizerResultTtlInSeconds = forall a. Maybe a
Prelude.Nothing,
$sel:authorizerType:GetAuthorizerResponse' :: Maybe AuthorizerType
authorizerType = forall a. Maybe a
Prelude.Nothing,
$sel:authorizerUri:GetAuthorizerResponse' :: Maybe Text
authorizerUri = forall a. Maybe a
Prelude.Nothing,
$sel:enableSimpleResponses:GetAuthorizerResponse' :: Maybe Bool
enableSimpleResponses = forall a. Maybe a
Prelude.Nothing,
$sel:identitySource:GetAuthorizerResponse' :: Maybe [Text]
identitySource = forall a. Maybe a
Prelude.Nothing,
$sel:identityValidationExpression:GetAuthorizerResponse' :: Maybe Text
identityValidationExpression = forall a. Maybe a
Prelude.Nothing,
$sel:jwtConfiguration:GetAuthorizerResponse' :: Maybe JWTConfiguration
jwtConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:name:GetAuthorizerResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetAuthorizerResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getAuthorizerResponse_authorizerCredentialsArn :: Lens.Lens' GetAuthorizerResponse (Prelude.Maybe Prelude.Text)
getAuthorizerResponse_authorizerCredentialsArn :: Lens' GetAuthorizerResponse (Maybe Text)
getAuthorizerResponse_authorizerCredentialsArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizerResponse' {Maybe Text
authorizerCredentialsArn :: Maybe Text
$sel:authorizerCredentialsArn:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Text
authorizerCredentialsArn} -> Maybe Text
authorizerCredentialsArn) (\s :: GetAuthorizerResponse
s@GetAuthorizerResponse' {} Maybe Text
a -> GetAuthorizerResponse
s {$sel:authorizerCredentialsArn:GetAuthorizerResponse' :: Maybe Text
authorizerCredentialsArn = Maybe Text
a} :: GetAuthorizerResponse)
getAuthorizerResponse_authorizerId :: Lens.Lens' GetAuthorizerResponse (Prelude.Maybe Prelude.Text)
getAuthorizerResponse_authorizerId :: Lens' GetAuthorizerResponse (Maybe Text)
getAuthorizerResponse_authorizerId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizerResponse' {Maybe Text
authorizerId :: Maybe Text
$sel:authorizerId:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Text
authorizerId} -> Maybe Text
authorizerId) (\s :: GetAuthorizerResponse
s@GetAuthorizerResponse' {} Maybe Text
a -> GetAuthorizerResponse
s {$sel:authorizerId:GetAuthorizerResponse' :: Maybe Text
authorizerId = Maybe Text
a} :: GetAuthorizerResponse)
getAuthorizerResponse_authorizerPayloadFormatVersion :: Lens.Lens' GetAuthorizerResponse (Prelude.Maybe Prelude.Text)
getAuthorizerResponse_authorizerPayloadFormatVersion :: Lens' GetAuthorizerResponse (Maybe Text)
getAuthorizerResponse_authorizerPayloadFormatVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizerResponse' {Maybe Text
authorizerPayloadFormatVersion :: Maybe Text
$sel:authorizerPayloadFormatVersion:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Text
authorizerPayloadFormatVersion} -> Maybe Text
authorizerPayloadFormatVersion) (\s :: GetAuthorizerResponse
s@GetAuthorizerResponse' {} Maybe Text
a -> GetAuthorizerResponse
s {$sel:authorizerPayloadFormatVersion:GetAuthorizerResponse' :: Maybe Text
authorizerPayloadFormatVersion = Maybe Text
a} :: GetAuthorizerResponse)
getAuthorizerResponse_authorizerResultTtlInSeconds :: Lens.Lens' GetAuthorizerResponse (Prelude.Maybe Prelude.Natural)
getAuthorizerResponse_authorizerResultTtlInSeconds :: Lens' GetAuthorizerResponse (Maybe Natural)
getAuthorizerResponse_authorizerResultTtlInSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizerResponse' {Maybe Natural
authorizerResultTtlInSeconds :: Maybe Natural
$sel:authorizerResultTtlInSeconds:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Natural
authorizerResultTtlInSeconds} -> Maybe Natural
authorizerResultTtlInSeconds) (\s :: GetAuthorizerResponse
s@GetAuthorizerResponse' {} Maybe Natural
a -> GetAuthorizerResponse
s {$sel:authorizerResultTtlInSeconds:GetAuthorizerResponse' :: Maybe Natural
authorizerResultTtlInSeconds = Maybe Natural
a} :: GetAuthorizerResponse)
getAuthorizerResponse_authorizerType :: Lens.Lens' GetAuthorizerResponse (Prelude.Maybe AuthorizerType)
getAuthorizerResponse_authorizerType :: Lens' GetAuthorizerResponse (Maybe AuthorizerType)
getAuthorizerResponse_authorizerType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizerResponse' {Maybe AuthorizerType
authorizerType :: Maybe AuthorizerType
$sel:authorizerType:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe AuthorizerType
authorizerType} -> Maybe AuthorizerType
authorizerType) (\s :: GetAuthorizerResponse
s@GetAuthorizerResponse' {} Maybe AuthorizerType
a -> GetAuthorizerResponse
s {$sel:authorizerType:GetAuthorizerResponse' :: Maybe AuthorizerType
authorizerType = Maybe AuthorizerType
a} :: GetAuthorizerResponse)
getAuthorizerResponse_authorizerUri :: Lens.Lens' GetAuthorizerResponse (Prelude.Maybe Prelude.Text)
getAuthorizerResponse_authorizerUri :: Lens' GetAuthorizerResponse (Maybe Text)
getAuthorizerResponse_authorizerUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizerResponse' {Maybe Text
authorizerUri :: Maybe Text
$sel:authorizerUri:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Text
authorizerUri} -> Maybe Text
authorizerUri) (\s :: GetAuthorizerResponse
s@GetAuthorizerResponse' {} Maybe Text
a -> GetAuthorizerResponse
s {$sel:authorizerUri:GetAuthorizerResponse' :: Maybe Text
authorizerUri = Maybe Text
a} :: GetAuthorizerResponse)
getAuthorizerResponse_enableSimpleResponses :: Lens.Lens' GetAuthorizerResponse (Prelude.Maybe Prelude.Bool)
getAuthorizerResponse_enableSimpleResponses :: Lens' GetAuthorizerResponse (Maybe Bool)
getAuthorizerResponse_enableSimpleResponses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizerResponse' {Maybe Bool
enableSimpleResponses :: Maybe Bool
$sel:enableSimpleResponses:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Bool
enableSimpleResponses} -> Maybe Bool
enableSimpleResponses) (\s :: GetAuthorizerResponse
s@GetAuthorizerResponse' {} Maybe Bool
a -> GetAuthorizerResponse
s {$sel:enableSimpleResponses:GetAuthorizerResponse' :: Maybe Bool
enableSimpleResponses = Maybe Bool
a} :: GetAuthorizerResponse)
getAuthorizerResponse_identitySource :: Lens.Lens' GetAuthorizerResponse (Prelude.Maybe [Prelude.Text])
getAuthorizerResponse_identitySource :: Lens' GetAuthorizerResponse (Maybe [Text])
getAuthorizerResponse_identitySource = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizerResponse' {Maybe [Text]
identitySource :: Maybe [Text]
$sel:identitySource:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe [Text]
identitySource} -> Maybe [Text]
identitySource) (\s :: GetAuthorizerResponse
s@GetAuthorizerResponse' {} Maybe [Text]
a -> GetAuthorizerResponse
s {$sel:identitySource:GetAuthorizerResponse' :: Maybe [Text]
identitySource = Maybe [Text]
a} :: GetAuthorizerResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getAuthorizerResponse_identityValidationExpression :: Lens.Lens' GetAuthorizerResponse (Prelude.Maybe Prelude.Text)
getAuthorizerResponse_identityValidationExpression :: Lens' GetAuthorizerResponse (Maybe Text)
getAuthorizerResponse_identityValidationExpression = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizerResponse' {Maybe Text
identityValidationExpression :: Maybe Text
$sel:identityValidationExpression:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Text
identityValidationExpression} -> Maybe Text
identityValidationExpression) (\s :: GetAuthorizerResponse
s@GetAuthorizerResponse' {} Maybe Text
a -> GetAuthorizerResponse
s {$sel:identityValidationExpression:GetAuthorizerResponse' :: Maybe Text
identityValidationExpression = Maybe Text
a} :: GetAuthorizerResponse)
getAuthorizerResponse_jwtConfiguration :: Lens.Lens' GetAuthorizerResponse (Prelude.Maybe JWTConfiguration)
getAuthorizerResponse_jwtConfiguration :: Lens' GetAuthorizerResponse (Maybe JWTConfiguration)
getAuthorizerResponse_jwtConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizerResponse' {Maybe JWTConfiguration
jwtConfiguration :: Maybe JWTConfiguration
$sel:jwtConfiguration:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe JWTConfiguration
jwtConfiguration} -> Maybe JWTConfiguration
jwtConfiguration) (\s :: GetAuthorizerResponse
s@GetAuthorizerResponse' {} Maybe JWTConfiguration
a -> GetAuthorizerResponse
s {$sel:jwtConfiguration:GetAuthorizerResponse' :: Maybe JWTConfiguration
jwtConfiguration = Maybe JWTConfiguration
a} :: GetAuthorizerResponse)
getAuthorizerResponse_name :: Lens.Lens' GetAuthorizerResponse (Prelude.Maybe Prelude.Text)
getAuthorizerResponse_name :: Lens' GetAuthorizerResponse (Maybe Text)
getAuthorizerResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizerResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetAuthorizerResponse
s@GetAuthorizerResponse' {} Maybe Text
a -> GetAuthorizerResponse
s {$sel:name:GetAuthorizerResponse' :: Maybe Text
name = Maybe Text
a} :: GetAuthorizerResponse)
getAuthorizerResponse_httpStatus :: Lens.Lens' GetAuthorizerResponse Prelude.Int
getAuthorizerResponse_httpStatus :: Lens' GetAuthorizerResponse Int
getAuthorizerResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAuthorizerResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetAuthorizerResponse' :: GetAuthorizerResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetAuthorizerResponse
s@GetAuthorizerResponse' {} Int
a -> GetAuthorizerResponse
s {$sel:httpStatus:GetAuthorizerResponse' :: Int
httpStatus = Int
a} :: GetAuthorizerResponse)
instance Prelude.NFData GetAuthorizerResponse where
rnf :: GetAuthorizerResponse -> ()
rnf GetAuthorizerResponse' {Int
Maybe Bool
Maybe Natural
Maybe [Text]
Maybe Text
Maybe AuthorizerType
Maybe JWTConfiguration
httpStatus :: Int
name :: Maybe Text
jwtConfiguration :: Maybe JWTConfiguration
identityValidationExpression :: Maybe Text
identitySource :: Maybe [Text]
enableSimpleResponses :: Maybe Bool
authorizerUri :: Maybe Text
authorizerType :: Maybe AuthorizerType
authorizerResultTtlInSeconds :: Maybe Natural
authorizerPayloadFormatVersion :: Maybe Text
authorizerId :: Maybe Text
authorizerCredentialsArn :: Maybe Text
$sel:httpStatus:GetAuthorizerResponse' :: GetAuthorizerResponse -> Int
$sel:name:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Text
$sel:jwtConfiguration:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe JWTConfiguration
$sel:identityValidationExpression:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Text
$sel:identitySource:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe [Text]
$sel:enableSimpleResponses:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Bool
$sel:authorizerUri:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Text
$sel:authorizerType:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe AuthorizerType
$sel:authorizerResultTtlInSeconds:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Natural
$sel:authorizerPayloadFormatVersion:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Text
$sel:authorizerId:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Text
$sel:authorizerCredentialsArn:GetAuthorizerResponse' :: GetAuthorizerResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
authorizerCredentialsArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
authorizerId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
authorizerPayloadFormatVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
authorizerResultTtlInSeconds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AuthorizerType
authorizerType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
authorizerUri
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
enableSimpleResponses
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
identitySource
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
identityValidationExpression
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe JWTConfiguration
jwtConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus