{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoT.Types.AuthorizerDescription
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoT.Types.AuthorizerDescription where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.IoT.Types.AuthorizerStatus
import qualified Amazonka.Prelude as Prelude

-- | The authorizer description.
--
-- /See:/ 'newAuthorizerDescription' smart constructor.
data AuthorizerDescription = AuthorizerDescription'
  { -- | The authorizer ARN.
    AuthorizerDescription -> Maybe Text
authorizerArn :: Prelude.Maybe Prelude.Text,
    -- | The authorizer\'s Lambda function ARN.
    AuthorizerDescription -> Maybe Text
authorizerFunctionArn :: Prelude.Maybe Prelude.Text,
    -- | The authorizer name.
    AuthorizerDescription -> Maybe Text
authorizerName :: Prelude.Maybe Prelude.Text,
    -- | The UNIX timestamp of when the authorizer was created.
    AuthorizerDescription -> Maybe POSIX
creationDate :: Prelude.Maybe Data.POSIX,
    -- | When @true@, the result from the authorizer’s Lambda function is cached
    -- for the time specified in @refreshAfterInSeconds@. The cached result is
    -- used while the device reuses the same HTTP connection.
    AuthorizerDescription -> Maybe Bool
enableCachingForHttp :: Prelude.Maybe Prelude.Bool,
    -- | The UNIX timestamp of when the authorizer was last updated.
    AuthorizerDescription -> Maybe POSIX
lastModifiedDate :: Prelude.Maybe Data.POSIX,
    -- | Specifies whether IoT validates the token signature in an authorization
    -- request.
    AuthorizerDescription -> Maybe Bool
signingDisabled :: Prelude.Maybe Prelude.Bool,
    -- | The status of the authorizer.
    AuthorizerDescription -> Maybe AuthorizerStatus
status :: Prelude.Maybe AuthorizerStatus,
    -- | The key used to extract the token from the HTTP headers.
    AuthorizerDescription -> Maybe Text
tokenKeyName :: Prelude.Maybe Prelude.Text,
    -- | The public keys used to validate the token signature returned by your
    -- custom authentication service.
    AuthorizerDescription -> Maybe (HashMap Text Text)
tokenSigningPublicKeys :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (AuthorizerDescription -> AuthorizerDescription -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AuthorizerDescription -> AuthorizerDescription -> Bool
$c/= :: AuthorizerDescription -> AuthorizerDescription -> Bool
== :: AuthorizerDescription -> AuthorizerDescription -> Bool
$c== :: AuthorizerDescription -> AuthorizerDescription -> Bool
Prelude.Eq, ReadPrec [AuthorizerDescription]
ReadPrec AuthorizerDescription
Int -> ReadS AuthorizerDescription
ReadS [AuthorizerDescription]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AuthorizerDescription]
$creadListPrec :: ReadPrec [AuthorizerDescription]
readPrec :: ReadPrec AuthorizerDescription
$creadPrec :: ReadPrec AuthorizerDescription
readList :: ReadS [AuthorizerDescription]
$creadList :: ReadS [AuthorizerDescription]
readsPrec :: Int -> ReadS AuthorizerDescription
$creadsPrec :: Int -> ReadS AuthorizerDescription
Prelude.Read, Int -> AuthorizerDescription -> ShowS
[AuthorizerDescription] -> ShowS
AuthorizerDescription -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AuthorizerDescription] -> ShowS
$cshowList :: [AuthorizerDescription] -> ShowS
show :: AuthorizerDescription -> String
$cshow :: AuthorizerDescription -> String
showsPrec :: Int -> AuthorizerDescription -> ShowS
$cshowsPrec :: Int -> AuthorizerDescription -> ShowS
Prelude.Show, forall x. Rep AuthorizerDescription x -> AuthorizerDescription
forall x. AuthorizerDescription -> Rep AuthorizerDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AuthorizerDescription x -> AuthorizerDescription
$cfrom :: forall x. AuthorizerDescription -> Rep AuthorizerDescription x
Prelude.Generic)

