module Stratosphere.EMR.Cluster.SpotResizingSpecificationProperty ( SpotResizingSpecificationProperty(..), mkSpotResizingSpecificationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data SpotResizingSpecificationProperty = -- | See: SpotResizingSpecificationProperty {haddock_workaround_ :: (), -- | See: allocationStrategy :: (Prelude.Maybe (Value Prelude.Text)), -- | See: timeoutDurationMinutes :: (Prelude.Maybe (Value Prelude.Integer))} deriving stock (Prelude.Eq, Prelude.Show) mkSpotResizingSpecificationProperty :: SpotResizingSpecificationProperty mkSpotResizingSpecificationProperty = SpotResizingSpecificationProperty {haddock_workaround_ = (), allocationStrategy = Prelude.Nothing, timeoutDurationMinutes = Prelude.Nothing} instance ToResourceProperties SpotResizingSpecificationProperty where toResourceProperties SpotResizingSpecificationProperty {..} = ResourceProperties {awsType = "AWS::EMR::Cluster.SpotResizingSpecification", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "AllocationStrategy" Prelude.<$> allocationStrategy, (JSON..=) "TimeoutDurationMinutes" Prelude.<$> timeoutDurationMinutes])} instance JSON.ToJSON SpotResizingSpecificationProperty where toJSON SpotResizingSpecificationProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "AllocationStrategy" Prelude.<$> allocationStrategy, (JSON..=) "TimeoutDurationMinutes" Prelude.<$> timeoutDurationMinutes])) instance Property "AllocationStrategy" SpotResizingSpecificationProperty where type PropertyType "AllocationStrategy" SpotResizingSpecificationProperty = Value Prelude.Text set newValue SpotResizingSpecificationProperty {..} = SpotResizingSpecificationProperty {allocationStrategy = Prelude.pure newValue, ..} instance Property "TimeoutDurationMinutes" SpotResizingSpecificationProperty where type PropertyType "TimeoutDurationMinutes" SpotResizingSpecificationProperty = Value Prelude.Integer set newValue SpotResizingSpecificationProperty {..} = SpotResizingSpecificationProperty {timeoutDurationMinutes = Prelude.pure newValue, ..}