module Stratosphere.HealthLake.FHIRDatastore.IdentityProviderConfigurationProperty (
        IdentityProviderConfigurationProperty(..),
        mkIdentityProviderConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IdentityProviderConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-healthlake-fhirdatastore-identityproviderconfiguration.html>
    IdentityProviderConfigurationProperty {IdentityProviderConfigurationProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-healthlake-fhirdatastore-identityproviderconfiguration.html#cfn-healthlake-fhirdatastore-identityproviderconfiguration-authorizationstrategy>
                                           IdentityProviderConfigurationProperty -> Value Text
authorizationStrategy :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-healthlake-fhirdatastore-identityproviderconfiguration.html#cfn-healthlake-fhirdatastore-identityproviderconfiguration-finegrainedauthorizationenabled>
                                           IdentityProviderConfigurationProperty -> Maybe (Value Bool)
fineGrainedAuthorizationEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-healthlake-fhirdatastore-identityproviderconfiguration.html#cfn-healthlake-fhirdatastore-identityproviderconfiguration-idplambdaarn>
                                           IdentityProviderConfigurationProperty -> Maybe (Value Text)
idpLambdaArn :: (Prelude.Maybe (Value Prelude.Text)),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-healthlake-fhirdatastore-identityproviderconfiguration.html#cfn-healthlake-fhirdatastore-identityproviderconfiguration-metadata>
                                           IdentityProviderConfigurationProperty -> Maybe (Value Text)
metadata :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty -> Bool
(IdentityProviderConfigurationProperty
 -> IdentityProviderConfigurationProperty -> Bool)
-> (IdentityProviderConfigurationProperty
    -> IdentityProviderConfigurationProperty -> Bool)
-> Eq IdentityProviderConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty -> Bool
== :: IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty -> Bool
$c/= :: IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty -> Bool
/= :: IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty -> Bool
Prelude.Eq, Int -> IdentityProviderConfigurationProperty -> ShowS
[IdentityProviderConfigurationProperty] -> ShowS
IdentityProviderConfigurationProperty -> String
(Int -> IdentityProviderConfigurationProperty -> ShowS)
-> (IdentityProviderConfigurationProperty -> String)
-> ([IdentityProviderConfigurationProperty] -> ShowS)
-> Show IdentityProviderConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IdentityProviderConfigurationProperty -> ShowS
showsPrec :: Int -> IdentityProviderConfigurationProperty -> ShowS
$cshow :: IdentityProviderConfigurationProperty -> String
show :: IdentityProviderConfigurationProperty -> String
$cshowList :: [IdentityProviderConfigurationProperty] -> ShowS
showList :: [IdentityProviderConfigurationProperty] -> ShowS
Prelude.Show)
mkIdentityProviderConfigurationProperty ::
  Value Prelude.Text -> IdentityProviderConfigurationProperty
mkIdentityProviderConfigurationProperty :: Value Text -> IdentityProviderConfigurationProperty
mkIdentityProviderConfigurationProperty Value Text
authorizationStrategy
  = IdentityProviderConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       authorizationStrategy :: Value Text
authorizationStrategy = Value Text
authorizationStrategy,
       fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
fineGrainedAuthorizationEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       idpLambdaArn :: Maybe (Value Text)
idpLambdaArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, metadata :: Maybe (Value Text)
metadata = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IdentityProviderConfigurationProperty where
  toResourceProperties :: IdentityProviderConfigurationProperty -> ResourceProperties
toResourceProperties IdentityProviderConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IdentityProviderConfigurationProperty -> ()
authorizationStrategy :: IdentityProviderConfigurationProperty -> Value Text
fineGrainedAuthorizationEnabled :: IdentityProviderConfigurationProperty -> Maybe (Value Bool)
idpLambdaArn :: IdentityProviderConfigurationProperty -> Maybe (Value Text)
metadata :: IdentityProviderConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authorizationStrategy :: Value Text
fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
idpLambdaArn :: Maybe (Value Text)
metadata :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::HealthLake::FHIRDatastore.IdentityProviderConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"AuthorizationStrategy" 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..= Value Text
authorizationStrategy]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FineGrainedAuthorizationEnabled"
                                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
fineGrainedAuthorizationEnabled,
                               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
"IdpLambdaArn" (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)
idpLambdaArn,
                               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
"Metadata" (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)
metadata]))}
instance JSON.ToJSON IdentityProviderConfigurationProperty where
  toJSON :: IdentityProviderConfigurationProperty -> Value
toJSON IdentityProviderConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IdentityProviderConfigurationProperty -> ()
authorizationStrategy :: IdentityProviderConfigurationProperty -> Value Text
fineGrainedAuthorizationEnabled :: IdentityProviderConfigurationProperty -> Maybe (Value Bool)
idpLambdaArn :: IdentityProviderConfigurationProperty -> Maybe (Value Text)
metadata :: IdentityProviderConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authorizationStrategy :: Value Text
fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
idpLambdaArn :: Maybe (Value Text)
metadata :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"AuthorizationStrategy" 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..= Value Text
authorizationStrategy]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FineGrainedAuthorizationEnabled"
                    (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
fineGrainedAuthorizationEnabled,
                  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
"IdpLambdaArn" (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)
idpLambdaArn,
                  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
"Metadata" (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)
metadata])))
instance Property "AuthorizationStrategy" IdentityProviderConfigurationProperty where
  type PropertyType "AuthorizationStrategy" IdentityProviderConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "AuthorizationStrategy" IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty
