{-# 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.UpdateAuthorizer
(
UpdateAuthorizer (..),
newUpdateAuthorizer,
updateAuthorizer_authorizerCredentialsArn,
updateAuthorizer_identityValidationExpression,
updateAuthorizer_enableSimpleResponses,
updateAuthorizer_authorizerUri,
updateAuthorizer_authorizerPayloadFormatVersion,
updateAuthorizer_jwtConfiguration,
updateAuthorizer_name,
updateAuthorizer_authorizerResultTtlInSeconds,
updateAuthorizer_identitySource,
updateAuthorizer_authorizerType,
updateAuthorizer_authorizerId,
updateAuthorizer_apiId,
UpdateAuthorizerResponse (..),
newUpdateAuthorizerResponse,
updateAuthorizerResponse_authorizerCredentialsArn,
updateAuthorizerResponse_identityValidationExpression,
updateAuthorizerResponse_enableSimpleResponses,
updateAuthorizerResponse_authorizerUri,
updateAuthorizerResponse_authorizerPayloadFormatVersion,
updateAuthorizerResponse_jwtConfiguration,
updateAuthorizerResponse_authorizerId,
updateAuthorizerResponse_name,
updateAuthorizerResponse_authorizerResultTtlInSeconds,
updateAuthorizerResponse_identitySource,
updateAuthorizerResponse_authorizerType,
updateAuthorizerResponse_httpStatus,
)
where
import Amazonka.ApiGatewayV2.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 UpdateAuthorizer = UpdateAuthorizer'
{
UpdateAuthorizer -> Maybe Text
authorizerCredentialsArn :: Prelude.Maybe Prelude.Text,
UpdateAuthorizer -> Maybe Text
identityValidationExpression :: Prelude.Maybe Prelude.Text,
UpdateAuthorizer -> Maybe Bool
enableSimpleResponses :: Prelude.Maybe Prelude.Bool,
UpdateAuthorizer -> Maybe Text
authorizerUri :: Prelude.Maybe Prelude.Text,
UpdateAuthorizer -> Maybe Text
authorizerPayloadFormatVersion :: Prelude.Maybe Prelude.Text,
UpdateAuthorizer -> Maybe JWTConfiguration
jwtConfiguration :: Prelude.Maybe JWTConfiguration,
UpdateAuthorizer -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateAuthorizer -> Maybe Natural
authorizerResultTtlInSeconds :: Prelude.Maybe Prelude.Natural,
UpdateAuthorizer -> Maybe [Text]
identitySource :: Prelude.Maybe [Prelude.Text],
UpdateAuthorizer -> Maybe AuthorizerType
authorizerType :: Prelude.Maybe AuthorizerType,
UpdateAuthorizer -> Text
authorizerId :: Prelude.Text,
UpdateAuthorizer -> Text
apiId :: Prelude.Text
}
deriving (UpdateAuthorizer -> UpdateAuthorizer -> Bool
(UpdateAuthorizer -> UpdateAuthorizer -> Bool)
-> (UpdateAuthorizer -> UpdateAuthorizer -> Bool)
-> Eq UpdateAuthorizer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAuthorizer -> UpdateAuthorizer -> Bool
$c/= :: UpdateAuthorizer -> UpdateAuthorizer -> Bool
== :: UpdateAuthorizer -> UpdateAuthorizer -> Bool
$c== :: UpdateAuthorizer -> UpdateAuthorizer -> Bool
Prelude.Eq, ReadPrec [UpdateAuthorizer]
ReadPrec UpdateAuthorizer
Int -> ReadS UpdateAuthorizer
ReadS [UpdateAuthorizer]
(Int -> ReadS UpdateAuthorizer)
-> ReadS [UpdateAuthorizer]
-> ReadPrec UpdateAuthorizer
-> ReadPrec [UpdateAuthorizer]
-> Read UpdateAuthorizer
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAuthorizer]
$creadListPrec :: ReadPrec [UpdateAuthorizer]
readPrec :: ReadPrec UpdateAuthorizer
$creadPrec :: ReadPrec UpdateAuthorizer
readList :: ReadS [UpdateAuthorizer]
$creadList :: ReadS [UpdateAuthorizer]
readsPrec :: Int -> ReadS UpdateAuthorizer
$creadsPrec :: Int -> ReadS UpdateAuthorizer
Prelude.Read, Int -> UpdateAuthorizer -> ShowS
[UpdateAuthorizer] -> ShowS
UpdateAuthorizer -> String
(Int -> UpdateAuthorizer -> ShowS)
-> (UpdateAuthorizer -> String)
-> ([UpdateAuthorizer] -> ShowS)
-> Show UpdateAuthorizer
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAuthorizer] -> ShowS
$cshowList :: [UpdateAuthorizer] -> ShowS
show :: UpdateAuthorizer -> String
$cshow :: UpdateAuthorizer -> String
showsPrec :: Int -> UpdateAuthorizer -> ShowS
$cshowsPrec :: Int -> UpdateAuthorizer -> ShowS
Prelude.Show, (forall x. UpdateAuthorizer -> Rep UpdateAuthorizer x)
-> (forall x. Rep UpdateAuthorizer x -> UpdateAuthorizer)
-> Generic UpdateAuthorizer
forall x. Rep UpdateAuthorizer x -> UpdateAuthorizer
forall x. UpdateAuthorizer -> Rep UpdateAuthorizer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateAuthorizer x -> UpdateAuthorizer
$cfrom :: forall x. UpdateAuthorizer -> Rep UpdateAuthorizer x
Prelude.Generic)
newUpdateAuthorizer ::
Prelude.Text ->
Prelude.Text ->
UpdateAuthorizer
newUpdateAuthorizer :: Text -> Text -> UpdateAuthorizer
newUpdateAuthorizer Text
pAuthorizerId_ Text
pApiId_ =
UpdateAuthorizer' :: Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Text
-> Text
-> UpdateAuthorizer
UpdateAuthorizer'
{ $sel:authorizerCredentialsArn:UpdateAuthorizer' :: Maybe Text
authorizerCredentialsArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:identityValidationExpression:UpdateAuthorizer' :: Maybe Text
identityValidationExpression = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:enableSimpleResponses:UpdateAuthorizer' :: Maybe Bool
enableSimpleResponses = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:authorizerUri:UpdateAuthorizer' :: Maybe Text
authorizerUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:authorizerPayloadFormatVersion:UpdateAuthorizer' :: Maybe Text
authorizerPayloadFormatVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jwtConfiguration:UpdateAuthorizer' :: Maybe JWTConfiguration
jwtConfiguration = Maybe JWTConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateAuthorizer' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:authorizerResultTtlInSeconds:UpdateAuthorizer' :: Maybe Natural
authorizerResultTtlInSeconds = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:identitySource:UpdateAuthorizer' :: Maybe [Text]
identitySource = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:authorizerType:UpdateAuthorizer' :: Maybe AuthorizerType
authorizerType = Maybe AuthorizerType
forall a. Maybe a
Prelude.Nothing,
$sel:authorizerId:UpdateAuthorizer' :: Text
authorizerId = Text
pAuthorizerId_,
$sel:apiId:UpdateAuthorizer' :: Text
apiId = Text
pApiId_
}
updateAuthorizer_authorizerCredentialsArn :: Lens.Lens' UpdateAuthorizer (Prelude.Maybe Prelude.Text)
updateAuthorizer_authorizerCredentialsArn :: (Maybe Text -> f (Maybe Text))
-> UpdateAuthorizer -> f UpdateAuthorizer
updateAuthorizer_authorizerCredentialsArn = (UpdateAuthorizer -> Maybe Text)
-> (UpdateAuthorizer -> Maybe Text -> UpdateAuthorizer)
-> Lens UpdateAuthorizer UpdateAuthorizer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizer' {Maybe Text
authorizerCredentialsArn :: Maybe Text
$sel:authorizerCredentialsArn:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
authorizerCredentialsArn} -> Maybe Text
authorizerCredentialsArn) (\s :: UpdateAuthorizer
s@UpdateAuthorizer' {} Maybe Text
a -> UpdateAuthorizer
s {$sel:authorizerCredentialsArn:UpdateAuthorizer' :: Maybe Text
authorizerCredentialsArn = Maybe Text
a} :: UpdateAuthorizer)
updateAuthorizer_identityValidationExpression :: Lens.Lens' UpdateAuthorizer (Prelude.Maybe Prelude.Text)
updateAuthorizer_identityValidationExpression :: (Maybe Text -> f (Maybe Text))
-> UpdateAuthorizer -> f UpdateAuthorizer
updateAuthorizer_identityValidationExpression = (UpdateAuthorizer -> Maybe Text)
-> (UpdateAuthorizer -> Maybe Text -> UpdateAuthorizer)
-> Lens UpdateAuthorizer UpdateAuthorizer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizer' {Maybe Text
identityValidationExpression :: Maybe Text
$sel:identityValidationExpression:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
identityValidationExpression} -> Maybe Text
identityValidationExpression) (\s :: UpdateAuthorizer
s@UpdateAuthorizer' {} Maybe Text
a -> UpdateAuthorizer
s {$sel:identityValidationExpression:UpdateAuthorizer' :: Maybe Text
identityValidationExpression = Maybe Text
a} :: UpdateAuthorizer)
updateAuthorizer_enableSimpleResponses :: Lens.Lens' UpdateAuthorizer (Prelude.Maybe Prelude.Bool)
updateAuthorizer_enableSimpleResponses :: (Maybe Bool -> f (Maybe Bool))
-> UpdateAuthorizer -> f UpdateAuthorizer
updateAuthorizer_enableSimpleResponses = (UpdateAuthorizer -> Maybe Bool)
-> (UpdateAuthorizer -> Maybe Bool -> UpdateAuthorizer)
-> Lens UpdateAuthorizer UpdateAuthorizer (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizer' {Maybe Bool
enableSimpleResponses :: Maybe Bool
$sel:enableSimpleResponses:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Bool
enableSimpleResponses} -> Maybe Bool
enableSimpleResponses) (\s :: UpdateAuthorizer
s@UpdateAuthorizer' {} Maybe Bool
a -> UpdateAuthorizer
s {$sel:enableSimpleResponses:UpdateAuthorizer' :: Maybe Bool
enableSimpleResponses = Maybe Bool
a} :: UpdateAuthorizer)
updateAuthorizer_authorizerUri :: Lens.Lens' UpdateAuthorizer (Prelude.Maybe Prelude.Text)
updateAuthorizer_authorizerUri :: (Maybe Text -> f (Maybe Text))
-> UpdateAuthorizer -> f UpdateAuthorizer
updateAuthorizer_authorizerUri = (UpdateAuthorizer -> Maybe Text)
-> (UpdateAuthorizer -> Maybe Text -> UpdateAuthorizer)
-> Lens UpdateAuthorizer UpdateAuthorizer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizer' {Maybe Text
authorizerUri :: Maybe Text
$sel:authorizerUri:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
authorizerUri} -> Maybe Text
authorizerUri) (\s :: UpdateAuthorizer
s@UpdateAuthorizer' {} Maybe Text
a -> UpdateAuthorizer
s {$sel:authorizerUri:UpdateAuthorizer' :: Maybe Text
authorizerUri = Maybe Text
a} :: UpdateAuthorizer)
updateAuthorizer_authorizerPayloadFormatVersion :: Lens.Lens' UpdateAuthorizer (Prelude.Maybe Prelude.Text)
updateAuthorizer_authorizerPayloadFormatVersion :: (Maybe Text -> f (Maybe Text))
-> UpdateAuthorizer -> f UpdateAuthorizer
updateAuthorizer_authorizerPayloadFormatVersion = (UpdateAuthorizer -> Maybe Text)
-> (UpdateAuthorizer -> Maybe Text -> UpdateAuthorizer)
-> Lens UpdateAuthorizer UpdateAuthorizer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizer' {Maybe Text
authorizerPayloadFormatVersion :: Maybe Text
$sel:authorizerPayloadFormatVersion:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
authorizerPayloadFormatVersion} -> Maybe Text
authorizerPayloadFormatVersion) (\s :: UpdateAuthorizer
s@UpdateAuthorizer' {} Maybe Text
a -> UpdateAuthorizer
s {$sel:authorizerPayloadFormatVersion:UpdateAuthorizer' :: Maybe Text
authorizerPayloadFormatVersion = Maybe Text
a} :: UpdateAuthorizer)
updateAuthorizer_jwtConfiguration :: Lens.Lens' UpdateAuthorizer (Prelude.Maybe JWTConfiguration)
updateAuthorizer_jwtConfiguration :: (Maybe JWTConfiguration -> f (Maybe JWTConfiguration))
-> UpdateAuthorizer -> f UpdateAuthorizer
updateAuthorizer_jwtConfiguration = (UpdateAuthorizer -> Maybe JWTConfiguration)
-> (UpdateAuthorizer -> Maybe JWTConfiguration -> UpdateAuthorizer)
-> Lens
UpdateAuthorizer
UpdateAuthorizer
(Maybe JWTConfiguration)
(Maybe JWTConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizer' {Maybe JWTConfiguration
jwtConfiguration :: Maybe JWTConfiguration
$sel:jwtConfiguration:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe JWTConfiguration
jwtConfiguration} -> Maybe JWTConfiguration
jwtConfiguration) (\s :: UpdateAuthorizer
s@UpdateAuthorizer' {} Maybe JWTConfiguration
a -> UpdateAuthorizer
s {$sel:jwtConfiguration:UpdateAuthorizer' :: Maybe JWTConfiguration
jwtConfiguration = Maybe JWTConfiguration
a} :: UpdateAuthorizer)
updateAuthorizer_name :: Lens.Lens' UpdateAuthorizer (Prelude.Maybe Prelude.Text)
updateAuthorizer_name :: (Maybe Text -> f (Maybe Text))
-> UpdateAuthorizer -> f UpdateAuthorizer
updateAuthorizer_name = (UpdateAuthorizer -> Maybe Text)
-> (UpdateAuthorizer -> Maybe Text -> UpdateAuthorizer)
-> Lens UpdateAuthorizer UpdateAuthorizer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizer' {Maybe Text
name :: Maybe Text
$sel:name:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateAuthorizer
s@UpdateAuthorizer' {} Maybe Text
a -> UpdateAuthorizer
s {$sel:name:UpdateAuthorizer' :: Maybe Text
name = Maybe Text
a} :: UpdateAuthorizer)
updateAuthorizer_authorizerResultTtlInSeconds :: Lens.Lens' UpdateAuthorizer (Prelude.Maybe Prelude.Natural)
updateAuthorizer_authorizerResultTtlInSeconds :: (Maybe Natural -> f (Maybe Natural))
-> UpdateAuthorizer -> f UpdateAuthorizer
updateAuthorizer_authorizerResultTtlInSeconds = (UpdateAuthorizer -> Maybe Natural)
-> (UpdateAuthorizer -> Maybe Natural -> UpdateAuthorizer)
-> Lens
UpdateAuthorizer UpdateAuthorizer (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizer' {Maybe Natural
authorizerResultTtlInSeconds :: Maybe Natural
$sel:authorizerResultTtlInSeconds:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Natural
authorizerResultTtlInSeconds} -> Maybe Natural
authorizerResultTtlInSeconds) (\s :: UpdateAuthorizer
s@UpdateAuthorizer' {} Maybe Natural
a -> UpdateAuthorizer
s {$sel:authorizerResultTtlInSeconds:UpdateAuthorizer' :: Maybe Natural
authorizerResultTtlInSeconds = Maybe Natural
a} :: UpdateAuthorizer)
updateAuthorizer_identitySource :: Lens.Lens' UpdateAuthorizer (Prelude.Maybe [Prelude.Text])
updateAuthorizer_identitySource :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateAuthorizer -> f UpdateAuthorizer
updateAuthorizer_identitySource = (UpdateAuthorizer -> Maybe [Text])
-> (UpdateAuthorizer -> Maybe [Text] -> UpdateAuthorizer)
-> Lens
UpdateAuthorizer UpdateAuthorizer (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizer' {Maybe [Text]
identitySource :: Maybe [Text]
$sel:identitySource:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe [Text]
identitySource} -> Maybe [Text]
identitySource) (\s :: UpdateAuthorizer
s@UpdateAuthorizer' {} Maybe [Text]
a -> UpdateAuthorizer
s {$sel:identitySource:UpdateAuthorizer' :: Maybe [Text]
identitySource = Maybe [Text]
a} :: UpdateAuthorizer) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateAuthorizer -> f UpdateAuthorizer)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateAuthorizer
-> f UpdateAuthorizer
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateAuthorizer_authorizerType :: Lens.Lens' UpdateAuthorizer (Prelude.Maybe AuthorizerType)
updateAuthorizer_authorizerType :: (Maybe AuthorizerType -> f (Maybe AuthorizerType))
-> UpdateAuthorizer -> f UpdateAuthorizer
updateAuthorizer_authorizerType = (UpdateAuthorizer -> Maybe AuthorizerType)
-> (UpdateAuthorizer -> Maybe AuthorizerType -> UpdateAuthorizer)
-> Lens
UpdateAuthorizer
UpdateAuthorizer
(Maybe AuthorizerType)
(Maybe AuthorizerType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizer' {Maybe AuthorizerType
authorizerType :: Maybe AuthorizerType
$sel:authorizerType:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe AuthorizerType
authorizerType} -> Maybe AuthorizerType
authorizerType) (\s :: UpdateAuthorizer
s@UpdateAuthorizer' {} Maybe AuthorizerType
a -> UpdateAuthorizer
s {$sel:authorizerType:UpdateAuthorizer' :: Maybe AuthorizerType
authorizerType = Maybe AuthorizerType
a} :: UpdateAuthorizer)
updateAuthorizer_authorizerId :: Lens.Lens' UpdateAuthorizer Prelude.Text
updateAuthorizer_authorizerId :: (Text -> f Text) -> UpdateAuthorizer -> f UpdateAuthorizer
updateAuthorizer_authorizerId = (UpdateAuthorizer -> Text)
-> (UpdateAuthorizer -> Text -> UpdateAuthorizer)
-> Lens UpdateAuthorizer UpdateAuthorizer Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizer' {Text
authorizerId :: Text
$sel:authorizerId:UpdateAuthorizer' :: UpdateAuthorizer -> Text
authorizerId} -> Text
authorizerId) (\s :: UpdateAuthorizer
s@UpdateAuthorizer' {} Text
a -> UpdateAuthorizer
s {$sel:authorizerId:UpdateAuthorizer' :: Text
authorizerId = Text
a} :: UpdateAuthorizer)
updateAuthorizer_apiId :: Lens.Lens' UpdateAuthorizer Prelude.Text
updateAuthorizer_apiId :: (Text -> f Text) -> UpdateAuthorizer -> f UpdateAuthorizer
updateAuthorizer_apiId = (UpdateAuthorizer -> Text)
-> (UpdateAuthorizer -> Text -> UpdateAuthorizer)
-> Lens UpdateAuthorizer UpdateAuthorizer Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizer' {Text
apiId :: Text
$sel:apiId:UpdateAuthorizer' :: UpdateAuthorizer -> Text
apiId} -> Text
apiId) (\s :: UpdateAuthorizer
s@UpdateAuthorizer' {} Text
a -> UpdateAuthorizer
s {$sel:apiId:UpdateAuthorizer' :: Text
apiId = Text
a} :: UpdateAuthorizer)
instance Core.AWSRequest UpdateAuthorizer where
type
AWSResponse UpdateAuthorizer =
UpdateAuthorizerResponse
request :: UpdateAuthorizer -> Request UpdateAuthorizer
request = Service -> UpdateAuthorizer -> Request UpdateAuthorizer
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.patchJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateAuthorizer
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateAuthorizer)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateAuthorizer))
-> Logger
-> Service
-> Proxy UpdateAuthorizer
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateAuthorizer)))
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 Bool
-> Maybe Text
-> Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse
UpdateAuthorizerResponse'
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
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
"authorizerCredentialsArn")
Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
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
"identityValidationExpression")
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"enableSimpleResponses")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
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
"authorizerUri")
Either
String
(Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
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
"authorizerPayloadFormatVersion")
Either
String
(Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
-> Either String (Maybe JWTConfiguration)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe JWTConfiguration)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"jwtConfiguration")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
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
"authorizerId")
Either
String
(Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
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
"name")
Either
String
(Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe [Text]
-> Maybe AuthorizerType -> Int -> UpdateAuthorizerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"authorizerResultTtlInSeconds")
Either
String
(Maybe [Text]
-> Maybe AuthorizerType -> Int -> UpdateAuthorizerResponse)
-> Either String (Maybe [Text])
-> Either
String (Maybe AuthorizerType -> Int -> UpdateAuthorizerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"identitySource" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe AuthorizerType -> Int -> UpdateAuthorizerResponse)
-> Either String (Maybe AuthorizerType)
-> Either String (Int -> UpdateAuthorizerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe AuthorizerType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"authorizerType")
Either String (Int -> UpdateAuthorizerResponse)
-> Either String Int -> Either String UpdateAuthorizerResponse
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 UpdateAuthorizer
instance Prelude.NFData UpdateAuthorizer
instance Core.ToHeaders UpdateAuthorizer where
toHeaders :: UpdateAuthorizer -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateAuthorizer -> 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.ToJSON UpdateAuthorizer where
toJSON :: UpdateAuthorizer -> Value
toJSON UpdateAuthorizer' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe Text
Maybe AuthorizerType
Maybe JWTConfiguration
Text
apiId :: Text
authorizerId :: Text
authorizerType :: Maybe AuthorizerType
identitySource :: Maybe [Text]
authorizerResultTtlInSeconds :: Maybe Natural
name :: Maybe Text
jwtConfiguration :: Maybe JWTConfiguration
authorizerPayloadFormatVersion :: Maybe Text
authorizerUri :: Maybe Text
enableSimpleResponses :: Maybe Bool
identityValidationExpression :: Maybe Text
authorizerCredentialsArn :: Maybe Text
$sel:apiId:UpdateAuthorizer' :: UpdateAuthorizer -> Text
$sel:authorizerId:UpdateAuthorizer' :: UpdateAuthorizer -> Text
$sel:authorizerType:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe AuthorizerType
$sel:identitySource:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe [Text]
$sel:authorizerResultTtlInSeconds:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Natural
$sel:name:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
$sel:jwtConfiguration:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe JWTConfiguration
$sel:authorizerPayloadFormatVersion:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
$sel:authorizerUri:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
$sel:enableSimpleResponses:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Bool
$sel:identityValidationExpression:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
$sel:authorizerCredentialsArn:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"authorizerCredentialsArn" 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
authorizerCredentialsArn,
(Text
"identityValidationExpression" 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
identityValidationExpression,
(Text
"enableSimpleResponses" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableSimpleResponses,
(Text
"authorizerUri" 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
authorizerUri,
(Text
"authorizerPayloadFormatVersion" 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
authorizerPayloadFormatVersion,
(Text
"jwtConfiguration" Text -> JWTConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(JWTConfiguration -> Pair) -> Maybe JWTConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe JWTConfiguration
jwtConfiguration,
(Text
"name" 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
name,
(Text
"authorizerResultTtlInSeconds" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
authorizerResultTtlInSeconds,
(Text
"identitySource" 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]
identitySource,
(Text
"authorizerType" Text -> AuthorizerType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(AuthorizerType -> Pair) -> Maybe AuthorizerType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AuthorizerType
authorizerType
]
)
instance Core.ToPath UpdateAuthorizer where
toPath :: UpdateAuthorizer -> ByteString
toPath UpdateAuthorizer' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe Text
Maybe AuthorizerType
Maybe JWTConfiguration
Text
apiId :: Text
authorizerId :: Text
authorizerType :: Maybe AuthorizerType
identitySource :: Maybe [Text]
authorizerResultTtlInSeconds :: Maybe Natural
name :: Maybe Text
jwtConfiguration :: Maybe JWTConfiguration
authorizerPayloadFormatVersion :: Maybe Text
authorizerUri :: Maybe Text
enableSimpleResponses :: Maybe Bool
identityValidationExpression :: Maybe Text
authorizerCredentialsArn :: Maybe Text
$sel:apiId:UpdateAuthorizer' :: UpdateAuthorizer -> Text
$sel:authorizerId:UpdateAuthorizer' :: UpdateAuthorizer -> Text
$sel:authorizerType:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe AuthorizerType
$sel:identitySource:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe [Text]
$sel:authorizerResultTtlInSeconds:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Natural
$sel:name:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
$sel:jwtConfiguration:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe JWTConfiguration
$sel:authorizerPayloadFormatVersion:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
$sel:authorizerUri:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
$sel:enableSimpleResponses:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Bool
$sel:identityValidationExpression:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
$sel:authorizerCredentialsArn:UpdateAuthorizer' :: UpdateAuthorizer -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v2/apis/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
apiId,
ByteString
"/authorizers/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
authorizerId
]
instance Core.ToQuery UpdateAuthorizer where
toQuery :: UpdateAuthorizer -> QueryString
toQuery = QueryString -> UpdateAuthorizer -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateAuthorizerResponse = UpdateAuthorizerResponse'
{
UpdateAuthorizerResponse -> Maybe Text
authorizerCredentialsArn :: Prelude.Maybe Prelude.Text,
UpdateAuthorizerResponse -> Maybe Text
identityValidationExpression :: Prelude.Maybe Prelude.Text,
UpdateAuthorizerResponse -> Maybe Bool
enableSimpleResponses :: Prelude.Maybe Prelude.Bool,
UpdateAuthorizerResponse -> Maybe Text
authorizerUri :: Prelude.Maybe Prelude.Text,
UpdateAuthorizerResponse -> Maybe Text
authorizerPayloadFormatVersion :: Prelude.Maybe Prelude.Text,
UpdateAuthorizerResponse -> Maybe JWTConfiguration
jwtConfiguration :: Prelude.Maybe JWTConfiguration,
UpdateAuthorizerResponse -> Maybe Text
authorizerId :: Prelude.Maybe Prelude.Text,
UpdateAuthorizerResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateAuthorizerResponse -> Maybe Natural
authorizerResultTtlInSeconds :: Prelude.Maybe Prelude.Natural,
UpdateAuthorizerResponse -> Maybe [Text]
identitySource :: Prelude.Maybe [Prelude.Text],
UpdateAuthorizerResponse -> Maybe AuthorizerType
authorizerType :: Prelude.Maybe AuthorizerType,
UpdateAuthorizerResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateAuthorizerResponse -> UpdateAuthorizerResponse -> Bool
(UpdateAuthorizerResponse -> UpdateAuthorizerResponse -> Bool)
-> (UpdateAuthorizerResponse -> UpdateAuthorizerResponse -> Bool)
-> Eq UpdateAuthorizerResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAuthorizerResponse -> UpdateAuthorizerResponse -> Bool
$c/= :: UpdateAuthorizerResponse -> UpdateAuthorizerResponse -> Bool
== :: UpdateAuthorizerResponse -> UpdateAuthorizerResponse -> Bool
$c== :: UpdateAuthorizerResponse -> UpdateAuthorizerResponse -> Bool
Prelude.Eq, ReadPrec [UpdateAuthorizerResponse]
ReadPrec UpdateAuthorizerResponse
Int -> ReadS UpdateAuthorizerResponse
ReadS [UpdateAuthorizerResponse]
(Int -> ReadS UpdateAuthorizerResponse)
-> ReadS [UpdateAuthorizerResponse]
-> ReadPrec UpdateAuthorizerResponse
-> ReadPrec [UpdateAuthorizerResponse]
-> Read UpdateAuthorizerResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAuthorizerResponse]
$creadListPrec :: ReadPrec [UpdateAuthorizerResponse]
readPrec :: ReadPrec UpdateAuthorizerResponse
$creadPrec :: ReadPrec UpdateAuthorizerResponse
readList :: ReadS [UpdateAuthorizerResponse]
$creadList :: ReadS [UpdateAuthorizerResponse]
readsPrec :: Int -> ReadS UpdateAuthorizerResponse
$creadsPrec :: Int -> ReadS UpdateAuthorizerResponse
Prelude.Read, Int -> UpdateAuthorizerResponse -> ShowS
[UpdateAuthorizerResponse] -> ShowS
UpdateAuthorizerResponse -> String
(Int -> UpdateAuthorizerResponse -> ShowS)
-> (UpdateAuthorizerResponse -> String)
-> ([UpdateAuthorizerResponse] -> ShowS)
-> Show UpdateAuthorizerResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAuthorizerResponse] -> ShowS
$cshowList :: [UpdateAuthorizerResponse] -> ShowS
show :: UpdateAuthorizerResponse -> String
$cshow :: UpdateAuthorizerResponse -> String
showsPrec :: Int -> UpdateAuthorizerResponse -> ShowS
$cshowsPrec :: Int -> UpdateAuthorizerResponse -> ShowS
Prelude.Show, (forall x.
UpdateAuthorizerResponse -> Rep UpdateAuthorizerResponse x)
-> (forall x.
Rep UpdateAuthorizerResponse x -> UpdateAuthorizerResponse)
-> Generic UpdateAuthorizerResponse
forall x.
Rep UpdateAuthorizerResponse x -> UpdateAuthorizerResponse
forall x.
UpdateAuthorizerResponse -> Rep UpdateAuthorizerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateAuthorizerResponse x -> UpdateAuthorizerResponse
$cfrom :: forall x.
UpdateAuthorizerResponse -> Rep UpdateAuthorizerResponse x
Prelude.Generic)
newUpdateAuthorizerResponse ::
Prelude.Int ->
UpdateAuthorizerResponse
newUpdateAuthorizerResponse :: Int -> UpdateAuthorizerResponse
newUpdateAuthorizerResponse Int
pHttpStatus_ =
UpdateAuthorizerResponse' :: Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe JWTConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe AuthorizerType
-> Int
-> UpdateAuthorizerResponse
UpdateAuthorizerResponse'
{ $sel:authorizerCredentialsArn:UpdateAuthorizerResponse' :: Maybe Text
authorizerCredentialsArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:identityValidationExpression:UpdateAuthorizerResponse' :: Maybe Text
identityValidationExpression = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:enableSimpleResponses:UpdateAuthorizerResponse' :: Maybe Bool
enableSimpleResponses = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:authorizerUri:UpdateAuthorizerResponse' :: Maybe Text
authorizerUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:authorizerPayloadFormatVersion:UpdateAuthorizerResponse' :: Maybe Text
authorizerPayloadFormatVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jwtConfiguration:UpdateAuthorizerResponse' :: Maybe JWTConfiguration
jwtConfiguration = Maybe JWTConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:authorizerId:UpdateAuthorizerResponse' :: Maybe Text
authorizerId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateAuthorizerResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:authorizerResultTtlInSeconds:UpdateAuthorizerResponse' :: Maybe Natural
authorizerResultTtlInSeconds = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:identitySource:UpdateAuthorizerResponse' :: Maybe [Text]
identitySource = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:authorizerType:UpdateAuthorizerResponse' :: Maybe AuthorizerType
authorizerType = Maybe AuthorizerType
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateAuthorizerResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateAuthorizerResponse_authorizerCredentialsArn :: Lens.Lens' UpdateAuthorizerResponse (Prelude.Maybe Prelude.Text)
updateAuthorizerResponse_authorizerCredentialsArn :: (Maybe Text -> f (Maybe Text))
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse
updateAuthorizerResponse_authorizerCredentialsArn = (UpdateAuthorizerResponse -> Maybe Text)
-> (UpdateAuthorizerResponse
-> Maybe Text -> UpdateAuthorizerResponse)
-> Lens
UpdateAuthorizerResponse
UpdateAuthorizerResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizerResponse' {Maybe Text
authorizerCredentialsArn :: Maybe Text
$sel:authorizerCredentialsArn:UpdateAuthorizerResponse' :: UpdateAuthorizerResponse -> Maybe Text
authorizerCredentialsArn} -> Maybe Text
authorizerCredentialsArn) (\s :: UpdateAuthorizerResponse
s@UpdateAuthorizerResponse' {} Maybe Text
a -> UpdateAuthorizerResponse
s {$sel:authorizerCredentialsArn:UpdateAuthorizerResponse' :: Maybe Text
authorizerCredentialsArn = Maybe Text
a} :: UpdateAuthorizerResponse)
updateAuthorizerResponse_identityValidationExpression :: Lens.Lens' UpdateAuthorizerResponse (Prelude.Maybe Prelude.Text)
updateAuthorizerResponse_identityValidationExpression :: (Maybe Text -> f (Maybe Text))
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse
updateAuthorizerResponse_identityValidationExpression = (UpdateAuthorizerResponse -> Maybe Text)
-> (UpdateAuthorizerResponse
-> Maybe Text -> UpdateAuthorizerResponse)
-> Lens
UpdateAuthorizerResponse
UpdateAuthorizerResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizerResponse' {Maybe Text
identityValidationExpression :: Maybe Text
$sel:identityValidationExpression:UpdateAuthorizerResponse' :: UpdateAuthorizerResponse -> Maybe Text
identityValidationExpression} -> Maybe Text
identityValidationExpression) (\s :: UpdateAuthorizerResponse
s@UpdateAuthorizerResponse' {} Maybe Text
a -> UpdateAuthorizerResponse
s {$sel:identityValidationExpression:UpdateAuthorizerResponse' :: Maybe Text
identityValidationExpression = Maybe Text
a} :: UpdateAuthorizerResponse)
updateAuthorizerResponse_enableSimpleResponses :: Lens.Lens' UpdateAuthorizerResponse (Prelude.Maybe Prelude.Bool)
updateAuthorizerResponse_enableSimpleResponses :: (Maybe Bool -> f (Maybe Bool))
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse
updateAuthorizerResponse_enableSimpleResponses = (UpdateAuthorizerResponse -> Maybe Bool)
-> (UpdateAuthorizerResponse
-> Maybe Bool -> UpdateAuthorizerResponse)
-> Lens
UpdateAuthorizerResponse
UpdateAuthorizerResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizerResponse' {Maybe Bool
enableSimpleResponses :: Maybe Bool
$sel:enableSimpleResponses:UpdateAuthorizerResponse' :: UpdateAuthorizerResponse -> Maybe Bool
enableSimpleResponses} -> Maybe Bool
enableSimpleResponses) (\s :: UpdateAuthorizerResponse
s@UpdateAuthorizerResponse' {} Maybe Bool
a -> UpdateAuthorizerResponse
s {$sel:enableSimpleResponses:UpdateAuthorizerResponse' :: Maybe Bool
enableSimpleResponses = Maybe Bool
a} :: UpdateAuthorizerResponse)
updateAuthorizerResponse_authorizerUri :: Lens.Lens' UpdateAuthorizerResponse (Prelude.Maybe Prelude.Text)
updateAuthorizerResponse_authorizerUri :: (Maybe Text -> f (Maybe Text))
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse
updateAuthorizerResponse_authorizerUri = (UpdateAuthorizerResponse -> Maybe Text)
-> (UpdateAuthorizerResponse
-> Maybe Text -> UpdateAuthorizerResponse)
-> Lens
UpdateAuthorizerResponse
UpdateAuthorizerResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizerResponse' {Maybe Text
authorizerUri :: Maybe Text
$sel:authorizerUri:UpdateAuthorizerResponse' :: UpdateAuthorizerResponse -> Maybe Text
authorizerUri} -> Maybe Text
authorizerUri) (\s :: UpdateAuthorizerResponse
s@UpdateAuthorizerResponse' {} Maybe Text
a -> UpdateAuthorizerResponse
s {$sel:authorizerUri:UpdateAuthorizerResponse' :: Maybe Text
authorizerUri = Maybe Text
a} :: UpdateAuthorizerResponse)
updateAuthorizerResponse_authorizerPayloadFormatVersion :: Lens.Lens' UpdateAuthorizerResponse (Prelude.Maybe Prelude.Text)
updateAuthorizerResponse_authorizerPayloadFormatVersion :: (Maybe Text -> f (Maybe Text))
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse
updateAuthorizerResponse_authorizerPayloadFormatVersion = (UpdateAuthorizerResponse -> Maybe Text)
-> (UpdateAuthorizerResponse
-> Maybe Text -> UpdateAuthorizerResponse)
-> Lens
UpdateAuthorizerResponse
UpdateAuthorizerResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizerResponse' {Maybe Text
authorizerPayloadFormatVersion :: Maybe Text
$sel:authorizerPayloadFormatVersion:UpdateAuthorizerResponse' :: UpdateAuthorizerResponse -> Maybe Text
authorizerPayloadFormatVersion} -> Maybe Text
authorizerPayloadFormatVersion) (\s :: UpdateAuthorizerResponse
s@UpdateAuthorizerResponse' {} Maybe Text
a -> UpdateAuthorizerResponse
s {$sel:authorizerPayloadFormatVersion:UpdateAuthorizerResponse' :: Maybe Text
authorizerPayloadFormatVersion = Maybe Text
a} :: UpdateAuthorizerResponse)
updateAuthorizerResponse_jwtConfiguration :: Lens.Lens' UpdateAuthorizerResponse (Prelude.Maybe JWTConfiguration)
updateAuthorizerResponse_jwtConfiguration :: (Maybe JWTConfiguration -> f (Maybe JWTConfiguration))
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse
updateAuthorizerResponse_jwtConfiguration = (UpdateAuthorizerResponse -> Maybe JWTConfiguration)
-> (UpdateAuthorizerResponse
-> Maybe JWTConfiguration -> UpdateAuthorizerResponse)
-> Lens
UpdateAuthorizerResponse
UpdateAuthorizerResponse
(Maybe JWTConfiguration)
(Maybe JWTConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizerResponse' {Maybe JWTConfiguration
jwtConfiguration :: Maybe JWTConfiguration
$sel:jwtConfiguration:UpdateAuthorizerResponse' :: UpdateAuthorizerResponse -> Maybe JWTConfiguration
jwtConfiguration} -> Maybe JWTConfiguration
jwtConfiguration) (\s :: UpdateAuthorizerResponse
s@UpdateAuthorizerResponse' {} Maybe JWTConfiguration
a -> UpdateAuthorizerResponse
s {$sel:jwtConfiguration:UpdateAuthorizerResponse' :: Maybe JWTConfiguration
jwtConfiguration = Maybe JWTConfiguration
a} :: UpdateAuthorizerResponse)
updateAuthorizerResponse_authorizerId :: Lens.Lens' UpdateAuthorizerResponse (Prelude.Maybe Prelude.Text)
updateAuthorizerResponse_authorizerId :: (Maybe Text -> f (Maybe Text))
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse
updateAuthorizerResponse_authorizerId = (UpdateAuthorizerResponse -> Maybe Text)
-> (UpdateAuthorizerResponse
-> Maybe Text -> UpdateAuthorizerResponse)
-> Lens
UpdateAuthorizerResponse
UpdateAuthorizerResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizerResponse' {Maybe Text
authorizerId :: Maybe Text
$sel:authorizerId:UpdateAuthorizerResponse' :: UpdateAuthorizerResponse -> Maybe Text
authorizerId} -> Maybe Text
authorizerId) (\s :: UpdateAuthorizerResponse
s@UpdateAuthorizerResponse' {} Maybe Text
a -> UpdateAuthorizerResponse
s {$sel:authorizerId:UpdateAuthorizerResponse' :: Maybe Text
authorizerId = Maybe Text
a} :: UpdateAuthorizerResponse)
updateAuthorizerResponse_name :: Lens.Lens' UpdateAuthorizerResponse (Prelude.Maybe Prelude.Text)
updateAuthorizerResponse_name :: (Maybe Text -> f (Maybe Text))
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse
updateAuthorizerResponse_name = (UpdateAuthorizerResponse -> Maybe Text)
-> (UpdateAuthorizerResponse
-> Maybe Text -> UpdateAuthorizerResponse)
-> Lens
UpdateAuthorizerResponse
UpdateAuthorizerResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizerResponse' {Maybe Text
name :: Maybe Text
$sel:name:UpdateAuthorizerResponse' :: UpdateAuthorizerResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateAuthorizerResponse
s@UpdateAuthorizerResponse' {} Maybe Text
a -> UpdateAuthorizerResponse
s {$sel:name:UpdateAuthorizerResponse' :: Maybe Text
name = Maybe Text
a} :: UpdateAuthorizerResponse)
updateAuthorizerResponse_authorizerResultTtlInSeconds :: Lens.Lens' UpdateAuthorizerResponse (Prelude.Maybe Prelude.Natural)
updateAuthorizerResponse_authorizerResultTtlInSeconds :: (Maybe Natural -> f (Maybe Natural))
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse
updateAuthorizerResponse_authorizerResultTtlInSeconds = (UpdateAuthorizerResponse -> Maybe Natural)
-> (UpdateAuthorizerResponse
-> Maybe Natural -> UpdateAuthorizerResponse)
-> Lens
UpdateAuthorizerResponse
UpdateAuthorizerResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizerResponse' {Maybe Natural
authorizerResultTtlInSeconds :: Maybe Natural
$sel:authorizerResultTtlInSeconds:UpdateAuthorizerResponse' :: UpdateAuthorizerResponse -> Maybe Natural
authorizerResultTtlInSeconds} -> Maybe Natural
authorizerResultTtlInSeconds) (\s :: UpdateAuthorizerResponse
s@UpdateAuthorizerResponse' {} Maybe Natural
a -> UpdateAuthorizerResponse
s {$sel:authorizerResultTtlInSeconds:UpdateAuthorizerResponse' :: Maybe Natural
authorizerResultTtlInSeconds = Maybe Natural
a} :: UpdateAuthorizerResponse)
updateAuthorizerResponse_identitySource :: Lens.Lens' UpdateAuthorizerResponse (Prelude.Maybe [Prelude.Text])
updateAuthorizerResponse_identitySource :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse
updateAuthorizerResponse_identitySource = (UpdateAuthorizerResponse -> Maybe [Text])
-> (UpdateAuthorizerResponse
-> Maybe [Text] -> UpdateAuthorizerResponse)
-> Lens
UpdateAuthorizerResponse
UpdateAuthorizerResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizerResponse' {Maybe [Text]
identitySource :: Maybe [Text]
$sel:identitySource:UpdateAuthorizerResponse' :: UpdateAuthorizerResponse -> Maybe [Text]
identitySource} -> Maybe [Text]
identitySource) (\s :: UpdateAuthorizerResponse
s@UpdateAuthorizerResponse' {} Maybe [Text]
a -> UpdateAuthorizerResponse
s {$sel:identitySource:UpdateAuthorizerResponse' :: Maybe [Text]
identitySource = Maybe [Text]
a} :: UpdateAuthorizerResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateAuthorizerResponse
-> f UpdateAuthorizerResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateAuthorizerResponse_authorizerType :: Lens.Lens' UpdateAuthorizerResponse (Prelude.Maybe AuthorizerType)
updateAuthorizerResponse_authorizerType :: (Maybe AuthorizerType -> f (Maybe AuthorizerType))
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse
updateAuthorizerResponse_authorizerType = (UpdateAuthorizerResponse -> Maybe AuthorizerType)
-> (UpdateAuthorizerResponse
-> Maybe AuthorizerType -> UpdateAuthorizerResponse)
-> Lens
UpdateAuthorizerResponse
UpdateAuthorizerResponse
(Maybe AuthorizerType)
(Maybe AuthorizerType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizerResponse' {Maybe AuthorizerType
authorizerType :: Maybe AuthorizerType
$sel:authorizerType:UpdateAuthorizerResponse' :: UpdateAuthorizerResponse -> Maybe AuthorizerType
authorizerType} -> Maybe AuthorizerType
authorizerType) (\s :: UpdateAuthorizerResponse
s@UpdateAuthorizerResponse' {} Maybe AuthorizerType
a -> UpdateAuthorizerResponse
s {$sel:authorizerType:UpdateAuthorizerResponse' :: Maybe AuthorizerType
authorizerType = Maybe AuthorizerType
a} :: UpdateAuthorizerResponse)
updateAuthorizerResponse_httpStatus :: Lens.Lens' UpdateAuthorizerResponse Prelude.Int
updateAuthorizerResponse_httpStatus :: (Int -> f Int)
-> UpdateAuthorizerResponse -> f UpdateAuthorizerResponse
updateAuthorizerResponse_httpStatus = (UpdateAuthorizerResponse -> Int)
-> (UpdateAuthorizerResponse -> Int -> UpdateAuthorizerResponse)
-> Lens UpdateAuthorizerResponse UpdateAuthorizerResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuthorizerResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateAuthorizerResponse' :: UpdateAuthorizerResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateAuthorizerResponse
s@UpdateAuthorizerResponse' {} Int
a -> UpdateAuthorizerResponse
s {$sel:httpStatus:UpdateAuthorizerResponse' :: Int
httpStatus = Int
a} :: UpdateAuthorizerResponse)
instance Prelude.NFData UpdateAuthorizerResponse