module Stratosphere.CodeBuild.Project.ProjectCacheProperty (
        ProjectCacheProperty(..), mkProjectCacheProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProjectCacheProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html>
    ProjectCacheProperty {ProjectCacheProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-cachenamespace>
                          ProjectCacheProperty -> Maybe (Value Text)
cacheNamespace :: (Prelude.Maybe (Value Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-location>
                          ProjectCacheProperty -> Maybe (Value Text)
location :: (Prelude.Maybe (Value Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-modes>
                          ProjectCacheProperty -> Maybe (ValueList Text)
modes :: (Prelude.Maybe (ValueList Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-type>
                          ProjectCacheProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (ProjectCacheProperty -> ProjectCacheProperty -> Bool
(ProjectCacheProperty -> ProjectCacheProperty -> Bool)
-> (ProjectCacheProperty -> ProjectCacheProperty -> Bool)
-> Eq ProjectCacheProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProjectCacheProperty -> ProjectCacheProperty -> Bool
== :: ProjectCacheProperty -> ProjectCacheProperty -> Bool
$c/= :: ProjectCacheProperty -> ProjectCacheProperty -> Bool
/= :: ProjectCacheProperty -> ProjectCacheProperty -> Bool
Prelude.Eq, Int -> ProjectCacheProperty -> ShowS
[ProjectCacheProperty] -> ShowS
ProjectCacheProperty -> String
(Int -> ProjectCacheProperty -> ShowS)
-> (ProjectCacheProperty -> String)
-> ([ProjectCacheProperty] -> ShowS)
-> Show ProjectCacheProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProjectCacheProperty -> ShowS
showsPrec :: Int -> ProjectCacheProperty -> ShowS
$cshow :: ProjectCacheProperty -> String
show :: ProjectCacheProperty -> String
$cshowList :: [ProjectCacheProperty] -> ShowS
showList :: [ProjectCacheProperty] -> ShowS
Prelude.Show)
mkProjectCacheProperty ::
  Value Prelude.Text -> ProjectCacheProperty
mkProjectCacheProperty :: Value Text -> ProjectCacheProperty
mkProjectCacheProperty Value Text
type'
  = ProjectCacheProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
       cacheNamespace :: Maybe (Value Text)
cacheNamespace = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, location :: Maybe (Value Text)
location = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       modes :: Maybe (ValueList Text)
modes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProjectCacheProperty where
  toResourceProperties :: ProjectCacheProperty -> ResourceProperties
toResourceProperties ProjectCacheProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProjectCacheProperty -> ()
cacheNamespace :: ProjectCacheProperty -> Maybe (Value Text)
location :: ProjectCacheProperty -> Maybe (Value Text)
modes :: ProjectCacheProperty -> Maybe (ValueList Text)
type' :: ProjectCacheProperty -> Value Text
haddock_workaround_ :: ()
cacheNamespace :: Maybe (Value Text)
location :: Maybe (Value Text)
modes :: Maybe (ValueList Text)
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CodeBuild::Project.ProjectCache",
         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
"Type" 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
type']
                           ([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
"CacheNamespace" (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)
cacheNamespace,
                               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
"Location" (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)
location,
                               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..=) Key
"Modes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
modes]))}
instance JSON.ToJSON ProjectCacheProperty where
  toJSON :: ProjectCacheProperty -> Value
toJSON ProjectCacheProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProjectCacheProperty -> ()
cacheNamespace :: ProjectCacheProperty -> Maybe (Value Text)
location :: ProjectCacheProperty -> Maybe (Value Text)
modes :: ProjectCacheProperty -> Maybe (ValueList Text)
type' :: ProjectCacheProperty -> Value Text
haddock_workaround_ :: ()
cacheNamespace :: Maybe (Value Text)
location :: Maybe (Value Text)
modes :: Maybe (ValueList Text)
type' :: 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
"Type" 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
type']
              ([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
"CacheNamespace" (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)
cacheNamespace,
                  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
"Location" (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)
location,
                  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..=) Key
"Modes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
modes])))
instance Property "CacheNamespace" ProjectCacheProperty where
  type PropertyType "CacheNamespace" ProjectCacheProperty = Value Prelude.Text
  set :: PropertyType "CacheNamespace" ProjectCacheProperty
-> ProjectCacheProperty -> ProjectCacheProperty
set PropertyType "CacheNamespace" ProjectCacheProperty
newValue ProjectCacheProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProjectCacheProperty -> ()
cacheNamespace :: ProjectCacheProperty -> Maybe (Value Text)
location :: ProjectCacheProperty -> Maybe (Value Text)
modes :: ProjectCacheProperty -> Maybe (ValueList Text)
type' :: ProjectCacheProperty -> Value Text
haddock_workaround_ :: ()
cacheNamespace :: Maybe (Value Text)
location :: Maybe (Value Text)
modes :: Maybe (ValueList Text)
type' :: Value Text
..}
    = ProjectCacheProperty {cacheNamespace :: Maybe (Value Text)
cacheNamespace = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CacheNamespace" ProjectCacheProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
location :: Maybe (Value Text)
modes :: Maybe (ValueList Text)
type' :: Value Text
haddock_workaround_ :: ()
location :: Maybe (Value Text)
modes :: Maybe (ValueList Text)
type' :: Value Text
..}
instance Property "Location" ProjectCacheProperty where
  type PropertyType "Location" ProjectCacheProperty = Value Prelude.Text
  set :: PropertyType "Location" ProjectCacheProperty
-> ProjectCacheProperty -> ProjectCacheProperty
set PropertyType "Location" ProjectCacheProperty
newValue ProjectCacheProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProjectCacheProperty -> ()
cacheNamespace :: ProjectCacheProperty -> Maybe (Value Text)
location :: ProjectCacheProperty -> Maybe (Value Text)
modes :: ProjectCacheProperty -> Maybe (ValueList Text)
type' :: ProjectCacheProperty -> Value Text
haddock_workaround_ :: ()
cacheNamespace :: Maybe (Value Text)
location :: Maybe (Value Text)
modes :: Maybe (ValueList Text)
type' :: Value Text
..}
    = ProjectCacheProperty {location :: Maybe (Value Text)
location = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Location" ProjectCacheProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
cacheNamespace :: Maybe (Value Text)
modes :: Maybe (ValueList Text)
type' :: Value Text
haddock_workaround_ :: ()
cacheNamespace :: Maybe (Value Text)
modes :: Maybe (ValueList Text)
type' :: Value Text
..}
instance Property "Modes" ProjectCacheProperty where
  type PropertyType "Modes" ProjectCacheProperty = ValueList Prelude.Text
  set :: PropertyType "Modes" ProjectCacheProperty
