module Stratosphere.Cassandra.Table.CdcSpecificationProperty (
CdcSpecificationProperty(..), mkCdcSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data CdcSpecificationProperty
=
CdcSpecificationProperty {CdcSpecificationProperty -> ()
haddock_workaround_ :: (),
CdcSpecificationProperty -> Value Text
status :: (Value Prelude.Text),
CdcSpecificationProperty -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
CdcSpecificationProperty -> Maybe (Value Text)
viewType :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (CdcSpecificationProperty -> CdcSpecificationProperty -> Bool
(CdcSpecificationProperty -> CdcSpecificationProperty -> Bool)
-> (CdcSpecificationProperty -> CdcSpecificationProperty -> Bool)
-> Eq CdcSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CdcSpecificationProperty -> CdcSpecificationProperty -> Bool
== :: CdcSpecificationProperty -> CdcSpecificationProperty -> Bool
$c/= :: CdcSpecificationProperty -> CdcSpecificationProperty -> Bool
/= :: CdcSpecificationProperty -> CdcSpecificationProperty -> Bool
Prelude.Eq, Int -> CdcSpecificationProperty -> ShowS
[CdcSpecificationProperty] -> ShowS
CdcSpecificationProperty -> String
(Int -> CdcSpecificationProperty -> ShowS)
-> (CdcSpecificationProperty -> String)
-> ([CdcSpecificationProperty] -> ShowS)
-> Show CdcSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CdcSpecificationProperty -> ShowS
showsPrec :: Int -> CdcSpecificationProperty -> ShowS
$cshow :: CdcSpecificationProperty -> String
show :: CdcSpecificationProperty -> String
$cshowList :: [CdcSpecificationProperty] -> ShowS
showList :: [CdcSpecificationProperty] -> ShowS
Prelude.Show)
mkCdcSpecificationProperty ::
Value Prelude.Text -> CdcSpecificationProperty
mkCdcSpecificationProperty :: Value Text -> CdcSpecificationProperty
mkCdcSpecificationProperty Value Text
status
= CdcSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), status :: Value Text
status = Value Text
status, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
viewType :: Maybe (Value Text)
viewType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CdcSpecificationProperty where
toResourceProperties :: CdcSpecificationProperty -> ResourceProperties
toResourceProperties CdcSpecificationProperty {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CdcSpecificationProperty -> ()
status :: CdcSpecificationProperty -> Value Text
tags :: CdcSpecificationProperty -> Maybe [Tag]
viewType :: CdcSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Value Text
tags :: Maybe [Tag]
viewType :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Cassandra::Table.CdcSpecification",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"Status" 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
status]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
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
"ViewType" (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)
viewType]))}
instance JSON.ToJSON CdcSpecificationProperty where
toJSON :: CdcSpecificationProperty -> Value
toJSON CdcSpecificationProperty {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CdcSpecificationProperty -> ()
status :: CdcSpecificationProperty -> Value Text
tags :: CdcSpecificationProperty -> Maybe [Tag]
viewType :: CdcSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Value Text
tags :: Maybe [Tag]
viewType :: 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
"Status" 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
status]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
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
"ViewType" (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)
viewType])))
instance Property "Status" CdcSpecificationProperty where
type PropertyType "Status" CdcSpecificationProperty = Value Prelude.Text
set :: PropertyType "Status" CdcSpecificationProperty
-> CdcSpecificationProperty -> CdcSpecificationProperty
set PropertyType "Status" CdcSpecificationProperty
newValue CdcSpecificationProperty {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CdcSpecificationProperty -> ()
status :: CdcSpecificationProperty -> Value Text
tags :: CdcSpecificationProperty -> Maybe [Tag]
viewType :: CdcSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Value Text
tags :: Maybe [Tag]
viewType :: Maybe (Value Text)
..}
= CdcSpecificationProperty {status :: Value Text
status = PropertyType "Status" CdcSpecificationProperty
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
tags :: Maybe [Tag]
viewType :: Maybe (Value Text)
haddock_workaround_ :: ()
tags :: Maybe [Tag]
viewType :: Maybe (Value Text)
..}
instance Property "Tags" CdcSpecificationProperty where
type PropertyType "Tags" CdcSpecificationProperty = [Tag]
set :: PropertyType "Tags" CdcSpecificationProperty
-> CdcSpecificationProperty -> CdcSpecificationProperty
set PropertyType "Tags" CdcSpecificationProperty
newValue CdcSpecificationProperty {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CdcSpecificationProperty -> ()
status :: CdcSpecificationProperty -> Value Text
tags :: CdcSpecificationProperty -> Maybe [Tag]
viewType :: CdcSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Value Text
tags :: Maybe [Tag]
viewType :: Maybe (Value Text)
..}
= CdcSpecificationProperty {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" CdcSpecificationProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
status :: Value Text
viewType :: Maybe (Value Text)
haddock_workaround_ :: ()
status :: Value Text
viewType :: Maybe (Value Text)
..}
instance Property "ViewType" CdcSpecificationProperty where
type PropertyType "ViewType" CdcSpecificationProperty = Value Prelude.Text
set :: PropertyType "ViewType" CdcSpecificationProperty
-> CdcSpecificationProperty -> CdcSpecificationProperty
set PropertyType "ViewType" CdcSpecificationProperty
newValue CdcSpecificationProperty {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CdcSpecificationProperty -> ()
status :: CdcSpecificationProperty -> Value Text
tags :: CdcSpecificationProperty -> Maybe [Tag]
viewType :: CdcSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Value Text
tags :: Maybe [Tag]
viewType :: Maybe (Value Text)
..}
= CdcSpecificationProperty {viewType :: Maybe (Value Text)
viewType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ViewType" CdcSpecificationProperty
Value Text
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
status :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
status :: Value Text
tags :: Maybe [Tag]
..}