module Stratosphere.SageMaker.Project.ServiceCatalogProvisionedProductDetailsProperty (
        ServiceCatalogProvisionedProductDetailsProperty(..),
        mkServiceCatalogProvisionedProductDetailsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServiceCatalogProvisionedProductDetailsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-project-servicecatalogprovisionedproductdetails.html>
    ServiceCatalogProvisionedProductDetailsProperty {ServiceCatalogProvisionedProductDetailsProperty -> ()
haddock_workaround_ :: (),
                                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-project-servicecatalogprovisionedproductdetails.html#cfn-sagemaker-project-servicecatalogprovisionedproductdetails-provisionedproductid>
                                                     ServiceCatalogProvisionedProductDetailsProperty
-> Maybe (Value Text)
provisionedProductId :: (Prelude.Maybe (Value Prelude.Text)),
                                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-project-servicecatalogprovisionedproductdetails.html#cfn-sagemaker-project-servicecatalogprovisionedproductdetails-provisionedproductstatusmessage>
                                                     ServiceCatalogProvisionedProductDetailsProperty
-> Maybe (Value Text)
provisionedProductStatusMessage :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ServiceCatalogProvisionedProductDetailsProperty
-> ServiceCatalogProvisionedProductDetailsProperty -> Bool
(ServiceCatalogProvisionedProductDetailsProperty
 -> ServiceCatalogProvisionedProductDetailsProperty -> Bool)
-> (ServiceCatalogProvisionedProductDetailsProperty
    -> ServiceCatalogProvisionedProductDetailsProperty -> Bool)
-> Eq ServiceCatalogProvisionedProductDetailsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceCatalogProvisionedProductDetailsProperty
-> ServiceCatalogProvisionedProductDetailsProperty -> Bool
== :: ServiceCatalogProvisionedProductDetailsProperty
-> ServiceCatalogProvisionedProductDetailsProperty -> Bool
$c/= :: ServiceCatalogProvisionedProductDetailsProperty
-> ServiceCatalogProvisionedProductDetailsProperty -> Bool
/= :: ServiceCatalogProvisionedProductDetailsProperty
-> ServiceCatalogProvisionedProductDetailsProperty -> Bool
Prelude.Eq, Int -> ServiceCatalogProvisionedProductDetailsProperty -> ShowS
[ServiceCatalogProvisionedProductDetailsProperty] -> ShowS
ServiceCatalogProvisionedProductDetailsProperty -> String
(Int -> ServiceCatalogProvisionedProductDetailsProperty -> ShowS)
-> (ServiceCatalogProvisionedProductDetailsProperty -> String)
-> ([ServiceCatalogProvisionedProductDetailsProperty] -> ShowS)
-> Show ServiceCatalogProvisionedProductDetailsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceCatalogProvisionedProductDetailsProperty -> ShowS
showsPrec :: Int -> ServiceCatalogProvisionedProductDetailsProperty -> ShowS
$cshow :: ServiceCatalogProvisionedProductDetailsProperty -> String
show :: ServiceCatalogProvisionedProductDetailsProperty -> String
$cshowList :: [ServiceCatalogProvisionedProductDetailsProperty] -> ShowS
showList :: [ServiceCatalogProvisionedProductDetailsProperty] -> ShowS
Prelude.Show)
mkServiceCatalogProvisionedProductDetailsProperty ::
  ServiceCatalogProvisionedProductDetailsProperty
mkServiceCatalogProvisionedProductDetailsProperty :: ServiceCatalogProvisionedProductDetailsProperty
mkServiceCatalogProvisionedProductDetailsProperty
  = ServiceCatalogProvisionedProductDetailsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), provisionedProductId :: Maybe (Value Text)
provisionedProductId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       provisionedProductStatusMessage :: Maybe (Value Text)
provisionedProductStatusMessage = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceCatalogProvisionedProductDetailsProperty where
  toResourceProperties :: ServiceCatalogProvisionedProductDetailsProperty
-> ResourceProperties
toResourceProperties
    ServiceCatalogProvisionedProductDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceCatalogProvisionedProductDetailsProperty -> ()
