module Stratosphere.SSMIncidents.ResponsePlan.NotificationTargetItemProperty ( NotificationTargetItemProperty(..), mkNotificationTargetItemProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data NotificationTargetItemProperty = -- | See: NotificationTargetItemProperty {haddock_workaround_ :: (), -- | See: snsTopicArn :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkNotificationTargetItemProperty :: NotificationTargetItemProperty mkNotificationTargetItemProperty = NotificationTargetItemProperty {haddock_workaround_ = (), snsTopicArn = Prelude.Nothing} instance ToResourceProperties NotificationTargetItemProperty where toResourceProperties NotificationTargetItemProperty {..} = ResourceProperties {awsType = "AWS::SSMIncidents::ResponsePlan.NotificationTargetItem", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "SnsTopicArn" Prelude.<$> snsTopicArn])} instance JSON.ToJSON NotificationTargetItemProperty where toJSON NotificationTargetItemProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "SnsTopicArn" Prelude.<$> snsTopicArn])) instance Property "SnsTopicArn" NotificationTargetItemProperty where type PropertyType "SnsTopicArn" NotificationTargetItemProperty = Value Prelude.Text set newValue NotificationTargetItemProperty {..} = NotificationTargetItemProperty {snsTopicArn = Prelude.pure newValue, ..}