module Stratosphere.EMR.InstanceGroupConfig.VolumeSpecificationProperty (
        VolumeSpecificationProperty(..), mkVolumeSpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VolumeSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html>
    VolumeSpecificationProperty {VolumeSpecificationProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification-iops>
                                 VolumeSpecificationProperty -> Maybe (Value Integer)
iops :: (Prelude.Maybe (Value Prelude.Integer)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification-sizeingb>
                                 VolumeSpecificationProperty -> Value Integer
sizeInGB :: (Value Prelude.Integer),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification-throughput>
                                 VolumeSpecificationProperty -> Maybe (Value Integer)
throughput :: (Prelude.Maybe (Value Prelude.Integer)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification-volumetype>
                                 VolumeSpecificationProperty -> Value Text
volumeType :: (Value Prelude.Text)}
  deriving stock (VolumeSpecificationProperty -> VolumeSpecificationProperty -> Bool
(VolumeSpecificationProperty
 -> VolumeSpecificationProperty -> Bool)
-> (VolumeSpecificationProperty
    -> VolumeSpecificationProperty -> Bool)
-> Eq VolumeSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VolumeSpecificationProperty -> VolumeSpecificationProperty -> Bool
== :: VolumeSpecificationProperty -> VolumeSpecificationProperty -> Bool
$c/= :: VolumeSpecificationProperty -> VolumeSpecificationProperty -> Bool
/= :: VolumeSpecificationProperty -> VolumeSpecificationProperty -> Bool
Prelude.Eq, Int -> VolumeSpecificationProperty -> ShowS
[VolumeSpecificationProperty] -> ShowS
VolumeSpecificationProperty -> String
(Int -> VolumeSpecificationProperty -> ShowS)
-> (VolumeSpecificationProperty -> String)
-> ([VolumeSpecificationProperty] -> ShowS)
-> Show VolumeSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VolumeSpecificationProperty -> ShowS
showsPrec :: Int -> VolumeSpecificationProperty -> ShowS
$cshow :: VolumeSpecificationProperty -> String
show :: VolumeSpecificationProperty -> String
$cshowList :: [VolumeSpecificationProperty] -> ShowS
showList :: [VolumeSpecificationProperty] -> ShowS
Prelude.Show)
mkVolumeSpecificationProperty ::
  Value Prelude.Integer
  -> Value Prelude.Text -> VolumeSpecificationProperty
mkVolumeSpecificationProperty :: Value Integer -> Value Text -> VolumeSpecificationProperty
mkVolumeSpecificationProperty Value Integer
sizeInGB Value Text
volumeType
  = VolumeSpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), sizeInGB :: Value Integer
sizeInGB = Value Integer
sizeInGB,
       volumeType :: Value Text
volumeType = Value Text
volumeType, iops :: Maybe (Value Integer)
iops = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       throughput :: Maybe (Value Integer)
throughput = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VolumeSpecificationProperty where
  toResourceProperties :: VolumeSpecificationProperty -> ResourceProperties
toResourceProperties VolumeSpecificationProperty {Maybe (Value Integer)
()
Value Integer
Value Text
haddock_workaround_ :: VolumeSpecificationProperty -> ()
iops :: VolumeSpecificationProperty -> Maybe (Value Integer)
sizeInGB :: VolumeSpecificationProperty -> Value Integer
throughput :: VolumeSpecificationProperty -> Maybe (Value Integer)
volumeType :: VolumeSpecificationProperty -> Value Text
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeInGB :: Value Integer
throughput :: Maybe (Value Integer)
volumeType :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EMR::InstanceGroupConfig.VolumeSpecification",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"SizeInGB" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
sizeInGB, Key
"VolumeType" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
volumeType]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Iops" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
iops,
                               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Throughput" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
throughput]))}
instance JSON.ToJSON VolumeSpecificationProperty where
  toJSON :: VolumeSpecificationProperty -> Value
toJSON VolumeSpecificationProperty {Maybe (Value Integer)
()
Value Integer
Value Text
haddock_workaround_ :: VolumeSpecificationProperty -> ()
iops :: VolumeSpecificationProperty -> Maybe (Value Integer)
sizeInGB :: VolumeSpecificationProperty -> Value Integer
throughput :: VolumeSpecificationProperty -> Maybe (Value Integer)
volumeType :: VolumeSpecificationProperty -> Value Text
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeInGB :: Value Integer
throughput :: Maybe (Value Integer)
volumeType :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"SizeInGB" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
sizeInGB, Key
"VolumeType" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
volumeType]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Iops" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
iops,
                  Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Throughput" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
throughput])))
instance Property "Iops" VolumeSpecificationProperty where
  type PropertyType "Iops" VolumeSpecificationProperty = Value Prelude.Integer
  set :: PropertyType "Iops" VolumeSpecificationProperty
