module Stratosphere.MSK.Replicator.ReplicationStartingPositionProperty (
ReplicationStartingPositionProperty(..),
mkReplicationStartingPositionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReplicationStartingPositionProperty
=
ReplicationStartingPositionProperty {ReplicationStartingPositionProperty -> ()
haddock_workaround_ :: (),
ReplicationStartingPositionProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ReplicationStartingPositionProperty
-> ReplicationStartingPositionProperty -> Bool
(ReplicationStartingPositionProperty
-> ReplicationStartingPositionProperty -> Bool)
-> (ReplicationStartingPositionProperty
-> ReplicationStartingPositionProperty -> Bool)
-> Eq ReplicationStartingPositionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReplicationStartingPositionProperty
-> ReplicationStartingPositionProperty -> Bool
== :: ReplicationStartingPositionProperty
-> ReplicationStartingPositionProperty -> Bool
$c/= :: ReplicationStartingPositionProperty
-> ReplicationStartingPositionProperty -> Bool
/= :: ReplicationStartingPositionProperty
-> ReplicationStartingPositionProperty -> Bool
Prelude.Eq, Int -> ReplicationStartingPositionProperty -> ShowS
[ReplicationStartingPositionProperty] -> ShowS
ReplicationStartingPositionProperty -> String
(Int -> ReplicationStartingPositionProperty -> ShowS)
-> (ReplicationStartingPositionProperty -> String)
-> ([ReplicationStartingPositionProperty] -> ShowS)
-> Show ReplicationStartingPositionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReplicationStartingPositionProperty -> ShowS
showsPrec :: Int -> ReplicationStartingPositionProperty -> ShowS
$cshow :: ReplicationStartingPositionProperty -> String
show :: ReplicationStartingPositionProperty -> String
$cshowList :: [ReplicationStartingPositionProperty] -> ShowS
showList :: [ReplicationStartingPositionProperty] -> ShowS
Prelude.Show)
mkReplicationStartingPositionProperty ::
ReplicationStartingPositionProperty
mkReplicationStartingPositionProperty :: ReplicationStartingPositionProperty
mkReplicationStartingPositionProperty
= ReplicationStartingPositionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ReplicationStartingPositionProperty where
toResourceProperties :: ReplicationStartingPositionProperty -> ResourceProperties
toResourceProperties ReplicationStartingPositionProperty {Maybe (Value Text)
()
haddock_workaround_ :: ReplicationStartingPositionProperty -> ()
type' :: ReplicationStartingPositionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MSK::Replicator.ReplicationStartingPosition",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"Type" (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)
type'])}
instance JSON.ToJSON ReplicationStartingPositionProperty where
toJSON :: ReplicationStartingPositionProperty -> Value
toJSON ReplicationStartingPositionProperty {Maybe (Value Text)
()
haddock_workaround_ :: ReplicationStartingPositionProperty -> ()
type' :: ReplicationStartingPositionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"Type" (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)
type']))
instance Property "Type" ReplicationStartingPositionProperty where
type PropertyType "Type" ReplicationStartingPositionProperty = Value Prelude.Text
set :: PropertyType "Type" ReplicationStartingPositionProperty
-> ReplicationStartingPositionProperty
-> ReplicationStartingPositionProperty
set PropertyType "Type" ReplicationStartingPositionProperty
newValue ReplicationStartingPositionProperty {Maybe (Value Text)
()
haddock_workaround_ :: ReplicationStartingPositionProperty -> ()
type' :: ReplicationStartingPositionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
..}
= ReplicationStartingPositionProperty
{type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" ReplicationStartingPositionProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}