packages feed

stratosphere-ec2-1.0.0: gen/Stratosphere/EC2/EC2Fleet/PerformanceFactorReferenceRequestProperty.hs

module Stratosphere.EC2.EC2Fleet.PerformanceFactorReferenceRequestProperty (
        PerformanceFactorReferenceRequestProperty(..),
        mkPerformanceFactorReferenceRequestProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PerformanceFactorReferenceRequestProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-performancefactorreferencerequest.html>
    PerformanceFactorReferenceRequestProperty {haddock_workaround_ :: (),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-performancefactorreferencerequest.html#cfn-ec2-ec2fleet-performancefactorreferencerequest-instancefamily>
                                               instanceFamily :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkPerformanceFactorReferenceRequestProperty ::
  PerformanceFactorReferenceRequestProperty
mkPerformanceFactorReferenceRequestProperty
  = PerformanceFactorReferenceRequestProperty
      {haddock_workaround_ = (), instanceFamily = Prelude.Nothing}
instance ToResourceProperties PerformanceFactorReferenceRequestProperty where
  toResourceProperties PerformanceFactorReferenceRequestProperty {..}
    = ResourceProperties
        {awsType = "AWS::EC2::EC2Fleet.PerformanceFactorReferenceRequest",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "InstanceFamily" Prelude.<$> instanceFamily])}
instance JSON.ToJSON PerformanceFactorReferenceRequestProperty where
  toJSON PerformanceFactorReferenceRequestProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "InstanceFamily" Prelude.<$> instanceFamily]))
instance Property "InstanceFamily" PerformanceFactorReferenceRequestProperty where
  type PropertyType "InstanceFamily" PerformanceFactorReferenceRequestProperty = Value Prelude.Text
  set newValue PerformanceFactorReferenceRequestProperty {..}
    = PerformanceFactorReferenceRequestProperty
        {instanceFamily = Prelude.pure newValue, ..}