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