module Stratosphere.APS.Workspace.LabelProperty (
LabelProperty(..), mkLabelProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LabelProperty
=
LabelProperty {LabelProperty -> ()
haddock_workaround_ :: (),
LabelProperty -> Value Text
name :: (Value Prelude.Text),
LabelProperty -> Value Text
value :: (Value Prelude.Text)}
deriving stock (LabelProperty -> LabelProperty -> Bool
(LabelProperty -> LabelProperty -> Bool)
-> (LabelProperty -> LabelProperty -> Bool) -> Eq LabelProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LabelProperty -> LabelProperty -> Bool
== :: LabelProperty -> LabelProperty -> Bool
$c/= :: LabelProperty -> LabelProperty -> Bool
/= :: LabelProperty -> LabelProperty -> Bool
Prelude.Eq, Int -> LabelProperty -> ShowS
[LabelProperty] -> ShowS
LabelProperty -> String
(Int -> LabelProperty -> ShowS)
-> (LabelProperty -> String)
-> ([LabelProperty] -> ShowS)
-> Show LabelProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LabelProperty -> ShowS
showsPrec :: Int -> LabelProperty -> ShowS
$cshow :: LabelProperty -> String
show :: LabelProperty -> String
$cshowList :: [LabelProperty] -> ShowS
showList :: [LabelProperty] -> ShowS
Prelude.Show)
mkLabelProperty ::
Value Prelude.Text -> Value Prelude.Text -> LabelProperty
mkLabelProperty :: Value Text -> Value Text -> LabelProperty
mkLabelProperty Value Text
name Value Text
value
= LabelProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, value :: Value Text
value = Value Text
value}
instance ToResourceProperties LabelProperty where
toResourceProperties :: LabelProperty -> ResourceProperties
toResourceProperties LabelProperty {()
Value Text
haddock_workaround_ :: LabelProperty -> ()
name :: LabelProperty -> Value Text
value :: LabelProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
value :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::APS::Workspace.Label",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Name" 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
name, Key
"Value" 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
value]}
instance JSON.ToJSON LabelProperty where
toJSON :: LabelProperty -> Value
toJSON LabelProperty {()
Value Text
haddock_workaround_ :: LabelProperty -> ()
name :: LabelProperty -> Value Text
value :: LabelProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
value :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Name" 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
name, Key
"Value" 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
value]
instance Property "Name" LabelProperty where
type PropertyType "Name" LabelProperty = Value Prelude.Text
set :: PropertyType "Name" LabelProperty -> LabelProperty -> LabelProperty
set PropertyType "Name" LabelProperty
newValue LabelProperty {()
Value Text
haddock_workaround_ :: LabelProperty -> ()
name :: LabelProperty -> Value Text
value :: LabelProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
value :: Value Text
..}
= LabelProperty {name :: Value Text
name = PropertyType "Name" LabelProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" LabelProperty where
type PropertyType "Value" LabelProperty = Value Prelude.Text
set :: PropertyType "Value" LabelProperty
-> LabelProperty -> LabelProperty
set PropertyType "Value" LabelProperty
newValue LabelProperty {()
Value Text
haddock_workaround_ :: LabelProperty -> ()
name :: LabelProperty -> Value Text
value :: LabelProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
value :: Value Text
..}
= LabelProperty {value :: Value Text
value = PropertyType "Value" LabelProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}