{-# 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.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data OidcConfigForResponse = OidcConfigForResponse'
{
OidcConfigForResponse -> Maybe Text
clientId :: Prelude.Maybe Prelude.Text,
OidcConfigForResponse -> Maybe Text
jwksUri :: Prelude.Maybe Prelude.Text,
OidcConfigForResponse -> Maybe Text
userInfoEndpoint :: Prelude.Maybe Prelude.Text,
OidcConfigForResponse -> Maybe Text
authorizationEndpoint :: Prelude.Maybe Prelude.Text,
OidcConfigForResponse -> Maybe Text
tokenEndpoint :: Prelude.Maybe Prelude.Text,
OidcConfigForResponse -> Maybe Text
issuer :: Prelude.Maybe Prelude.Text,
OidcConfigForResponse -> Maybe Text
logoutEndpoint :: Prelude.Maybe Prelude.Text
}
deriving (OidcConfigForResponse -> OidcConfigForResponse -> Bool
(OidcConfigForResponse -> OidcConfigForResponse -> Bool)
-> (OidcConfigForResponse -> OidcConfigForResponse -> Bool)
-> Eq OidcConfigForResponse
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]
(Int -> ReadS OidcConfigForResponse)
-> ReadS [OidcConfigForResponse]
-> ReadPrec OidcConfigForResponse
-> ReadPrec [OidcConfigForResponse]
-> Read 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
(Int -> OidcConfigForResponse -> ShowS)
-> (OidcConfigForResponse -> String)
-> ([OidcConfigForResponse] -> ShowS)
-> Show OidcConfigForResponse
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. OidcConfigForResponse -> Rep OidcConfigForResponse x)
-> (forall x. Rep OidcConfigForResponse x -> OidcConfigForResponse)
-> Generic OidcConfigForResponse
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' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> OidcConfigForResponse
OidcConfigForResponse'
{ $sel:clientId:OidcConfigForResponse' :: Maybe Text
clientId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jwksUri:OidcConfigForResponse' :: Maybe Text
jwksUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:userInfoEndpoint:OidcConfigForResponse' :: Maybe Text
userInfoEndpoint = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:authorizationEndpoint:OidcConfigForResponse' :: Maybe Text
authorizationEndpoint = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tokenEndpoint:OidcConfigForResponse' :: Maybe Text
tokenEndpoint = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:issuer:OidcConfigForResponse' :: Maybe Text
issuer = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:logoutEndpoint:OidcConfigForResponse' :: Maybe Text
logoutEndpoint = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
oidcConfigForResponse_clientId :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_clientId :: (Maybe Text -> f (Maybe Text))
-> OidcConfigForResponse -> f OidcConfigForResponse
oidcConfigForResponse_clientId = (OidcConfigForResponse -> Maybe Text)
-> (OidcConfigForResponse -> Maybe Text -> OidcConfigForResponse)
-> Lens
OidcConfigForResponse
OidcConfigForResponse
(Maybe Text)
(Maybe Text)
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_jwksUri :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_jwksUri :: (Maybe Text -> f (Maybe Text))
-> OidcConfigForResponse -> f OidcConfigForResponse
oidcConfigForResponse_jwksUri = (OidcConfigForResponse -> Maybe Text)
-> (OidcConfigForResponse -> Maybe Text -> OidcConfigForResponse)
-> Lens
OidcConfigForResponse
OidcConfigForResponse
(Maybe Text)
(Maybe Text)
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_userInfoEndpoint :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_userInfoEndpoint :: (Maybe Text -> f (Maybe Text))
-> OidcConfigForResponse -> f OidcConfigForResponse
oidcConfigForResponse_userInfoEndpoint = (OidcConfigForResponse -> Maybe Text)
-> (OidcConfigForResponse -> Maybe Text -> OidcConfigForResponse)
-> Lens
OidcConfigForResponse
OidcConfigForResponse
(Maybe Text)
(Maybe Text)
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)
oidcConfigForResponse_authorizationEndpoint :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_authorizationEndpoint :: (Maybe Text -> f (Maybe Text))
-> OidcConfigForResponse -> f OidcConfigForResponse
oidcConfigForResponse_authorizationEndpoint = (OidcConfigForResponse -> Maybe Text)
-> (OidcConfigForResponse -> Maybe Text -> OidcConfigForResponse)
-> Lens
OidcConfigForResponse
OidcConfigForResponse
(Maybe Text)
(Maybe Text)
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_tokenEndpoint :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_tokenEndpoint :: (Maybe Text -> f (Maybe Text))
-> OidcConfigForResponse -> f OidcConfigForResponse
oidcConfigForResponse_tokenEndpoint = (OidcConfigForResponse -> Maybe Text)
-> (OidcConfigForResponse -> Maybe Text -> OidcConfigForResponse)
-> Lens
OidcConfigForResponse
OidcConfigForResponse
(Maybe Text)
(Maybe Text)
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_issuer :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_issuer :: (Maybe Text -> f (Maybe Text))
-> OidcConfigForResponse -> f OidcConfigForResponse
oidcConfigForResponse_issuer = (OidcConfigForResponse -> Maybe Text)
-> (OidcConfigForResponse -> Maybe Text -> OidcConfigForResponse)
-> Lens
OidcConfigForResponse
OidcConfigForResponse
(Maybe Text)
(Maybe Text)
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_logoutEndpoint :: Lens.Lens' OidcConfigForResponse (Prelude.Maybe Prelude.Text)
oidcConfigForResponse_logoutEndpoint :: (Maybe Text -> f (Maybe Text))
-> OidcConfigForResponse -> f OidcConfigForResponse
oidcConfigForResponse_logoutEndpoint = (OidcConfigForResponse -> Maybe Text)
-> (OidcConfigForResponse -> Maybe Text -> OidcConfigForResponse)
-> Lens
OidcConfigForResponse
OidcConfigForResponse
(Maybe Text)
(Maybe Text)
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)
instance Core.FromJSON OidcConfigForResponse where
parseJSON :: Value -> Parser OidcConfigForResponse
parseJSON =
String
-> (Object -> Parser OidcConfigForResponse)
-> Value
-> Parser OidcConfigForResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"OidcConfigForResponse"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> OidcConfigForResponse
OidcConfigForResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> OidcConfigForResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> OidcConfigForResponse)
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
"ClientId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> OidcConfigForResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> OidcConfigForResponse)
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
"JwksUri")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> OidcConfigForResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> OidcConfigForResponse)
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
"UserInfoEndpoint")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> OidcConfigForResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> Maybe Text -> Maybe Text -> OidcConfigForResponse)
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
"AuthorizationEndpoint")
Parser
(Maybe Text -> Maybe Text -> Maybe Text -> OidcConfigForResponse)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> OidcConfigForResponse)
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
"TokenEndpoint")
Parser (Maybe Text -> Maybe Text -> OidcConfigForResponse)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> OidcConfigForResponse)
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
"Issuer")
Parser (Maybe Text -> OidcConfigForResponse)
-> Parser (Maybe Text) -> Parser OidcConfigForResponse
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
"LogoutEndpoint")
)
instance Prelude.Hashable OidcConfigForResponse
instance Prelude.NFData OidcConfigForResponse