module Stratosphere.ElasticBeanstalk.Environment.OptionSettingProperty (
OptionSettingProperty(..), mkOptionSettingProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OptionSettingProperty
=
OptionSettingProperty {OptionSettingProperty -> ()
haddock_workaround_ :: (),
OptionSettingProperty -> Value Text
namespace :: (Value Prelude.Text),
OptionSettingProperty -> Value Text
optionName :: (Value Prelude.Text),
OptionSettingProperty -> Maybe (Value Text)
resourceName :: (Prelude.Maybe (Value Prelude.Text)),
OptionSettingProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (OptionSettingProperty -> OptionSettingProperty -> Bool
(OptionSettingProperty -> OptionSettingProperty -> Bool)
-> (OptionSettingProperty -> OptionSettingProperty -> Bool)
-> Eq OptionSettingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OptionSettingProperty -> OptionSettingProperty -> Bool
== :: OptionSettingProperty -> OptionSettingProperty -> Bool
$c/= :: OptionSettingProperty -> OptionSettingProperty -> Bool
/= :: OptionSettingProperty -> OptionSettingProperty -> Bool
Prelude.Eq, Int -> OptionSettingProperty -> ShowS
[OptionSettingProperty] -> ShowS
OptionSettingProperty -> String
(Int -> OptionSettingProperty -> ShowS)
-> (OptionSettingProperty -> String)
-> ([OptionSettingProperty] -> ShowS)
-> Show OptionSettingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OptionSettingProperty -> ShowS
showsPrec :: Int -> OptionSettingProperty -> ShowS
$cshow :: OptionSettingProperty -> String
show :: OptionSettingProperty -> String
$cshowList :: [OptionSettingProperty] -> ShowS
showList :: [OptionSettingProperty] -> ShowS
Prelude.Show)
mkOptionSettingProperty ::
Value Prelude.Text -> Value Prelude.Text -> OptionSettingProperty
mkOptionSettingProperty :: Value Text -> Value Text -> OptionSettingProperty
mkOptionSettingProperty Value Text
namespace Value Text
optionName
= OptionSettingProperty
{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 OptionSettingProperty where
toResourceProperties :: OptionSettingProperty -> ResourceProperties
toResourceProperties OptionSettingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OptionSettingProperty -> ()
namespace :: OptionSettingProperty -> Value Text
optionName :: OptionSettingProperty -> Value Text
resourceName :: OptionSettingProperty -> Maybe (Value Text)
value :: OptionSettingProperty -> 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::Environment.OptionSetting",
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 OptionSettingProperty where
toJSON :: OptionSettingProperty -> Value
toJSON OptionSettingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OptionSettingProperty -> ()
namespace :: OptionSettingProperty -> Value Text
optionName :: OptionSettingProperty -> Value Text
resourceName :: OptionSettingProperty -> Maybe (Value Text)
value :: OptionSettingProperty -> 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" OptionSettingProperty where
type PropertyType "Namespace" OptionSettingProperty = Value Prelude.Text
set :: PropertyType "Namespace" OptionSettingProperty
-> OptionSettingProperty -> OptionSettingProperty
set PropertyType "Namespace" OptionSettingProperty
newValue OptionSettingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OptionSettingProperty -> ()
namespace :: OptionSettingProperty -> Value Text
optionName :: OptionSettingProperty -> Value Text
resourceName :: OptionSettingProperty -> Maybe (Value Text)
value :: OptionSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= OptionSettingProperty {namespace :: Value Text
namespace = PropertyType "Namespace" OptionSettingProperty
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" OptionSettingProperty where
type PropertyType "OptionName" OptionSettingProperty = Value Prelude.Text
set :: PropertyType "OptionName" OptionSettingProperty
-> OptionSettingProperty -> OptionSettingProperty
set PropertyType "OptionName" OptionSettingProperty
newValue OptionSettingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OptionSettingProperty -> ()
namespace :: OptionSettingProperty -> Value Text
optionName :: OptionSettingProperty -> Value Text
resourceName :: OptionSettingProperty -> Maybe (Value Text)
value :: OptionSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= OptionSettingProperty {optionName :: Value Text
optionName = PropertyType "OptionName" OptionSettingProperty
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" OptionSettingProperty where
type PropertyType "ResourceName" OptionSettingProperty = Value Prelude.Text
set :: PropertyType "ResourceName" OptionSettingProperty
-> OptionSettingProperty -> OptionSettingProperty
set PropertyType "ResourceName" OptionSettingProperty
newValue OptionSettingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OptionSettingProperty -> ()
namespace :: OptionSettingProperty -> Value Text
optionName :: OptionSettingProperty -> Value Text
resourceName :: OptionSettingProperty -> Maybe (Value Text)
value :: OptionSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= OptionSettingProperty {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" OptionSettingProperty
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" OptionSettingProperty where
type PropertyType "Value" OptionSettingProperty = Value Prelude.Text
set :: PropertyType "Value" OptionSettingProperty
-> OptionSettingProperty -> OptionSettingProperty
set PropertyType "Value" OptionSettingProperty
newValue OptionSettingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OptionSettingProperty -> ()
namespace :: OptionSettingProperty -> Value Text
optionName :: OptionSettingProperty -> Value Text
resourceName :: OptionSettingProperty -> Maybe (Value Text)
value :: OptionSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
namespace :: Value Text
optionName :: Value Text
resourceName :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= OptionSettingProperty {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" OptionSettingProperty
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)
..}