module Stratosphere.Evidently.Project (
        module Exports, Project(..), mkProject
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Evidently.Project.AppConfigResourceObjectProperty as Exports
import {-# SOURCE #-} Stratosphere.Evidently.Project.DataDeliveryObjectProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Project
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-evidently-project.html>
    Project {Project -> ()
haddock_workaround_ :: (),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-evidently-project.html#cfn-evidently-project-appconfigresource>
             Project -> Maybe AppConfigResourceObjectProperty
appConfigResource :: (Prelude.Maybe AppConfigResourceObjectProperty),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-evidently-project.html#cfn-evidently-project-datadelivery>
             Project -> Maybe DataDeliveryObjectProperty
dataDelivery :: (Prelude.Maybe DataDeliveryObjectProperty),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-evidently-project.html#cfn-evidently-project-description>
             Project -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-evidently-project.html#cfn-evidently-project-name>
             Project -> Value Text
name :: (Value Prelude.Text),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-evidently-project.html#cfn-evidently-project-tags>
             Project -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (Project -> Project -> Bool
(Project -> Project -> Bool)
-> (Project -> Project -> Bool) -> Eq Project
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Project -> Project -> Bool
== :: Project -> Project -> Bool
$c/= :: Project -> Project -> Bool
/= :: Project -> Project -> Bool
Prelude.Eq, Int -> Project -> ShowS
[Project] -> ShowS
Project -> String
(Int -> Project -> ShowS)
-> (Project -> String) -> ([Project] -> ShowS) -> Show Project
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Project -> ShowS
showsPrec :: Int -> Project -> ShowS
$cshow :: Project -> String
show :: Project -> String
$cshowList :: [Project] -> ShowS
showList :: [Project] -> ShowS
Prelude.Show)
mkProject :: Value Prelude.Text -> Project
mkProject :: Value Text -> Project
mkProject Value Text
name
  = Project
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
       appConfigResource :: Maybe AppConfigResourceObjectProperty
appConfigResource = Maybe AppConfigResourceObjectProperty
forall a. Maybe a
Prelude.Nothing,
       dataDelivery :: Maybe DataDeliveryObjectProperty
dataDelivery = Maybe DataDeliveryObjectProperty
forall a. Maybe a
Prelude.Nothing, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Project where
  toResourceProperties :: Project -> ResourceProperties
toResourceProperties Project {Maybe [Tag]
Maybe (Value Text)
Maybe AppConfigResourceObjectProperty
Maybe DataDeliveryObjectProperty
()
Value Text
haddock_workaround_ :: Project -> ()
appConfigResource :: Project -> Maybe AppConfigResourceObjectProperty
dataDelivery :: Project -> Maybe DataDeliveryObjectProperty
description :: Project -> Maybe (Value Text)
name :: Project -> Value Text
tags :: Project -> Maybe [Tag]
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Evidently::Project", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"Name" 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
name]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> AppConfigResourceObjectProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AppConfigResource" (AppConfigResourceObjectProperty -> (Key, Value))
-> Maybe AppConfigResourceObjectProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AppConfigResourceObjectProperty
appConfigResource,
                               Key -> DataDeliveryObjectProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DataDelivery" (DataDeliveryObjectProperty -> (Key, Value))
-> Maybe DataDeliveryObjectProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataDeliveryObjectProperty
dataDelivery,
                               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 -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON Project where
  toJSON :: Project -> Value
toJSON Project {Maybe [Tag]
Maybe (Value Text)
Maybe AppConfigResourceObjectProperty
Maybe DataDeliveryObjectProperty
()
Value Text
haddock_workaround_ :: Project -> ()
appConfigResource :: Project -> Maybe AppConfigResourceObjectProperty
dataDelivery :: Project -> Maybe DataDeliveryObjectProperty
description :: Project -> Maybe (Value Text)
name :: Project -> Value Text
tags :: Project -> Maybe [Tag]
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
..}
    = [(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
"Name" 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
name]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> AppConfigResourceObjectProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AppConfigResource" (AppConfigResourceObjectProperty -> (Key, Value))
-> Maybe AppConfigResourceObjectProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AppConfigResourceObjectProperty
appConfigResource,
                  Key -> DataDeliveryObjectProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DataDelivery" (DataDeliveryObjectProperty -> (Key, Value))
-> Maybe DataDeliveryObjectProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataDeliveryObjectProperty
dataDelivery,
                  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 -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "AppConfigResource" Project where
  type PropertyType "AppConfigResource" Project = AppConfigResourceObjectProperty
  set :: PropertyType "AppConfigResource" Project -> Project -> Project
set PropertyType "AppConfigResource" Project
newValue Project {Maybe [Tag]
Maybe (Value Text)
Maybe AppConfigResourceObjectProperty
Maybe DataDeliveryObjectProperty
()
Value Text
haddock_workaround_ :: Project -> ()
appConfigResource :: Project -> Maybe AppConfigResourceObjectProperty
dataDelivery :: Project -> Maybe DataDeliveryObjectProperty
description :: Project -> Maybe (Value Text)
name :: Project -> Value Text
tags :: Project -> Maybe [Tag]
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
..}
    = Project {appConfigResource :: Maybe AppConfigResourceObjectProperty
appConfigResource = AppConfigResourceObjectProperty
-> Maybe AppConfigResourceObjectProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AppConfigResource" Project
AppConfigResourceObjectProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe DataDeliveryObjectProperty
()
Value Text
haddock_workaround_ :: ()
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "DataDelivery" Project where
  type PropertyType "DataDelivery" Project = DataDeliveryObjectProperty
  set :: PropertyType "DataDelivery" Project -> Project -> Project
set PropertyType "DataDelivery" Project
newValue Project {Maybe [Tag]
Maybe (Value Text)
Maybe AppConfigResourceObjectProperty
Maybe DataDeliveryObjectProperty
()
Value Text
haddock_workaround_ :: Project -> ()
appConfigResource :: Project -> Maybe AppConfigResourceObjectProperty
dataDelivery :: Project -> Maybe DataDeliveryObjectProperty
description :: Project -> Maybe (Value Text)
name :: Project -> Value Text
tags :: Project -> Maybe [Tag]
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
..}
    = Project {dataDelivery :: Maybe DataDeliveryObjectProperty
dataDelivery = DataDeliveryObjectProperty -> Maybe DataDeliveryObjectProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DataDelivery" Project
DataDeliveryObjectProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe AppConfigResourceObjectProperty
()
Value Text
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Description" Project where
  type PropertyType "Description" Project = Value Prelude.Text
  set :: PropertyType "Description" Project -> Project -> Project
set PropertyType "Description" Project
newValue Project {Maybe [Tag]
Maybe (Value Text)
Maybe AppConfigResourceObjectProperty
Maybe DataDeliveryObjectProperty
()
Value Text
haddock_workaround_ :: Project -> ()
appConfigResource :: Project -> Maybe AppConfigResourceObjectProperty
dataDelivery :: Project -> Maybe DataDeliveryObjectProperty
description :: Project -> Maybe (Value Text)
name :: Project -> Value Text
tags :: Project -> Maybe [Tag]
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
..}
    = Project {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" Project
Value Text
newValue, Maybe [Tag]
Maybe AppConfigResourceObjectProperty
Maybe DataDeliveryObjectProperty
()
Value Text
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Name" Project where
  type PropertyType "Name" Project = Value Prelude.Text
  set :: PropertyType "Name" Project -> Project -> Project
set PropertyType "Name" Project
newValue Project {Maybe [Tag]
Maybe (Value Text)
Maybe AppConfigResourceObjectProperty
Maybe DataDeliveryObjectProperty
()
Value Text
haddock_workaround_ :: Project -> ()
appConfigResource :: Project -> Maybe AppConfigResourceObjectProperty
dataDelivery :: Project -> Maybe DataDeliveryObjectProperty
description :: Project -> Maybe (Value Text)
name :: Project -> Value Text
tags :: Project -> Maybe [Tag]
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
..} = Project {name :: Value Text
name = PropertyType "Name" Project
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe AppConfigResourceObjectProperty
Maybe DataDeliveryObjectProperty
()
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" Project where
  type PropertyType "Tags" Project = [Tag]
  set :: PropertyType "Tags" Project -> Project -> Project
set PropertyType "Tags" Project
newValue Project {Maybe [Tag]
Maybe (Value Text)
Maybe AppConfigResourceObjectProperty
Maybe DataDeliveryObjectProperty
()
Value Text
haddock_workaround_ :: Project -> ()
appConfigResource :: Project -> Maybe AppConfigResourceObjectProperty
dataDelivery :: Project -> Maybe DataDeliveryObjectProperty
description :: Project -> Maybe (Value Text)
name :: Project -> Value Text
tags :: Project -> Maybe [Tag]
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
..}
    = Project {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" Project
newValue, Maybe (Value Text)
Maybe AppConfigResourceObjectProperty
Maybe DataDeliveryObjectProperty
()
Value Text
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
name :: Value Text
haddock_workaround_ :: ()
appConfigResource :: Maybe AppConfigResourceObjectProperty
dataDelivery :: Maybe DataDeliveryObjectProperty
description :: Maybe (Value Text)
name :: Value Text
..}