module Stratosphere.SES.DedicatedIpPool ( DedicatedIpPool(..), mkDedicatedIpPool ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data DedicatedIpPool = -- | See: DedicatedIpPool {haddock_workaround_ :: (), -- | See: poolName :: (Prelude.Maybe (Value Prelude.Text)), -- | See: scalingMode :: (Prelude.Maybe (Value Prelude.Text)), -- | See: tags :: (Prelude.Maybe [Tag])} deriving stock (Prelude.Eq, Prelude.Show) mkDedicatedIpPool :: DedicatedIpPool mkDedicatedIpPool = DedicatedIpPool {haddock_workaround_ = (), poolName = Prelude.Nothing, scalingMode = Prelude.Nothing, tags = Prelude.Nothing} instance ToResourceProperties DedicatedIpPool where toResourceProperties DedicatedIpPool {..} = ResourceProperties {awsType = "AWS::SES::DedicatedIpPool", supportsTags = Prelude.True, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "PoolName" Prelude.<$> poolName, (JSON..=) "ScalingMode" Prelude.<$> scalingMode, (JSON..=) "Tags" Prelude.<$> tags])} instance JSON.ToJSON DedicatedIpPool where toJSON DedicatedIpPool {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "PoolName" Prelude.<$> poolName, (JSON..=) "ScalingMode" Prelude.<$> scalingMode, (JSON..=) "Tags" Prelude.<$> tags])) instance Property "PoolName" DedicatedIpPool where type PropertyType "PoolName" DedicatedIpPool = Value Prelude.Text set newValue DedicatedIpPool {..} = DedicatedIpPool {poolName = Prelude.pure newValue, ..} instance Property "ScalingMode" DedicatedIpPool where type PropertyType "ScalingMode" DedicatedIpPool = Value Prelude.Text set newValue DedicatedIpPool {..} = DedicatedIpPool {scalingMode = Prelude.pure newValue, ..} instance Property "Tags" DedicatedIpPool where type PropertyType "Tags" DedicatedIpPool = [Tag] set newValue DedicatedIpPool {..} = DedicatedIpPool {tags = Prelude.pure newValue, ..}