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