module Stratosphere.ElasticBeanstalk.ConfigurationTemplate.ConfigurationOptionSettingProperty (
        ConfigurationOptionSettingProperty(..),
        mkConfigurationOptionSettingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConfigurationOptionSettingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-configurationoptionsetting.html>
    ConfigurationOptionSettingProperty {ConfigurationOptionSettingProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-configurationoptionsetting.html#cfn-elasticbeanstalk-configurationtemplate-configurationoptionsetting-namespace>
                                        ConfigurationOptionSettingProperty -> Value Text
namespace :: (Value Prelude.Text),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-configurationoptionsetting.html#cfn-elasticbeanstalk-configurationtemplate-configurationoptionsetting-optionname>
                                        ConfigurationOptionSettingProperty -> Value Text
optionName :: (Value Prelude.Text),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-configurationoptionsetting.html#cfn-elasticbeanstalk-configurationtemplate-configurationoptionsetting-resourcename>
                                        ConfigurationOptionSettingProperty -> Maybe (Value Text)
resourceName :: (Prelude.Maybe (Value Prelude.Text)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-configurationoptionsetting.html#cfn-elasticbeanstalk-configurationtemplate-configurationoptionsetting-value>
                                        ConfigurationOptionSettingProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty -> Bool
(ConfigurationOptionSettingProperty
 -> ConfigurationOptionSettingProperty -> Bool)
-> (ConfigurationOptionSettingProperty
    -> ConfigurationOptionSettingProperty -> Bool)
-> Eq ConfigurationOptionSettingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty -> Bool
== :: ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty -> Bool
$c/= :: ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty -> Bool
/= :: ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty -> Bool
Prelude.Eq, Int -> ConfigurationOptionSettingProperty -> ShowS
[ConfigurationOptionSettingProperty] -> ShowS
ConfigurationOptionSettingProperty -> String
(Int -> ConfigurationOptionSettingProperty -> ShowS)
-> (ConfigurationOptionSettingProperty -> String)
-> ([ConfigurationOptionSettingProperty] -> ShowS)
-> Show ConfigurationOptionSettingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConfigurationOptionSettingProperty -> ShowS
showsPrec :: Int -> ConfigurationOptionSettingProperty -> ShowS
$cshow :: ConfigurationOptionSettingProperty -> String
show :: ConfigurationOptionSettingProperty -> String
$cshowList :: [ConfigurationOptionSettingProperty] -> ShowS
showList :: [ConfigurationOptionSettingProperty] -> ShowS
Prelude.Show)
mkConfigurationOptionSettingProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> ConfigurationOptionSettingProperty
mkConfigurationOptionSettingProperty :: Value Text -> Value Text -> ConfigurationOptionSettingProperty
mkConfigurationOptionSettingProperty Value Text
namespace Value Text
optionName
  = ConfigurationOptionSettingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), namespace :: Value Text
namespace = Value Text
namespace,
       optionName :: Value Text
optionName = Value Text
optionName, resourceName :: Maybe (Value Text)
resourceName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       value :: Maybe (Value Text)
value = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConfigurationOptionSettingProperty where
  toResourceProperties :: ConfigurationOptionSettingProperty -> ResourceProperties
toResourceProperties ConfigurationOptionSettingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ConfigurationOptionSettingProperty -> ()
namespace :: ConfigurationOptionSettingProperty -> Value Text
optionName :: ConfigurationOptionSettingProperty -> Value Text
resourceName :: ConfigurationOptionSettingProperty -> Maybe (Value Text)
value :: ConfigurationOptionSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ElasticBeanstalk::ConfigurationTemplate.ConfigurationOptionSetting",
         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
"Namespace" 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
namespace, Key
"OptionName" 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
optionName]
                           ([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
"ResourceName" (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)
resourceName,
                               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
"Value" (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)
value]))}
instance JSON.ToJSON ConfigurationOptionSettingProperty where
  toJSON :: ConfigurationOptionSettingProperty -> Value
