{-# 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 #-}
module Amazonka.AmplifyBackend.Types.BackendAPIAppSyncAuthSettings where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data BackendAPIAppSyncAuthSettings = BackendAPIAppSyncAuthSettings'
{
BackendAPIAppSyncAuthSettings -> Maybe Text
openIDProviderName :: Prelude.Maybe Prelude.Text,
BackendAPIAppSyncAuthSettings -> Maybe Text
openIDClientId :: Prelude.Maybe Prelude.Text,
BackendAPIAppSyncAuthSettings -> Maybe Text
openIDIssueURL :: Prelude.Maybe Prelude.Text,
BackendAPIAppSyncAuthSettings -> Maybe Text
cognitoUserPoolId :: Prelude.Maybe Prelude.Text,
BackendAPIAppSyncAuthSettings -> Maybe Text
openIDAuthTTL :: Prelude.Maybe Prelude.Text,
BackendAPIAppSyncAuthSettings -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
BackendAPIAppSyncAuthSettings -> Maybe Double
expirationTime :: Prelude.Maybe Prelude.Double,
BackendAPIAppSyncAuthSettings -> Maybe Text
openIDIatTTL :: Prelude.Maybe Prelude.Text
}
deriving (BackendAPIAppSyncAuthSettings
-> BackendAPIAppSyncAuthSettings -> Bool
(BackendAPIAppSyncAuthSettings
-> BackendAPIAppSyncAuthSettings -> Bool)
-> (BackendAPIAppSyncAuthSettings
-> BackendAPIAppSyncAuthSettings -> Bool)
-> Eq BackendAPIAppSyncAuthSettings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BackendAPIAppSyncAuthSettings
-> BackendAPIAppSyncAuthSettings -> Bool
$c/= :: BackendAPIAppSyncAuthSettings
-> BackendAPIAppSyncAuthSettings -> Bool
== :: BackendAPIAppSyncAuthSettings
-> BackendAPIAppSyncAuthSettings -> Bool
$c== :: BackendAPIAppSyncAuthSettings
-> BackendAPIAppSyncAuthSettings -> Bool
Prelude.Eq, ReadPrec [BackendAPIAppSyncAuthSettings]
ReadPrec BackendAPIAppSyncAuthSettings
Int -> ReadS BackendAPIAppSyncAuthSettings
ReadS [BackendAPIAppSyncAuthSettings]
(Int -> ReadS BackendAPIAppSyncAuthSettings)
-> ReadS [BackendAPIAppSyncAuthSettings]
-> ReadPrec BackendAPIAppSyncAuthSettings
-> ReadPrec [BackendAPIAppSyncAuthSettings]
-> Read BackendAPIAppSyncAuthSettings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BackendAPIAppSyncAuthSettings]
$creadListPrec :: ReadPrec [BackendAPIAppSyncAuthSettings]
readPrec :: ReadPrec BackendAPIAppSyncAuthSettings
$creadPrec :: ReadPrec BackendAPIAppSyncAuthSettings
readList :: ReadS [BackendAPIAppSyncAuthSettings]
$creadList :: ReadS [BackendAPIAppSyncAuthSettings]
readsPrec :: Int -> ReadS BackendAPIAppSyncAuthSettings
$creadsPrec :: Int -> ReadS BackendAPIAppSyncAuthSettings
Prelude.Read, Int -> BackendAPIAppSyncAuthSettings -> ShowS
[BackendAPIAppSyncAuthSettings] -> ShowS
BackendAPIAppSyncAuthSettings -> String
(Int -> BackendAPIAppSyncAuthSettings -> ShowS)
-> (BackendAPIAppSyncAuthSettings -> String)
-> ([BackendAPIAppSyncAuthSettings] -> ShowS)
-> Show BackendAPIAppSyncAuthSettings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BackendAPIAppSyncAuthSettings] -> ShowS
$cshowList :: [BackendAPIAppSyncAuthSettings] -> ShowS
show :: BackendAPIAppSyncAuthSettings -> String
$cshow :: BackendAPIAppSyncAuthSettings -> String
showsPrec :: Int -> BackendAPIAppSyncAuthSettings -> ShowS
$cshowsPrec :: Int -> BackendAPIAppSyncAuthSettings -> ShowS
Prelude.Show, (forall x.
BackendAPIAppSyncAuthSettings
-> Rep BackendAPIAppSyncAuthSettings x)
-> (forall x.
Rep BackendAPIAppSyncAuthSettings x
-> BackendAPIAppSyncAuthSettings)
-> Generic BackendAPIAppSyncAuthSettings
forall x.
Rep BackendAPIAppSyncAuthSettings x
-> BackendAPIAppSyncAuthSettings
forall x.
BackendAPIAppSyncAuthSettings
-> Rep BackendAPIAppSyncAuthSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BackendAPIAppSyncAuthSettings x
-> BackendAPIAppSyncAuthSettings
$cfrom :: forall x.
BackendAPIAppSyncAuthSettings
-> Rep BackendAPIAppSyncAuthSettings x
Prelude.Generic)
newBackendAPIAppSyncAuthSettings ::
BackendAPIAppSyncAuthSettings
newBackendAPIAppSyncAuthSettings :: BackendAPIAppSyncAuthSettings
newBackendAPIAppSyncAuthSettings =
BackendAPIAppSyncAuthSettings' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Text
-> BackendAPIAppSyncAuthSettings
BackendAPIAppSyncAuthSettings'
{ $sel:openIDProviderName:BackendAPIAppSyncAuthSettings' :: Maybe Text
openIDProviderName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:openIDClientId:BackendAPIAppSyncAuthSettings' :: Maybe Text
openIDClientId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:openIDIssueURL:BackendAPIAppSyncAuthSettings' :: Maybe Text
openIDIssueURL = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cognitoUserPoolId:BackendAPIAppSyncAuthSettings' :: Maybe Text
cognitoUserPoolId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:openIDAuthTTL:BackendAPIAppSyncAuthSettings' :: Maybe Text
openIDAuthTTL = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:BackendAPIAppSyncAuthSettings' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:expirationTime:BackendAPIAppSyncAuthSettings' :: Maybe Double
expirationTime = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:openIDIatTTL:BackendAPIAppSyncAuthSettings' :: Maybe Text
openIDIatTTL = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
backendAPIAppSyncAuthSettings_openIDProviderName :: Lens.Lens' BackendAPIAppSyncAuthSettings (Prelude.Maybe Prelude.Text)
backendAPIAppSyncAuthSettings_openIDProviderName :: (Maybe Text -> f (Maybe Text))
-> BackendAPIAppSyncAuthSettings -> f BackendAPIAppSyncAuthSettings
backendAPIAppSyncAuthSettings_openIDProviderName = (BackendAPIAppSyncAuthSettings -> Maybe Text)
-> (BackendAPIAppSyncAuthSettings
-> Maybe Text -> BackendAPIAppSyncAuthSettings)
-> Lens
BackendAPIAppSyncAuthSettings
BackendAPIAppSyncAuthSettings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BackendAPIAppSyncAuthSettings' {Maybe Text
openIDProviderName :: Maybe Text
$sel:openIDProviderName:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
openIDProviderName} -> Maybe Text
openIDProviderName) (\s :: BackendAPIAppSyncAuthSettings
s@BackendAPIAppSyncAuthSettings' {} Maybe Text
a -> BackendAPIAppSyncAuthSettings
s {$sel:openIDProviderName:BackendAPIAppSyncAuthSettings' :: Maybe Text
openIDProviderName = Maybe Text
a} :: BackendAPIAppSyncAuthSettings)
backendAPIAppSyncAuthSettings_openIDClientId :: Lens.Lens' BackendAPIAppSyncAuthSettings (Prelude.Maybe Prelude.Text)
backendAPIAppSyncAuthSettings_openIDClientId :: (Maybe Text -> f (Maybe Text))
-> BackendAPIAppSyncAuthSettings -> f BackendAPIAppSyncAuthSettings
backendAPIAppSyncAuthSettings_openIDClientId = (BackendAPIAppSyncAuthSettings -> Maybe Text)
-> (BackendAPIAppSyncAuthSettings
-> Maybe Text -> BackendAPIAppSyncAuthSettings)
-> Lens
BackendAPIAppSyncAuthSettings
BackendAPIAppSyncAuthSettings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BackendAPIAppSyncAuthSettings' {Maybe Text
openIDClientId :: Maybe Text
$sel:openIDClientId:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
openIDClientId} -> Maybe Text
openIDClientId) (\s :: BackendAPIAppSyncAuthSettings
s@BackendAPIAppSyncAuthSettings' {} Maybe Text
a -> BackendAPIAppSyncAuthSettings
s {$sel:openIDClientId:BackendAPIAppSyncAuthSettings' :: Maybe Text
openIDClientId = Maybe Text
a} :: BackendAPIAppSyncAuthSettings)
backendAPIAppSyncAuthSettings_openIDIssueURL :: Lens.Lens' BackendAPIAppSyncAuthSettings (Prelude.Maybe Prelude.Text)
backendAPIAppSyncAuthSettings_openIDIssueURL :: (Maybe Text -> f (Maybe Text))
-> BackendAPIAppSyncAuthSettings -> f BackendAPIAppSyncAuthSettings
backendAPIAppSyncAuthSettings_openIDIssueURL = (BackendAPIAppSyncAuthSettings -> Maybe Text)
-> (BackendAPIAppSyncAuthSettings
-> Maybe Text -> BackendAPIAppSyncAuthSettings)
-> Lens
BackendAPIAppSyncAuthSettings
BackendAPIAppSyncAuthSettings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BackendAPIAppSyncAuthSettings' {Maybe Text
openIDIssueURL :: Maybe Text
$sel:openIDIssueURL:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
openIDIssueURL} -> Maybe Text
openIDIssueURL) (\s :: BackendAPIAppSyncAuthSettings
s@BackendAPIAppSyncAuthSettings' {} Maybe Text
a -> BackendAPIAppSyncAuthSettings
s {$sel:openIDIssueURL:BackendAPIAppSyncAuthSettings' :: Maybe Text
openIDIssueURL = Maybe Text
a} :: BackendAPIAppSyncAuthSettings)
backendAPIAppSyncAuthSettings_cognitoUserPoolId :: Lens.Lens' BackendAPIAppSyncAuthSettings (Prelude.Maybe Prelude.Text)
backendAPIAppSyncAuthSettings_cognitoUserPoolId :: (Maybe Text -> f (Maybe Text))
-> BackendAPIAppSyncAuthSettings -> f BackendAPIAppSyncAuthSettings
backendAPIAppSyncAuthSettings_cognitoUserPoolId = (BackendAPIAppSyncAuthSettings -> Maybe Text)
-> (BackendAPIAppSyncAuthSettings
-> Maybe Text -> BackendAPIAppSyncAuthSettings)
-> Lens
BackendAPIAppSyncAuthSettings
BackendAPIAppSyncAuthSettings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BackendAPIAppSyncAuthSettings' {Maybe Text
cognitoUserPoolId :: Maybe Text
$sel:cognitoUserPoolId:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
cognitoUserPoolId} -> Maybe Text
cognitoUserPoolId) (\s :: BackendAPIAppSyncAuthSettings
s@BackendAPIAppSyncAuthSettings' {} Maybe Text
a -> BackendAPIAppSyncAuthSettings
s {$sel:cognitoUserPoolId:BackendAPIAppSyncAuthSettings' :: Maybe Text
cognitoUserPoolId = Maybe Text
a} :: BackendAPIAppSyncAuthSettings)
backendAPIAppSyncAuthSettings_openIDAuthTTL :: Lens.Lens' BackendAPIAppSyncAuthSettings (Prelude.Maybe Prelude.Text)
backendAPIAppSyncAuthSettings_openIDAuthTTL :: (Maybe Text -> f (Maybe Text))
-> BackendAPIAppSyncAuthSettings -> f BackendAPIAppSyncAuthSettings
backendAPIAppSyncAuthSettings_openIDAuthTTL = (BackendAPIAppSyncAuthSettings -> Maybe Text)
-> (BackendAPIAppSyncAuthSettings
-> Maybe Text -> BackendAPIAppSyncAuthSettings)
-> Lens
BackendAPIAppSyncAuthSettings
BackendAPIAppSyncAuthSettings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BackendAPIAppSyncAuthSettings' {Maybe Text
openIDAuthTTL :: Maybe Text
$sel:openIDAuthTTL:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
openIDAuthTTL} -> Maybe Text
openIDAuthTTL) (\s :: BackendAPIAppSyncAuthSettings
s@BackendAPIAppSyncAuthSettings' {} Maybe Text
a -> BackendAPIAppSyncAuthSettings
s {$sel:openIDAuthTTL:BackendAPIAppSyncAuthSettings' :: Maybe Text
openIDAuthTTL = Maybe Text
a} :: BackendAPIAppSyncAuthSettings)
backendAPIAppSyncAuthSettings_description :: Lens.Lens' BackendAPIAppSyncAuthSettings (Prelude.Maybe Prelude.Text)
backendAPIAppSyncAuthSettings_description :: (Maybe Text -> f (Maybe Text))
-> BackendAPIAppSyncAuthSettings -> f BackendAPIAppSyncAuthSettings
backendAPIAppSyncAuthSettings_description = (BackendAPIAppSyncAuthSettings -> Maybe Text)
-> (BackendAPIAppSyncAuthSettings
-> Maybe Text -> BackendAPIAppSyncAuthSettings)
-> Lens
BackendAPIAppSyncAuthSettings
BackendAPIAppSyncAuthSettings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BackendAPIAppSyncAuthSettings' {Maybe Text
description :: Maybe Text
$sel:description:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
description} -> Maybe Text
description) (\s :: BackendAPIAppSyncAuthSettings
s@BackendAPIAppSyncAuthSettings' {} Maybe Text
a -> BackendAPIAppSyncAuthSettings
s {$sel:description:BackendAPIAppSyncAuthSettings' :: Maybe Text
description = Maybe Text
a} :: BackendAPIAppSyncAuthSettings)
backendAPIAppSyncAuthSettings_expirationTime :: Lens.Lens' BackendAPIAppSyncAuthSettings (Prelude.Maybe Prelude.Double)
backendAPIAppSyncAuthSettings_expirationTime :: (Maybe Double -> f (Maybe Double))
-> BackendAPIAppSyncAuthSettings -> f BackendAPIAppSyncAuthSettings
backendAPIAppSyncAuthSettings_expirationTime = (BackendAPIAppSyncAuthSettings -> Maybe Double)
-> (BackendAPIAppSyncAuthSettings
-> Maybe Double -> BackendAPIAppSyncAuthSettings)
-> Lens
BackendAPIAppSyncAuthSettings
BackendAPIAppSyncAuthSettings
(Maybe Double)
(Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BackendAPIAppSyncAuthSettings' {Maybe Double
expirationTime :: Maybe Double
$sel:expirationTime:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Double
expirationTime} -> Maybe Double
expirationTime) (\s :: BackendAPIAppSyncAuthSettings
s@BackendAPIAppSyncAuthSettings' {} Maybe Double
a -> BackendAPIAppSyncAuthSettings
s {$sel:expirationTime:BackendAPIAppSyncAuthSettings' :: Maybe Double
expirationTime = Maybe Double
a} :: BackendAPIAppSyncAuthSettings)
backendAPIAppSyncAuthSettings_openIDIatTTL :: Lens.Lens' BackendAPIAppSyncAuthSettings (Prelude.Maybe Prelude.Text)
backendAPIAppSyncAuthSettings_openIDIatTTL :: (Maybe Text -> f (Maybe Text))
-> BackendAPIAppSyncAuthSettings -> f BackendAPIAppSyncAuthSettings
backendAPIAppSyncAuthSettings_openIDIatTTL = (BackendAPIAppSyncAuthSettings -> Maybe Text)
-> (BackendAPIAppSyncAuthSettings
-> Maybe Text -> BackendAPIAppSyncAuthSettings)
-> Lens
BackendAPIAppSyncAuthSettings
BackendAPIAppSyncAuthSettings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BackendAPIAppSyncAuthSettings' {Maybe Text
openIDIatTTL :: Maybe Text
$sel:openIDIatTTL:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
openIDIatTTL} -> Maybe Text
openIDIatTTL) (\s :: BackendAPIAppSyncAuthSettings
s@BackendAPIAppSyncAuthSettings' {} Maybe Text
a -> BackendAPIAppSyncAuthSettings
s {$sel:openIDIatTTL:BackendAPIAppSyncAuthSettings' :: Maybe Text
openIDIatTTL = Maybe Text
a} :: BackendAPIAppSyncAuthSettings)
instance Core.FromJSON BackendAPIAppSyncAuthSettings where
parseJSON :: Value -> Parser BackendAPIAppSyncAuthSettings
parseJSON =
String
-> (Object -> Parser BackendAPIAppSyncAuthSettings)
-> Value
-> Parser BackendAPIAppSyncAuthSettings
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"BackendAPIAppSyncAuthSettings"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Text
-> BackendAPIAppSyncAuthSettings
BackendAPIAppSyncAuthSettings'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Text
-> BackendAPIAppSyncAuthSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Text
-> BackendAPIAppSyncAuthSettings)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"openIDProviderName")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Text
-> BackendAPIAppSyncAuthSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Text
-> BackendAPIAppSyncAuthSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"openIDClientId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Text
-> BackendAPIAppSyncAuthSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Text
-> BackendAPIAppSyncAuthSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"openIDIssueURL")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Text
-> BackendAPIAppSyncAuthSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Text
-> BackendAPIAppSyncAuthSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"cognitoUserPoolId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe Text
-> BackendAPIAppSyncAuthSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Double -> Maybe Text -> BackendAPIAppSyncAuthSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"openIDAuthTTL")
Parser
(Maybe Text
-> Maybe Double -> Maybe Text -> BackendAPIAppSyncAuthSettings)
-> Parser (Maybe Text)
-> Parser
(Maybe Double -> Maybe Text -> BackendAPIAppSyncAuthSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"description")
Parser
(Maybe Double -> Maybe Text -> BackendAPIAppSyncAuthSettings)
-> Parser (Maybe Double)
-> Parser (Maybe Text -> BackendAPIAppSyncAuthSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"expirationTime")
Parser (Maybe Text -> BackendAPIAppSyncAuthSettings)
-> Parser (Maybe Text) -> Parser BackendAPIAppSyncAuthSettings
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"openIDIatTTL")
)
instance
Prelude.Hashable
BackendAPIAppSyncAuthSettings
instance Prelude.NFData BackendAPIAppSyncAuthSettings
instance Core.ToJSON BackendAPIAppSyncAuthSettings where
toJSON :: BackendAPIAppSyncAuthSettings -> Value
toJSON BackendAPIAppSyncAuthSettings' {Maybe Double
Maybe Text
openIDIatTTL :: Maybe Text
expirationTime :: Maybe Double
description :: Maybe Text
openIDAuthTTL :: Maybe Text
cognitoUserPoolId :: Maybe Text
openIDIssueURL :: Maybe Text
openIDClientId :: Maybe Text
openIDProviderName :: Maybe Text
$sel:openIDIatTTL:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
$sel:expirationTime:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Double
$sel:description:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
$sel:openIDAuthTTL:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
$sel:cognitoUserPoolId:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
$sel:openIDIssueURL:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
$sel:openIDClientId:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
$sel:openIDProviderName:BackendAPIAppSyncAuthSettings' :: BackendAPIAppSyncAuthSettings -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"openIDProviderName" 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
openIDProviderName,
(Text
"openIDClientId" 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
openIDClientId,
(Text
"openIDIssueURL" 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
openIDIssueURL,
(Text
"cognitoUserPoolId" 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
cognitoUserPoolId,
(Text
"openIDAuthTTL" 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
openIDAuthTTL,
(Text
"description" 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
description,
(Text
"expirationTime" Text -> Double -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Double -> Pair) -> Maybe Double -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Double
expirationTime,
(Text
"openIDIatTTL" 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
openIDIatTTL
]
)