module Stratosphere.SSMIncidents.ResponsePlan.PagerDutyIncidentConfigurationProperty (
        PagerDutyIncidentConfigurationProperty(..),
        mkPagerDutyIncidentConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PagerDutyIncidentConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmincidents-responseplan-pagerdutyincidentconfiguration.html>
    PagerDutyIncidentConfigurationProperty {PagerDutyIncidentConfigurationProperty -> ()
haddock_workaround_ :: (),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmincidents-responseplan-pagerdutyincidentconfiguration.html#cfn-ssmincidents-responseplan-pagerdutyincidentconfiguration-serviceid>
                                            PagerDutyIncidentConfigurationProperty -> Value Text
serviceId :: (Value Prelude.Text)}
  deriving stock (PagerDutyIncidentConfigurationProperty
-> PagerDutyIncidentConfigurationProperty -> Bool
(PagerDutyIncidentConfigurationProperty
 -> PagerDutyIncidentConfigurationProperty -> Bool)
-> (PagerDutyIncidentConfigurationProperty
    -> PagerDutyIncidentConfigurationProperty -> Bool)
-> Eq PagerDutyIncidentConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PagerDutyIncidentConfigurationProperty
-> PagerDutyIncidentConfigurationProperty -> Bool
== :: PagerDutyIncidentConfigurationProperty
-> PagerDutyIncidentConfigurationProperty -> Bool
$c/= :: PagerDutyIncidentConfigurationProperty
-> PagerDutyIncidentConfigurationProperty -> Bool
/= :: PagerDutyIncidentConfigurationProperty
-> PagerDutyIncidentConfigurationProperty -> Bool
Prelude.Eq, Int -> PagerDutyIncidentConfigurationProperty -> ShowS
[PagerDutyIncidentConfigurationProperty] -> ShowS
PagerDutyIncidentConfigurationProperty -> String
(Int -> PagerDutyIncidentConfigurationProperty -> ShowS)
-> (PagerDutyIncidentConfigurationProperty -> String)
-> ([PagerDutyIncidentConfigurationProperty] -> ShowS)
-> Show PagerDutyIncidentConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PagerDutyIncidentConfigurationProperty -> ShowS
showsPrec :: Int -> PagerDutyIncidentConfigurationProperty -> ShowS
$cshow :: PagerDutyIncidentConfigurationProperty -> String
show :: PagerDutyIncidentConfigurationProperty -> String
$cshowList :: [PagerDutyIncidentConfigurationProperty] -> ShowS
showList :: [PagerDutyIncidentConfigurationProperty] -> ShowS
Prelude.Show)
mkPagerDutyIncidentConfigurationProperty ::
  Value Prelude.Text -> PagerDutyIncidentConfigurationProperty
mkPagerDutyIncidentConfigurationProperty :: Value Text -> PagerDutyIncidentConfigurationProperty
mkPagerDutyIncidentConfigurationProperty Value Text
serviceId
  = PagerDutyIncidentConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), serviceId :: Value Text
serviceId = Value Text
serviceId}
instance ToResourceProperties PagerDutyIncidentConfigurationProperty where
  toResourceProperties :: PagerDutyIncidentConfigurationProperty -> ResourceProperties
toResourceProperties PagerDutyIncidentConfigurationProperty {()
Value Text
haddock_workaround_ :: PagerDutyIncidentConfigurationProperty -> ()
serviceId :: PagerDutyIncidentConfigurationProperty -> Value Text
haddock_workaround_ :: ()
serviceId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SSMIncidents::ResponsePlan.PagerDutyIncidentConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ServiceId" 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
serviceId]}
instance JSON.ToJSON PagerDutyIncidentConfigurationProperty where
  toJSON :: PagerDutyIncidentConfigurationProperty -> Value
toJSON PagerDutyIncidentConfigurationProperty {()
Value Text
haddock_workaround_ :: PagerDutyIncidentConfigurationProperty -> ()
serviceId :: PagerDutyIncidentConfigurationProperty -> Value Text
haddock_workaround_ :: ()
serviceId :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"ServiceId" 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
serviceId]
instance Property "ServiceId" PagerDutyIncidentConfigurationProperty where
  type PropertyType "ServiceId" PagerDutyIncidentConfigurationProperty = Value Prelude.Text
  set :: PropertyType "ServiceId" PagerDutyIncidentConfigurationProperty
-> PagerDutyIncidentConfigurationProperty
-> PagerDutyIncidentConfigurationProperty
set PropertyType "ServiceId" PagerDutyIncidentConfigurationProperty
newValue PagerDutyIncidentConfigurationProperty {()
Value Text
haddock_workaround_ :: PagerDutyIncidentConfigurationProperty -> ()
serviceId :: PagerDutyIncidentConfigurationProperty -> Value Text
haddock_workaround_ :: ()
serviceId :: Value Text
..}
    = PagerDutyIncidentConfigurationProperty {serviceId :: Value Text
serviceId = PropertyType "ServiceId" PagerDutyIncidentConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}