toJSON ConfigurationOptionSettingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ConfigurationOptionSettingProperty -> ()
namespace :: ConfigurationOptionSettingProperty -> Value Text
optionName :: ConfigurationOptionSettingProperty -> Value Text
resourceName :: ConfigurationOptionSettingProperty -> Maybe (Value Text)
value :: ConfigurationOptionSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
resourceName :: Maybe (Value Text)
value :: 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
"Namespace" 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
namespace, Key
"OptionName" 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
optionName]
              ([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
"ResourceName" (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)
resourceName,
                  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
"Value" (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)
value])))
instance Property "Namespace" ConfigurationOptionSettingProperty where
  type PropertyType "Namespace" ConfigurationOptionSettingProperty = Value Prelude.Text
  set :: PropertyType "Namespace" ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty
set PropertyType "Namespace" ConfigurationOptionSettingProperty
newValue ConfigurationOptionSettingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ConfigurationOptionSettingProperty -> ()
namespace :: ConfigurationOptionSettingProperty -> Value Text
optionName :: ConfigurationOptionSettingProperty -> Value Text
resourceName :: ConfigurationOptionSettingProperty -> Maybe (Value Text)
value :: ConfigurationOptionSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ConfigurationOptionSettingProperty {namespace :: Value Text
namespace = PropertyType "Namespace" ConfigurationOptionSettingProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
optionName :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
haddock_workaround_ :: ()
optionName :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
instance Property "OptionName" ConfigurationOptionSettingProperty where
  type PropertyType "OptionName" ConfigurationOptionSettingProperty = Value Prelude.Text
  set :: PropertyType "OptionName" ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty
set PropertyType "OptionName" ConfigurationOptionSettingProperty
newValue ConfigurationOptionSettingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ConfigurationOptionSettingProperty -> ()
namespace :: ConfigurationOptionSettingProperty -> Value Text
optionName :: ConfigurationOptionSettingProperty -> Value Text
resourceName :: ConfigurationOptionSettingProperty -> Maybe (Value Text)
value :: ConfigurationOptionSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ConfigurationOptionSettingProperty {optionName :: Value Text
optionName = PropertyType "OptionName" ConfigurationOptionSettingProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
namespace :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
instance Property "ResourceName" ConfigurationOptionSettingProperty where
  type PropertyType "ResourceName" ConfigurationOptionSettingProperty = Value Prelude.Text
  set :: PropertyType "ResourceName" ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty
set PropertyType "ResourceName" ConfigurationOptionSettingProperty
newValue ConfigurationOptionSettingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ConfigurationOptionSettingProperty -> ()
namespace :: ConfigurationOptionSettingProperty -> Value Text
optionName :: ConfigurationOptionSettingProperty -> Value Text
resourceName :: ConfigurationOptionSettingProperty -> Maybe (Value Text)
value :: ConfigurationOptionSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ConfigurationOptionSettingProperty
        {resourceName :: Maybe (Value Text)
resourceName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ResourceName" ConfigurationOptionSettingProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
value :: Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
value :: Maybe (Value Text)
..}
instance Property "Value" ConfigurationOptionSettingProperty where
  type PropertyType "Value" ConfigurationOptionSettingProperty = Value Prelude.Text
  set :: PropertyType "Value" ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty
-> ConfigurationOptionSettingProperty
set PropertyType "Value" ConfigurationOptionSettingProperty
newValue ConfigurationOptionSettingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ConfigurationOptionSettingProperty -> ()
namespace :: ConfigurationOptionSettingProperty -> Value Text
optionName :: ConfigurationOptionSettingProperty -> Value Text
resourceName :: ConfigurationOptionSettingProperty -> Maybe (Value Text)
value :: ConfigurationOptionSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ConfigurationOptionSettingProperty
        {value :: Maybe (Value Text)
value = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" ConfigurationOptionSettingProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
resourceName :: Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
resourceName :: Maybe (Value Text)
..}