module Stratosphere.Synthetics.Canary.RetryConfigProperty (
        RetryConfigProperty(..), mkRetryConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RetryConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-retryconfig.html>
    RetryConfigProperty {RetryConfigProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-retryconfig.html#cfn-synthetics-canary-retryconfig-maxretries>
                         RetryConfigProperty -> Value Integer
maxRetries :: (Value Prelude.Integer)}
  deriving stock (RetryConfigProperty -> RetryConfigProperty -> Bool
(RetryConfigProperty -> RetryConfigProperty -> Bool)
-> (RetryConfigProperty -> RetryConfigProperty -> Bool)
-> Eq RetryConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RetryConfigProperty -> RetryConfigProperty -> Bool
== :: RetryConfigProperty -> RetryConfigProperty -> Bool
$c/= :: RetryConfigProperty -> RetryConfigProperty -> Bool
/= :: RetryConfigProperty -> RetryConfigProperty -> Bool
Prelude.Eq, Int -> RetryConfigProperty -> ShowS
[RetryConfigProperty] -> ShowS
RetryConfigProperty -> String
(Int -> RetryConfigProperty -> ShowS)
-> (RetryConfigProperty -> String)
-> ([RetryConfigProperty] -> ShowS)
-> Show RetryConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RetryConfigProperty -> ShowS
showsPrec :: Int -> RetryConfigProperty -> ShowS
$cshow :: RetryConfigProperty -> String
show :: RetryConfigProperty -> String
$cshowList :: [RetryConfigProperty] -> ShowS
showList :: [RetryConfigProperty] -> ShowS
Prelude.Show)
mkRetryConfigProperty ::
  Value Prelude.Integer -> RetryConfigProperty
mkRetryConfigProperty :: Value Integer -> RetryConfigProperty
mkRetryConfigProperty Value Integer
maxRetries
  = RetryConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), maxRetries :: Value Integer
maxRetries = Value Integer
maxRetries}
instance ToResourceProperties RetryConfigProperty where
  toResourceProperties :: RetryConfigProperty -> ResourceProperties
toResourceProperties RetryConfigProperty {()
Value Integer
haddock_workaround_ :: RetryConfigProperty -> ()
maxRetries :: RetryConfigProperty -> Value Integer
haddock_workaround_ :: ()
maxRetries :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Synthetics::Canary.RetryConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"MaxRetries" 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
maxRetries]}
instance JSON.ToJSON RetryConfigProperty where
  toJSON :: RetryConfigProperty -> Value
toJSON RetryConfigProperty {()
Value Integer
haddock_workaround_ :: RetryConfigProperty -> ()
maxRetries :: RetryConfigProperty -> Value Integer
haddock_workaround_ :: ()
maxRetries :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"MaxRetries" 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
maxRetries]
instance Property "MaxRetries" RetryConfigProperty where
  type PropertyType "MaxRetries" RetryConfigProperty = Value Prelude.Integer
  set :: PropertyType "MaxRetries" RetryConfigProperty
-> RetryConfigProperty -> RetryConfigProperty
set PropertyType "MaxRetries" RetryConfigProperty
newValue RetryConfigProperty {()
Value Integer
haddock_workaround_ :: RetryConfigProperty -> ()
maxRetries :: RetryConfigProperty -> Value Integer
haddock_workaround_ :: ()
maxRetries :: Value Integer
..}
    = RetryConfigProperty {maxRetries :: Value Integer
maxRetries = PropertyType "MaxRetries" RetryConfigProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}