-- |
-- Create a value of 'AuthorizerDescription' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'authorizerArn', 'authorizerDescription_authorizerArn' - The authorizer ARN.
--
-- 'authorizerFunctionArn', 'authorizerDescription_authorizerFunctionArn' - The authorizer\'s Lambda function ARN.
--
-- 'authorizerName', 'authorizerDescription_authorizerName' - The authorizer name.
--
-- 'creationDate', 'authorizerDescription_creationDate' - The UNIX timestamp of when the authorizer was created.
--
-- 'enableCachingForHttp', 'authorizerDescription_enableCachingForHttp' - When @true@, the result from the authorizer’s Lambda function is cached
-- for the time specified in @refreshAfterInSeconds@. The cached result is
-- used while the device reuses the same HTTP connection.
--
-- 'lastModifiedDate', 'authorizerDescription_lastModifiedDate' - The UNIX timestamp of when the authorizer was last updated.
--
-- 'signingDisabled', 'authorizerDescription_signingDisabled' - Specifies whether IoT validates the token signature in an authorization
-- request.
--
-- 'status', 'authorizerDescription_status' - The status of the authorizer.
--
-- 'tokenKeyName', 'authorizerDescription_tokenKeyName' - The key used to extract the token from the HTTP headers.
--
-- 'tokenSigningPublicKeys', 'authorizerDescription_tokenSigningPublicKeys' - The public keys used to validate the token signature returned by your
-- custom authentication service.
newAuthorizerDescription ::
  AuthorizerDescription
newAuthorizerDescription :: AuthorizerDescription
newAuthorizerDescription =
  AuthorizerDescription'
    { $sel:authorizerArn:AuthorizerDescription' :: Maybe Text
authorizerArn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:authorizerFunctionArn:AuthorizerDescription' :: Maybe Text
authorizerFunctionArn = forall a. Maybe a
Prelude.Nothing,
      $sel:authorizerName:AuthorizerDescription' :: Maybe Text
authorizerName = forall a. Maybe a
Prelude.Nothing,
      $sel:creationDate:AuthorizerDescription' :: Maybe POSIX
creationDate = forall a. Maybe a
Prelude.Nothing,
      $sel:enableCachingForHttp:AuthorizerDescription' :: Maybe Bool
enableCachingForHttp = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedDate:AuthorizerDescription' :: Maybe POSIX
lastModifiedDate = forall a. Maybe a
Prelude.Nothing,
      $sel:signingDisabled:AuthorizerDescription' :: Maybe Bool
signingDisabled = forall a. Maybe a
Prelude.Nothing,
      $sel:status:AuthorizerDescription' :: Maybe AuthorizerStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:tokenKeyName:AuthorizerDescription' :: Maybe Text
tokenKeyName = forall a. Maybe a
Prelude.Nothing,
      $sel:tokenSigningPublicKeys:AuthorizerDescription' :: Maybe (HashMap Text Text)
tokenSigningPublicKeys = forall a. Maybe a
Prelude.Nothing
    }

-- | The authorizer ARN.
authorizerDescription_authorizerArn :: Lens.Lens' AuthorizerDescription (Prelude.Maybe Prelude.Text)
authorizerDescription_authorizerArn :: Lens' AuthorizerDescription (Maybe Text)
authorizerDescription_authorizerArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizerDescription' {Maybe Text
authorizerArn :: Maybe Text
$sel:authorizerArn:AuthorizerDescription' :: AuthorizerDescription -> Maybe Text
authorizerArn} -> Maybe Text
authorizerArn) (\s :: AuthorizerDescription
s@AuthorizerDescription' {} Maybe Text
a -> AuthorizerDescription
s {$sel:authorizerArn:AuthorizerDescription' :: Maybe Text
authorizerArn = Maybe Text
a} :: AuthorizerDescription)

