module Stratosphere.FSx.FileSystem.MetadataConfigurationProperty (
MetadataConfigurationProperty(..), mkMetadataConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MetadataConfigurationProperty
=
MetadataConfigurationProperty {MetadataConfigurationProperty -> ()
haddock_workaround_ :: (),
MetadataConfigurationProperty -> Maybe (Value Integer)
iops :: (Prelude.Maybe (Value Prelude.Integer)),
MetadataConfigurationProperty -> Maybe (Value Text)
mode :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool
(MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool)
-> (MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool)
-> Eq MetadataConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool
== :: MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool
$c/= :: MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool
/= :: MetadataConfigurationProperty
-> MetadataConfigurationProperty -> Bool
Prelude.Eq, Int -> MetadataConfigurationProperty -> ShowS
[MetadataConfigurationProperty] -> ShowS
MetadataConfigurationProperty -> String
(Int -> MetadataConfigurationProperty -> ShowS)
-> (MetadataConfigurationProperty -> String)
-> ([MetadataConfigurationProperty] -> ShowS)
-> Show MetadataConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MetadataConfigurationProperty -> ShowS
showsPrec :: Int -> MetadataConfigurationProperty -> ShowS
$cshow :: MetadataConfigurationProperty -> String
show :: MetadataConfigurationProperty -> String
$cshowList :: [MetadataConfigurationProperty] -> ShowS
showList :: [MetadataConfigurationProperty] -> ShowS
Prelude.Show)
mkMetadataConfigurationProperty :: MetadataConfigurationProperty
mkMetadataConfigurationProperty :: MetadataConfigurationProperty
mkMetadataConfigurationProperty
= MetadataConfigurationProperty
{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 MetadataConfigurationProperty where
toResourceProperties :: MetadataConfigurationProperty -> ResourceProperties
toResourceProperties MetadataConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: MetadataConfigurationProperty -> ()
iops :: MetadataConfigurationProperty -> Maybe (Value Integer)
mode :: MetadataConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
mode :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FSx::FileSystem.MetadataConfiguration",
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 MetadataConfigurationProperty where
toJSON :: MetadataConfigurationProperty -> Value
toJSON MetadataConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: MetadataConfigurationProperty -> ()
iops :: MetadataConfigurationProperty -> Maybe (Value Integer)
mode :: MetadataConfigurationProperty -> 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" MetadataConfigurationProperty where
type PropertyType "Iops" MetadataConfigurationProperty = Value Prelude.Integer
set :: PropertyType "Iops" MetadataConfigurationProperty
-> MetadataConfigurationProperty -> MetadataConfigurationProperty
set PropertyType "Iops" MetadataConfigurationProperty
newValue MetadataConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: MetadataConfigurationProperty -> ()
iops :: MetadataConfigurationProperty -> Maybe (Value Integer)
mode :: MetadataConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
mode :: Maybe (Value Text)
..}
= MetadataConfigurationProperty {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" MetadataConfigurationProperty
Value Integer
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
mode :: Maybe (Value Text)
haddock_workaround_ :: ()
mode :: Maybe (Value Text)
..}
instance Property "Mode" MetadataConfigurationProperty where
type PropertyType "Mode" MetadataConfigurationProperty = Value Prelude.Text
set :: PropertyType "Mode" MetadataConfigurationProperty
-> MetadataConfigurationProperty -> MetadataConfigurationProperty
set PropertyType "Mode" MetadataConfigurationProperty
newValue MetadataConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: MetadataConfigurationProperty -> ()
iops :: MetadataConfigurationProperty -> Maybe (Value Integer)
mode :: MetadataConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
mode :: Maybe (Value Text)
..}
= MetadataConfigurationProperty {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" MetadataConfigurationProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
haddock_workaround_ :: ()
iops :: Maybe (Value Integer)
..}