module Stratosphere.SageMaker.FeatureGroup.ThroughputConfigProperty (
ThroughputConfigProperty(..), mkThroughputConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ThroughputConfigProperty
=
ThroughputConfigProperty {ThroughputConfigProperty -> ()
haddock_workaround_ :: (),
ThroughputConfigProperty -> Maybe (Value Integer)
provisionedReadCapacityUnits :: (Prelude.Maybe (Value Prelude.Integer)),
ThroughputConfigProperty -> Maybe (Value Integer)
provisionedWriteCapacityUnits :: (Prelude.Maybe (Value Prelude.Integer)),
ThroughputConfigProperty -> Value Text
throughputMode :: (Value Prelude.Text)}
deriving stock (ThroughputConfigProperty -> ThroughputConfigProperty -> Bool
(ThroughputConfigProperty -> ThroughputConfigProperty -> Bool)
-> (ThroughputConfigProperty -> ThroughputConfigProperty -> Bool)
-> Eq ThroughputConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ThroughputConfigProperty -> ThroughputConfigProperty -> Bool
== :: ThroughputConfigProperty -> ThroughputConfigProperty -> Bool
$c/= :: ThroughputConfigProperty -> ThroughputConfigProperty -> Bool
/= :: ThroughputConfigProperty -> ThroughputConfigProperty -> Bool
Prelude.Eq, Int -> ThroughputConfigProperty -> ShowS
[ThroughputConfigProperty] -> ShowS
ThroughputConfigProperty -> String
(Int -> ThroughputConfigProperty -> ShowS)
-> (ThroughputConfigProperty -> String)
-> ([ThroughputConfigProperty] -> ShowS)
-> Show ThroughputConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ThroughputConfigProperty -> ShowS
showsPrec :: Int -> ThroughputConfigProperty -> ShowS
$cshow :: ThroughputConfigProperty -> String
show :: ThroughputConfigProperty -> String
$cshowList :: [ThroughputConfigProperty] -> ShowS
showList :: [ThroughputConfigProperty] -> ShowS
Prelude.Show)
mkThroughputConfigProperty ::
Value Prelude.Text -> ThroughputConfigProperty
mkThroughputConfigProperty :: Value Text -> ThroughputConfigProperty
mkThroughputConfigProperty Value Text
throughputMode
= ThroughputConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), throughputMode :: Value Text
throughputMode = Value Text
throughputMode,
provisionedReadCapacityUnits :: Maybe (Value Integer)
provisionedReadCapacityUnits = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
provisionedWriteCapacityUnits :: Maybe (Value Integer)
provisionedWriteCapacityUnits = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ThroughputConfigProperty where
toResourceProperties :: ThroughputConfigProperty -> ResourceProperties
toResourceProperties ThroughputConfigProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ThroughputConfigProperty -> ()
provisionedReadCapacityUnits :: ThroughputConfigProperty -> Maybe (Value Integer)
provisionedWriteCapacityUnits :: ThroughputConfigProperty -> Maybe (Value Integer)
throughputMode :: ThroughputConfigProperty -> Value Text
haddock_workaround_ :: ()
provisionedReadCapacityUnits :: Maybe (Value Integer)
provisionedWriteCapacityUnits :: Maybe (Value Integer)
throughputMode :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::FeatureGroup.ThroughputConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ThroughputMode" 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..= Value Text
throughputMode]
([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
"ProvisionedReadCapacityUnits"
(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)
provisionedReadCapacityUnits,
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
"ProvisionedWriteCapacityUnits"
(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)
provisionedWriteCapacityUnits]))}
instance JSON.ToJSON ThroughputConfigProperty where
toJSON :: ThroughputConfigProperty -> Value
toJSON ThroughputConfigProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ThroughputConfigProperty -> ()
provisionedReadCapacityUnits :: ThroughputConfigProperty -> Maybe (Value Integer)
provisionedWriteCapacityUnits :: ThroughputConfigProperty -> Maybe (Value Integer)
throughputMode :: ThroughputConfigProperty -> Value Text
haddock_workaround_ :: ()
provisionedReadCapacityUnits :: Maybe (Value Integer)
provisionedWriteCapacityUnits :: Maybe (Value Integer)
throughputMode :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ThroughputMode" 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..= Value Text
throughputMode]
([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
"ProvisionedReadCapacityUnits"
(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)
provisionedReadCapacityUnits,
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
"ProvisionedWriteCapacityUnits"
(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)
provisionedWriteCapacityUnits])))
instance Property "ProvisionedReadCapacityUnits" ThroughputConfigProperty where
type PropertyType "ProvisionedReadCapacityUnits" ThroughputConfigProperty = Value Prelude.Integer
set :: PropertyType
"ProvisionedReadCapacityUnits" ThroughputConfigProperty
-> ThroughputConfigProperty -> ThroughputConfigProperty
set PropertyType
"ProvisionedReadCapacityUnits" ThroughputConfigProperty
newValue ThroughputConfigProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ThroughputConfigProperty -> ()
provisionedReadCapacityUnits :: ThroughputConfigProperty -> Maybe (Value Integer)
provisionedWriteCapacityUnits :: ThroughputConfigProperty -> Maybe (Value Integer)
throughputMode :: ThroughputConfigProperty -> Value Text
haddock_workaround_ :: ()
provisionedReadCapacityUnits :: Maybe (Value Integer)
provisionedWriteCapacityUnits :: Maybe (Value Integer)
throughputMode :: Value Text
..}
= ThroughputConfigProperty
{provisionedReadCapacityUnits :: Maybe (Value Integer)
provisionedReadCapacityUnits = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ProvisionedReadCapacityUnits" ThroughputConfigProperty
Value Integer
newValue, Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
provisionedWriteCapacityUnits :: Maybe (Value Integer)
throughputMode :: Value Text
haddock_workaround_ :: ()
provisionedWriteCapacityUnits :: Maybe (Value Integer)
throughputMode :: Value Text
..}
instance Property "ProvisionedWriteCapacityUnits" ThroughputConfigProperty where
type PropertyType "ProvisionedWriteCapacityUnits" ThroughputConfigProperty = Value Prelude.Integer
set :: PropertyType
"ProvisionedWriteCapacityUnits" ThroughputConfigProperty
-> ThroughputConfigProperty -> ThroughputConfigProperty
set PropertyType
"ProvisionedWriteCapacityUnits" ThroughputConfigProperty
newValue ThroughputConfigProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ThroughputConfigProperty -> ()
provisionedReadCapacityUnits :: ThroughputConfigProperty -> Maybe (Value Integer)
provisionedWriteCapacityUnits :: ThroughputConfigProperty -> Maybe (Value Integer)
throughputMode :: ThroughputConfigProperty -> Value Text
haddock_workaround_ :: ()
provisionedReadCapacityUnits :: Maybe (Value Integer)
provisionedWriteCapacityUnits :: Maybe (Value Integer)
throughputMode :: Value Text
..}
= ThroughputConfigProperty
{provisionedWriteCapacityUnits :: Maybe (Value Integer)
provisionedWriteCapacityUnits = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ProvisionedWriteCapacityUnits" ThroughputConfigProperty
Value Integer
newValue, Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
provisionedReadCapacityUnits :: Maybe (Value Integer)
throughputMode :: Value Text
haddock_workaround_ :: ()
provisionedReadCapacityUnits :: Maybe (Value Integer)
throughputMode :: Value Text
..}
instance Property "ThroughputMode" ThroughputConfigProperty where
type PropertyType "ThroughputMode" ThroughputConfigProperty = Value Prelude.Text
set :: PropertyType "ThroughputMode" ThroughputConfigProperty
-> ThroughputConfigProperty -> ThroughputConfigProperty
set PropertyType "ThroughputMode" ThroughputConfigProperty
newValue ThroughputConfigProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ThroughputConfigProperty -> ()
provisionedReadCapacityUnits :: ThroughputConfigProperty -> Maybe (Value Integer)
provisionedWriteCapacityUnits :: ThroughputConfigProperty -> Maybe (Value Integer)
throughputMode :: ThroughputConfigProperty -> Value Text
haddock_workaround_ :: ()
provisionedReadCapacityUnits :: Maybe (Value Integer)
provisionedWriteCapacityUnits :: Maybe (Value Integer)
throughputMode :: Value Text
..}
= ThroughputConfigProperty {throughputMode :: Value Text
throughputMode = PropertyType "ThroughputMode" ThroughputConfigProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
provisionedReadCapacityUnits :: Maybe (Value Integer)
provisionedWriteCapacityUnits :: Maybe (Value Integer)
haddock_workaround_ :: ()
provisionedReadCapacityUnits :: Maybe (Value Integer)
provisionedWriteCapacityUnits :: Maybe (Value Integer)
..}