-- | The authorizer\'s Lambda function ARN.
authorizerDescription_authorizerFunctionArn :: Lens.Lens' AuthorizerDescription (Prelude.Maybe Prelude.Text)
authorizerDescription_authorizerFunctionArn :: Lens' AuthorizerDescription (Maybe Text)
authorizerDescription_authorizerFunctionArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizerDescription' {Maybe Text
authorizerFunctionArn :: Maybe Text
$sel:authorizerFunctionArn:AuthorizerDescription' :: AuthorizerDescription -> Maybe Text
authorizerFunctionArn} -> Maybe Text
authorizerFunctionArn) (\s :: AuthorizerDescription
s@AuthorizerDescription' {} Maybe Text
a -> AuthorizerDescription
s {$sel:authorizerFunctionArn:AuthorizerDescription' :: Maybe Text
authorizerFunctionArn = Maybe Text
a} :: AuthorizerDescription)

-- | The authorizer name.
authorizerDescription_authorizerName :: Lens.Lens' AuthorizerDescription (Prelude.Maybe Prelude.Text)
authorizerDescription_authorizerName :: Lens' AuthorizerDescription (Maybe Text)
authorizerDescription_authorizerName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizerDescription' {Maybe Text
authorizerName :: Maybe Text
$sel:authorizerName:AuthorizerDescription' :: AuthorizerDescription -> Maybe Text
authorizerName} -> Maybe Text
authorizerName) (\s :: AuthorizerDescription
s@AuthorizerDescription' {} Maybe Text
a -> AuthorizerDescription
s {$sel:authorizerName:AuthorizerDescription' :: Maybe Text
authorizerName = Maybe Text
a} :: AuthorizerDescription)

-- | The UNIX timestamp of when the authorizer was created.
authorizerDescription_creationDate :: Lens.Lens' AuthorizerDescription (Prelude.Maybe Prelude.UTCTime)
authorizerDescription_creationDate :: Lens' AuthorizerDescription (Maybe UTCTime)
authorizerDescription_creationDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizerDescription' {Maybe POSIX
creationDate :: Maybe POSIX
$sel:creationDate:AuthorizerDescription' :: AuthorizerDescription -> Maybe POSIX
creationDate} -> Maybe POSIX
creationDate) (\s :: AuthorizerDescription
s@AuthorizerDescription' {} Maybe POSIX
a -> AuthorizerDescription
s {$sel:creationDate:AuthorizerDescription' :: Maybe POSIX
creationDate = Maybe POSIX
a} :: AuthorizerDescription) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | When @true@, the result from the authorizer’s Lambda function is cached
-- for the time specified in @refreshAfterInSeconds@. The cached result is
-- used while the device reuses the same HTTP connection.
authorizerDescription_enableCachingForHttp :: Lens.Lens' AuthorizerDescription (Prelude.Maybe Prelude.Bool)
authorizerDescription_enableCachingForHttp :: Lens' AuthorizerDescription (Maybe Bool)
authorizerDescription_enableCachingForHttp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizerDescription' {Maybe Bool
enableCachingForHttp :: Maybe Bool
$sel:enableCachingForHttp:AuthorizerDescription' :: AuthorizerDescription -> Maybe Bool
enableCachingForHttp} -> Maybe Bool
enableCachingForHttp) (\s :: AuthorizerDescription
s@AuthorizerDescription' {} Maybe Bool
a -> AuthorizerDescription
s {$sel:enableCachingForHttp:AuthorizerDescription' :: Maybe Bool
enableCachingForHttp = Maybe Bool
a} :: AuthorizerDescription)

