module Stratosphere.Route53RecoveryControl.SafetyRule.GatingRuleProperty (
        GatingRuleProperty(..), mkGatingRuleProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GatingRuleProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53recoverycontrol-safetyrule-gatingrule.html>
    GatingRuleProperty {GatingRuleProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53recoverycontrol-safetyrule-gatingrule.html#cfn-route53recoverycontrol-safetyrule-gatingrule-gatingcontrols>
                        GatingRuleProperty -> ValueList Text
gatingControls :: (ValueList Prelude.Text),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53recoverycontrol-safetyrule-gatingrule.html#cfn-route53recoverycontrol-safetyrule-gatingrule-targetcontrols>
                        GatingRuleProperty -> ValueList Text
targetControls :: (ValueList Prelude.Text),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53recoverycontrol-safetyrule-gatingrule.html#cfn-route53recoverycontrol-safetyrule-gatingrule-waitperiodms>
                        GatingRuleProperty -> Value Integer
waitPeriodMs :: (Value Prelude.Integer)}
  deriving stock (GatingRuleProperty -> GatingRuleProperty -> Bool
(GatingRuleProperty -> GatingRuleProperty -> Bool)
-> (GatingRuleProperty -> GatingRuleProperty -> Bool)
-> Eq GatingRuleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GatingRuleProperty -> GatingRuleProperty -> Bool
== :: GatingRuleProperty -> GatingRuleProperty -> Bool
$c/= :: GatingRuleProperty -> GatingRuleProperty -> Bool
/= :: GatingRuleProperty -> GatingRuleProperty -> Bool
Prelude.Eq, Int -> GatingRuleProperty -> ShowS
[GatingRuleProperty] -> ShowS
GatingRuleProperty -> String
(Int -> GatingRuleProperty -> ShowS)
-> (GatingRuleProperty -> String)
-> ([GatingRuleProperty] -> ShowS)
-> Show GatingRuleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GatingRuleProperty -> ShowS
showsPrec :: Int -> GatingRuleProperty -> ShowS
$cshow :: GatingRuleProperty -> String
show :: GatingRuleProperty -> String
$cshowList :: [GatingRuleProperty] -> ShowS
showList :: [GatingRuleProperty] -> ShowS
Prelude.Show)
mkGatingRuleProperty ::
  ValueList Prelude.Text
  -> ValueList Prelude.Text
     -> Value Prelude.Integer -> GatingRuleProperty
mkGatingRuleProperty :: ValueList Text
-> ValueList Text -> Value Integer -> GatingRuleProperty
mkGatingRuleProperty ValueList Text
gatingControls ValueList Text
targetControls Value Integer
waitPeriodMs
  = GatingRuleProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), gatingControls :: ValueList Text
gatingControls = ValueList Text
gatingControls,
       targetControls :: ValueList Text
targetControls = ValueList Text
targetControls, waitPeriodMs :: Value Integer
waitPeriodMs = Value Integer
waitPeriodMs}
instance ToResourceProperties GatingRuleProperty where
  toResourceProperties :: GatingRuleProperty -> ResourceProperties
toResourceProperties GatingRuleProperty {()
ValueList Text
Value Integer
haddock_workaround_ :: GatingRuleProperty -> ()
gatingControls :: GatingRuleProperty -> ValueList Text
targetControls :: GatingRuleProperty -> ValueList Text
waitPeriodMs :: GatingRuleProperty -> Value Integer
haddock_workaround_ :: ()
gatingControls :: ValueList Text
targetControls :: ValueList Text
waitPeriodMs :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Route53RecoveryControl::SafetyRule.GatingRule",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"GatingControls" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
gatingControls,
                       Key
"TargetControls" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
targetControls,
                       Key
"WaitPeriodMs" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
waitPeriodMs]}
instance JSON.ToJSON GatingRuleProperty where
  toJSON :: GatingRuleProperty -> Value
