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