packages feed

stratosphere-emr-1.0.0: gen/Stratosphere/EMR/InstanceGroupConfig/EbsConfigurationProperty.hs

module Stratosphere.EMR.InstanceGroupConfig.EbsConfigurationProperty (
        module Exports, EbsConfigurationProperty(..),
        mkEbsConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EMR.InstanceGroupConfig.EbsBlockDeviceConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EbsConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration.html>
    EbsConfigurationProperty {haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfigs>
                              ebsBlockDeviceConfigs :: (Prelude.Maybe [EbsBlockDeviceConfigProperty]),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration.html#cfn-emr-ebsconfiguration-ebsoptimized>
                              ebsOptimized :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkEbsConfigurationProperty :: EbsConfigurationProperty
mkEbsConfigurationProperty
  = EbsConfigurationProperty
      {haddock_workaround_ = (), ebsBlockDeviceConfigs = Prelude.Nothing,
       ebsOptimized = Prelude.Nothing}
instance ToResourceProperties EbsConfigurationProperty where
  toResourceProperties EbsConfigurationProperty {..}
    = ResourceProperties
        {awsType = "AWS::EMR::InstanceGroupConfig.EbsConfiguration",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "EbsBlockDeviceConfigs"
                              Prelude.<$> ebsBlockDeviceConfigs,
                            (JSON..=) "EbsOptimized" Prelude.<$> ebsOptimized])}
instance JSON.ToJSON EbsConfigurationProperty where
  toJSON EbsConfigurationProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "EbsBlockDeviceConfigs"
                 Prelude.<$> ebsBlockDeviceConfigs,
               (JSON..=) "EbsOptimized" Prelude.<$> ebsOptimized]))
instance Property "EbsBlockDeviceConfigs" EbsConfigurationProperty where
  type PropertyType "EbsBlockDeviceConfigs" EbsConfigurationProperty = [EbsBlockDeviceConfigProperty]
  set newValue EbsConfigurationProperty {..}
    = EbsConfigurationProperty
        {ebsBlockDeviceConfigs = Prelude.pure newValue, ..}
instance Property "EbsOptimized" EbsConfigurationProperty where
  type PropertyType "EbsOptimized" EbsConfigurationProperty = Value Prelude.Bool
  set newValue EbsConfigurationProperty {..}
    = EbsConfigurationProperty
        {ebsOptimized = Prelude.pure newValue, ..}