module Stratosphere.SSMContacts.Contact.ChannelTargetInfoProperty (
        ChannelTargetInfoProperty(..), mkChannelTargetInfoProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ChannelTargetInfoProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-contact-channeltargetinfo.html>
    ChannelTargetInfoProperty {ChannelTargetInfoProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-contact-channeltargetinfo.html#cfn-ssmcontacts-contact-channeltargetinfo-channelid>
                               ChannelTargetInfoProperty -> Value Text
channelId :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmcontacts-contact-channeltargetinfo.html#cfn-ssmcontacts-contact-channeltargetinfo-retryintervalinminutes>
                               ChannelTargetInfoProperty -> Value Integer
retryIntervalInMinutes :: (Value Prelude.Integer)}
  deriving stock (ChannelTargetInfoProperty -> ChannelTargetInfoProperty -> Bool
(ChannelTargetInfoProperty -> ChannelTargetInfoProperty -> Bool)
-> (ChannelTargetInfoProperty -> ChannelTargetInfoProperty -> Bool)
-> Eq ChannelTargetInfoProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ChannelTargetInfoProperty -> ChannelTargetInfoProperty -> Bool
== :: ChannelTargetInfoProperty -> ChannelTargetInfoProperty -> Bool
$c/= :: ChannelTargetInfoProperty -> ChannelTargetInfoProperty -> Bool
/= :: ChannelTargetInfoProperty -> ChannelTargetInfoProperty -> Bool
Prelude.Eq, Int -> ChannelTargetInfoProperty -> ShowS
[ChannelTargetInfoProperty] -> ShowS
ChannelTargetInfoProperty -> String
(Int -> ChannelTargetInfoProperty -> ShowS)
-> (ChannelTargetInfoProperty -> String)
-> ([ChannelTargetInfoProperty] -> ShowS)
-> Show ChannelTargetInfoProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ChannelTargetInfoProperty -> ShowS
showsPrec :: Int -> ChannelTargetInfoProperty -> ShowS
$cshow :: ChannelTargetInfoProperty -> String
show :: ChannelTargetInfoProperty -> String
$cshowList :: [ChannelTargetInfoProperty] -> ShowS
showList :: [ChannelTargetInfoProperty] -> ShowS
Prelude.Show)
mkChannelTargetInfoProperty ::
  Value Prelude.Text
  -> Value Prelude.Integer -> ChannelTargetInfoProperty
mkChannelTargetInfoProperty :: Value Text -> Value Integer -> ChannelTargetInfoProperty
mkChannelTargetInfoProperty Value Text
channelId Value Integer
retryIntervalInMinutes
  = ChannelTargetInfoProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), channelId :: Value Text
channelId = Value Text
channelId,
       retryIntervalInMinutes :: Value Integer
retryIntervalInMinutes = Value Integer
retryIntervalInMinutes}
instance ToResourceProperties ChannelTargetInfoProperty where
  toResourceProperties :: ChannelTargetInfoProperty -> ResourceProperties
toResourceProperties ChannelTargetInfoProperty {()
Value Integer
Value Text
haddock_workaround_ :: ChannelTargetInfoProperty -> ()
channelId :: ChannelTargetInfoProperty -> Value Text
retryIntervalInMinutes :: ChannelTargetInfoProperty -> Value Integer
haddock_workaround_ :: ()
channelId :: Value Text
retryIntervalInMinutes :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SSMContacts::Contact.ChannelTargetInfo",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ChannelId" 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
channelId,
                       Key
"RetryIntervalInMinutes" 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
retryIntervalInMinutes]}
instance JSON.ToJSON ChannelTargetInfoProperty where
  toJSON :: ChannelTargetInfoProperty -> Value
toJSON ChannelTargetInfoProperty {()
Value Integer
Value Text
haddock_workaround_ :: ChannelTargetInfoProperty -> ()
channelId :: ChannelTargetInfoProperty -> Value Text
retryIntervalInMinutes :: ChannelTargetInfoProperty -> Value Integer
haddock_workaround_ :: ()
channelId :: Value Text
retryIntervalInMinutes :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ChannelId" 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
channelId,
         Key
"RetryIntervalInMinutes" 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
retryIntervalInMinutes]
instance Property "ChannelId" ChannelTargetInfoProperty where
  type PropertyType "ChannelId" ChannelTargetInfoProperty = Value Prelude.Text
  set :: PropertyType "ChannelId" ChannelTargetInfoProperty
-> ChannelTargetInfoProperty -> ChannelTargetInfoProperty
set PropertyType "ChannelId" ChannelTargetInfoProperty
newValue ChannelTargetInfoProperty {()
Value Integer
Value Text
haddock_workaround_ :: ChannelTargetInfoProperty -> ()
channelId :: ChannelTargetInfoProperty -> Value Text
retryIntervalInMinutes :: ChannelTargetInfoProperty -> Value Integer
haddock_workaround_ :: ()
channelId :: Value Text
retryIntervalInMinutes :: Value Integer
..}
    = ChannelTargetInfoProperty {channelId :: Value Text
channelId = PropertyType "ChannelId" ChannelTargetInfoProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
retryIntervalInMinutes :: Value Integer
haddock_workaround_ :: ()
retryIntervalInMinutes :: Value Integer
..}
instance Property "RetryIntervalInMinutes" ChannelTargetInfoProperty where
  type PropertyType "RetryIntervalInMinutes" ChannelTargetInfoProperty = Value Prelude.Integer
  set :: PropertyType "RetryIntervalInMinutes" ChannelTargetInfoProperty
-> ChannelTargetInfoProperty -> ChannelTargetInfoProperty
set PropertyType "RetryIntervalInMinutes" ChannelTargetInfoProperty
newValue ChannelTargetInfoProperty {()
Value Integer
Value Text
haddock_workaround_ :: ChannelTargetInfoProperty -> ()
channelId :: ChannelTargetInfoProperty -> Value Text
retryIntervalInMinutes :: ChannelTargetInfoProperty -> Value Integer
haddock_workaround_ :: ()
channelId :: Value Text
retryIntervalInMinutes :: Value Integer
..}
    = ChannelTargetInfoProperty {retryIntervalInMinutes :: Value Integer
retryIntervalInMinutes = PropertyType "RetryIntervalInMinutes" ChannelTargetInfoProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
channelId :: Value Text
haddock_workaround_ :: ()
channelId :: Value Text
..}