module Stratosphere.EMRServerless.Application.ConfigurationObjectProperty (
        ConfigurationObjectProperty(..), mkConfigurationObjectProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConfigurationObjectProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-configurationobject.html>
    ConfigurationObjectProperty {ConfigurationObjectProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-configurationobject.html#cfn-emrserverless-application-configurationobject-classification>
                                 ConfigurationObjectProperty -> Value Text
classification :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-configurationobject.html#cfn-emrserverless-application-configurationobject-configurations>
                                 ConfigurationObjectProperty -> Maybe [ConfigurationObjectProperty]
configurations :: (Prelude.Maybe [ConfigurationObjectProperty]),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-configurationobject.html#cfn-emrserverless-application-configurationobject-properties>
                                 ConfigurationObjectProperty -> Maybe (Map Text (Value Text))
properties :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
  deriving stock (ConfigurationObjectProperty -> ConfigurationObjectProperty -> Bool
(ConfigurationObjectProperty
 -> ConfigurationObjectProperty -> Bool)
-> (ConfigurationObjectProperty
    -> ConfigurationObjectProperty -> Bool)
-> Eq ConfigurationObjectProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConfigurationObjectProperty -> ConfigurationObjectProperty -> Bool
== :: ConfigurationObjectProperty -> ConfigurationObjectProperty -> Bool
$c/= :: ConfigurationObjectProperty -> ConfigurationObjectProperty -> Bool
/= :: ConfigurationObjectProperty -> ConfigurationObjectProperty -> Bool
Prelude.Eq, Int -> ConfigurationObjectProperty -> ShowS
[ConfigurationObjectProperty] -> ShowS
ConfigurationObjectProperty -> String
(Int -> ConfigurationObjectProperty -> ShowS)
-> (ConfigurationObjectProperty -> String)
-> ([ConfigurationObjectProperty] -> ShowS)
-> Show ConfigurationObjectProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConfigurationObjectProperty -> ShowS
showsPrec :: Int -> ConfigurationObjectProperty -> ShowS
$cshow :: ConfigurationObjectProperty -> String
show :: ConfigurationObjectProperty -> String
$cshowList :: [ConfigurationObjectProperty] -> ShowS
showList :: [ConfigurationObjectProperty] -> ShowS
Prelude.Show)
mkConfigurationObjectProperty ::
  Value Prelude.Text -> ConfigurationObjectProperty
mkConfigurationObjectProperty :: Value Text -> ConfigurationObjectProperty
mkConfigurationObjectProperty Value Text
classification
  = ConfigurationObjectProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), classification :: Value Text
classification = Value Text
classification,
       configurations :: Maybe [ConfigurationObjectProperty]
configurations = Maybe [ConfigurationObjectProperty]
forall a. Maybe a
Prelude.Nothing, properties :: Maybe (Map Text (Value Text))
properties = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConfigurationObjectProperty where
  toResourceProperties :: ConfigurationObjectProperty -> ResourceProperties
toResourceProperties ConfigurationObjectProperty {Maybe [ConfigurationObjectProperty]
Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ConfigurationObjectProperty -> ()
classification :: ConfigurationObjectProperty -> Value Text
configurations :: ConfigurationObjectProperty -> Maybe [ConfigurationObjectProperty]
properties :: ConfigurationObjectProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
classification :: Value Text
configurations :: Maybe [ConfigurationObjectProperty]
properties :: Maybe (Map Text (Value Text))
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EMRServerless::Application.ConfigurationObject",
         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
"Classification" 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
classification]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> [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
"Configurations" ([ConfigurationObjectProperty] -> (Key, Value))
-> Maybe [ConfigurationObjectProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConfigurationObjectProperty]
configurations,
                               Key -> Map Text (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
"Properties" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
properties]))}
instance JSON.ToJSON ConfigurationObjectProperty where
  toJSON :: ConfigurationObjectProperty -> Value
