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