module Stratosphere.Events.Endpoint.ReplicationConfigProperty (
        ReplicationConfigProperty(..), mkReplicationConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReplicationConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-endpoint-replicationconfig.html>
    ReplicationConfigProperty {ReplicationConfigProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-endpoint-replicationconfig.html#cfn-events-endpoint-replicationconfig-state>
                               ReplicationConfigProperty -> Value Text
state :: (Value Prelude.Text)}
  deriving stock (ReplicationConfigProperty -> ReplicationConfigProperty -> Bool
(ReplicationConfigProperty -> ReplicationConfigProperty -> Bool)
-> (ReplicationConfigProperty -> ReplicationConfigProperty -> Bool)
-> Eq ReplicationConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReplicationConfigProperty -> ReplicationConfigProperty -> Bool
== :: ReplicationConfigProperty -> ReplicationConfigProperty -> Bool
$c/= :: ReplicationConfigProperty -> ReplicationConfigProperty -> Bool
/= :: ReplicationConfigProperty -> ReplicationConfigProperty -> Bool
Prelude.Eq, Int -> ReplicationConfigProperty -> ShowS
[ReplicationConfigProperty] -> ShowS
ReplicationConfigProperty -> String
(Int -> ReplicationConfigProperty -> ShowS)
-> (ReplicationConfigProperty -> String)
-> ([ReplicationConfigProperty] -> ShowS)
-> Show ReplicationConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReplicationConfigProperty -> ShowS
showsPrec :: Int -> ReplicationConfigProperty -> ShowS
$cshow :: ReplicationConfigProperty -> String
show :: ReplicationConfigProperty -> String
$cshowList :: [ReplicationConfigProperty] -> ShowS
showList :: [ReplicationConfigProperty] -> ShowS
Prelude.Show)
mkReplicationConfigProperty ::
  Value Prelude.Text -> ReplicationConfigProperty
mkReplicationConfigProperty :: Value Text -> ReplicationConfigProperty
mkReplicationConfigProperty Value Text
state
  = ReplicationConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), state :: Value Text
state = Value Text
state}
instance ToResourceProperties ReplicationConfigProperty where
  toResourceProperties :: ReplicationConfigProperty -> ResourceProperties
toResourceProperties ReplicationConfigProperty {()
Value Text
haddock_workaround_ :: ReplicationConfigProperty -> ()
state :: ReplicationConfigProperty -> Value Text
haddock_workaround_ :: ()
state :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Events::Endpoint.ReplicationConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"State" 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
state]}
instance JSON.ToJSON ReplicationConfigProperty where
  toJSON :: ReplicationConfigProperty -> Value
toJSON ReplicationConfigProperty {()
Value Text
haddock_workaround_ :: ReplicationConfigProperty -> ()
state :: ReplicationConfigProperty -> Value Text
haddock_workaround_ :: ()
state :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"State" 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
state]
instance Property "State" ReplicationConfigProperty where
  type PropertyType "State" ReplicationConfigProperty = Value Prelude.Text
  set :: PropertyType "State" ReplicationConfigProperty
-> ReplicationConfigProperty -> ReplicationConfigProperty
set PropertyType "State" ReplicationConfigProperty
newValue ReplicationConfigProperty {()
Value Text
haddock_workaround_ :: ReplicationConfigProperty -> ()
state :: ReplicationConfigProperty -> Value Text
haddock_workaround_ :: ()
state :: Value Text
..}
    = ReplicationConfigProperty {state :: Value Text
state = PropertyType "State" ReplicationConfigProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}