-- | The UNIX timestamp of when the authorizer was last updated.
authorizerDescription_lastModifiedDate :: Lens.Lens' AuthorizerDescription (Prelude.Maybe Prelude.UTCTime)
authorizerDescription_lastModifiedDate :: Lens' AuthorizerDescription (Maybe UTCTime)
authorizerDescription_lastModifiedDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizerDescription' {Maybe POSIX
lastModifiedDate :: Maybe POSIX
$sel:lastModifiedDate:AuthorizerDescription' :: AuthorizerDescription -> Maybe POSIX
lastModifiedDate} -> Maybe POSIX
lastModifiedDate) (\s :: AuthorizerDescription
s@AuthorizerDescription' {} Maybe POSIX
a -> AuthorizerDescription
s {$sel:lastModifiedDate:AuthorizerDescription' :: Maybe POSIX
lastModifiedDate = Maybe POSIX
a} :: AuthorizerDescription) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Specifies whether IoT validates the token signature in an authorization
-- request.
authorizerDescription_signingDisabled :: Lens.Lens' AuthorizerDescription (Prelude.Maybe Prelude.Bool)
authorizerDescription_signingDisabled :: Lens' AuthorizerDescription (Maybe Bool)
authorizerDescription_signingDisabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizerDescription' {Maybe Bool
signingDisabled :: Maybe Bool
$sel:signingDisabled:AuthorizerDescription' :: AuthorizerDescription -> Maybe Bool
signingDisabled} -> Maybe Bool
signingDisabled) (\s :: AuthorizerDescription
s@AuthorizerDescription' {} Maybe Bool
a -> AuthorizerDescription
s {$sel:signingDisabled:AuthorizerDescription' :: Maybe Bool
signingDisabled = Maybe Bool
a} :: AuthorizerDescription)

-- | The status of the authorizer.
authorizerDescription_status :: Lens.Lens' AuthorizerDescription (Prelude.Maybe AuthorizerStatus)
authorizerDescription_status :: Lens' AuthorizerDescription (Maybe AuthorizerStatus)
authorizerDescription_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizerDescription' {Maybe AuthorizerStatus
status :: Maybe AuthorizerStatus
$sel:status:AuthorizerDescription' :: AuthorizerDescription -> Maybe AuthorizerStatus
status} -> Maybe AuthorizerStatus
status) (\s :: AuthorizerDescription
s@AuthorizerDescription' {} Maybe AuthorizerStatus
a -> AuthorizerDescription
s {$sel:status:AuthorizerDescription' :: Maybe AuthorizerStatus
status = Maybe AuthorizerStatus
a} :: AuthorizerDescription)

-- | The key used to extract the token from the HTTP headers.
authorizerDescription_tokenKeyName :: Lens.Lens' AuthorizerDescription (Prelude.Maybe Prelude.Text)
authorizerDescription_tokenKeyName :: Lens' AuthorizerDescription (Maybe Text)
authorizerDescription_tokenKeyName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizerDescription' {Maybe Text
tokenKeyName :: Maybe Text
$sel:tokenKeyName:AuthorizerDescription' :: AuthorizerDescription -> Maybe Text
tokenKeyName} -> Maybe Text
tokenKeyName) (\s :: AuthorizerDescription
s@AuthorizerDescription' {} Maybe Text
a -> AuthorizerDescription
s {$sel:tokenKeyName:AuthorizerDescription' :: Maybe Text
tokenKeyName = Maybe Text
a} :: AuthorizerDescription)

-- | The public keys used to validate the token signature returned by your
-- custom authentication service.
authorizerDescription_tokenSigningPublicKeys :: Lens.Lens' AuthorizerDescription (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
authorizerDescription_tokenSigningPublicKeys :: Lens' AuthorizerDescription (Maybe (HashMap Text Text))
authorizerDescription_tokenSigningPublicKeys = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizerDescription' {Maybe (HashMap Text Text)
tokenSigningPublicKeys :: Maybe (HashMap Text Text)
$sel:tokenSigningPublicKeys:AuthorizerDescription' :: AuthorizerDescription -> Maybe (HashMap Text Text)
tokenSigningPublicKeys} -> Maybe (HashMap Text Text)
tokenSigningPublicKeys) (\s :: AuthorizerDescription
s@AuthorizerDescription' {} Maybe (HashMap Text Text)
a -> AuthorizerDescription
s {$sel:tokenSigningPublicKeys:AuthorizerDescription' :: Maybe (HashMap Text Text)
tokenSigningPublicKeys = Maybe (HashMap Text Text)
a} :: AuthorizerDescription) 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

