module Stratosphere.DataBrew.Ruleset.SubstitutionValueProperty (
SubstitutionValueProperty(..), mkSubstitutionValueProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SubstitutionValueProperty
=
SubstitutionValueProperty {SubstitutionValueProperty -> ()
haddock_workaround_ :: (),
SubstitutionValueProperty -> Value Text
value :: (Value Prelude.Text),
SubstitutionValueProperty -> Value Text
valueReference :: (Value Prelude.Text)}
deriving stock (SubstitutionValueProperty -> SubstitutionValueProperty -> Bool
(SubstitutionValueProperty -> SubstitutionValueProperty -> Bool)
-> (SubstitutionValueProperty -> SubstitutionValueProperty -> Bool)
-> Eq SubstitutionValueProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SubstitutionValueProperty -> SubstitutionValueProperty -> Bool
== :: SubstitutionValueProperty -> SubstitutionValueProperty -> Bool
$c/= :: SubstitutionValueProperty -> SubstitutionValueProperty -> Bool
/= :: SubstitutionValueProperty -> SubstitutionValueProperty -> Bool
Prelude.Eq, Int -> SubstitutionValueProperty -> ShowS
[SubstitutionValueProperty] -> ShowS
SubstitutionValueProperty -> String
(Int -> SubstitutionValueProperty -> ShowS)
-> (SubstitutionValueProperty -> String)
-> ([SubstitutionValueProperty] -> ShowS)
-> Show SubstitutionValueProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SubstitutionValueProperty -> ShowS
showsPrec :: Int -> SubstitutionValueProperty -> ShowS
$cshow :: SubstitutionValueProperty -> String
show :: SubstitutionValueProperty -> String
$cshowList :: [SubstitutionValueProperty] -> ShowS
showList :: [SubstitutionValueProperty] -> ShowS
Prelude.Show)
mkSubstitutionValueProperty ::
Value Prelude.Text
-> Value Prelude.Text -> SubstitutionValueProperty
mkSubstitutionValueProperty :: Value Text -> Value Text -> SubstitutionValueProperty
mkSubstitutionValueProperty Value Text
value Value Text
valueReference
= SubstitutionValueProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), value :: Value Text
value = Value Text
value,
valueReference :: Value Text
valueReference = Value Text
valueReference}
instance ToResourceProperties SubstitutionValueProperty where
toResourceProperties :: SubstitutionValueProperty -> ResourceProperties
toResourceProperties SubstitutionValueProperty {()
Value Text
haddock_workaround_ :: SubstitutionValueProperty -> ()
value :: SubstitutionValueProperty -> Value Text
valueReference :: SubstitutionValueProperty -> Value Text
haddock_workaround_ :: ()
value :: Value Text
valueReference :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataBrew::Ruleset.SubstitutionValue",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Value" 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
value,
Key
"ValueReference" 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
valueReference]}
instance JSON.ToJSON SubstitutionValueProperty where
toJSON :: SubstitutionValueProperty -> Value
toJSON SubstitutionValueProperty {()
Value Text
haddock_workaround_ :: SubstitutionValueProperty -> ()
value :: SubstitutionValueProperty -> Value Text
valueReference :: SubstitutionValueProperty -> Value Text
haddock_workaround_ :: ()
value :: Value Text
valueReference :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Value" 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
value, Key
"ValueReference" 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
valueReference]
instance Property "Value" SubstitutionValueProperty where
type PropertyType "Value" SubstitutionValueProperty = Value Prelude.Text
set :: PropertyType "Value" SubstitutionValueProperty
-> SubstitutionValueProperty -> SubstitutionValueProperty
set PropertyType "Value" SubstitutionValueProperty
newValue SubstitutionValueProperty {()
Value Text
haddock_workaround_ :: SubstitutionValueProperty -> ()
value :: SubstitutionValueProperty -> Value Text
valueReference :: SubstitutionValueProperty -> Value Text
haddock_workaround_ :: ()
value :: Value Text
valueReference :: Value Text
..}
= SubstitutionValueProperty {value :: Value Text
value = PropertyType "Value" SubstitutionValueProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
valueReference :: Value Text
haddock_workaround_ :: ()
valueReference :: Value Text
..}
instance Property "ValueReference" SubstitutionValueProperty where
type PropertyType "ValueReference" SubstitutionValueProperty = Value Prelude.Text
set :: PropertyType "ValueReference" SubstitutionValueProperty
-> SubstitutionValueProperty -> SubstitutionValueProperty
set PropertyType "ValueReference" SubstitutionValueProperty
newValue SubstitutionValueProperty {()
Value Text
haddock_workaround_ :: SubstitutionValueProperty -> ()
value :: SubstitutionValueProperty -> Value Text
valueReference :: SubstitutionValueProperty -> Value Text
haddock_workaround_ :: ()
value :: Value Text
valueReference :: Value Text
..}
= SubstitutionValueProperty {valueReference :: Value Text
valueReference = PropertyType "ValueReference" SubstitutionValueProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}