module Stratosphere.AppIntegrations.DataIntegration.ScheduleConfigProperty (
        ScheduleConfigProperty(..), mkScheduleConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ScheduleConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appintegrations-dataintegration-scheduleconfig.html>
    ScheduleConfigProperty {ScheduleConfigProperty -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appintegrations-dataintegration-scheduleconfig.html#cfn-appintegrations-dataintegration-scheduleconfig-firstexecutionfrom>
                            ScheduleConfigProperty -> Maybe (Value Text)
firstExecutionFrom :: (Prelude.Maybe (Value Prelude.Text)),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appintegrations-dataintegration-scheduleconfig.html#cfn-appintegrations-dataintegration-scheduleconfig-object>
                            ScheduleConfigProperty -> Maybe (Value Text)
object :: (Prelude.Maybe (Value Prelude.Text)),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appintegrations-dataintegration-scheduleconfig.html#cfn-appintegrations-dataintegration-scheduleconfig-scheduleexpression>
                            ScheduleConfigProperty -> Value Text
scheduleExpression :: (Value Prelude.Text)}
  deriving stock (ScheduleConfigProperty -> ScheduleConfigProperty -> Bool
(ScheduleConfigProperty -> ScheduleConfigProperty -> Bool)
-> (ScheduleConfigProperty -> ScheduleConfigProperty -> Bool)
-> Eq ScheduleConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScheduleConfigProperty -> ScheduleConfigProperty -> Bool
== :: ScheduleConfigProperty -> ScheduleConfigProperty -> Bool
$c/= :: ScheduleConfigProperty -> ScheduleConfigProperty -> Bool
/= :: ScheduleConfigProperty -> ScheduleConfigProperty -> Bool
Prelude.Eq, Int -> ScheduleConfigProperty -> ShowS
[ScheduleConfigProperty] -> ShowS
ScheduleConfigProperty -> String
(Int -> ScheduleConfigProperty -> ShowS)
-> (ScheduleConfigProperty -> String)
-> ([ScheduleConfigProperty] -> ShowS)
-> Show ScheduleConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScheduleConfigProperty -> ShowS
showsPrec :: Int -> ScheduleConfigProperty -> ShowS
$cshow :: ScheduleConfigProperty -> String
show :: ScheduleConfigProperty -> String
$cshowList :: [ScheduleConfigProperty] -> ShowS
showList :: [ScheduleConfigProperty] -> ShowS
Prelude.Show)
mkScheduleConfigProperty ::
  Value Prelude.Text -> ScheduleConfigProperty
mkScheduleConfigProperty :: Value Text -> ScheduleConfigProperty
mkScheduleConfigProperty Value Text
scheduleExpression
  = ScheduleConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), scheduleExpression :: Value Text
scheduleExpression = Value Text
scheduleExpression,
       firstExecutionFrom :: Maybe (Value Text)
firstExecutionFrom = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, object :: Maybe (Value Text)
object = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ScheduleConfigProperty where
  toResourceProperties :: ScheduleConfigProperty -> ResourceProperties
toResourceProperties ScheduleConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ScheduleConfigProperty -> ()
firstExecutionFrom :: ScheduleConfigProperty -> Maybe (Value Text)
object :: ScheduleConfigProperty -> Maybe (Value Text)
scheduleExpression :: ScheduleConfigProperty -> Value Text
haddock_workaround_ :: ()
firstExecutionFrom :: Maybe (Value Text)
object :: Maybe (Value Text)
scheduleExpression :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppIntegrations::DataIntegration.ScheduleConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"ScheduleExpression" 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
scheduleExpression]
                           ([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
"FirstExecutionFrom" (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)
firstExecutionFrom,
                               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
"Object" (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)
object]))}
instance JSON.ToJSON ScheduleConfigProperty where
  toJSON :: ScheduleConfigProperty -> Value