instance Data.FromJSON AuthorizerDescription where
  parseJSON :: Value -> Parser AuthorizerDescription
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"AuthorizerDescription"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe POSIX
-> Maybe Bool
-> Maybe AuthorizerStatus
-> Maybe Text
-> Maybe (HashMap Text Text)
-> AuthorizerDescription
AuthorizerDescription'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"authorizerArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"authorizerFunctionArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"authorizerName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"creationDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"enableCachingForHttp")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"lastModifiedDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"signingDisabled")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"status")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tokenKeyName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tokenSigningPublicKeys"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable AuthorizerDescription where
  hashWithSalt :: Int -> AuthorizerDescription -> Int
hashWithSalt Int
_salt AuthorizerDescription' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe AuthorizerStatus
tokenSigningPublicKeys :: Maybe (HashMap Text Text)
tokenKeyName :: Maybe Text
status :: Maybe AuthorizerStatus
signingDisabled :: Maybe Bool
lastModifiedDate :: Maybe POSIX
enableCachingForHttp :: Maybe Bool
creationDate :: Maybe POSIX
authorizerName :: Maybe Text
authorizerFunctionArn :: Maybe Text
authorizerArn :: Maybe Text
$sel:tokenSigningPublicKeys:AuthorizerDescription' :: AuthorizerDescription -> Maybe (HashMap Text Text)
$sel:tokenKeyName:AuthorizerDescription' :: AuthorizerDescription -> Maybe Text
$sel:status:AuthorizerDescription' :: AuthorizerDescription -> Maybe AuthorizerStatus
$sel:signingDisabled:AuthorizerDescription' :: AuthorizerDescription -> Maybe Bool
$sel:lastModifiedDate:AuthorizerDescription' :: AuthorizerDescription -> Maybe POSIX
$sel:enableCachingForHttp:AuthorizerDescription' :: AuthorizerDescription -> Maybe Bool
$sel:creationDate:AuthorizerDescription' :: AuthorizerDescription -> Maybe POSIX
$sel:authorizerName:AuthorizerDescription' :: AuthorizerDescription -> Maybe Text
$sel:authorizerFunctionArn:AuthorizerDescription' :: AuthorizerDescription -> Maybe Text
$sel:authorizerArn:AuthorizerDescription' :: AuthorizerDescription -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
authorizerArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
authorizerFunctionArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
authorizerName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
enableCachingForHttp
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
signingDisabled
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AuthorizerStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tokenKeyName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tokenSigningPublicKeys

instance Prelude.NFData AuthorizerDescription where
  rnf :: AuthorizerDescription -> ()
rnf AuthorizerDescription' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe AuthorizerStatus
tokenSigningPublicKeys :: Maybe (HashMap Text Text)
tokenKeyName :: Maybe Text
status :: Maybe AuthorizerStatus
signingDisabled :: Maybe Bool
lastModifiedDate :: Maybe POSIX
enableCachingForHttp :: Maybe Bool
creationDate :: Maybe POSIX
authorizerName :: Maybe Text
authorizerFunctionArn :: Maybe Text
authorizerArn :: Maybe Text
$sel:tokenSigningPublicKeys:AuthorizerDescription' :: AuthorizerDescription -> Maybe (HashMap Text Text)
$sel:tokenKeyName:AuthorizerDescription' :: AuthorizerDescription -> Maybe Text
$sel:status:AuthorizerDescription' :: AuthorizerDescription -> Maybe AuthorizerStatus
$sel:signingDisabled:AuthorizerDescription' :: AuthorizerDescription -> Maybe Bool
$sel:lastModifiedDate:AuthorizerDescription' :: AuthorizerDescription -> Maybe POSIX
$sel:enableCachingForHttp:AuthorizerDescription' :: AuthorizerDescription -> Maybe Bool
$sel:creationDate:AuthorizerDescription' :: AuthorizerDescription -> Maybe POSIX
$sel:authorizerName:AuthorizerDescription' :: AuthorizerDescription -> Maybe Text
$sel:authorizerFunctionArn:AuthorizerDescription' :: AuthorizerDescription -> Maybe Text
$sel:authorizerArn:AuthorizerDescription' :: AuthorizerDescription -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
authorizerArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
authorizerFunctionArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
authorizerName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
enableCachingForHttp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
signingDisabled
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AuthorizerStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tokenKeyName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tokenSigningPublicKeys