set PropertyType
  "AuthorizationStrategy" IdentityProviderConfigurationProperty
newValue IdentityProviderConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IdentityProviderConfigurationProperty -> ()
authorizationStrategy :: IdentityProviderConfigurationProperty -> Value Text
fineGrainedAuthorizationEnabled :: IdentityProviderConfigurationProperty -> Maybe (Value Bool)
idpLambdaArn :: IdentityProviderConfigurationProperty -> Maybe (Value Text)
metadata :: IdentityProviderConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authorizationStrategy :: Value Text
fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
idpLambdaArn :: Maybe (Value Text)
metadata :: Maybe (Value Text)
..}
    = IdentityProviderConfigurationProperty
        {authorizationStrategy :: Value Text
authorizationStrategy = PropertyType
  "AuthorizationStrategy" IdentityProviderConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
idpLambdaArn :: Maybe (Value Text)
metadata :: Maybe (Value Text)
haddock_workaround_ :: ()
fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
idpLambdaArn :: Maybe (Value Text)
metadata :: Maybe (Value Text)
..}
instance Property "FineGrainedAuthorizationEnabled" IdentityProviderConfigurationProperty where
  type PropertyType "FineGrainedAuthorizationEnabled" IdentityProviderConfigurationProperty = Value Prelude.Bool
  set :: PropertyType
  "FineGrainedAuthorizationEnabled"
  IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty
set PropertyType
  "FineGrainedAuthorizationEnabled"
  IdentityProviderConfigurationProperty
newValue IdentityProviderConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IdentityProviderConfigurationProperty -> ()
authorizationStrategy :: IdentityProviderConfigurationProperty -> Value Text
fineGrainedAuthorizationEnabled :: IdentityProviderConfigurationProperty -> Maybe (Value Bool)
idpLambdaArn :: IdentityProviderConfigurationProperty -> Maybe (Value Text)
metadata :: IdentityProviderConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authorizationStrategy :: Value Text
fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
idpLambdaArn :: Maybe (Value Text)
metadata :: Maybe (Value Text)
..}
    = IdentityProviderConfigurationProperty
        {fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
fineGrainedAuthorizationEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "FineGrainedAuthorizationEnabled"
  IdentityProviderConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
authorizationStrategy :: Value Text
idpLambdaArn :: Maybe (Value Text)
metadata :: Maybe (Value Text)
haddock_workaround_ :: ()
authorizationStrategy :: Value Text
idpLambdaArn :: Maybe (Value Text)
metadata :: Maybe (Value Text)
..}
instance Property "IdpLambdaArn" IdentityProviderConfigurationProperty where
  type PropertyType "IdpLambdaArn" IdentityProviderConfigurationProperty = Value Prelude.Text
  set :: PropertyType "IdpLambdaArn" IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty
set PropertyType "IdpLambdaArn" IdentityProviderConfigurationProperty
newValue IdentityProviderConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IdentityProviderConfigurationProperty -> ()
authorizationStrategy :: IdentityProviderConfigurationProperty -> Value Text
fineGrainedAuthorizationEnabled :: IdentityProviderConfigurationProperty -> Maybe (Value Bool)
idpLambdaArn :: IdentityProviderConfigurationProperty -> Maybe (Value Text)
metadata :: IdentityProviderConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authorizationStrategy :: Value Text
fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
idpLambdaArn :: Maybe (Value Text)
metadata :: Maybe (Value Text)
..}
    = IdentityProviderConfigurationProperty
        {idpLambdaArn :: Maybe (Value Text)
idpLambdaArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IdpLambdaArn" IdentityProviderConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
authorizationStrategy :: Value Text
fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
metadata :: Maybe (Value Text)
haddock_workaround_ :: ()
authorizationStrategy :: Value Text
fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
metadata :: Maybe (Value Text)
..}
instance Property "Metadata" IdentityProviderConfigurationProperty where
  type PropertyType "Metadata" IdentityProviderConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Metadata" IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty
-> IdentityProviderConfigurationProperty
set PropertyType "Metadata" IdentityProviderConfigurationProperty
newValue IdentityProviderConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IdentityProviderConfigurationProperty -> ()
authorizationStrategy :: IdentityProviderConfigurationProperty -> Value Text
fineGrainedAuthorizationEnabled :: IdentityProviderConfigurationProperty -> Maybe (Value Bool)
idpLambdaArn :: IdentityProviderConfigurationProperty -> Maybe (Value Text)
metadata :: IdentityProviderConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authorizationStrategy :: Value Text
fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
idpLambdaArn :: Maybe (Value Text)
metadata :: Maybe (Value Text)
..}
    = IdentityProviderConfigurationProperty
        {metadata :: Maybe (Value Text)
metadata = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Metadata" IdentityProviderConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
authorizationStrategy :: Value Text
fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
idpLambdaArn :: Maybe (Value Text)
haddock_workaround_ :: ()
authorizationStrategy :: Value Text
fineGrainedAuthorizationEnabled :: Maybe (Value Bool)
idpLambdaArn :: Maybe (Value Text)
..}