module Stratosphere.AppStream.Entitlement.AttributeProperty (
AttributeProperty(..), mkAttributeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AttributeProperty
=
AttributeProperty {AttributeProperty -> ()
haddock_workaround_ :: (),
AttributeProperty -> Value Text
name :: (Value Prelude.Text),
AttributeProperty -> Value Text
value :: (Value Prelude.Text)}
deriving stock (AttributeProperty -> AttributeProperty -> Bool
(AttributeProperty -> AttributeProperty -> Bool)
-> (AttributeProperty -> AttributeProperty -> Bool)
-> Eq AttributeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AttributeProperty -> AttributeProperty -> Bool
== :: AttributeProperty -> AttributeProperty -> Bool
$c/= :: AttributeProperty -> AttributeProperty -> Bool
/= :: AttributeProperty -> AttributeProperty -> Bool
Prelude.Eq, Int -> AttributeProperty -> ShowS
[AttributeProperty] -> ShowS
AttributeProperty -> String
(Int -> AttributeProperty -> ShowS)
-> (AttributeProperty -> String)
-> ([AttributeProperty] -> ShowS)
-> Show AttributeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AttributeProperty -> ShowS
showsPrec :: Int -> AttributeProperty -> ShowS
$cshow :: AttributeProperty -> String
show :: AttributeProperty -> String
$cshowList :: [AttributeProperty] -> ShowS
showList :: [AttributeProperty] -> ShowS
Prelude.Show)
mkAttributeProperty ::
Value Prelude.Text -> Value Prelude.Text -> AttributeProperty
mkAttributeProperty :: Value Text -> Value Text -> AttributeProperty
mkAttributeProperty Value Text
name Value Text
value
= AttributeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, value :: Value Text
value = Value Text
value}
instance ToResourceProperties AttributeProperty where
toResourceProperties :: AttributeProperty -> ResourceProperties
toResourceProperties AttributeProperty {()
Value Text
haddock_workaround_ :: AttributeProperty -> ()
name :: AttributeProperty -> Value Text
value :: AttributeProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
value :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppStream::Entitlement.Attribute",
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 AttributeProperty where
toJSON :: AttributeProperty -> Value
toJSON AttributeProperty {()
Value Text
haddock_workaround_ :: AttributeProperty -> ()
name :: AttributeProperty -> Value Text
value :: AttributeProperty -> 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" AttributeProperty where
type PropertyType "Name" AttributeProperty = Value Prelude.Text
set :: PropertyType "Name" AttributeProperty
-> AttributeProperty -> AttributeProperty
set PropertyType "Name" AttributeProperty
newValue AttributeProperty {()
Value Text
haddock_workaround_ :: AttributeProperty -> ()
name :: AttributeProperty -> Value Text
value :: AttributeProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
value :: Value Text
..}
= AttributeProperty {name :: Value Text
name = PropertyType "Name" AttributeProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" AttributeProperty where
type PropertyType "Value" AttributeProperty = Value Prelude.Text
set :: PropertyType "Value" AttributeProperty
-> AttributeProperty -> AttributeProperty
set PropertyType "Value" AttributeProperty
newValue AttributeProperty {()
Value Text
haddock_workaround_ :: AttributeProperty -> ()
name :: AttributeProperty -> Value Text
value :: AttributeProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
value :: Value Text
..}
= AttributeProperty {value :: Value Text
value = PropertyType "Value" AttributeProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}