module Stratosphere.EC2.EC2Fleet.PerformanceFactorReferenceRequestProperty (
PerformanceFactorReferenceRequestProperty(..),
mkPerformanceFactorReferenceRequestProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PerformanceFactorReferenceRequestProperty
=
PerformanceFactorReferenceRequestProperty {PerformanceFactorReferenceRequestProperty -> ()
haddock_workaround_ :: (),
PerformanceFactorReferenceRequestProperty -> Maybe (Value Text)
instanceFamily :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (PerformanceFactorReferenceRequestProperty
-> PerformanceFactorReferenceRequestProperty -> Bool
(PerformanceFactorReferenceRequestProperty
-> PerformanceFactorReferenceRequestProperty -> Bool)
-> (PerformanceFactorReferenceRequestProperty
-> PerformanceFactorReferenceRequestProperty -> Bool)
-> Eq PerformanceFactorReferenceRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PerformanceFactorReferenceRequestProperty
-> PerformanceFactorReferenceRequestProperty -> Bool
== :: PerformanceFactorReferenceRequestProperty
-> PerformanceFactorReferenceRequestProperty -> Bool
$c/= :: PerformanceFactorReferenceRequestProperty
-> PerformanceFactorReferenceRequestProperty -> Bool
/= :: PerformanceFactorReferenceRequestProperty
-> PerformanceFactorReferenceRequestProperty -> Bool
Prelude.Eq, Int -> PerformanceFactorReferenceRequestProperty -> ShowS
[PerformanceFactorReferenceRequestProperty] -> ShowS
PerformanceFactorReferenceRequestProperty -> String
(Int -> PerformanceFactorReferenceRequestProperty -> ShowS)
-> (PerformanceFactorReferenceRequestProperty -> String)
-> ([PerformanceFactorReferenceRequestProperty] -> ShowS)
-> Show PerformanceFactorReferenceRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PerformanceFactorReferenceRequestProperty -> ShowS
showsPrec :: Int -> PerformanceFactorReferenceRequestProperty -> ShowS
$cshow :: PerformanceFactorReferenceRequestProperty -> String
show :: PerformanceFactorReferenceRequestProperty -> String
$cshowList :: [PerformanceFactorReferenceRequestProperty] -> ShowS
showList :: [PerformanceFactorReferenceRequestProperty] -> ShowS
Prelude.Show)
mkPerformanceFactorReferenceRequestProperty ::
PerformanceFactorReferenceRequestProperty
mkPerformanceFactorReferenceRequestProperty :: PerformanceFactorReferenceRequestProperty
mkPerformanceFactorReferenceRequestProperty
= PerformanceFactorReferenceRequestProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), instanceFamily :: Maybe (Value Text)
instanceFamily = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PerformanceFactorReferenceRequestProperty where
toResourceProperties :: PerformanceFactorReferenceRequestProperty -> ResourceProperties
toResourceProperties PerformanceFactorReferenceRequestProperty {Maybe (Value Text)
()
haddock_workaround_ :: PerformanceFactorReferenceRequestProperty -> ()
instanceFamily :: PerformanceFactorReferenceRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
instanceFamily :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::EC2Fleet.PerformanceFactorReferenceRequest",
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 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
"InstanceFamily" (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)
instanceFamily])}
instance JSON.ToJSON PerformanceFactorReferenceRequestProperty where
toJSON :: PerformanceFactorReferenceRequestProperty -> Value
toJSON PerformanceFactorReferenceRequestProperty {Maybe (Value Text)
()
haddock_workaround_ :: PerformanceFactorReferenceRequestProperty -> ()
instanceFamily :: PerformanceFactorReferenceRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
instanceFamily :: 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 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
"InstanceFamily" (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)
instanceFamily]))
instance Property "InstanceFamily" PerformanceFactorReferenceRequestProperty where
type PropertyType "InstanceFamily" PerformanceFactorReferenceRequestProperty = Value Prelude.Text
set :: PropertyType
"InstanceFamily" PerformanceFactorReferenceRequestProperty
-> PerformanceFactorReferenceRequestProperty
-> PerformanceFactorReferenceRequestProperty
set PropertyType
"InstanceFamily" PerformanceFactorReferenceRequestProperty
newValue PerformanceFactorReferenceRequestProperty {Maybe (Value Text)
()
haddock_workaround_ :: PerformanceFactorReferenceRequestProperty -> ()
instanceFamily :: PerformanceFactorReferenceRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
instanceFamily :: Maybe (Value Text)
..}
= PerformanceFactorReferenceRequestProperty
{instanceFamily :: Maybe (Value Text)
instanceFamily = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"InstanceFamily" PerformanceFactorReferenceRequestProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}