toJSON GatingRuleProperty {()
ValueList Text
Value Integer
haddock_workaround_ :: GatingRuleProperty -> ()
gatingControls :: GatingRuleProperty -> ValueList Text
targetControls :: GatingRuleProperty -> ValueList Text
waitPeriodMs :: GatingRuleProperty -> Value Integer
haddock_workaround_ :: ()
gatingControls :: ValueList Text
targetControls :: ValueList Text
waitPeriodMs :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"GatingControls" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
gatingControls,
         Key
"TargetControls" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
targetControls,
         Key
"WaitPeriodMs" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
waitPeriodMs]
instance Property "GatingControls" GatingRuleProperty where
  type PropertyType "GatingControls" GatingRuleProperty = ValueList Prelude.Text
  set :: PropertyType "GatingControls" GatingRuleProperty
-> GatingRuleProperty -> GatingRuleProperty
set PropertyType "GatingControls" GatingRuleProperty
newValue GatingRuleProperty {()
ValueList Text
Value Integer
haddock_workaround_ :: GatingRuleProperty -> ()
gatingControls :: GatingRuleProperty -> ValueList Text
targetControls :: GatingRuleProperty -> ValueList Text
waitPeriodMs :: GatingRuleProperty -> Value Integer
haddock_workaround_ :: ()
gatingControls :: ValueList Text
targetControls :: ValueList Text
waitPeriodMs :: Value Integer
..}
    = GatingRuleProperty {gatingControls :: ValueList Text
gatingControls = PropertyType "GatingControls" GatingRuleProperty
ValueList Text
newValue, ()
ValueList Text
Value Integer
haddock_workaround_ :: ()
targetControls :: ValueList Text
waitPeriodMs :: Value Integer
haddock_workaround_ :: ()
targetControls :: ValueList Text
waitPeriodMs :: Value Integer
..}
instance Property "TargetControls" GatingRuleProperty where
  type PropertyType "TargetControls" GatingRuleProperty = ValueList Prelude.Text
  set :: PropertyType "TargetControls" GatingRuleProperty
-> GatingRuleProperty -> GatingRuleProperty
set PropertyType "TargetControls" GatingRuleProperty
newValue GatingRuleProperty {()
ValueList Text
Value Integer
haddock_workaround_ :: GatingRuleProperty -> ()
gatingControls :: GatingRuleProperty -> ValueList Text
targetControls :: GatingRuleProperty -> ValueList Text
waitPeriodMs :: GatingRuleProperty -> Value Integer
haddock_workaround_ :: ()
gatingControls :: ValueList Text
targetControls :: ValueList Text
waitPeriodMs :: Value Integer
..}
    = GatingRuleProperty {targetControls :: ValueList Text
targetControls = PropertyType "TargetControls" GatingRuleProperty
ValueList Text
newValue, ()
ValueList Text
Value Integer
haddock_workaround_ :: ()
gatingControls :: ValueList Text
waitPeriodMs :: Value Integer
haddock_workaround_ :: ()
gatingControls :: ValueList Text
waitPeriodMs :: Value Integer
..}
instance Property "WaitPeriodMs" GatingRuleProperty where
  type PropertyType "WaitPeriodMs" GatingRuleProperty = Value Prelude.Integer
  set :: PropertyType "WaitPeriodMs" GatingRuleProperty
-> GatingRuleProperty -> GatingRuleProperty
set PropertyType "WaitPeriodMs" GatingRuleProperty
newValue GatingRuleProperty {()
ValueList Text
Value Integer
haddock_workaround_ :: GatingRuleProperty -> ()
gatingControls :: GatingRuleProperty -> ValueList Text
targetControls :: GatingRuleProperty -> ValueList Text
waitPeriodMs :: GatingRuleProperty -> Value Integer
haddock_workaround_ :: ()
gatingControls :: ValueList Text
targetControls :: ValueList Text
waitPeriodMs :: Value Integer
..}
    = GatingRuleProperty {waitPeriodMs :: Value Integer
waitPeriodMs = PropertyType "WaitPeriodMs" GatingRuleProperty
Value Integer
newValue, ()
ValueList Text
haddock_workaround_ :: ()
gatingControls :: ValueList Text
targetControls :: ValueList Text
haddock_workaround_ :: ()
gatingControls :: ValueList Text
targetControls :: ValueList Text
..}