module Stratosphere.IoTAnalytics.Dataset.ResourceConfigurationProperty (
        ResourceConfigurationProperty(..), mkResourceConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ResourceConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-resourceconfiguration.html>
    ResourceConfigurationProperty {ResourceConfigurationProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-resourceconfiguration.html#cfn-iotanalytics-dataset-resourceconfiguration-computetype>
                                   ResourceConfigurationProperty -> Value Text
computeType :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-resourceconfiguration.html#cfn-iotanalytics-dataset-resourceconfiguration-volumesizeingb>
                                   ResourceConfigurationProperty -> Value Integer
volumeSizeInGB :: (Value Prelude.Integer)}
  deriving stock (ResourceConfigurationProperty
-> ResourceConfigurationProperty -> Bool
(ResourceConfigurationProperty
 -> ResourceConfigurationProperty -> Bool)
-> (ResourceConfigurationProperty
    -> ResourceConfigurationProperty -> Bool)
-> Eq ResourceConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResourceConfigurationProperty
-> ResourceConfigurationProperty -> Bool
== :: ResourceConfigurationProperty
-> ResourceConfigurationProperty -> Bool
$c/= :: ResourceConfigurationProperty
-> ResourceConfigurationProperty -> Bool
/= :: ResourceConfigurationProperty
-> ResourceConfigurationProperty -> Bool
Prelude.Eq, Int -> ResourceConfigurationProperty -> ShowS
[ResourceConfigurationProperty] -> ShowS
ResourceConfigurationProperty -> String
(Int -> ResourceConfigurationProperty -> ShowS)
-> (ResourceConfigurationProperty -> String)
-> ([ResourceConfigurationProperty] -> ShowS)
-> Show ResourceConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResourceConfigurationProperty -> ShowS
showsPrec :: Int -> ResourceConfigurationProperty -> ShowS
$cshow :: ResourceConfigurationProperty -> String
show :: ResourceConfigurationProperty -> String
$cshowList :: [ResourceConfigurationProperty] -> ShowS
showList :: [ResourceConfigurationProperty] -> ShowS
Prelude.Show)
mkResourceConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Integer -> ResourceConfigurationProperty
mkResourceConfigurationProperty :: Value Text -> Value Integer -> ResourceConfigurationProperty
mkResourceConfigurationProperty Value Text
computeType Value Integer
volumeSizeInGB
  = ResourceConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), computeType :: Value Text
computeType = Value Text
computeType,
       volumeSizeInGB :: Value Integer
volumeSizeInGB = Value Integer
volumeSizeInGB}
instance ToResourceProperties ResourceConfigurationProperty where
  toResourceProperties :: ResourceConfigurationProperty -> ResourceProperties
toResourceProperties ResourceConfigurationProperty {()
Value Integer
Value Text
haddock_workaround_ :: ResourceConfigurationProperty -> ()
computeType :: ResourceConfigurationProperty -> Value Text
volumeSizeInGB :: ResourceConfigurationProperty -> Value Integer
haddock_workaround_ :: ()
computeType :: Value Text
volumeSizeInGB :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Dataset.ResourceConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ComputeType" 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
computeType,
                       Key
"VolumeSizeInGB" 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
volumeSizeInGB]}
instance JSON.ToJSON ResourceConfigurationProperty where
  toJSON :: ResourceConfigurationProperty -> Value
toJSON ResourceConfigurationProperty {()
Value Integer
Value Text
haddock_workaround_ :: ResourceConfigurationProperty -> ()
computeType :: ResourceConfigurationProperty -> Value Text
volumeSizeInGB :: ResourceConfigurationProperty -> Value Integer
haddock_workaround_ :: ()
computeType :: Value Text
volumeSizeInGB :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ComputeType" 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
computeType,
         Key
"VolumeSizeInGB" 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
volumeSizeInGB]
instance Property "ComputeType" ResourceConfigurationProperty where
  type PropertyType "ComputeType" ResourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "ComputeType" ResourceConfigurationProperty
-> ResourceConfigurationProperty -> ResourceConfigurationProperty
set PropertyType "ComputeType" ResourceConfigurationProperty
newValue ResourceConfigurationProperty {()
Value Integer
Value Text
haddock_workaround_ :: ResourceConfigurationProperty -> ()
computeType :: ResourceConfigurationProperty -> Value Text
volumeSizeInGB :: ResourceConfigurationProperty -> Value Integer
haddock_workaround_ :: ()
computeType :: Value Text
volumeSizeInGB :: Value Integer
..}
    = ResourceConfigurationProperty {computeType :: Value Text
computeType = PropertyType "ComputeType" ResourceConfigurationProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
volumeSizeInGB :: Value Integer
haddock_workaround_ :: ()
volumeSizeInGB :: Value Integer
..}
instance Property "VolumeSizeInGB" ResourceConfigurationProperty where
  type PropertyType "VolumeSizeInGB" ResourceConfigurationProperty = Value Prelude.Integer
  set :: PropertyType "VolumeSizeInGB" ResourceConfigurationProperty
-> ResourceConfigurationProperty -> ResourceConfigurationProperty
set PropertyType "VolumeSizeInGB" ResourceConfigurationProperty
newValue ResourceConfigurationProperty {()
Value Integer
Value Text
haddock_workaround_ :: ResourceConfigurationProperty -> ()
computeType :: ResourceConfigurationProperty -> Value Text
volumeSizeInGB :: ResourceConfigurationProperty -> Value Integer
haddock_workaround_ :: ()
computeType :: Value Text
volumeSizeInGB :: Value Integer
..}
    = ResourceConfigurationProperty {volumeSizeInGB :: Value Integer
volumeSizeInGB = PropertyType "VolumeSizeInGB" ResourceConfigurationProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
computeType :: Value Text
haddock_workaround_ :: ()
computeType :: Value Text
..}