module Stratosphere.MSK.Cluster.EBSStorageInfoProperty (
module Exports, EBSStorageInfoProperty(..),
mkEBSStorageInfoProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MSK.Cluster.ProvisionedThroughputProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EBSStorageInfoProperty
=
EBSStorageInfoProperty {EBSStorageInfoProperty -> ()
haddock_workaround_ :: (),
EBSStorageInfoProperty -> Maybe ProvisionedThroughputProperty
provisionedThroughput :: (Prelude.Maybe ProvisionedThroughputProperty),
EBSStorageInfoProperty -> Maybe (Value Integer)
volumeSize :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (EBSStorageInfoProperty -> EBSStorageInfoProperty -> Bool
(EBSStorageInfoProperty -> EBSStorageInfoProperty -> Bool)
-> (EBSStorageInfoProperty -> EBSStorageInfoProperty -> Bool)
-> Eq EBSStorageInfoProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EBSStorageInfoProperty -> EBSStorageInfoProperty -> Bool
== :: EBSStorageInfoProperty -> EBSStorageInfoProperty -> Bool
$c/= :: EBSStorageInfoProperty -> EBSStorageInfoProperty -> Bool
/= :: EBSStorageInfoProperty -> EBSStorageInfoProperty -> Bool
Prelude.Eq, Int -> EBSStorageInfoProperty -> ShowS
[EBSStorageInfoProperty] -> ShowS
EBSStorageInfoProperty -> String
(Int -> EBSStorageInfoProperty -> ShowS)
-> (EBSStorageInfoProperty -> String)
-> ([EBSStorageInfoProperty] -> ShowS)
-> Show EBSStorageInfoProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EBSStorageInfoProperty -> ShowS
showsPrec :: Int -> EBSStorageInfoProperty -> ShowS
$cshow :: EBSStorageInfoProperty -> String
show :: EBSStorageInfoProperty -> String
$cshowList :: [EBSStorageInfoProperty] -> ShowS
showList :: [EBSStorageInfoProperty] -> ShowS
Prelude.Show)
mkEBSStorageInfoProperty :: EBSStorageInfoProperty
mkEBSStorageInfoProperty :: EBSStorageInfoProperty
mkEBSStorageInfoProperty
= EBSStorageInfoProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), provisionedThroughput :: Maybe ProvisionedThroughputProperty
provisionedThroughput = Maybe ProvisionedThroughputProperty
forall a. Maybe a
Prelude.Nothing,
volumeSize :: Maybe (Value Integer)
volumeSize = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EBSStorageInfoProperty where
toResourceProperties :: EBSStorageInfoProperty -> ResourceProperties
toResourceProperties EBSStorageInfoProperty {Maybe (Value Integer)
Maybe ProvisionedThroughputProperty
()
haddock_workaround_ :: EBSStorageInfoProperty -> ()
provisionedThroughput :: EBSStorageInfoProperty -> Maybe ProvisionedThroughputProperty
volumeSize :: EBSStorageInfoProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
provisionedThroughput :: Maybe ProvisionedThroughputProperty
volumeSize :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MSK::Cluster.EBSStorageInfo",
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 -> ProvisionedThroughputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ProvisionedThroughput"
(ProvisionedThroughputProperty -> (Key, Value))
-> Maybe ProvisionedThroughputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProvisionedThroughputProperty
provisionedThroughput,
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
"VolumeSize" (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)
volumeSize])}
instance JSON.ToJSON EBSStorageInfoProperty where
toJSON :: EBSStorageInfoProperty -> Value
toJSON EBSStorageInfoProperty {Maybe (Value Integer)
Maybe ProvisionedThroughputProperty
()
haddock_workaround_ :: EBSStorageInfoProperty -> ()
provisionedThroughput :: EBSStorageInfoProperty -> Maybe ProvisionedThroughputProperty
volumeSize :: EBSStorageInfoProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
provisionedThroughput :: Maybe ProvisionedThroughputProperty
volumeSize :: 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 -> ProvisionedThroughputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ProvisionedThroughput"
(ProvisionedThroughputProperty -> (Key, Value))
-> Maybe ProvisionedThroughputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProvisionedThroughputProperty
provisionedThroughput,
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
"VolumeSize" (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)
volumeSize]))
instance Property "ProvisionedThroughput" EBSStorageInfoProperty where
type PropertyType "ProvisionedThroughput" EBSStorageInfoProperty = ProvisionedThroughputProperty
set :: PropertyType "ProvisionedThroughput" EBSStorageInfoProperty
-> EBSStorageInfoProperty -> EBSStorageInfoProperty
set PropertyType "ProvisionedThroughput" EBSStorageInfoProperty
newValue EBSStorageInfoProperty {Maybe (Value Integer)
Maybe ProvisionedThroughputProperty
()
haddock_workaround_ :: EBSStorageInfoProperty -> ()
provisionedThroughput :: EBSStorageInfoProperty -> Maybe ProvisionedThroughputProperty
volumeSize :: EBSStorageInfoProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
provisionedThroughput :: Maybe ProvisionedThroughputProperty
volumeSize :: Maybe (Value Integer)
..}
= EBSStorageInfoProperty
{provisionedThroughput :: Maybe ProvisionedThroughputProperty
provisionedThroughput = ProvisionedThroughputProperty
-> Maybe ProvisionedThroughputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ProvisionedThroughput" EBSStorageInfoProperty
ProvisionedThroughputProperty
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
volumeSize :: Maybe (Value Integer)
haddock_workaround_ :: ()
volumeSize :: Maybe (Value Integer)
..}
instance Property "VolumeSize" EBSStorageInfoProperty where
type PropertyType "VolumeSize" EBSStorageInfoProperty = Value Prelude.Integer
set :: PropertyType "VolumeSize" EBSStorageInfoProperty
-> EBSStorageInfoProperty -> EBSStorageInfoProperty
set PropertyType "VolumeSize" EBSStorageInfoProperty
newValue EBSStorageInfoProperty {Maybe (Value Integer)
Maybe ProvisionedThroughputProperty
()
haddock_workaround_ :: EBSStorageInfoProperty -> ()
provisionedThroughput :: EBSStorageInfoProperty -> Maybe ProvisionedThroughputProperty
volumeSize :: EBSStorageInfoProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
provisionedThroughput :: Maybe ProvisionedThroughputProperty
volumeSize :: Maybe (Value Integer)
..}
= EBSStorageInfoProperty {volumeSize :: Maybe (Value Integer)
volumeSize = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VolumeSize" EBSStorageInfoProperty
Value Integer
newValue, Maybe ProvisionedThroughputProperty
()
haddock_workaround_ :: ()
provisionedThroughput :: Maybe ProvisionedThroughputProperty
haddock_workaround_ :: ()
provisionedThroughput :: Maybe ProvisionedThroughputProperty
..}