module Stratosphere.SSMIncidents.ResponsePlan.IntegrationProperty (
        module Exports, IntegrationProperty(..), mkIntegrationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SSMIncidents.ResponsePlan.PagerDutyConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data IntegrationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmincidents-responseplan-integration.html>
    IntegrationProperty {IntegrationProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmincidents-responseplan-integration.html#cfn-ssmincidents-responseplan-integration-pagerdutyconfiguration>
                         IntegrationProperty -> PagerDutyConfigurationProperty
pagerDutyConfiguration :: PagerDutyConfigurationProperty}
  deriving stock (IntegrationProperty -> IntegrationProperty -> Bool
(IntegrationProperty -> IntegrationProperty -> Bool)
-> (IntegrationProperty -> IntegrationProperty -> Bool)
-> Eq IntegrationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IntegrationProperty -> IntegrationProperty -> Bool
== :: IntegrationProperty -> IntegrationProperty -> Bool
$c/= :: IntegrationProperty -> IntegrationProperty -> Bool
/= :: IntegrationProperty -> IntegrationProperty -> Bool
Prelude.Eq, Int -> IntegrationProperty -> ShowS
[IntegrationProperty] -> ShowS
IntegrationProperty -> String
(Int -> IntegrationProperty -> ShowS)
-> (IntegrationProperty -> String)
-> ([IntegrationProperty] -> ShowS)
-> Show IntegrationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IntegrationProperty -> ShowS
showsPrec :: Int -> IntegrationProperty -> ShowS
$cshow :: IntegrationProperty -> String
show :: IntegrationProperty -> String
$cshowList :: [IntegrationProperty] -> ShowS
showList :: [IntegrationProperty] -> ShowS
Prelude.Show)
mkIntegrationProperty ::
  PagerDutyConfigurationProperty -> IntegrationProperty
mkIntegrationProperty :: PagerDutyConfigurationProperty -> IntegrationProperty
mkIntegrationProperty PagerDutyConfigurationProperty
pagerDutyConfiguration
  = IntegrationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       pagerDutyConfiguration :: PagerDutyConfigurationProperty
pagerDutyConfiguration = PagerDutyConfigurationProperty
pagerDutyConfiguration}
instance ToResourceProperties IntegrationProperty where
  toResourceProperties :: IntegrationProperty -> ResourceProperties
toResourceProperties IntegrationProperty {()
PagerDutyConfigurationProperty
haddock_workaround_ :: IntegrationProperty -> ()
pagerDutyConfiguration :: IntegrationProperty -> PagerDutyConfigurationProperty
haddock_workaround_ :: ()
pagerDutyConfiguration :: PagerDutyConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SSMIncidents::ResponsePlan.Integration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"PagerDutyConfiguration"
                         Key -> PagerDutyConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= PagerDutyConfigurationProperty
pagerDutyConfiguration]}
instance JSON.ToJSON IntegrationProperty where
  toJSON :: IntegrationProperty -> Value
toJSON IntegrationProperty {()
PagerDutyConfigurationProperty
haddock_workaround_ :: IntegrationProperty -> ()
pagerDutyConfiguration :: IntegrationProperty -> PagerDutyConfigurationProperty
haddock_workaround_ :: ()
pagerDutyConfiguration :: PagerDutyConfigurationProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"PagerDutyConfiguration" Key -> PagerDutyConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= PagerDutyConfigurationProperty
pagerDutyConfiguration]
instance Property "PagerDutyConfiguration" IntegrationProperty where
  type PropertyType "PagerDutyConfiguration" IntegrationProperty = PagerDutyConfigurationProperty
  set :: PropertyType "PagerDutyConfiguration" IntegrationProperty
-> IntegrationProperty -> IntegrationProperty
set PropertyType "PagerDutyConfiguration" IntegrationProperty
newValue IntegrationProperty {()
PagerDutyConfigurationProperty
haddock_workaround_ :: IntegrationProperty -> ()
pagerDutyConfiguration :: IntegrationProperty -> PagerDutyConfigurationProperty
haddock_workaround_ :: ()
pagerDutyConfiguration :: PagerDutyConfigurationProperty
..}
    = IntegrationProperty {pagerDutyConfiguration :: PagerDutyConfigurationProperty
pagerDutyConfiguration = PropertyType "PagerDutyConfiguration" IntegrationProperty
PagerDutyConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}