toJSON ScheduleConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ScheduleConfigProperty -> ()
firstExecutionFrom :: ScheduleConfigProperty -> Maybe (Value Text)
object :: ScheduleConfigProperty -> Maybe (Value Text)
scheduleExpression :: ScheduleConfigProperty -> Value Text
haddock_workaround_ :: ()
firstExecutionFrom :: Maybe (Value Text)
object :: Maybe (Value Text)
scheduleExpression :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"ScheduleExpression" 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
scheduleExpression]
              ([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
"FirstExecutionFrom" (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)
firstExecutionFrom,
                  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
"Object" (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)
object])))
instance Property "FirstExecutionFrom" ScheduleConfigProperty where
  type PropertyType "FirstExecutionFrom" ScheduleConfigProperty = Value Prelude.Text
  set :: PropertyType "FirstExecutionFrom" ScheduleConfigProperty
-> ScheduleConfigProperty -> ScheduleConfigProperty
set PropertyType "FirstExecutionFrom" ScheduleConfigProperty
newValue ScheduleConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ScheduleConfigProperty -> ()
firstExecutionFrom :: ScheduleConfigProperty -> Maybe (Value Text)
object :: ScheduleConfigProperty -> Maybe (Value Text)
scheduleExpression :: ScheduleConfigProperty -> Value Text
haddock_workaround_ :: ()
firstExecutionFrom :: Maybe (Value Text)
object :: Maybe (Value Text)
scheduleExpression :: Value Text
..}
    = ScheduleConfigProperty
        {firstExecutionFrom :: Maybe (Value Text)
firstExecutionFrom = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FirstExecutionFrom" ScheduleConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
object :: Maybe (Value Text)
scheduleExpression :: Value Text
haddock_workaround_ :: ()
object :: Maybe (Value Text)
scheduleExpression :: Value Text
..}
instance Property "Object" ScheduleConfigProperty where
  type PropertyType "Object" ScheduleConfigProperty = Value Prelude.Text
  set :: PropertyType "Object" ScheduleConfigProperty
-> ScheduleConfigProperty -> ScheduleConfigProperty
set PropertyType "Object" ScheduleConfigProperty
newValue ScheduleConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ScheduleConfigProperty -> ()
firstExecutionFrom :: ScheduleConfigProperty -> Maybe (Value Text)
object :: ScheduleConfigProperty -> Maybe (Value Text)
scheduleExpression :: ScheduleConfigProperty -> Value Text
haddock_workaround_ :: ()
firstExecutionFrom :: Maybe (Value Text)
object :: Maybe (Value Text)
scheduleExpression :: Value Text
..}
    = ScheduleConfigProperty {object :: Maybe (Value Text)
object = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Object" ScheduleConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
firstExecutionFrom :: Maybe (Value Text)
scheduleExpression :: Value Text
haddock_workaround_ :: ()
firstExecutionFrom :: Maybe (Value Text)
scheduleExpression :: Value Text
..}
instance Property "ScheduleExpression" ScheduleConfigProperty where
  type PropertyType "ScheduleExpression" ScheduleConfigProperty = Value Prelude.Text
  set :: PropertyType "ScheduleExpression" ScheduleConfigProperty
-> ScheduleConfigProperty -> ScheduleConfigProperty
set PropertyType "ScheduleExpression" ScheduleConfigProperty
newValue ScheduleConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ScheduleConfigProperty -> ()
firstExecutionFrom :: ScheduleConfigProperty -> Maybe (Value Text)
object :: ScheduleConfigProperty -> Maybe (Value Text)
scheduleExpression :: ScheduleConfigProperty -> Value Text
haddock_workaround_ :: ()
firstExecutionFrom :: Maybe (Value Text)
object :: Maybe (Value Text)
scheduleExpression :: Value Text
..}
    = ScheduleConfigProperty {scheduleExpression :: Value Text
scheduleExpression = PropertyType "ScheduleExpression" ScheduleConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
firstExecutionFrom :: Maybe (Value Text)
object :: Maybe (Value Text)
haddock_workaround_ :: ()
firstExecutionFrom :: Maybe (Value Text)
object :: Maybe (Value Text)
..}