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