module Stratosphere.Glue.UsageProfile.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-glue-usageprofile-configurationobject.html>
    ConfigurationObjectProperty {ConfigurationObjectProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-usageprofile-configurationobject.html#cfn-glue-usageprofile-configurationobject-allowedvalues>
                                 ConfigurationObjectProperty -> Maybe (ValueList Text)
allowedValues :: (Prelude.Maybe (ValueList Prelude.Text)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-usageprofile-configurationobject.html#cfn-glue-usageprofile-configurationobject-defaultvalue>
                                 ConfigurationObjectProperty -> Maybe (Value Text)
defaultValue :: (Prelude.Maybe (Value Prelude.Text)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-usageprofile-configurationobject.html#cfn-glue-usageprofile-configurationobject-maxvalue>
                                 ConfigurationObjectProperty -> Maybe (Value Text)
maxValue :: (Prelude.Maybe (Value Prelude.Text)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-usageprofile-configurationobject.html#cfn-glue-usageprofile-configurationobject-minvalue>
                                 ConfigurationObjectProperty -> Maybe (Value Text)
minValue :: (Prelude.Maybe (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 :: ConfigurationObjectProperty
mkConfigurationObjectProperty :: ConfigurationObjectProperty
mkConfigurationObjectProperty
  = ConfigurationObjectProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), allowedValues :: Maybe (ValueList Text)
allowedValues = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       defaultValue :: Maybe (Value Text)
defaultValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, maxValue :: Maybe (Value Text)
maxValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       minValue :: Maybe (Value Text)
minValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConfigurationObjectProperty where
  toResourceProperties :: ConfigurationObjectProperty -> ResourceProperties
toResourceProperties ConfigurationObjectProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationObjectProperty -> ()
allowedValues :: ConfigurationObjectProperty -> Maybe (ValueList Text)
defaultValue :: ConfigurationObjectProperty -> Maybe (Value Text)
maxValue :: ConfigurationObjectProperty -> Maybe (Value Text)
minValue :: ConfigurationObjectProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allowedValues :: Maybe (ValueList Text)
defaultValue :: Maybe (Value Text)
maxValue :: Maybe (Value Text)
minValue :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Glue::UsageProfile.ConfigurationObject",
         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 -> ValueList 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
"AllowedValues" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
allowedValues,
                            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
"DefaultValue" (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)
defaultValue,
                            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
"MaxValue" (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)
maxValue,
                            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
"MinValue" (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)
minValue])}
instance JSON.ToJSON ConfigurationObjectProperty where
  toJSON :: ConfigurationObjectProperty -> Value
toJSON ConfigurationObjectProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationObjectProperty -> ()
allowedValues :: ConfigurationObjectProperty -> Maybe (ValueList Text)
defaultValue :: ConfigurationObjectProperty -> Maybe (Value Text)
maxValue :: ConfigurationObjectProperty -> Maybe (Value Text)
minValue :: ConfigurationObjectProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allowedValues :: Maybe (ValueList Text)
defaultValue :: Maybe (Value Text)
maxValue :: Maybe (Value Text)
minValue :: 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 -> ValueList 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
"AllowedValues" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
allowedValues,
               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
"DefaultValue" (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)
defaultValue,
               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
"MaxValue" (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)
maxValue,
               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
"MinValue" (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)
minValue]))
instance Property "AllowedValues" ConfigurationObjectProperty where
  type PropertyType "AllowedValues" ConfigurationObjectProperty = ValueList Prelude.Text
  set :: PropertyType "AllowedValues" ConfigurationObjectProperty
-> ConfigurationObjectProperty -> ConfigurationObjectProperty
set PropertyType "AllowedValues" ConfigurationObjectProperty
newValue ConfigurationObjectProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationObjectProperty -> ()
allowedValues :: ConfigurationObjectProperty -> Maybe (ValueList Text)
defaultValue :: ConfigurationObjectProperty -> Maybe (Value Text)
maxValue :: ConfigurationObjectProperty -> Maybe (Value Text)
minValue :: ConfigurationObjectProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allowedValues :: Maybe (ValueList Text)
defaultValue :: Maybe (Value Text)
maxValue :: Maybe (Value Text)
minValue :: Maybe (Value Text)
..}
    = ConfigurationObjectProperty
        {allowedValues :: Maybe (ValueList Text)
allowedValues = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AllowedValues" ConfigurationObjectProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
defaultValue :: Maybe (Value Text)
maxValue :: Maybe (Value Text)
minValue :: Maybe (Value Text)
haddock_workaround_ :: ()
defaultValue :: Maybe (Value Text)
maxValue :: Maybe (Value Text)
minValue :: Maybe (Value Text)
..}
instance Property "DefaultValue" ConfigurationObjectProperty where
  type PropertyType "DefaultValue" ConfigurationObjectProperty = Value Prelude.Text
  set :: PropertyType "DefaultValue" ConfigurationObjectProperty
