module Stratosphere.DataZone.Connection.LineageSyncScheduleProperty (
        LineageSyncScheduleProperty(..), mkLineageSyncScheduleProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LineageSyncScheduleProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-lineagesyncschedule.html>
    LineageSyncScheduleProperty {LineageSyncScheduleProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-lineagesyncschedule.html#cfn-datazone-connection-lineagesyncschedule-schedule>
                                 LineageSyncScheduleProperty -> Maybe (Value Text)
schedule :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (LineageSyncScheduleProperty -> LineageSyncScheduleProperty -> Bool
(LineageSyncScheduleProperty
 -> LineageSyncScheduleProperty -> Bool)
-> (LineageSyncScheduleProperty
    -> LineageSyncScheduleProperty -> Bool)
-> Eq LineageSyncScheduleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LineageSyncScheduleProperty -> LineageSyncScheduleProperty -> Bool
== :: LineageSyncScheduleProperty -> LineageSyncScheduleProperty -> Bool
$c/= :: LineageSyncScheduleProperty -> LineageSyncScheduleProperty -> Bool
/= :: LineageSyncScheduleProperty -> LineageSyncScheduleProperty -> Bool
Prelude.Eq, Int -> LineageSyncScheduleProperty -> ShowS
[LineageSyncScheduleProperty] -> ShowS
LineageSyncScheduleProperty -> String
(Int -> LineageSyncScheduleProperty -> ShowS)
-> (LineageSyncScheduleProperty -> String)
-> ([LineageSyncScheduleProperty] -> ShowS)
-> Show LineageSyncScheduleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LineageSyncScheduleProperty -> ShowS
showsPrec :: Int -> LineageSyncScheduleProperty -> ShowS
$cshow :: LineageSyncScheduleProperty -> String
show :: LineageSyncScheduleProperty -> String
$cshowList :: [LineageSyncScheduleProperty] -> ShowS
showList :: [LineageSyncScheduleProperty] -> ShowS
Prelude.Show)
mkLineageSyncScheduleProperty :: LineageSyncScheduleProperty
mkLineageSyncScheduleProperty :: LineageSyncScheduleProperty
mkLineageSyncScheduleProperty
  = LineageSyncScheduleProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), schedule :: Maybe (Value Text)
schedule = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LineageSyncScheduleProperty where
  toResourceProperties :: LineageSyncScheduleProperty -> ResourceProperties
toResourceProperties LineageSyncScheduleProperty {Maybe (Value Text)
()
haddock_workaround_ :: LineageSyncScheduleProperty -> ()
schedule :: LineageSyncScheduleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
schedule :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataZone::Connection.LineageSyncSchedule",
         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
"Schedule" (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)
schedule])}
instance JSON.ToJSON LineageSyncScheduleProperty where
  toJSON :: LineageSyncScheduleProperty -> Value
toJSON LineageSyncScheduleProperty {Maybe (Value Text)
()
haddock_workaround_ :: LineageSyncScheduleProperty -> ()
schedule :: LineageSyncScheduleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
schedule :: 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
"Schedule" (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)
schedule]))
instance Property "Schedule" LineageSyncScheduleProperty where
  type PropertyType "Schedule" LineageSyncScheduleProperty = Value Prelude.Text
  set :: PropertyType "Schedule" LineageSyncScheduleProperty
-> LineageSyncScheduleProperty -> LineageSyncScheduleProperty
set PropertyType "Schedule" LineageSyncScheduleProperty
newValue LineageSyncScheduleProperty {Maybe (Value Text)
()
haddock_workaround_ :: LineageSyncScheduleProperty -> ()
schedule :: LineageSyncScheduleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
schedule :: Maybe (Value Text)
..}
    = LineageSyncScheduleProperty
        {schedule :: Maybe (Value Text)
schedule = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Schedule" LineageSyncScheduleProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}