module Stratosphere.SES.ReceiptRule.AddHeaderActionProperty ( AddHeaderActionProperty(..), mkAddHeaderActionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data AddHeaderActionProperty = -- | See: AddHeaderActionProperty {haddock_workaround_ :: (), -- | See: headerName :: (Value Prelude.Text), -- | See: headerValue :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkAddHeaderActionProperty :: Value Prelude.Text -> Value Prelude.Text -> AddHeaderActionProperty mkAddHeaderActionProperty headerName headerValue = AddHeaderActionProperty {haddock_workaround_ = (), headerName = headerName, headerValue = headerValue} instance ToResourceProperties AddHeaderActionProperty where toResourceProperties AddHeaderActionProperty {..} = ResourceProperties {awsType = "AWS::SES::ReceiptRule.AddHeaderAction", supportsTags = Prelude.False, properties = ["HeaderName" JSON..= headerName, "HeaderValue" JSON..= headerValue]} instance JSON.ToJSON AddHeaderActionProperty where toJSON AddHeaderActionProperty {..} = JSON.object ["HeaderName" JSON..= headerName, "HeaderValue" JSON..= headerValue] instance Property "HeaderName" AddHeaderActionProperty where type PropertyType "HeaderName" AddHeaderActionProperty = Value Prelude.Text set newValue AddHeaderActionProperty {..} = AddHeaderActionProperty {headerName = newValue, ..} instance Property "HeaderValue" AddHeaderActionProperty where type PropertyType "HeaderValue" AddHeaderActionProperty = Value Prelude.Text set newValue AddHeaderActionProperty {..} = AddHeaderActionProperty {headerValue = newValue, ..}