module Stratosphere.ServiceCatalog.ResourceUpdateConstraint (
ResourceUpdateConstraint(..), mkResourceUpdateConstraint
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ResourceUpdateConstraint
=
ResourceUpdateConstraint {ResourceUpdateConstraint -> ()
haddock_workaround_ :: (),
ResourceUpdateConstraint -> Maybe (Value Text)
acceptLanguage :: (Prelude.Maybe (Value Prelude.Text)),
ResourceUpdateConstraint -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
ResourceUpdateConstraint -> Value Text
portfolioId :: (Value Prelude.Text),
ResourceUpdateConstraint -> Value Text
productId :: (Value Prelude.Text),
ResourceUpdateConstraint -> Value Text
tagUpdateOnProvisionedProduct :: (Value Prelude.Text)}
deriving stock (ResourceUpdateConstraint -> ResourceUpdateConstraint -> Bool
(ResourceUpdateConstraint -> ResourceUpdateConstraint -> Bool)
-> (ResourceUpdateConstraint -> ResourceUpdateConstraint -> Bool)
-> Eq ResourceUpdateConstraint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResourceUpdateConstraint -> ResourceUpdateConstraint -> Bool
== :: ResourceUpdateConstraint -> ResourceUpdateConstraint -> Bool
$c/= :: ResourceUpdateConstraint -> ResourceUpdateConstraint -> Bool
/= :: ResourceUpdateConstraint -> ResourceUpdateConstraint -> Bool
Prelude.Eq, Int -> ResourceUpdateConstraint -> ShowS
[ResourceUpdateConstraint] -> ShowS
ResourceUpdateConstraint -> String
(Int -> ResourceUpdateConstraint -> ShowS)
-> (ResourceUpdateConstraint -> String)
-> ([ResourceUpdateConstraint] -> ShowS)
-> Show ResourceUpdateConstraint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResourceUpdateConstraint -> ShowS
showsPrec :: Int -> ResourceUpdateConstraint -> ShowS
$cshow :: ResourceUpdateConstraint -> String
show :: ResourceUpdateConstraint -> String
$cshowList :: [ResourceUpdateConstraint] -> ShowS
showList :: [ResourceUpdateConstraint] -> ShowS
Prelude.Show)
mkResourceUpdateConstraint ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> ResourceUpdateConstraint
mkResourceUpdateConstraint :: Value Text -> Value Text -> Value Text -> ResourceUpdateConstraint
mkResourceUpdateConstraint
Value Text
portfolioId
Value Text
productId
Value Text
tagUpdateOnProvisionedProduct
= ResourceUpdateConstraint
{haddock_workaround_ :: ()
haddock_workaround_ = (), portfolioId :: Value Text
portfolioId = Value Text
portfolioId,
productId :: Value Text
productId = Value Text
productId,
tagUpdateOnProvisionedProduct :: Value Text
tagUpdateOnProvisionedProduct = Value Text
tagUpdateOnProvisionedProduct,
acceptLanguage :: Maybe (Value Text)
acceptLanguage = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ResourceUpdateConstraint where
toResourceProperties :: ResourceUpdateConstraint -> ResourceProperties
toResourceProperties ResourceUpdateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ResourceUpdateConstraint -> ()
acceptLanguage :: ResourceUpdateConstraint -> Maybe (Value Text)
description :: ResourceUpdateConstraint -> Maybe (Value Text)
portfolioId :: ResourceUpdateConstraint -> Value Text
productId :: ResourceUpdateConstraint -> Value Text
tagUpdateOnProvisionedProduct :: ResourceUpdateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ServiceCatalog::ResourceUpdateConstraint",
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
"PortfolioId" 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
portfolioId, Key
"ProductId" 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
productId,
Key
"TagUpdateOnProvisionedProduct"
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
tagUpdateOnProvisionedProduct]
([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
"AcceptLanguage" (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)
acceptLanguage,
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]))}
instance JSON.ToJSON ResourceUpdateConstraint where
toJSON :: ResourceUpdateConstraint -> Value
toJSON ResourceUpdateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ResourceUpdateConstraint -> ()
acceptLanguage :: ResourceUpdateConstraint -> Maybe (Value Text)
description :: ResourceUpdateConstraint -> Maybe (Value Text)
portfolioId :: ResourceUpdateConstraint -> Value Text
productId :: ResourceUpdateConstraint -> Value Text
tagUpdateOnProvisionedProduct :: ResourceUpdateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
tagUpdateOnProvisionedProduct :: 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
"PortfolioId" 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
portfolioId, Key
"ProductId" 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
productId,
Key
"TagUpdateOnProvisionedProduct"
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
tagUpdateOnProvisionedProduct]
([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
"AcceptLanguage" (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)
acceptLanguage,
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])))
instance Property "AcceptLanguage" ResourceUpdateConstraint where
type PropertyType "AcceptLanguage" ResourceUpdateConstraint = Value Prelude.Text
set :: PropertyType "AcceptLanguage" ResourceUpdateConstraint
-> ResourceUpdateConstraint -> ResourceUpdateConstraint
set PropertyType "AcceptLanguage" ResourceUpdateConstraint
newValue ResourceUpdateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ResourceUpdateConstraint -> ()
acceptLanguage :: ResourceUpdateConstraint -> Maybe (Value Text)
description :: ResourceUpdateConstraint -> Maybe (Value Text)
portfolioId :: ResourceUpdateConstraint -> Value Text
productId :: ResourceUpdateConstraint -> Value Text
tagUpdateOnProvisionedProduct :: ResourceUpdateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
..}
= ResourceUpdateConstraint
{acceptLanguage :: Maybe (Value Text)
acceptLanguage = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AcceptLanguage" ResourceUpdateConstraint
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
..}
instance Property "Description" ResourceUpdateConstraint where
type PropertyType "Description" ResourceUpdateConstraint = Value Prelude.Text
set :: PropertyType "Description" ResourceUpdateConstraint
-> ResourceUpdateConstraint -> ResourceUpdateConstraint
set PropertyType "Description" ResourceUpdateConstraint
newValue ResourceUpdateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ResourceUpdateConstraint -> ()
acceptLanguage :: ResourceUpdateConstraint -> Maybe (Value Text)
description :: ResourceUpdateConstraint -> Maybe (Value Text)
portfolioId :: ResourceUpdateConstraint -> Value Text
productId :: ResourceUpdateConstraint -> Value Text
tagUpdateOnProvisionedProduct :: ResourceUpdateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
..}
= ResourceUpdateConstraint
{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" ResourceUpdateConstraint
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
..}
instance Property "PortfolioId" ResourceUpdateConstraint where
type PropertyType "PortfolioId" ResourceUpdateConstraint = Value Prelude.Text
set :: PropertyType "PortfolioId" ResourceUpdateConstraint
-> ResourceUpdateConstraint -> ResourceUpdateConstraint
set PropertyType "PortfolioId" ResourceUpdateConstraint
newValue ResourceUpdateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ResourceUpdateConstraint -> ()
acceptLanguage :: ResourceUpdateConstraint -> Maybe (Value Text)
description :: ResourceUpdateConstraint -> Maybe (Value Text)
portfolioId :: ResourceUpdateConstraint -> Value Text
productId :: ResourceUpdateConstraint -> Value Text
tagUpdateOnProvisionedProduct :: ResourceUpdateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
..}
= ResourceUpdateConstraint {portfolioId :: Value Text
portfolioId = PropertyType "PortfolioId" ResourceUpdateConstraint
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
productId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
productId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
..}
instance Property "ProductId" ResourceUpdateConstraint where
type PropertyType "ProductId" ResourceUpdateConstraint = Value Prelude.Text
set :: PropertyType "ProductId" ResourceUpdateConstraint
-> ResourceUpdateConstraint -> ResourceUpdateConstraint
set PropertyType "ProductId" ResourceUpdateConstraint
newValue ResourceUpdateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ResourceUpdateConstraint -> ()
acceptLanguage :: ResourceUpdateConstraint -> Maybe (Value Text)
description :: ResourceUpdateConstraint -> Maybe (Value Text)
portfolioId :: ResourceUpdateConstraint -> Value Text
productId :: ResourceUpdateConstraint -> Value Text
tagUpdateOnProvisionedProduct :: ResourceUpdateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
..}
= ResourceUpdateConstraint {productId :: Value Text
productId = PropertyType "ProductId" ResourceUpdateConstraint
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
..}
instance Property "TagUpdateOnProvisionedProduct" ResourceUpdateConstraint where
type PropertyType "TagUpdateOnProvisionedProduct" ResourceUpdateConstraint = Value Prelude.Text
set :: PropertyType
"TagUpdateOnProvisionedProduct" ResourceUpdateConstraint
-> ResourceUpdateConstraint -> ResourceUpdateConstraint
set PropertyType
"TagUpdateOnProvisionedProduct" ResourceUpdateConstraint
newValue ResourceUpdateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ResourceUpdateConstraint -> ()
acceptLanguage :: ResourceUpdateConstraint -> Maybe (Value Text)
description :: ResourceUpdateConstraint -> Maybe (Value Text)
portfolioId :: ResourceUpdateConstraint -> Value Text
productId :: ResourceUpdateConstraint -> Value Text
tagUpdateOnProvisionedProduct :: ResourceUpdateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
tagUpdateOnProvisionedProduct :: Value Text
..}
= ResourceUpdateConstraint
{tagUpdateOnProvisionedProduct :: Value Text
tagUpdateOnProvisionedProduct = PropertyType
"TagUpdateOnProvisionedProduct" ResourceUpdateConstraint
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
..}