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