module Stratosphere.EMRServerless.Application.IdentityCenterConfigurationProperty (
        IdentityCenterConfigurationProperty(..),
        mkIdentityCenterConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IdentityCenterConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-identitycenterconfiguration.html>
    IdentityCenterConfigurationProperty {IdentityCenterConfigurationProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-identitycenterconfiguration.html#cfn-emrserverless-application-identitycenterconfiguration-identitycenterinstancearn>
                                         IdentityCenterConfigurationProperty -> Maybe (Value Text)
identityCenterInstanceArn :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (IdentityCenterConfigurationProperty
-> IdentityCenterConfigurationProperty -> Bool
(IdentityCenterConfigurationProperty
 -> IdentityCenterConfigurationProperty -> Bool)
-> (IdentityCenterConfigurationProperty
    -> IdentityCenterConfigurationProperty -> Bool)
-> Eq IdentityCenterConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IdentityCenterConfigurationProperty
-> IdentityCenterConfigurationProperty -> Bool
== :: IdentityCenterConfigurationProperty
-> IdentityCenterConfigurationProperty -> Bool
$c/= :: IdentityCenterConfigurationProperty
-> IdentityCenterConfigurationProperty -> Bool
/= :: IdentityCenterConfigurationProperty
-> IdentityCenterConfigurationProperty -> Bool
Prelude.Eq, Int -> IdentityCenterConfigurationProperty -> ShowS
[IdentityCenterConfigurationProperty] -> ShowS
IdentityCenterConfigurationProperty -> String
(Int -> IdentityCenterConfigurationProperty -> ShowS)
-> (IdentityCenterConfigurationProperty -> String)
-> ([IdentityCenterConfigurationProperty] -> ShowS)
-> Show IdentityCenterConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IdentityCenterConfigurationProperty -> ShowS
showsPrec :: Int -> IdentityCenterConfigurationProperty -> ShowS
$cshow :: IdentityCenterConfigurationProperty -> String
show :: IdentityCenterConfigurationProperty -> String
$cshowList :: [IdentityCenterConfigurationProperty] -> ShowS
showList :: [IdentityCenterConfigurationProperty] -> ShowS
Prelude.Show)
mkIdentityCenterConfigurationProperty ::
  IdentityCenterConfigurationProperty
mkIdentityCenterConfigurationProperty :: IdentityCenterConfigurationProperty
mkIdentityCenterConfigurationProperty
  = IdentityCenterConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       identityCenterInstanceArn :: Maybe (Value Text)
identityCenterInstanceArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IdentityCenterConfigurationProperty where
  toResourceProperties :: IdentityCenterConfigurationProperty -> ResourceProperties
toResourceProperties IdentityCenterConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: IdentityCenterConfigurationProperty -> ()
identityCenterInstanceArn :: IdentityCenterConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
identityCenterInstanceArn :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EMRServerless::Application.IdentityCenterConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IdentityCenterInstanceArn"
                              (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
identityCenterInstanceArn])}
instance JSON.ToJSON IdentityCenterConfigurationProperty where
  toJSON :: IdentityCenterConfigurationProperty -> Value
toJSON IdentityCenterConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: IdentityCenterConfigurationProperty -> ()
identityCenterInstanceArn :: IdentityCenterConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
identityCenterInstanceArn :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IdentityCenterInstanceArn"
                 (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
identityCenterInstanceArn]))
instance Property "IdentityCenterInstanceArn" IdentityCenterConfigurationProperty where
  type PropertyType "IdentityCenterInstanceArn" IdentityCenterConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "IdentityCenterInstanceArn" IdentityCenterConfigurationProperty
-> IdentityCenterConfigurationProperty
-> IdentityCenterConfigurationProperty
set PropertyType
  "IdentityCenterInstanceArn" IdentityCenterConfigurationProperty
newValue IdentityCenterConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: IdentityCenterConfigurationProperty -> ()
identityCenterInstanceArn :: IdentityCenterConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
identityCenterInstanceArn :: Maybe (Value Text)
..}
    = IdentityCenterConfigurationProperty
        {identityCenterInstanceArn :: Maybe (Value Text)
identityCenterInstanceArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "IdentityCenterInstanceArn" IdentityCenterConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}