-> VolumeSpecificationProperty -> VolumeSpecificationProperty
set PropertyType "Iops" VolumeSpecificationProperty
newValue VolumeSpecificationProperty {Maybe (Value Integer)
()
Value Integer
Value Text
haddock_workaround_ :: VolumeSpecificationProperty -> ()
iops :: VolumeSpecificationProperty -> Maybe (Value Integer)
sizeInGB :: VolumeSpecificationProperty -> Value Integer
throughput :: VolumeSpecificationProperty -> Maybe (Value Integer)
volumeType :: VolumeSpecificationProperty -> Value Text
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeInGB :: Value Integer
throughput :: Maybe (Value Integer)
volumeType :: Value Text
..}
    = VolumeSpecificationProperty {iops :: Maybe (Value Integer)
iops = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Iops" VolumeSpecificationProperty
Value Integer
newValue, Maybe (Value Integer)
()
Value Integer
Value Text
haddock_workaround_ :: ()
sizeInGB :: Value Integer
throughput :: Maybe (Value Integer)
volumeType :: Value Text
haddock_workaround_ :: ()
sizeInGB :: Value Integer
throughput :: Maybe (Value Integer)
volumeType :: Value Text
..}
instance Property "SizeInGB" VolumeSpecificationProperty where
  type PropertyType "SizeInGB" VolumeSpecificationProperty = Value Prelude.Integer
  set :: PropertyType "SizeInGB" VolumeSpecificationProperty
-> VolumeSpecificationProperty -> VolumeSpecificationProperty
set PropertyType "SizeInGB" VolumeSpecificationProperty
newValue VolumeSpecificationProperty {Maybe (Value Integer)
()
Value Integer
Value Text
haddock_workaround_ :: VolumeSpecificationProperty -> ()
iops :: VolumeSpecificationProperty -> Maybe (Value Integer)
sizeInGB :: VolumeSpecificationProperty -> Value Integer
throughput :: VolumeSpecificationProperty -> Maybe (Value Integer)
volumeType :: VolumeSpecificationProperty -> Value Text
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeInGB :: Value Integer
throughput :: Maybe (Value Integer)
volumeType :: Value Text
..}
    = VolumeSpecificationProperty {sizeInGB :: Value Integer
sizeInGB = PropertyType "SizeInGB" VolumeSpecificationProperty
Value Integer
newValue, Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
throughput :: Maybe (Value Integer)
volumeType :: Value Text
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
throughput :: Maybe (Value Integer)
volumeType :: Value Text
..}
instance Property "Throughput" VolumeSpecificationProperty where
  type PropertyType "Throughput" VolumeSpecificationProperty = Value Prelude.Integer
  set :: PropertyType "Throughput" VolumeSpecificationProperty
-> VolumeSpecificationProperty -> VolumeSpecificationProperty
set PropertyType "Throughput" VolumeSpecificationProperty
newValue VolumeSpecificationProperty {Maybe (Value Integer)
()
Value Integer
Value Text
haddock_workaround_ :: VolumeSpecificationProperty -> ()
iops :: VolumeSpecificationProperty -> Maybe (Value Integer)
sizeInGB :: VolumeSpecificationProperty -> Value Integer
throughput :: VolumeSpecificationProperty -> Maybe (Value Integer)
volumeType :: VolumeSpecificationProperty -> Value Text
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeInGB :: Value Integer
throughput :: Maybe (Value Integer)
volumeType :: Value Text
..}
    = VolumeSpecificationProperty
        {throughput :: Maybe (Value Integer)
throughput = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Throughput" VolumeSpecificationProperty
Value Integer
newValue, Maybe (Value Integer)
()
Value Integer
Value Text
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeInGB :: Value Integer
volumeType :: Value Text
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeInGB :: Value Integer
volumeType :: Value Text
..}
instance Property "VolumeType" VolumeSpecificationProperty where
  type PropertyType "VolumeType" VolumeSpecificationProperty = Value Prelude.Text
  set :: PropertyType "VolumeType" VolumeSpecificationProperty
-> VolumeSpecificationProperty -> VolumeSpecificationProperty
set PropertyType "VolumeType" VolumeSpecificationProperty
newValue VolumeSpecificationProperty {Maybe (Value Integer)
()
Value Integer
Value Text
haddock_workaround_ :: VolumeSpecificationProperty -> ()
iops :: VolumeSpecificationProperty -> Maybe (Value Integer)
sizeInGB :: VolumeSpecificationProperty -> Value Integer
throughput :: VolumeSpecificationProperty -> Maybe (Value Integer)
volumeType :: VolumeSpecificationProperty -> Value Text
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeInGB :: Value Integer
throughput :: Maybe (Value Integer)
volumeType :: Value Text
..}
    = VolumeSpecificationProperty {volumeType :: Value Text
volumeType = PropertyType "VolumeType" VolumeSpecificationProperty
Value Text
newValue, Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeInGB :: Value Integer
throughput :: Maybe (Value Integer)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeInGB :: Value Integer
throughput :: Maybe (Value Integer)
..}