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: ReplicationConfigProperty {haddock_workaround_ :: (), -- | See: state :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkReplicationConfigProperty :: Value Prelude.Text -> ReplicationConfigProperty mkReplicationConfigProperty state = ReplicationConfigProperty {haddock_workaround_ = (), state = state} instance ToResourceProperties ReplicationConfigProperty where toResourceProperties ReplicationConfigProperty {..} = ResourceProperties {awsType = "AWS::Events::Endpoint.ReplicationConfig", supportsTags = Prelude.False, properties = ["State" JSON..= state]} instance JSON.ToJSON ReplicationConfigProperty where toJSON ReplicationConfigProperty {..} = JSON.object ["State" JSON..= state] instance Property "State" ReplicationConfigProperty where type PropertyType "State" ReplicationConfigProperty = Value Prelude.Text set newValue ReplicationConfigProperty {..} = ReplicationConfigProperty {state = newValue, ..}