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