module Stratosphere.EC2.LaunchTemplate.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 -> Maybe (Value Text)
licenseConfigurationArn :: (Prelude.Maybe (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 :: LicenseSpecificationProperty
mkLicenseSpecificationProperty :: LicenseSpecificationProperty
mkLicenseSpecificationProperty
= LicenseSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
licenseConfigurationArn :: Maybe (Value Text)
licenseConfigurationArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LicenseSpecificationProperty where
toResourceProperties :: LicenseSpecificationProperty -> ResourceProperties
toResourceProperties LicenseSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: LicenseSpecificationProperty -> ()
licenseConfigurationArn :: LicenseSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
licenseConfigurationArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::LaunchTemplate.LicenseSpecification",
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 LicenseSpecificationProperty where
toJSON :: LicenseSpecificationProperty -> Value
toJSON LicenseSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: LicenseSpecificationProperty -> ()
licenseConfigurationArn :: LicenseSpecificationProperty -> 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" LicenseSpecificationProperty where
type PropertyType "LicenseConfigurationArn" LicenseSpecificationProperty = Value Prelude.Text
set :: PropertyType "LicenseConfigurationArn" LicenseSpecificationProperty
-> LicenseSpecificationProperty -> LicenseSpecificationProperty
set PropertyType "LicenseConfigurationArn" LicenseSpecificationProperty
newValue LicenseSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: LicenseSpecificationProperty -> ()
licenseConfigurationArn :: LicenseSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
licenseConfigurationArn :: Maybe (Value Text)
..}
= LicenseSpecificationProperty
{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" LicenseSpecificationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}