module Stratosphere.DynamoDB.GlobalTable.ContributorInsightsSpecificationProperty (
ContributorInsightsSpecificationProperty(..),
mkContributorInsightsSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ContributorInsightsSpecificationProperty
=
ContributorInsightsSpecificationProperty {ContributorInsightsSpecificationProperty -> ()
haddock_workaround_ :: (),
ContributorInsightsSpecificationProperty -> Value Bool
enabled :: (Value Prelude.Bool),
ContributorInsightsSpecificationProperty -> Maybe (Value Text)
mode :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ContributorInsightsSpecificationProperty
-> ContributorInsightsSpecificationProperty -> Bool
(ContributorInsightsSpecificationProperty
-> ContributorInsightsSpecificationProperty -> Bool)
-> (ContributorInsightsSpecificationProperty
-> ContributorInsightsSpecificationProperty -> Bool)
-> Eq ContributorInsightsSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ContributorInsightsSpecificationProperty
-> ContributorInsightsSpecificationProperty -> Bool
== :: ContributorInsightsSpecificationProperty
-> ContributorInsightsSpecificationProperty -> Bool
$c/= :: ContributorInsightsSpecificationProperty
-> ContributorInsightsSpecificationProperty -> Bool
/= :: ContributorInsightsSpecificationProperty
-> ContributorInsightsSpecificationProperty -> Bool
Prelude.Eq, Int -> ContributorInsightsSpecificationProperty -> ShowS
[ContributorInsightsSpecificationProperty] -> ShowS
ContributorInsightsSpecificationProperty -> String
(Int -> ContributorInsightsSpecificationProperty -> ShowS)
-> (ContributorInsightsSpecificationProperty -> String)
-> ([ContributorInsightsSpecificationProperty] -> ShowS)
-> Show ContributorInsightsSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ContributorInsightsSpecificationProperty -> ShowS
showsPrec :: Int -> ContributorInsightsSpecificationProperty -> ShowS
$cshow :: ContributorInsightsSpecificationProperty -> String
show :: ContributorInsightsSpecificationProperty -> String
$cshowList :: [ContributorInsightsSpecificationProperty] -> ShowS
showList :: [ContributorInsightsSpecificationProperty] -> ShowS
Prelude.Show)
mkContributorInsightsSpecificationProperty ::
Value Prelude.Bool -> ContributorInsightsSpecificationProperty
mkContributorInsightsSpecificationProperty :: Value Bool -> ContributorInsightsSpecificationProperty
mkContributorInsightsSpecificationProperty Value Bool
enabled
= ContributorInsightsSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Value Bool
enabled = Value Bool
enabled,
mode :: Maybe (Value Text)
mode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ContributorInsightsSpecificationProperty where
toResourceProperties :: ContributorInsightsSpecificationProperty -> ResourceProperties
toResourceProperties ContributorInsightsSpecificationProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ContributorInsightsSpecificationProperty -> ()
enabled :: ContributorInsightsSpecificationProperty -> Value Bool
mode :: ContributorInsightsSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Value Bool
mode :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DynamoDB::GlobalTable.ContributorInsightsSpecification",
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
"Enabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enabled]
([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
"Mode" (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)
mode]))}
instance JSON.ToJSON ContributorInsightsSpecificationProperty where
toJSON :: ContributorInsightsSpecificationProperty -> Value
toJSON ContributorInsightsSpecificationProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ContributorInsightsSpecificationProperty -> ()
enabled :: ContributorInsightsSpecificationProperty -> Value Bool
mode :: ContributorInsightsSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Value Bool
mode :: 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
"Enabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enabled]
([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
"Mode" (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)
mode])))
instance Property "Enabled" ContributorInsightsSpecificationProperty where
type PropertyType "Enabled" ContributorInsightsSpecificationProperty = Value Prelude.Bool
set :: PropertyType "Enabled" ContributorInsightsSpecificationProperty
-> ContributorInsightsSpecificationProperty
-> ContributorInsightsSpecificationProperty
set PropertyType "Enabled" ContributorInsightsSpecificationProperty
newValue ContributorInsightsSpecificationProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ContributorInsightsSpecificationProperty -> ()
enabled :: ContributorInsightsSpecificationProperty -> Value Bool
mode :: ContributorInsightsSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Value Bool
mode :: Maybe (Value Text)
..}
= ContributorInsightsSpecificationProperty {enabled :: Value Bool
enabled = PropertyType "Enabled" ContributorInsightsSpecificationProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
mode :: Maybe (Value Text)
haddock_workaround_ :: ()
mode :: Maybe (Value Text)
..}
instance Property "Mode" ContributorInsightsSpecificationProperty where
type PropertyType "Mode" ContributorInsightsSpecificationProperty = Value Prelude.Text
set :: PropertyType "Mode" ContributorInsightsSpecificationProperty
-> ContributorInsightsSpecificationProperty
-> ContributorInsightsSpecificationProperty
set PropertyType "Mode" ContributorInsightsSpecificationProperty
newValue ContributorInsightsSpecificationProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ContributorInsightsSpecificationProperty -> ()
enabled :: ContributorInsightsSpecificationProperty -> Value Bool
mode :: ContributorInsightsSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Value Bool
mode :: Maybe (Value Text)
..}
= ContributorInsightsSpecificationProperty
{mode :: Maybe (Value Text)
mode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Mode" ContributorInsightsSpecificationProperty
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}