module Stratosphere.Glue.UsageProfile.ProfileConfigurationProperty (
        module Exports, ProfileConfigurationProperty(..),
        mkProfileConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Glue.UsageProfile.ConfigurationObjectProperty as Exports
import Stratosphere.ResourceProperties
data ProfileConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-usageprofile-profileconfiguration.html>
    ProfileConfigurationProperty {ProfileConfigurationProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-usageprofile-profileconfiguration.html#cfn-glue-usageprofile-profileconfiguration-jobconfiguration>
                                  ProfileConfigurationProperty
-> Maybe (Map Text ConfigurationObjectProperty)
jobConfiguration :: (Prelude.Maybe (Prelude.Map Prelude.Text ConfigurationObjectProperty)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-usageprofile-profileconfiguration.html#cfn-glue-usageprofile-profileconfiguration-sessionconfiguration>
                                  ProfileConfigurationProperty
-> Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration :: (Prelude.Maybe (Prelude.Map Prelude.Text ConfigurationObjectProperty))}
  deriving stock (ProfileConfigurationProperty
-> ProfileConfigurationProperty -> Bool
(ProfileConfigurationProperty
 -> ProfileConfigurationProperty -> Bool)
-> (ProfileConfigurationProperty
    -> ProfileConfigurationProperty -> Bool)
-> Eq ProfileConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProfileConfigurationProperty
-> ProfileConfigurationProperty -> Bool
== :: ProfileConfigurationProperty
-> ProfileConfigurationProperty -> Bool
$c/= :: ProfileConfigurationProperty
-> ProfileConfigurationProperty -> Bool
/= :: ProfileConfigurationProperty
-> ProfileConfigurationProperty -> Bool
Prelude.Eq, Int -> ProfileConfigurationProperty -> ShowS
[ProfileConfigurationProperty] -> ShowS
ProfileConfigurationProperty -> String
(Int -> ProfileConfigurationProperty -> ShowS)
-> (ProfileConfigurationProperty -> String)
-> ([ProfileConfigurationProperty] -> ShowS)
-> Show ProfileConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProfileConfigurationProperty -> ShowS
showsPrec :: Int -> ProfileConfigurationProperty -> ShowS
$cshow :: ProfileConfigurationProperty -> String
show :: ProfileConfigurationProperty -> String
$cshowList :: [ProfileConfigurationProperty] -> ShowS
showList :: [ProfileConfigurationProperty] -> ShowS
Prelude.Show)
mkProfileConfigurationProperty :: ProfileConfigurationProperty
mkProfileConfigurationProperty :: ProfileConfigurationProperty
mkProfileConfigurationProperty
  = ProfileConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), jobConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
jobConfiguration = Maybe (Map Text ConfigurationObjectProperty)
forall a. Maybe a
Prelude.Nothing,
       sessionConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration = Maybe (Map Text ConfigurationObjectProperty)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProfileConfigurationProperty where
  toResourceProperties :: ProfileConfigurationProperty -> ResourceProperties
toResourceProperties ProfileConfigurationProperty {Maybe (Map Text ConfigurationObjectProperty)
()
haddock_workaround_ :: ProfileConfigurationProperty -> ()
jobConfiguration :: ProfileConfigurationProperty
-> Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration :: ProfileConfigurationProperty
-> Maybe (Map Text ConfigurationObjectProperty)
haddock_workaround_ :: ()
jobConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Glue::UsageProfile.ProfileConfiguration",
         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 -> Map Text ConfigurationObjectProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"JobConfiguration" (Map Text ConfigurationObjectProperty -> (Key, Value))
-> Maybe (Map Text ConfigurationObjectProperty)
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text ConfigurationObjectProperty)
jobConfiguration,
                            Key -> Map Text ConfigurationObjectProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SessionConfiguration"
                              (Map Text ConfigurationObjectProperty -> (Key, Value))
-> Maybe (Map Text ConfigurationObjectProperty)
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration])}
instance JSON.ToJSON ProfileConfigurationProperty where
  toJSON :: ProfileConfigurationProperty -> Value
toJSON ProfileConfigurationProperty {Maybe (Map Text ConfigurationObjectProperty)
()
haddock_workaround_ :: ProfileConfigurationProperty -> ()
jobConfiguration :: ProfileConfigurationProperty
-> Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration :: ProfileConfigurationProperty
-> Maybe (Map Text ConfigurationObjectProperty)
haddock_workaround_ :: ()
jobConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
..}
    = [(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 -> Map Text ConfigurationObjectProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"JobConfiguration" (Map Text ConfigurationObjectProperty -> (Key, Value))
-> Maybe (Map Text ConfigurationObjectProperty)
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text ConfigurationObjectProperty)
jobConfiguration,
               Key -> Map Text ConfigurationObjectProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SessionConfiguration"
                 (Map Text ConfigurationObjectProperty -> (Key, Value))
-> Maybe (Map Text ConfigurationObjectProperty)
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration]))
instance Property "JobConfiguration" ProfileConfigurationProperty where
  type PropertyType "JobConfiguration" ProfileConfigurationProperty = Prelude.Map Prelude.Text ConfigurationObjectProperty
  set :: PropertyType "JobConfiguration" ProfileConfigurationProperty
-> ProfileConfigurationProperty -> ProfileConfigurationProperty
set PropertyType "JobConfiguration" ProfileConfigurationProperty
newValue ProfileConfigurationProperty {Maybe (Map Text ConfigurationObjectProperty)
()
haddock_workaround_ :: ProfileConfigurationProperty -> ()
jobConfiguration :: ProfileConfigurationProperty
-> Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration :: ProfileConfigurationProperty
-> Maybe (Map Text ConfigurationObjectProperty)
haddock_workaround_ :: ()
jobConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
..}
    = ProfileConfigurationProperty
        {jobConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
jobConfiguration = Map Text ConfigurationObjectProperty
-> Maybe (Map Text ConfigurationObjectProperty)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text ConfigurationObjectProperty
PropertyType "JobConfiguration" ProfileConfigurationProperty
newValue, Maybe (Map Text ConfigurationObjectProperty)
()
haddock_workaround_ :: ()
sessionConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
haddock_workaround_ :: ()
sessionConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
..}
instance Property "SessionConfiguration" ProfileConfigurationProperty where
  type PropertyType "SessionConfiguration" ProfileConfigurationProperty = Prelude.Map Prelude.Text ConfigurationObjectProperty
  set :: PropertyType "SessionConfiguration" ProfileConfigurationProperty
-> ProfileConfigurationProperty -> ProfileConfigurationProperty
set PropertyType "SessionConfiguration" ProfileConfigurationProperty
newValue ProfileConfigurationProperty {Maybe (Map Text ConfigurationObjectProperty)
()
haddock_workaround_ :: ProfileConfigurationProperty -> ()
jobConfiguration :: ProfileConfigurationProperty
-> Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration :: ProfileConfigurationProperty
-> Maybe (Map Text ConfigurationObjectProperty)
haddock_workaround_ :: ()
jobConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
..}
    = ProfileConfigurationProperty
        {sessionConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
sessionConfiguration = Map Text ConfigurationObjectProperty
-> Maybe (Map Text ConfigurationObjectProperty)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text ConfigurationObjectProperty
PropertyType "SessionConfiguration" ProfileConfigurationProperty
newValue, Maybe (Map Text ConfigurationObjectProperty)
()
haddock_workaround_ :: ()
jobConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
haddock_workaround_ :: ()
jobConfiguration :: Maybe (Map Text ConfigurationObjectProperty)
..}