provisionedProductId :: ServiceCatalogProvisionedProductDetailsProperty
-> Maybe (Value Text)
provisionedProductStatusMessage :: ServiceCatalogProvisionedProductDetailsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
provisionedProductId :: Maybe (Value Text)
provisionedProductStatusMessage :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::Project.ServiceCatalogProvisionedProductDetails",
         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
"ProvisionedProductId" (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)
provisionedProductId,
                            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
"ProvisionedProductStatusMessage"
                              (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)
provisionedProductStatusMessage])}
instance JSON.ToJSON ServiceCatalogProvisionedProductDetailsProperty where
  toJSON :: ServiceCatalogProvisionedProductDetailsProperty -> Value
toJSON ServiceCatalogProvisionedProductDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceCatalogProvisionedProductDetailsProperty -> ()
provisionedProductId :: ServiceCatalogProvisionedProductDetailsProperty
-> Maybe (Value Text)
provisionedProductStatusMessage :: ServiceCatalogProvisionedProductDetailsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
provisionedProductId :: Maybe (Value Text)
provisionedProductStatusMessage :: 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
"ProvisionedProductId" (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)
provisionedProductId,
               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
"ProvisionedProductStatusMessage"
                 (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)
provisionedProductStatusMessage]))
instance Property "ProvisionedProductId" ServiceCatalogProvisionedProductDetailsProperty where
  type PropertyType "ProvisionedProductId" ServiceCatalogProvisionedProductDetailsProperty = Value Prelude.Text
  set :: PropertyType
  "ProvisionedProductId"
  ServiceCatalogProvisionedProductDetailsProperty
-> ServiceCatalogProvisionedProductDetailsProperty
-> ServiceCatalogProvisionedProductDetailsProperty
set PropertyType
  "ProvisionedProductId"
  ServiceCatalogProvisionedProductDetailsProperty
newValue ServiceCatalogProvisionedProductDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceCatalogProvisionedProductDetailsProperty -> ()
provisionedProductId :: ServiceCatalogProvisionedProductDetailsProperty
-> Maybe (Value Text)
provisionedProductStatusMessage :: ServiceCatalogProvisionedProductDetailsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
provisionedProductId :: Maybe (Value Text)
provisionedProductStatusMessage :: Maybe (Value Text)
..}
    = ServiceCatalogProvisionedProductDetailsProperty
        {provisionedProductId :: Maybe (Value Text)
provisionedProductId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ProvisionedProductId"
  ServiceCatalogProvisionedProductDetailsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
provisionedProductStatusMessage :: Maybe (Value Text)
haddock_workaround_ :: ()
provisionedProductStatusMessage :: Maybe (Value Text)
..}
instance Property "ProvisionedProductStatusMessage" ServiceCatalogProvisionedProductDetailsProperty where
  type PropertyType "ProvisionedProductStatusMessage" ServiceCatalogProvisionedProductDetailsProperty = Value Prelude.Text
  set :: PropertyType
  "ProvisionedProductStatusMessage"
  ServiceCatalogProvisionedProductDetailsProperty
-> ServiceCatalogProvisionedProductDetailsProperty
-> ServiceCatalogProvisionedProductDetailsProperty
set PropertyType
  "ProvisionedProductStatusMessage"
  ServiceCatalogProvisionedProductDetailsProperty
newValue ServiceCatalogProvisionedProductDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceCatalogProvisionedProductDetailsProperty -> ()
provisionedProductId :: ServiceCatalogProvisionedProductDetailsProperty
-> Maybe (Value Text)
provisionedProductStatusMessage :: ServiceCatalogProvisionedProductDetailsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
provisionedProductId :: Maybe (Value Text)
provisionedProductStatusMessage :: Maybe (Value Text)
..}
    = ServiceCatalogProvisionedProductDetailsProperty
        {provisionedProductStatusMessage :: Maybe (Value Text)
provisionedProductStatusMessage = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ProvisionedProductStatusMessage"
  ServiceCatalogProvisionedProductDetailsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
provisionedProductId :: Maybe (Value Text)
haddock_workaround_ :: ()
provisionedProductId :: Maybe (Value Text)
..}