module Stratosphere.EC2.EC2Fleet.BaselinePerformanceFactorsRequestProperty ( module Exports, BaselinePerformanceFactorsRequestProperty(..), mkBaselinePerformanceFactorsRequestProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.EC2.EC2Fleet.CpuPerformanceFactorRequestProperty as Exports import Stratosphere.ResourceProperties data BaselinePerformanceFactorsRequestProperty = -- | See: BaselinePerformanceFactorsRequestProperty {haddock_workaround_ :: (), -- | See: cpu :: (Prelude.Maybe CpuPerformanceFactorRequestProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkBaselinePerformanceFactorsRequestProperty :: BaselinePerformanceFactorsRequestProperty mkBaselinePerformanceFactorsRequestProperty = BaselinePerformanceFactorsRequestProperty {haddock_workaround_ = (), cpu = Prelude.Nothing} instance ToResourceProperties BaselinePerformanceFactorsRequestProperty where toResourceProperties BaselinePerformanceFactorsRequestProperty {..} = ResourceProperties {awsType = "AWS::EC2::EC2Fleet.BaselinePerformanceFactorsRequest", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Cpu" Prelude.<$> cpu])} instance JSON.ToJSON BaselinePerformanceFactorsRequestProperty where toJSON BaselinePerformanceFactorsRequestProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Cpu" Prelude.<$> cpu])) instance Property "Cpu" BaselinePerformanceFactorsRequestProperty where type PropertyType "Cpu" BaselinePerformanceFactorsRequestProperty = CpuPerformanceFactorRequestProperty set newValue BaselinePerformanceFactorsRequestProperty {..} = BaselinePerformanceFactorsRequestProperty {cpu = Prelude.pure newValue, ..}