module Stratosphere.SES.ConfigurationSet.DeliveryOptionsProperty ( DeliveryOptionsProperty(..), mkDeliveryOptionsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data DeliveryOptionsProperty = -- | See: DeliveryOptionsProperty {haddock_workaround_ :: (), -- | See: maxDeliverySeconds :: (Prelude.Maybe (Value Prelude.Double)), -- | See: sendingPoolName :: (Prelude.Maybe (Value Prelude.Text)), -- | See: tlsPolicy :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkDeliveryOptionsProperty :: DeliveryOptionsProperty mkDeliveryOptionsProperty = DeliveryOptionsProperty {haddock_workaround_ = (), maxDeliverySeconds = Prelude.Nothing, sendingPoolName = Prelude.Nothing, tlsPolicy = Prelude.Nothing} instance ToResourceProperties DeliveryOptionsProperty where toResourceProperties DeliveryOptionsProperty {..} = ResourceProperties {awsType = "AWS::SES::ConfigurationSet.DeliveryOptions", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "MaxDeliverySeconds" Prelude.<$> maxDeliverySeconds, (JSON..=) "SendingPoolName" Prelude.<$> sendingPoolName, (JSON..=) "TlsPolicy" Prelude.<$> tlsPolicy])} instance JSON.ToJSON DeliveryOptionsProperty where toJSON DeliveryOptionsProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "MaxDeliverySeconds" Prelude.<$> maxDeliverySeconds, (JSON..=) "SendingPoolName" Prelude.<$> sendingPoolName, (JSON..=) "TlsPolicy" Prelude.<$> tlsPolicy])) instance Property "MaxDeliverySeconds" DeliveryOptionsProperty where type PropertyType "MaxDeliverySeconds" DeliveryOptionsProperty = Value Prelude.Double set newValue DeliveryOptionsProperty {..} = DeliveryOptionsProperty {maxDeliverySeconds = Prelude.pure newValue, ..} instance Property "SendingPoolName" DeliveryOptionsProperty where type PropertyType "SendingPoolName" DeliveryOptionsProperty = Value Prelude.Text set newValue DeliveryOptionsProperty {..} = DeliveryOptionsProperty {sendingPoolName = Prelude.pure newValue, ..} instance Property "TlsPolicy" DeliveryOptionsProperty where type PropertyType "TlsPolicy" DeliveryOptionsProperty = Value Prelude.Text set newValue DeliveryOptionsProperty {..} = DeliveryOptionsProperty {tlsPolicy = Prelude.pure newValue, ..}