-> ConfigurationObjectProperty -> ConfigurationObjectProperty
set PropertyType "DefaultValue" ConfigurationObjectProperty
newValue ConfigurationObjectProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationObjectProperty -> ()
allowedValues :: ConfigurationObjectProperty -> Maybe (ValueList Text)
defaultValue :: ConfigurationObjectProperty -> Maybe (Value Text)
maxValue :: ConfigurationObjectProperty -> Maybe (Value Text)
minValue :: ConfigurationObjectProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allowedValues :: Maybe (ValueList Text)
defaultValue :: Maybe (Value Text)
maxValue :: Maybe (Value Text)
minValue :: Maybe (Value Text)
..}
    = ConfigurationObjectProperty
        {defaultValue :: Maybe (Value Text)
defaultValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DefaultValue" ConfigurationObjectProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
allowedValues :: Maybe (ValueList Text)
maxValue :: Maybe (Value Text)
minValue :: Maybe (Value Text)
haddock_workaround_ :: ()
allowedValues :: Maybe (ValueList Text)
maxValue :: Maybe (Value Text)
minValue :: Maybe (Value Text)
..}
instance Property "MaxValue" ConfigurationObjectProperty where
  type PropertyType "MaxValue" ConfigurationObjectProperty = Value Prelude.Text
  set :: PropertyType "MaxValue" ConfigurationObjectProperty
-> ConfigurationObjectProperty -> ConfigurationObjectProperty
set PropertyType "MaxValue" ConfigurationObjectProperty
newValue ConfigurationObjectProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationObjectProperty -> ()
allowedValues :: ConfigurationObjectProperty -> Maybe (ValueList Text)
defaultValue :: ConfigurationObjectProperty -> Maybe (Value Text)
maxValue :: ConfigurationObjectProperty -> Maybe (Value Text)
minValue :: ConfigurationObjectProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allowedValues :: Maybe (ValueList Text)
defaultValue :: Maybe (Value Text)
maxValue :: Maybe (Value Text)
minValue :: Maybe (Value Text)
..}
    = ConfigurationObjectProperty
        {maxValue :: Maybe (Value Text)
maxValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxValue" ConfigurationObjectProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
allowedValues :: Maybe (ValueList Text)
defaultValue :: Maybe (Value Text)
minValue :: Maybe (Value Text)
haddock_workaround_ :: ()
allowedValues :: Maybe (ValueList Text)
defaultValue :: Maybe (Value Text)
minValue :: Maybe (Value Text)
..}
instance Property "MinValue" ConfigurationObjectProperty where
  type PropertyType "MinValue" ConfigurationObjectProperty = Value Prelude.Text
  set :: PropertyType "MinValue" ConfigurationObjectProperty
-> ConfigurationObjectProperty -> ConfigurationObjectProperty
set PropertyType "MinValue" ConfigurationObjectProperty
newValue ConfigurationObjectProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationObjectProperty -> ()
allowedValues :: ConfigurationObjectProperty -> Maybe (ValueList Text)
defaultValue :: ConfigurationObjectProperty -> Maybe (Value Text)
maxValue :: ConfigurationObjectProperty -> Maybe (Value Text)
minValue :: ConfigurationObjectProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allowedValues :: Maybe (ValueList Text)
defaultValue :: Maybe (Value Text)
maxValue :: Maybe (Value Text)
minValue :: Maybe (Value Text)
..}
    = ConfigurationObjectProperty
        {minValue :: Maybe (Value Text)
minValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MinValue" ConfigurationObjectProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
allowedValues :: Maybe (ValueList Text)
defaultValue :: Maybe (Value Text)
maxValue :: Maybe (Value Text)
haddock_workaround_ :: ()
allowedValues :: Maybe (ValueList Text)
defaultValue :: Maybe (Value Text)
maxValue :: Maybe (Value Text)
..}