-> ProjectCacheProperty -> ProjectCacheProperty
set PropertyType "Modes" ProjectCacheProperty
newValue ProjectCacheProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProjectCacheProperty -> ()
cacheNamespace :: ProjectCacheProperty -> Maybe (Value Text)
location :: ProjectCacheProperty -> Maybe (Value Text)
modes :: ProjectCacheProperty -> Maybe (ValueList Text)
type' :: ProjectCacheProperty -> Value Text
haddock_workaround_ :: ()
cacheNamespace :: Maybe (Value Text)
location :: Maybe (Value Text)
modes :: Maybe (ValueList Text)
type' :: Value Text
..}
    = ProjectCacheProperty {modes :: Maybe (ValueList Text)
modes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Modes" ProjectCacheProperty
ValueList Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
cacheNamespace :: Maybe (Value Text)
location :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
cacheNamespace :: Maybe (Value Text)
location :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Type" ProjectCacheProperty where
  type PropertyType "Type" ProjectCacheProperty = Value Prelude.Text
  set :: PropertyType "Type" ProjectCacheProperty
-> ProjectCacheProperty -> ProjectCacheProperty
set PropertyType "Type" ProjectCacheProperty
newValue ProjectCacheProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProjectCacheProperty -> ()
cacheNamespace :: ProjectCacheProperty -> Maybe (Value Text)
location :: ProjectCacheProperty -> Maybe (Value Text)
modes :: ProjectCacheProperty -> Maybe (ValueList Text)
type' :: ProjectCacheProperty -> Value Text
haddock_workaround_ :: ()
cacheNamespace :: Maybe (Value Text)
location :: Maybe (Value Text)
modes :: Maybe (ValueList Text)
type' :: Value Text
..}
    = ProjectCacheProperty {type' :: Value Text
type' = PropertyType "Type" ProjectCacheProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
cacheNamespace :: Maybe (Value Text)
location :: Maybe (Value Text)
modes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
cacheNamespace :: Maybe (Value Text)
location :: Maybe (Value Text)
modes :: Maybe (ValueList Text)
..}