stratosphere-codestarnotifications-1.0.0: gen/Stratosphere/CodeStarNotifications/NotificationRule/TargetProperty.hs
module Stratosphere.CodeStarNotifications.NotificationRule.TargetProperty (
TargetProperty(..), mkTargetProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TargetProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestarnotifications-notificationrule-target.html>
TargetProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestarnotifications-notificationrule-target.html#cfn-codestarnotifications-notificationrule-target-targetaddress>
targetAddress :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestarnotifications-notificationrule-target.html#cfn-codestarnotifications-notificationrule-target-targettype>
targetType :: (Value Prelude.Text)}
deriving stock (Prelude.Eq, Prelude.Show)
mkTargetProperty ::
Value Prelude.Text -> Value Prelude.Text -> TargetProperty
mkTargetProperty targetAddress targetType
= TargetProperty
{haddock_workaround_ = (), targetAddress = targetAddress,
targetType = targetType}
instance ToResourceProperties TargetProperty where
toResourceProperties TargetProperty {..}
= ResourceProperties
{awsType = "AWS::CodeStarNotifications::NotificationRule.Target",
supportsTags = Prelude.False,
properties = ["TargetAddress" JSON..= targetAddress,
"TargetType" JSON..= targetType]}
instance JSON.ToJSON TargetProperty where
toJSON TargetProperty {..}
= JSON.object
["TargetAddress" JSON..= targetAddress,
"TargetType" JSON..= targetType]
instance Property "TargetAddress" TargetProperty where
type PropertyType "TargetAddress" TargetProperty = Value Prelude.Text
set newValue TargetProperty {..}
= TargetProperty {targetAddress = newValue, ..}
instance Property "TargetType" TargetProperty where
type PropertyType "TargetType" TargetProperty = Value Prelude.Text
set newValue TargetProperty {..}
= TargetProperty {targetType = newValue, ..}