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