module Stratosphere.ServiceCatalog.CloudFormationProduct.ProvisioningArtifactPropertiesProperty (
ProvisioningArtifactPropertiesProperty(..),
mkProvisioningArtifactPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProvisioningArtifactPropertiesProperty
=
ProvisioningArtifactPropertiesProperty {ProvisioningArtifactPropertiesProperty -> ()
haddock_workaround_ :: (),
ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
ProvisioningArtifactPropertiesProperty -> Maybe (Value Bool)
disableTemplateValidation :: (Prelude.Maybe (Value Prelude.Bool)),
ProvisioningArtifactPropertiesProperty -> Object
info :: JSON.Object,
ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty -> Bool
(ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty -> Bool)
-> (ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty -> Bool)
-> Eq ProvisioningArtifactPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty -> Bool
== :: ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty -> Bool
$c/= :: ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty -> Bool
/= :: ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty -> Bool
Prelude.Eq, Int -> ProvisioningArtifactPropertiesProperty -> ShowS
[ProvisioningArtifactPropertiesProperty] -> ShowS
ProvisioningArtifactPropertiesProperty -> String
(Int -> ProvisioningArtifactPropertiesProperty -> ShowS)
-> (ProvisioningArtifactPropertiesProperty -> String)
-> ([ProvisioningArtifactPropertiesProperty] -> ShowS)
-> Show ProvisioningArtifactPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProvisioningArtifactPropertiesProperty -> ShowS
showsPrec :: Int -> ProvisioningArtifactPropertiesProperty -> ShowS
$cshow :: ProvisioningArtifactPropertiesProperty -> String
show :: ProvisioningArtifactPropertiesProperty -> String
$cshowList :: [ProvisioningArtifactPropertiesProperty] -> ShowS
showList :: [ProvisioningArtifactPropertiesProperty] -> ShowS
Prelude.Show)
mkProvisioningArtifactPropertiesProperty ::
JSON.Object -> ProvisioningArtifactPropertiesProperty
mkProvisioningArtifactPropertiesProperty :: Object -> ProvisioningArtifactPropertiesProperty
mkProvisioningArtifactPropertiesProperty Object
info
= ProvisioningArtifactPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), info :: Object
info = Object
info,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
disableTemplateValidation :: Maybe (Value Bool)
disableTemplateValidation = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProvisioningArtifactPropertiesProperty where
toResourceProperties :: ProvisioningArtifactPropertiesProperty -> ResourceProperties
toResourceProperties ProvisioningArtifactPropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ProvisioningArtifactPropertiesProperty -> ()
description :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
disableTemplateValidation :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Bool)
info :: ProvisioningArtifactPropertiesProperty -> Object
name :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
type' :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ServiceCatalog::CloudFormationProduct.ProvisioningArtifactProperties",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Info" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
info]
([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
"Description" (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)
description,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisableTemplateValidation"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
disableTemplateValidation,
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
"Name" (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)
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..=) Key
"Type" (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)
type']))}
instance JSON.ToJSON ProvisioningArtifactPropertiesProperty where
toJSON :: ProvisioningArtifactPropertiesProperty -> Value
toJSON ProvisioningArtifactPropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ProvisioningArtifactPropertiesProperty -> ()
description :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
disableTemplateValidation :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Bool)
info :: ProvisioningArtifactPropertiesProperty -> Object
name :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
type' :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Info" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
info]
([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
"Description" (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)
description,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisableTemplateValidation"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
disableTemplateValidation,
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
"Name" (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)
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..=) Key
"Type" (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)
type'])))
instance Property "Description" ProvisioningArtifactPropertiesProperty where
type PropertyType "Description" ProvisioningArtifactPropertiesProperty = Value Prelude.Text
set :: PropertyType "Description" ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty
set PropertyType "Description" ProvisioningArtifactPropertiesProperty
newValue ProvisioningArtifactPropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ProvisioningArtifactPropertiesProperty -> ()
description :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
disableTemplateValidation :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Bool)
info :: ProvisioningArtifactPropertiesProperty -> Object
name :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
type' :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= ProvisioningArtifactPropertiesProperty
{description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" ProvisioningArtifactPropertiesProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
instance Property "DisableTemplateValidation" ProvisioningArtifactPropertiesProperty where
type PropertyType "DisableTemplateValidation" ProvisioningArtifactPropertiesProperty = Value Prelude.Bool
set :: PropertyType
"DisableTemplateValidation" ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty
set PropertyType
"DisableTemplateValidation" ProvisioningArtifactPropertiesProperty
newValue ProvisioningArtifactPropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ProvisioningArtifactPropertiesProperty -> ()
description :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
disableTemplateValidation :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Bool)
info :: ProvisioningArtifactPropertiesProperty -> Object
name :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
type' :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= ProvisioningArtifactPropertiesProperty
{disableTemplateValidation :: Maybe (Value Bool)
disableTemplateValidation = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DisableTemplateValidation" ProvisioningArtifactPropertiesProperty
Value Bool
newValue, Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
info :: Object
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
info :: Object
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
instance Property "Info" ProvisioningArtifactPropertiesProperty where
type PropertyType "Info" ProvisioningArtifactPropertiesProperty = JSON.Object
set :: PropertyType "Info" ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty
set PropertyType "Info" ProvisioningArtifactPropertiesProperty
newValue ProvisioningArtifactPropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ProvisioningArtifactPropertiesProperty -> ()
description :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
disableTemplateValidation :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Bool)
info :: ProvisioningArtifactPropertiesProperty -> Object
name :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
type' :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= ProvisioningArtifactPropertiesProperty {info :: Object
info = Object
PropertyType "Info" ProvisioningArtifactPropertiesProperty
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
instance Property "Name" ProvisioningArtifactPropertiesProperty where
type PropertyType "Name" ProvisioningArtifactPropertiesProperty = Value Prelude.Text
set :: PropertyType "Name" ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty
set PropertyType "Name" ProvisioningArtifactPropertiesProperty
newValue ProvisioningArtifactPropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ProvisioningArtifactPropertiesProperty -> ()
description :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
disableTemplateValidation :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Bool)
info :: ProvisioningArtifactPropertiesProperty -> Object
name :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
type' :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= ProvisioningArtifactPropertiesProperty
{name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" ProvisioningArtifactPropertiesProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
type' :: Maybe (Value Text)
..}
instance Property "Type" ProvisioningArtifactPropertiesProperty where
type PropertyType "Type" ProvisioningArtifactPropertiesProperty = Value Prelude.Text
set :: PropertyType "Type" ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty
-> ProvisioningArtifactPropertiesProperty
set PropertyType "Type" ProvisioningArtifactPropertiesProperty
newValue ProvisioningArtifactPropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ProvisioningArtifactPropertiesProperty -> ()
description :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
disableTemplateValidation :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Bool)
info :: ProvisioningArtifactPropertiesProperty -> Object
name :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
type' :: ProvisioningArtifactPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= ProvisioningArtifactPropertiesProperty
{type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" ProvisioningArtifactPropertiesProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
name :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disableTemplateValidation :: Maybe (Value Bool)
info :: Object
name :: Maybe (Value Text)
..}