toJSON ConfigurationObjectProperty {Maybe [ConfigurationObjectProperty]
Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ConfigurationObjectProperty -> ()
classification :: ConfigurationObjectProperty -> Value Text
configurations :: ConfigurationObjectProperty -> Maybe [ConfigurationObjectProperty]
properties :: ConfigurationObjectProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
classification :: Value Text
configurations :: Maybe [ConfigurationObjectProperty]
properties :: Maybe (Map Text (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
"Classification" 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
classification]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> [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
"Configurations" ([ConfigurationObjectProperty] -> (Key, Value))
-> Maybe [ConfigurationObjectProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConfigurationObjectProperty]
configurations,
                  Key -> Map Text (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
"Properties" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
properties])))
instance Property "Classification" ConfigurationObjectProperty where
  type PropertyType "Classification" ConfigurationObjectProperty = Value Prelude.Text
  set :: PropertyType "Classification" ConfigurationObjectProperty
-> ConfigurationObjectProperty -> ConfigurationObjectProperty
set PropertyType "Classification" ConfigurationObjectProperty
newValue ConfigurationObjectProperty {Maybe [ConfigurationObjectProperty]
Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ConfigurationObjectProperty -> ()
classification :: ConfigurationObjectProperty -> Value Text
configurations :: ConfigurationObjectProperty -> Maybe [ConfigurationObjectProperty]
properties :: ConfigurationObjectProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
classification :: Value Text
configurations :: Maybe [ConfigurationObjectProperty]
properties :: Maybe (Map Text (Value Text))
..}
    = ConfigurationObjectProperty {classification :: Value Text
classification = PropertyType "Classification" ConfigurationObjectProperty
Value Text
newValue, Maybe [ConfigurationObjectProperty]
Maybe (Map Text (Value Text))
()
haddock_workaround_ :: ()
configurations :: Maybe [ConfigurationObjectProperty]
properties :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configurations :: Maybe [ConfigurationObjectProperty]
properties :: Maybe (Map Text (Value Text))
..}
instance Property "Configurations" ConfigurationObjectProperty where
  type PropertyType "Configurations" ConfigurationObjectProperty = [ConfigurationObjectProperty]
  set :: PropertyType "Configurations" ConfigurationObjectProperty
-> ConfigurationObjectProperty -> ConfigurationObjectProperty
set PropertyType "Configurations" ConfigurationObjectProperty
newValue ConfigurationObjectProperty {Maybe [ConfigurationObjectProperty]
Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ConfigurationObjectProperty -> ()
classification :: ConfigurationObjectProperty -> Value Text
configurations :: ConfigurationObjectProperty -> Maybe [ConfigurationObjectProperty]
properties :: ConfigurationObjectProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
classification :: Value Text
configurations :: Maybe [ConfigurationObjectProperty]
properties :: Maybe (Map Text (Value Text))
..}
    = ConfigurationObjectProperty
        {configurations :: Maybe [ConfigurationObjectProperty]
configurations = [ConfigurationObjectProperty]
-> Maybe [ConfigurationObjectProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ConfigurationObjectProperty]
PropertyType "Configurations" ConfigurationObjectProperty
newValue, Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ()
classification :: Value Text
properties :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
classification :: Value Text
properties :: Maybe (Map Text (Value Text))
..}
instance Property "Properties" ConfigurationObjectProperty where
  type PropertyType "Properties" ConfigurationObjectProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Properties" ConfigurationObjectProperty
-> ConfigurationObjectProperty -> ConfigurationObjectProperty
set PropertyType "Properties" ConfigurationObjectProperty
newValue ConfigurationObjectProperty {Maybe [ConfigurationObjectProperty]
Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ConfigurationObjectProperty -> ()
classification :: ConfigurationObjectProperty -> Value Text
configurations :: ConfigurationObjectProperty -> Maybe [ConfigurationObjectProperty]
properties :: ConfigurationObjectProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
classification :: Value Text
configurations :: Maybe [ConfigurationObjectProperty]
properties :: Maybe (Map Text (Value Text))
..}
    = ConfigurationObjectProperty
        {properties :: Maybe (Map Text (Value Text))
properties = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Properties" ConfigurationObjectProperty
newValue, Maybe [ConfigurationObjectProperty]
()
Value Text
haddock_workaround_ :: ()
classification :: Value Text
configurations :: Maybe [ConfigurationObjectProperty]
haddock_workaround_ :: ()
classification :: Value Text
configurations :: Maybe [ConfigurationObjectProperty]
..}