{-# 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.Grafana.Types.AwsSsoAuthentication where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AwsSsoAuthentication = AwsSsoAuthentication'
{
AwsSsoAuthentication -> Maybe Text
ssoClientId :: Prelude.Maybe Prelude.Text
}
deriving (AwsSsoAuthentication -> AwsSsoAuthentication -> Bool
(AwsSsoAuthentication -> AwsSsoAuthentication -> Bool)
-> (AwsSsoAuthentication -> AwsSsoAuthentication -> Bool)
-> Eq AwsSsoAuthentication
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsSsoAuthentication -> AwsSsoAuthentication -> Bool
$c/= :: AwsSsoAuthentication -> AwsSsoAuthentication -> Bool
== :: AwsSsoAuthentication -> AwsSsoAuthentication -> Bool
$c== :: AwsSsoAuthentication -> AwsSsoAuthentication -> Bool
Prelude.Eq, ReadPrec [AwsSsoAuthentication]
ReadPrec AwsSsoAuthentication
Int -> ReadS AwsSsoAuthentication
ReadS [AwsSsoAuthentication]
(Int -> ReadS AwsSsoAuthentication)
-> ReadS [AwsSsoAuthentication]
-> ReadPrec AwsSsoAuthentication
-> ReadPrec [AwsSsoAuthentication]
-> Read AwsSsoAuthentication
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsSsoAuthentication]
$creadListPrec :: ReadPrec [AwsSsoAuthentication]
readPrec :: ReadPrec AwsSsoAuthentication
$creadPrec :: ReadPrec AwsSsoAuthentication
readList :: ReadS [AwsSsoAuthentication]
$creadList :: ReadS [AwsSsoAuthentication]
readsPrec :: Int -> ReadS AwsSsoAuthentication
$creadsPrec :: Int -> ReadS AwsSsoAuthentication
Prelude.Read, Int -> AwsSsoAuthentication -> ShowS
[AwsSsoAuthentication] -> ShowS
AwsSsoAuthentication -> String
(Int -> AwsSsoAuthentication -> ShowS)
-> (AwsSsoAuthentication -> String)
-> ([AwsSsoAuthentication] -> ShowS)
-> Show AwsSsoAuthentication
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsSsoAuthentication] -> ShowS
$cshowList :: [AwsSsoAuthentication] -> ShowS
show :: AwsSsoAuthentication -> String
$cshow :: AwsSsoAuthentication -> String
showsPrec :: Int -> AwsSsoAuthentication -> ShowS
$cshowsPrec :: Int -> AwsSsoAuthentication -> ShowS
Prelude.Show, (forall x. AwsSsoAuthentication -> Rep AwsSsoAuthentication x)
-> (forall x. Rep AwsSsoAuthentication x -> AwsSsoAuthentication)
-> Generic AwsSsoAuthentication
forall x. Rep AwsSsoAuthentication x -> AwsSsoAuthentication
forall x. AwsSsoAuthentication -> Rep AwsSsoAuthentication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AwsSsoAuthentication x -> AwsSsoAuthentication
$cfrom :: forall x. AwsSsoAuthentication -> Rep AwsSsoAuthentication x
Prelude.Generic)
newAwsSsoAuthentication ::
AwsSsoAuthentication
newAwsSsoAuthentication :: AwsSsoAuthentication
newAwsSsoAuthentication =
AwsSsoAuthentication' :: Maybe Text -> AwsSsoAuthentication
AwsSsoAuthentication'
{ $sel:ssoClientId:AwsSsoAuthentication' :: Maybe Text
ssoClientId =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
awsSsoAuthentication_ssoClientId :: Lens.Lens' AwsSsoAuthentication (Prelude.Maybe Prelude.Text)
awsSsoAuthentication_ssoClientId :: (Maybe Text -> f (Maybe Text))
-> AwsSsoAuthentication -> f AwsSsoAuthentication
awsSsoAuthentication_ssoClientId = (AwsSsoAuthentication -> Maybe Text)
-> (AwsSsoAuthentication -> Maybe Text -> AwsSsoAuthentication)
-> Lens
AwsSsoAuthentication AwsSsoAuthentication (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsSsoAuthentication' {Maybe Text
ssoClientId :: Maybe Text
$sel:ssoClientId:AwsSsoAuthentication' :: AwsSsoAuthentication -> Maybe Text
ssoClientId} -> Maybe Text
ssoClientId) (\s :: AwsSsoAuthentication
s@AwsSsoAuthentication' {} Maybe Text
a -> AwsSsoAuthentication
s {$sel:ssoClientId:AwsSsoAuthentication' :: Maybe Text
ssoClientId = Maybe Text
a} :: AwsSsoAuthentication)
instance Core.FromJSON AwsSsoAuthentication where
parseJSON :: Value -> Parser AwsSsoAuthentication
parseJSON =
String
-> (Object -> Parser AwsSsoAuthentication)
-> Value
-> Parser AwsSsoAuthentication
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AwsSsoAuthentication"
( \Object
x ->
Maybe Text -> AwsSsoAuthentication
AwsSsoAuthentication'
(Maybe Text -> AwsSsoAuthentication)
-> Parser (Maybe Text) -> Parser AwsSsoAuthentication
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
"ssoClientId")
)
instance Prelude.Hashable AwsSsoAuthentication
instance Prelude.NFData AwsSsoAuthentication