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