{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data AwsSsoAuthentication = AwsSsoAuthentication'
{
AwsSsoAuthentication -> Maybe Text
ssoClientId :: Prelude.Maybe Prelude.Text
}
deriving (AwsSsoAuthentication -> AwsSsoAuthentication -> Bool
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]
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
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. 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'
{ $sel:ssoClientId:AwsSsoAuthentication' :: Maybe Text
ssoClientId =
forall a. Maybe a
Prelude.Nothing
}
awsSsoAuthentication_ssoClientId :: Lens.Lens' AwsSsoAuthentication (Prelude.Maybe Prelude.Text)
awsSsoAuthentication_ssoClientId :: Lens' AwsSsoAuthentication (Maybe Text)
awsSsoAuthentication_ssoClientId = 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 Data.FromJSON AwsSsoAuthentication where
parseJSON :: Value -> Parser AwsSsoAuthentication
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AwsSsoAuthentication"
( \Object
x ->
Maybe Text -> AwsSsoAuthentication
AwsSsoAuthentication'
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
"ssoClientId")
)
instance Prelude.Hashable AwsSsoAuthentication where
hashWithSalt :: Int -> AwsSsoAuthentication -> Int
hashWithSalt Int
_salt AwsSsoAuthentication' {Maybe Text
ssoClientId :: Maybe Text
$sel:ssoClientId:AwsSsoAuthentication' :: AwsSsoAuthentication -> Maybe Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ssoClientId
instance Prelude.NFData AwsSsoAuthentication where
rnf :: AwsSsoAuthentication -> ()
rnf AwsSsoAuthentication' {Maybe Text
ssoClientId :: Maybe Text
$sel:ssoClientId:AwsSsoAuthentication' :: AwsSsoAuthentication -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ssoClientId