module Stratosphere.ServiceCatalog.LaunchTemplateConstraint (
        LaunchTemplateConstraint(..), mkLaunchTemplateConstraint
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LaunchTemplateConstraint
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html>
    LaunchTemplateConstraint {LaunchTemplateConstraint -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html#cfn-servicecatalog-launchtemplateconstraint-acceptlanguage>
                              LaunchTemplateConstraint -> Maybe (Value Text)
acceptLanguage :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html#cfn-servicecatalog-launchtemplateconstraint-description>
                              LaunchTemplateConstraint -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html#cfn-servicecatalog-launchtemplateconstraint-portfolioid>
                              LaunchTemplateConstraint -> Value Text
portfolioId :: (Value Prelude.Text),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html#cfn-servicecatalog-launchtemplateconstraint-productid>
                              LaunchTemplateConstraint -> Value Text
productId :: (Value Prelude.Text),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html#cfn-servicecatalog-launchtemplateconstraint-rules>
                              LaunchTemplateConstraint -> Value Text
rules :: (Value Prelude.Text)}
  deriving stock (LaunchTemplateConstraint -> LaunchTemplateConstraint -> Bool
(LaunchTemplateConstraint -> LaunchTemplateConstraint -> Bool)
-> (LaunchTemplateConstraint -> LaunchTemplateConstraint -> Bool)
-> Eq LaunchTemplateConstraint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LaunchTemplateConstraint -> LaunchTemplateConstraint -> Bool
== :: LaunchTemplateConstraint -> LaunchTemplateConstraint -> Bool
$c/= :: LaunchTemplateConstraint -> LaunchTemplateConstraint -> Bool
/= :: LaunchTemplateConstraint -> LaunchTemplateConstraint -> Bool
Prelude.Eq, Int -> LaunchTemplateConstraint -> ShowS
[LaunchTemplateConstraint] -> ShowS
LaunchTemplateConstraint -> String
(Int -> LaunchTemplateConstraint -> ShowS)
-> (LaunchTemplateConstraint -> String)
-> ([LaunchTemplateConstraint] -> ShowS)
-> Show LaunchTemplateConstraint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LaunchTemplateConstraint -> ShowS
showsPrec :: Int -> LaunchTemplateConstraint -> ShowS
$cshow :: LaunchTemplateConstraint -> String
show :: LaunchTemplateConstraint -> String
$cshowList :: [LaunchTemplateConstraint] -> ShowS
showList :: [LaunchTemplateConstraint] -> ShowS
Prelude.Show)
mkLaunchTemplateConstraint ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> LaunchTemplateConstraint
mkLaunchTemplateConstraint :: Value Text -> Value Text -> Value Text -> LaunchTemplateConstraint
mkLaunchTemplateConstraint Value Text
portfolioId Value Text
productId Value Text
rules
  = LaunchTemplateConstraint
      {haddock_workaround_ :: ()
haddock_workaround_ = (), portfolioId :: Value Text
portfolioId = Value Text
portfolioId,
       productId :: Value Text
productId = Value Text
productId, rules :: Value Text
rules = Value Text
rules,
       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 LaunchTemplateConstraint where
  toResourceProperties :: LaunchTemplateConstraint -> ResourceProperties
toResourceProperties LaunchTemplateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchTemplateConstraint -> ()
acceptLanguage :: LaunchTemplateConstraint -> Maybe (Value Text)
description :: LaunchTemplateConstraint -> Maybe (Value Text)
portfolioId :: LaunchTemplateConstraint -> Value Text
productId :: LaunchTemplateConstraint -> Value Text
rules :: LaunchTemplateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
rules :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ServiceCatalog::LaunchTemplateConstraint",
         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
"Rules" 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
rules]
                           ([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 LaunchTemplateConstraint where
  toJSON :: LaunchTemplateConstraint -> Value
toJSON LaunchTemplateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchTemplateConstraint -> ()
acceptLanguage :: LaunchTemplateConstraint -> Maybe (Value Text)
description :: LaunchTemplateConstraint -> Maybe (Value Text)
portfolioId :: LaunchTemplateConstraint -> Value Text
productId :: LaunchTemplateConstraint -> Value Text
rules :: LaunchTemplateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
rules :: 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
"Rules" 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
rules]
              ([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" LaunchTemplateConstraint where
  type PropertyType "AcceptLanguage" LaunchTemplateConstraint = Value Prelude.Text
  set :: PropertyType "AcceptLanguage" LaunchTemplateConstraint
-> LaunchTemplateConstraint -> LaunchTemplateConstraint
set PropertyType "AcceptLanguage" LaunchTemplateConstraint
newValue LaunchTemplateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchTemplateConstraint -> ()
acceptLanguage :: LaunchTemplateConstraint -> Maybe (Value Text)
description :: LaunchTemplateConstraint -> Maybe (Value Text)
portfolioId :: LaunchTemplateConstraint -> Value Text
productId :: LaunchTemplateConstraint -> Value Text
rules :: LaunchTemplateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
rules :: Value Text
..}
    = LaunchTemplateConstraint
        {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" LaunchTemplateConstraint
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
rules :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
rules :: Value Text
..}
instance Property "Description" LaunchTemplateConstraint where
  type PropertyType "Description" LaunchTemplateConstraint = Value Prelude.Text
  set :: PropertyType "Description" LaunchTemplateConstraint
-> LaunchTemplateConstraint -> LaunchTemplateConstraint
set PropertyType "Description" LaunchTemplateConstraint
newValue LaunchTemplateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchTemplateConstraint -> ()
acceptLanguage :: LaunchTemplateConstraint -> Maybe (Value Text)
description :: LaunchTemplateConstraint -> Maybe (Value Text)
portfolioId :: LaunchTemplateConstraint -> Value Text
productId :: LaunchTemplateConstraint -> Value Text
rules :: LaunchTemplateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
rules :: Value Text
..}
    = LaunchTemplateConstraint
        {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" LaunchTemplateConstraint
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
rules :: Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
rules :: Value Text
..}
instance Property "PortfolioId" LaunchTemplateConstraint where
  type PropertyType "PortfolioId" LaunchTemplateConstraint = Value Prelude.Text
  set :: PropertyType "PortfolioId" LaunchTemplateConstraint
-> LaunchTemplateConstraint -> LaunchTemplateConstraint
set PropertyType "PortfolioId" LaunchTemplateConstraint
newValue LaunchTemplateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchTemplateConstraint -> ()
acceptLanguage :: LaunchTemplateConstraint -> Maybe (Value Text)
description :: LaunchTemplateConstraint -> Maybe (Value Text)
portfolioId :: LaunchTemplateConstraint -> Value Text
productId :: LaunchTemplateConstraint -> Value Text
rules :: LaunchTemplateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
rules :: Value Text
..}
    = LaunchTemplateConstraint {portfolioId :: Value Text
portfolioId = PropertyType "PortfolioId" LaunchTemplateConstraint
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
productId :: Value Text
rules :: Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
productId :: Value Text
rules :: Value Text
..}
instance Property "ProductId" LaunchTemplateConstraint where
  type PropertyType "ProductId" LaunchTemplateConstraint = Value Prelude.Text
  set :: PropertyType "ProductId" LaunchTemplateConstraint
-> LaunchTemplateConstraint -> LaunchTemplateConstraint
set PropertyType "ProductId" LaunchTemplateConstraint
newValue LaunchTemplateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchTemplateConstraint -> ()
acceptLanguage :: LaunchTemplateConstraint -> Maybe (Value Text)
description :: LaunchTemplateConstraint -> Maybe (Value Text)
portfolioId :: LaunchTemplateConstraint -> Value Text
productId :: LaunchTemplateConstraint -> Value Text
rules :: LaunchTemplateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
rules :: Value Text
..}
    = LaunchTemplateConstraint {productId :: Value Text
productId = PropertyType "ProductId" LaunchTemplateConstraint
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
rules :: Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
rules :: Value Text
..}
instance Property "Rules" LaunchTemplateConstraint where
  type PropertyType "Rules" LaunchTemplateConstraint = Value Prelude.Text
  set :: PropertyType "Rules" LaunchTemplateConstraint
-> LaunchTemplateConstraint -> LaunchTemplateConstraint
set PropertyType "Rules" LaunchTemplateConstraint
newValue LaunchTemplateConstraint {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchTemplateConstraint -> ()
acceptLanguage :: LaunchTemplateConstraint -> Maybe (Value Text)
description :: LaunchTemplateConstraint -> Maybe (Value Text)
portfolioId :: LaunchTemplateConstraint -> Value Text
productId :: LaunchTemplateConstraint -> Value Text
rules :: LaunchTemplateConstraint -> Value Text
haddock_workaround_ :: ()
acceptLanguage :: Maybe (Value Text)
description :: Maybe (Value Text)
portfolioId :: Value Text
productId :: Value Text
rules :: Value Text
..}
    = LaunchTemplateConstraint {rules :: Value Text
rules = PropertyType "Rules" LaunchTemplateConstraint
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
..}