module Stratosphere.Deadline.Fleet.Ec2EbsVolumeProperty (
        Ec2EbsVolumeProperty(..), mkEc2EbsVolumeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Ec2EbsVolumeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-ec2ebsvolume.html>
    Ec2EbsVolumeProperty {Ec2EbsVolumeProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-ec2ebsvolume.html#cfn-deadline-fleet-ec2ebsvolume-iops>
                          Ec2EbsVolumeProperty -> Maybe (Value Integer)
iops :: (Prelude.Maybe (Value Prelude.Integer)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-ec2ebsvolume.html#cfn-deadline-fleet-ec2ebsvolume-sizegib>
                          Ec2EbsVolumeProperty -> Maybe (Value Integer)
sizeGiB :: (Prelude.Maybe (Value Prelude.Integer)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-ec2ebsvolume.html#cfn-deadline-fleet-ec2ebsvolume-throughputmib>
                          Ec2EbsVolumeProperty -> Maybe (Value Integer)
throughputMiB :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (Ec2EbsVolumeProperty -> Ec2EbsVolumeProperty -> Bool
(Ec2EbsVolumeProperty -> Ec2EbsVolumeProperty -> Bool)
-> (Ec2EbsVolumeProperty -> Ec2EbsVolumeProperty -> Bool)
-> Eq Ec2EbsVolumeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Ec2EbsVolumeProperty -> Ec2EbsVolumeProperty -> Bool
== :: Ec2EbsVolumeProperty -> Ec2EbsVolumeProperty -> Bool
$c/= :: Ec2EbsVolumeProperty -> Ec2EbsVolumeProperty -> Bool
/= :: Ec2EbsVolumeProperty -> Ec2EbsVolumeProperty -> Bool
Prelude.Eq, Int -> Ec2EbsVolumeProperty -> ShowS
[Ec2EbsVolumeProperty] -> ShowS
Ec2EbsVolumeProperty -> String
(Int -> Ec2EbsVolumeProperty -> ShowS)
-> (Ec2EbsVolumeProperty -> String)
-> ([Ec2EbsVolumeProperty] -> ShowS)
-> Show Ec2EbsVolumeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Ec2EbsVolumeProperty -> ShowS
showsPrec :: Int -> Ec2EbsVolumeProperty -> ShowS
$cshow :: Ec2EbsVolumeProperty -> String
show :: Ec2EbsVolumeProperty -> String
$cshowList :: [Ec2EbsVolumeProperty] -> ShowS
showList :: [Ec2EbsVolumeProperty] -> ShowS
Prelude.Show)
mkEc2EbsVolumeProperty :: Ec2EbsVolumeProperty
mkEc2EbsVolumeProperty :: Ec2EbsVolumeProperty
mkEc2EbsVolumeProperty
  = Ec2EbsVolumeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), iops :: Maybe (Value Integer)
iops = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       sizeGiB :: Maybe (Value Integer)
sizeGiB = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, throughputMiB :: Maybe (Value Integer)
throughputMiB = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Ec2EbsVolumeProperty where
  toResourceProperties :: Ec2EbsVolumeProperty -> ResourceProperties
toResourceProperties Ec2EbsVolumeProperty {Maybe (Value Integer)
()
haddock_workaround_ :: Ec2EbsVolumeProperty -> ()
iops :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
sizeGiB :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
throughputMiB :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeGiB :: Maybe (Value Integer)
throughputMiB :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Deadline::Fleet.Ec2EbsVolume",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([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
"SizeGiB" (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)
sizeGiB,
                            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
"ThroughputMiB" (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)
throughputMiB])}
instance JSON.ToJSON Ec2EbsVolumeProperty where
  toJSON :: Ec2EbsVolumeProperty -> Value
toJSON Ec2EbsVolumeProperty {Maybe (Value Integer)
()
haddock_workaround_ :: Ec2EbsVolumeProperty -> ()
iops :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
sizeGiB :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
throughputMiB :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeGiB :: Maybe (Value Integer)
throughputMiB :: Maybe (Value Integer)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([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
"SizeGiB" (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)
sizeGiB,
               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
"ThroughputMiB" (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)
throughputMiB]))
instance Property "Iops" Ec2EbsVolumeProperty where
  type PropertyType "Iops" Ec2EbsVolumeProperty = Value Prelude.Integer
  set :: PropertyType "Iops" Ec2EbsVolumeProperty
-> Ec2EbsVolumeProperty -> Ec2EbsVolumeProperty
set PropertyType "Iops" Ec2EbsVolumeProperty
newValue Ec2EbsVolumeProperty {Maybe (Value Integer)
()
haddock_workaround_ :: Ec2EbsVolumeProperty -> ()
iops :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
sizeGiB :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
throughputMiB :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeGiB :: Maybe (Value Integer)
throughputMiB :: Maybe (Value Integer)
..}
    = Ec2EbsVolumeProperty {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" Ec2EbsVolumeProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
sizeGiB :: Maybe (Value Integer)
throughputMiB :: Maybe (Value Integer)
haddock_workaround_ :: ()
sizeGiB :: Maybe (Value Integer)
throughputMiB :: Maybe (Value Integer)
..}
instance Property "SizeGiB" Ec2EbsVolumeProperty where
  type PropertyType "SizeGiB" Ec2EbsVolumeProperty = Value Prelude.Integer
  set :: PropertyType "SizeGiB" Ec2EbsVolumeProperty
-> Ec2EbsVolumeProperty -> Ec2EbsVolumeProperty
set PropertyType "SizeGiB" Ec2EbsVolumeProperty
newValue Ec2EbsVolumeProperty {Maybe (Value Integer)
()
haddock_workaround_ :: Ec2EbsVolumeProperty -> ()
iops :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
sizeGiB :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
throughputMiB :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeGiB :: Maybe (Value Integer)
throughputMiB :: Maybe (Value Integer)
..}
    = Ec2EbsVolumeProperty {sizeGiB :: Maybe (Value Integer)
sizeGiB = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SizeGiB" Ec2EbsVolumeProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
throughputMiB :: Maybe (Value Integer)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
throughputMiB :: Maybe (Value Integer)
..}
instance Property "ThroughputMiB" Ec2EbsVolumeProperty where
  type PropertyType "ThroughputMiB" Ec2EbsVolumeProperty = Value Prelude.Integer
  set :: PropertyType "ThroughputMiB" Ec2EbsVolumeProperty
-> Ec2EbsVolumeProperty -> Ec2EbsVolumeProperty
set PropertyType "ThroughputMiB" Ec2EbsVolumeProperty
newValue Ec2EbsVolumeProperty {Maybe (Value Integer)
()
haddock_workaround_ :: Ec2EbsVolumeProperty -> ()
iops :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
sizeGiB :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
throughputMiB :: Ec2EbsVolumeProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeGiB :: Maybe (Value Integer)
throughputMiB :: Maybe (Value Integer)
..}
    = Ec2EbsVolumeProperty {throughputMiB :: Maybe (Value Integer)
throughputMiB = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ThroughputMiB" Ec2EbsVolumeProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeGiB :: Maybe (Value Integer)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
sizeGiB :: Maybe (Value Integer)
..}