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