module Stratosphere.FSx.FileSystem.DiskIopsConfigurationProperty (
DiskIopsConfigurationProperty(..), mkDiskIopsConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DiskIopsConfigurationProperty
=
DiskIopsConfigurationProperty {DiskIopsConfigurationProperty -> ()
haddock_workaround_ :: (),
DiskIopsConfigurationProperty -> Maybe (Value Integer)
iops :: (Prelude.Maybe (Value Prelude.Integer)),
DiskIopsConfigurationProperty -> Maybe (Value Text)
mode :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DiskIopsConfigurationProperty
-> DiskIopsConfigurationProperty -> Bool
(DiskIopsConfigurationProperty
-> DiskIopsConfigurationProperty -> Bool)
-> (DiskIopsConfigurationProperty
-> DiskIopsConfigurationProperty -> Bool)
-> Eq DiskIopsConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DiskIopsConfigurationProperty
-> DiskIopsConfigurationProperty -> Bool
== :: DiskIopsConfigurationProperty
-> DiskIopsConfigurationProperty -> Bool
$c/= :: DiskIopsConfigurationProperty
-> DiskIopsConfigurationProperty -> Bool
/= :: DiskIopsConfigurationProperty
-> DiskIopsConfigurationProperty -> Bool
Prelude.Eq, Int -> DiskIopsConfigurationProperty -> ShowS
[DiskIopsConfigurationProperty] -> ShowS
DiskIopsConfigurationProperty -> String
(Int -> DiskIopsConfigurationProperty -> ShowS)
-> (DiskIopsConfigurationProperty -> String)
-> ([DiskIopsConfigurationProperty] -> ShowS)
-> Show DiskIopsConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DiskIopsConfigurationProperty -> ShowS
showsPrec :: Int -> DiskIopsConfigurationProperty -> ShowS
$cshow :: DiskIopsConfigurationProperty -> String
show :: DiskIopsConfigurationProperty -> String
$cshowList :: [DiskIopsConfigurationProperty] -> ShowS
showList :: [DiskIopsConfigurationProperty] -> ShowS
Prelude.Show)
mkDiskIopsConfigurationProperty :: DiskIopsConfigurationProperty
mkDiskIopsConfigurationProperty :: DiskIopsConfigurationProperty
mkDiskIopsConfigurationProperty
= DiskIopsConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), iops :: Maybe (Value Integer)
iops = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
mode :: Maybe (Value Text)
mode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DiskIopsConfigurationProperty where
toResourceProperties :: DiskIopsConfigurationProperty -> ResourceProperties
toResourceProperties DiskIopsConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: DiskIopsConfigurationProperty -> ()
iops :: DiskIopsConfigurationProperty -> Maybe (Value Integer)
mode :: DiskIopsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
mode :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FSx::FileSystem.DiskIopsConfiguration",
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 Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Mode" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
mode])}
instance JSON.ToJSON DiskIopsConfigurationProperty where
toJSON :: DiskIopsConfigurationProperty -> Value
toJSON DiskIopsConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: DiskIopsConfigurationProperty -> ()
iops :: DiskIopsConfigurationProperty -> Maybe (Value Integer)
mode :: DiskIopsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
mode :: Maybe (Value Text)
..}
= [(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 Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Mode" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
mode]))
instance Property "Iops" DiskIopsConfigurationProperty where
type PropertyType "Iops" DiskIopsConfigurationProperty = Value Prelude.Integer
set :: PropertyType "Iops" DiskIopsConfigurationProperty
-> DiskIopsConfigurationProperty -> DiskIopsConfigurationProperty
set PropertyType "Iops" DiskIopsConfigurationProperty
newValue DiskIopsConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: DiskIopsConfigurationProperty -> ()
iops :: DiskIopsConfigurationProperty -> Maybe (Value Integer)
mode :: DiskIopsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
mode :: Maybe (Value Text)
..}
= DiskIopsConfigurationProperty {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" DiskIopsConfigurationProperty
Value Integer
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
mode :: Maybe (Value Text)
haddock_workaround_ :: ()
mode :: Maybe (Value Text)
..}
instance Property "Mode" DiskIopsConfigurationProperty where
type PropertyType "Mode" DiskIopsConfigurationProperty = Value Prelude.Text
set :: PropertyType "Mode" DiskIopsConfigurationProperty
-> DiskIopsConfigurationProperty -> DiskIopsConfigurationProperty
set PropertyType "Mode" DiskIopsConfigurationProperty
newValue DiskIopsConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: DiskIopsConfigurationProperty -> ()
iops :: DiskIopsConfigurationProperty -> Maybe (Value Integer)
mode :: DiskIopsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
mode :: Maybe (Value Text)
..}
= DiskIopsConfigurationProperty {mode :: Maybe (Value Text)
mode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Mode" DiskIopsConfigurationProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
..}