module Stratosphere.SageMaker.Cluster.FSxLustreConfigProperty (
FSxLustreConfigProperty(..), mkFSxLustreConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FSxLustreConfigProperty
=
FSxLustreConfigProperty {FSxLustreConfigProperty -> ()
haddock_workaround_ :: (),
FSxLustreConfigProperty -> Value Integer
perUnitStorageThroughput :: (Value Prelude.Integer),
FSxLustreConfigProperty -> Value Integer
sizeInGiB :: (Value Prelude.Integer)}
deriving stock (FSxLustreConfigProperty -> FSxLustreConfigProperty -> Bool
(FSxLustreConfigProperty -> FSxLustreConfigProperty -> Bool)
-> (FSxLustreConfigProperty -> FSxLustreConfigProperty -> Bool)
-> Eq FSxLustreConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FSxLustreConfigProperty -> FSxLustreConfigProperty -> Bool
== :: FSxLustreConfigProperty -> FSxLustreConfigProperty -> Bool
$c/= :: FSxLustreConfigProperty -> FSxLustreConfigProperty -> Bool
/= :: FSxLustreConfigProperty -> FSxLustreConfigProperty -> Bool
Prelude.Eq, Int -> FSxLustreConfigProperty -> ShowS
[FSxLustreConfigProperty] -> ShowS
FSxLustreConfigProperty -> String
(Int -> FSxLustreConfigProperty -> ShowS)
-> (FSxLustreConfigProperty -> String)
-> ([FSxLustreConfigProperty] -> ShowS)
-> Show FSxLustreConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FSxLustreConfigProperty -> ShowS
showsPrec :: Int -> FSxLustreConfigProperty -> ShowS
$cshow :: FSxLustreConfigProperty -> String
show :: FSxLustreConfigProperty -> String
$cshowList :: [FSxLustreConfigProperty] -> ShowS
showList :: [FSxLustreConfigProperty] -> ShowS
Prelude.Show)
mkFSxLustreConfigProperty ::
Value Prelude.Integer
-> Value Prelude.Integer -> FSxLustreConfigProperty
mkFSxLustreConfigProperty :: Value Integer -> Value Integer -> FSxLustreConfigProperty
mkFSxLustreConfigProperty Value Integer
perUnitStorageThroughput Value Integer
sizeInGiB
= FSxLustreConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
perUnitStorageThroughput :: Value Integer
perUnitStorageThroughput = Value Integer
perUnitStorageThroughput,
sizeInGiB :: Value Integer
sizeInGiB = Value Integer
sizeInGiB}
instance ToResourceProperties FSxLustreConfigProperty where
toResourceProperties :: FSxLustreConfigProperty -> ResourceProperties
toResourceProperties FSxLustreConfigProperty {()
Value Integer
haddock_workaround_ :: FSxLustreConfigProperty -> ()
perUnitStorageThroughput :: FSxLustreConfigProperty -> Value Integer
sizeInGiB :: FSxLustreConfigProperty -> Value Integer
haddock_workaround_ :: ()
perUnitStorageThroughput :: Value Integer
sizeInGiB :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::Cluster.FSxLustreConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"PerUnitStorageThroughput"
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
perUnitStorageThroughput,
Key
"SizeInGiB" 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
sizeInGiB]}
instance JSON.ToJSON FSxLustreConfigProperty where
toJSON :: FSxLustreConfigProperty -> Value
toJSON FSxLustreConfigProperty {()
Value Integer
haddock_workaround_ :: FSxLustreConfigProperty -> ()
perUnitStorageThroughput :: FSxLustreConfigProperty -> Value Integer
sizeInGiB :: FSxLustreConfigProperty -> Value Integer
haddock_workaround_ :: ()
perUnitStorageThroughput :: Value Integer
sizeInGiB :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"PerUnitStorageThroughput" 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
perUnitStorageThroughput,
Key
"SizeInGiB" 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
sizeInGiB]
instance Property "PerUnitStorageThroughput" FSxLustreConfigProperty where
type PropertyType "PerUnitStorageThroughput" FSxLustreConfigProperty = Value Prelude.Integer
set :: PropertyType "PerUnitStorageThroughput" FSxLustreConfigProperty
-> FSxLustreConfigProperty -> FSxLustreConfigProperty
set PropertyType "PerUnitStorageThroughput" FSxLustreConfigProperty
newValue FSxLustreConfigProperty {()
Value Integer
haddock_workaround_ :: FSxLustreConfigProperty -> ()
perUnitStorageThroughput :: FSxLustreConfigProperty -> Value Integer
sizeInGiB :: FSxLustreConfigProperty -> Value Integer
haddock_workaround_ :: ()
perUnitStorageThroughput :: Value Integer
sizeInGiB :: Value Integer
..}
= FSxLustreConfigProperty {perUnitStorageThroughput :: Value Integer
perUnitStorageThroughput = PropertyType "PerUnitStorageThroughput" FSxLustreConfigProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
sizeInGiB :: Value Integer
haddock_workaround_ :: ()
sizeInGiB :: Value Integer
..}
instance Property "SizeInGiB" FSxLustreConfigProperty where
type PropertyType "SizeInGiB" FSxLustreConfigProperty = Value Prelude.Integer
set :: PropertyType "SizeInGiB" FSxLustreConfigProperty
-> FSxLustreConfigProperty -> FSxLustreConfigProperty
set PropertyType "SizeInGiB" FSxLustreConfigProperty
newValue FSxLustreConfigProperty {()
Value Integer
haddock_workaround_ :: FSxLustreConfigProperty -> ()
perUnitStorageThroughput :: FSxLustreConfigProperty -> Value Integer
sizeInGiB :: FSxLustreConfigProperty -> Value Integer
haddock_workaround_ :: ()
perUnitStorageThroughput :: Value Integer
sizeInGiB :: Value Integer
..}
= FSxLustreConfigProperty {sizeInGiB :: Value Integer
sizeInGiB = PropertyType "SizeInGiB" FSxLustreConfigProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
perUnitStorageThroughput :: Value Integer
haddock_workaround_ :: ()
perUnitStorageThroughput :: Value Integer
..}