{-# 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.SageMaker.Types.OidcConfigForResponse where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data OidcConfigForResponse = OidcConfigForResponse'
{
OidcConfigForResponse -> Maybe Text
authorizationEndpoint :: Prelude.Maybe Prelude.Text,
OidcConfigForResponse -> Maybe Text
clientId :: Prelude.Maybe Prelude.Text,
OidcConfigForResponse -> Maybe Text
issuer :: Prelude.Maybe Prelude.Text,
OidcConfigForResponse -> Maybe Text
jwksUri :: Prelude.Maybe Prelude.Text,
OidcConfigForResponse -> Maybe Text
logoutEndpoint :: Prelude.Maybe Prelude.Text,
OidcConfigForResponse -> Maybe Text
tokenEndpoint :: Prelude.Maybe Prelude.Text,
OidcConfigForResponse -> Maybe Text
userInfoEndpoint :: Prelude.Maybe Prelude.Text
}
deriving (OidcConfigForResponse -> OidcConfigForResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OidcConfigForResponse -> OidcConfigForResponse -> Bool
$c/= :: OidcConfigForResponse -> OidcConfigForResponse -> Bool
== :: OidcConfigForResponse -> OidcConfigForResponse -> Bool
$c== :: OidcConfigForResponse -> OidcConfigForResponse -> Bool
Prelude.Eq, ReadPrec [OidcConfigForResponse]
ReadPrec OidcConfigForResponse
Int -> ReadS OidcConfigForResponse
ReadS [OidcConfigForResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OidcConfigForResponse]
$creadListPrec :: ReadPrec [OidcConfigForResponse]
readPrec :: ReadPrec OidcConfigForResponse
$creadPrec :: ReadPrec OidcConfigForResponse
readList :: ReadS [OidcConfigForResponse]
$creadList :: ReadS [OidcConfigForResponse]
readsPrec :: Int -> ReadS OidcConfigForResponse
$creadsPrec :: Int -> ReadS OidcConfigForResponse
Prelude.Read, Int -> OidcConfigForResponse -> ShowS
[OidcConfigForResponse] -> ShowS
OidcConfigForResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OidcConfigForResponse] -> ShowS
$cshowList :: [OidcConfigForResponse] -> ShowS
show :: OidcConfigForResponse -> String
$cshow :: OidcConfigForResponse -> String
showsPrec :: Int -> OidcConfigForResponse -> ShowS
$cshowsPrec :: Int -> OidcConfigForResponse -> ShowS
Prelude.Show, forall x. Rep OidcConfigForResponse x -> OidcConfigForResponse
forall x. OidcConfigForResponse -> Rep OidcConfigForResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OidcConfigForResponse x -> OidcConfigForResponse
$cfrom :: forall x. OidcConfigForResponse -> Rep OidcConfigForResponse x
Prelude.Generic)
newOidcConfigForResponse ::
OidcConfigForResponse
newOidcConfigForResponse :: OidcConfigForResponse
newOidcConfigForResponse =
OidcConfigForResponse'
{ $sel:authorizationEndpoint:OidcConfigForResponse' :: Maybe Text
authorizationEndpoint =
forall a. Maybe a
Prelude.Nothing,
$sel:clientId:OidcConfigForResponse' :: Maybe Text
clientId = forall a. Maybe a
Prelude.Nothing,
$sel:issuer:OidcConfigForResponse' :: Maybe Text
issuer = forall a. Maybe a
Prelude.Nothing,
$sel:jwksUri:OidcConfigForResponse' :: Maybe Text
jwksUri = forall a. Maybe a
Prelude.Nothing,
$sel:logoutEndpoint:OidcConfigForResponse' :: Maybe Text
logoutEndpoint = forall a. Maybe a
Prelude.Nothing,
$sel:tokenEndpoint:OidcConfigForResponse' :: Maybe Text
tokenEndpoint = forall a. Maybe a
Prelude.Nothing,
$sel:userInfoEndpoint:OidcConfigForResponse' :: Maybe Text
userInfoEndpoint = forall a. Maybe a
Prelude.Nothing
}
oidcConfigForResponse_authorizationEndpoint :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_authorizationEndpoint :: Lens' OidcConfigForResponse (Maybe Text)
oidcConfigForResponse_authorizationEndpoint = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OidcConfigForResponse' {Maybe Text
authorizationEndpoint :: Maybe Text
$sel:authorizationEndpoint:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
authorizationEndpoint} -> Maybe Text
authorizationEndpoint) (\s :: OidcConfigForResponse
s@OidcConfigForResponse' {} Maybe Text
a -> OidcConfigForResponse
s {$sel:authorizationEndpoint:OidcConfigForResponse' :: Maybe Text
authorizationEndpoint = Maybe Text
a} :: OidcConfigForResponse)
oidcConfigForResponse_clientId :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_clientId :: Lens' OidcConfigForResponse (Maybe Text)
oidcConfigForResponse_clientId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OidcConfigForResponse' {Maybe Text
clientId :: Maybe Text
$sel:clientId:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
clientId} -> Maybe Text
clientId) (\s :: OidcConfigForResponse
s@OidcConfigForResponse' {} Maybe Text
a -> OidcConfigForResponse
s {$sel:clientId:OidcConfigForResponse' :: Maybe Text
clientId = Maybe Text
a} :: OidcConfigForResponse)
oidcConfigForResponse_issuer :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_issuer :: Lens' OidcConfigForResponse (Maybe Text)
oidcConfigForResponse_issuer = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OidcConfigForResponse' {Maybe Text
issuer :: Maybe Text
$sel:issuer:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
issuer} -> Maybe Text
issuer) (\s :: OidcConfigForResponse
s@OidcConfigForResponse' {} Maybe Text
a -> OidcConfigForResponse
s {$sel:issuer:OidcConfigForResponse' :: Maybe Text
issuer = Maybe Text
a} :: OidcConfigForResponse)
oidcConfigForResponse_jwksUri :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_jwksUri :: Lens' OidcConfigForResponse (Maybe Text)
oidcConfigForResponse_jwksUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OidcConfigForResponse' {Maybe Text
jwksUri :: Maybe Text
$sel:jwksUri:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
jwksUri} -> Maybe Text
jwksUri) (\s :: OidcConfigForResponse
s@OidcConfigForResponse' {} Maybe Text
a -> OidcConfigForResponse
s {$sel:jwksUri:OidcConfigForResponse' :: Maybe Text
jwksUri = Maybe Text
a} :: OidcConfigForResponse)
oidcConfigForResponse_logoutEndpoint :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_logoutEndpoint :: Lens' OidcConfigForResponse (Maybe Text)
oidcConfigForResponse_logoutEndpoint = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OidcConfigForResponse' {Maybe Text
logoutEndpoint :: Maybe Text
$sel:logoutEndpoint:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
logoutEndpoint} -> Maybe Text
logoutEndpoint) (\s :: OidcConfigForResponse
s@OidcConfigForResponse' {} Maybe Text
a -> OidcConfigForResponse
s {$sel:logoutEndpoint:OidcConfigForResponse' :: Maybe Text
logoutEndpoint = Maybe Text
a} :: OidcConfigForResponse)
oidcConfigForResponse_tokenEndpoint :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_tokenEndpoint :: Lens' OidcConfigForResponse (Maybe Text)
oidcConfigForResponse_tokenEndpoint = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OidcConfigForResponse' {Maybe Text
tokenEndpoint :: Maybe Text
$sel:tokenEndpoint:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
tokenEndpoint} -> Maybe Text
tokenEndpoint) (\s :: OidcConfigForResponse
s@OidcConfigForResponse' {} Maybe Text
a -> OidcConfigForResponse
s {$sel:tokenEndpoint:OidcConfigForResponse' :: Maybe Text
tokenEndpoint = Maybe Text
a} :: OidcConfigForResponse)
oidcConfigForResponse_userInfoEndpoint :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_userInfoEndpoint :: Lens' OidcConfigForResponse (Maybe Text)
oidcConfigForResponse_userInfoEndpoint = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OidcConfigForResponse' {Maybe Text
userInfoEndpoint :: Maybe Text
$sel:userInfoEndpoint:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
userInfoEndpoint} -> Maybe Text
userInfoEndpoint) (\s :: OidcConfigForResponse
s@OidcConfigForResponse' {} Maybe Text
a -> OidcConfigForResponse
s {$sel:userInfoEndpoint:OidcConfigForResponse' :: Maybe Text
userInfoEndpoint = Maybe Text
a} :: OidcConfigForResponse)
instance Data.FromJSON OidcConfigForResponse where
parseJSON :: Value -> Parser OidcConfigForResponse
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"OidcConfigForResponse"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> OidcConfigForResponse
OidcConfigForResponse'
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
"AuthorizationEndpoint")
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
"ClientId")
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
"Issuer")
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
"JwksUri")
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
"LogoutEndpoint")
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
"TokenEndpoint")
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
"UserInfoEndpoint")
)
instance Prelude.Hashable OidcConfigForResponse where
hashWithSalt :: Int -> OidcConfigForResponse -> Int
hashWithSalt Int
_salt OidcConfigForResponse' {Maybe Text
userInfoEndpoint :: Maybe Text
tokenEndpoint :: Maybe Text
logoutEndpoint :: Maybe Text
jwksUri :: Maybe Text
issuer :: Maybe Text
clientId :: Maybe Text
authorizationEndpoint :: Maybe Text
$sel:userInfoEndpoint:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
$sel:tokenEndpoint:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
$sel:logoutEndpoint:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
$sel:jwksUri:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
$sel:issuer:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
$sel:clientId:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
$sel:authorizationEndpoint:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
authorizationEndpoint
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
clientId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
issuer
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jwksUri
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
logoutEndpoint
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tokenEndpoint
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
userInfoEndpoint
instance Prelude.NFData OidcConfigForResponse where
rnf :: OidcConfigForResponse -> ()
rnf OidcConfigForResponse' {Maybe Text
userInfoEndpoint :: Maybe Text
tokenEndpoint :: Maybe Text
logoutEndpoint :: Maybe Text
jwksUri :: Maybe Text
issuer :: Maybe Text
clientId :: Maybe Text
authorizationEndpoint :: Maybe Text
$sel:userInfoEndpoint:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
$sel:tokenEndpoint:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
$sel:logoutEndpoint:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
$sel:jwksUri:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
$sel:issuer:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
$sel:clientId:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
$sel:authorizationEndpoint:OidcConfigForResponse' :: OidcConfigForResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
authorizationEndpoint
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
clientId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
issuer
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
jwksUri
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
logoutEndpoint
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tokenEndpoint
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
userInfoEndpoint