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