module Stratosphere.GameLift.Build (
module Exports, Build(..), mkBuild
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.GameLift.Build.StorageLocationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Build
=
Build {Build -> ()
haddock_workaround_ :: (),
Build -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
Build -> Maybe (Value Text)
operatingSystem :: (Prelude.Maybe (Value Prelude.Text)),
Build -> Maybe (Value Text)
serverSdkVersion :: (Prelude.Maybe (Value Prelude.Text)),
Build -> Maybe StorageLocationProperty
storageLocation :: (Prelude.Maybe StorageLocationProperty),
Build -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
Build -> Maybe (Value Text)
version :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Build -> Build -> Bool
(Build -> Build -> Bool) -> (Build -> Build -> Bool) -> Eq Build
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Build -> Build -> Bool
== :: Build -> Build -> Bool
$c/= :: Build -> Build -> Bool
/= :: Build -> Build -> Bool
Prelude.Eq, Int -> Build -> ShowS
[Build] -> ShowS
Build -> String
(Int -> Build -> ShowS)
-> (Build -> String) -> ([Build] -> ShowS) -> Show Build
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Build -> ShowS
showsPrec :: Int -> Build -> ShowS
$cshow :: Build -> String
show :: Build -> String
$cshowList :: [Build] -> ShowS
showList :: [Build] -> ShowS
Prelude.Show)
mkBuild :: Build
mkBuild :: Build
mkBuild
= Build
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
operatingSystem :: Maybe (Value Text)
operatingSystem = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
serverSdkVersion :: Maybe (Value Text)
serverSdkVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
storageLocation :: Maybe StorageLocationProperty
storageLocation = Maybe StorageLocationProperty
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
version :: Maybe (Value Text)
version = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Build where
toResourceProperties :: Build -> ResourceProperties
toResourceProperties Build {Maybe [Tag]
Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: Build -> ()
name :: Build -> Maybe (Value Text)
operatingSystem :: Build -> Maybe (Value Text)
serverSdkVersion :: Build -> Maybe (Value Text)
storageLocation :: Build -> Maybe StorageLocationProperty
tags :: Build -> Maybe [Tag]
version :: Build -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::GameLift::Build", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"Name" (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)
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..=) Key
"OperatingSystem" (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)
operatingSystem,
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
"ServerSdkVersion" (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)
serverSdkVersion,
Key -> StorageLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StorageLocation" (StorageLocationProperty -> (Key, Value))
-> Maybe StorageLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StorageLocationProperty
storageLocation,
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,
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
"Version" (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)
version])}
instance JSON.ToJSON Build where
toJSON :: Build -> Value
toJSON Build {Maybe [Tag]
Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: Build -> ()
name :: Build -> Maybe (Value Text)
operatingSystem :: Build -> Maybe (Value Text)
serverSdkVersion :: Build -> Maybe (Value Text)
storageLocation :: Build -> Maybe StorageLocationProperty
tags :: Build -> Maybe [Tag]
version :: Build -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: 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
"Name" (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)
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..=) Key
"OperatingSystem" (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)
operatingSystem,
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
"ServerSdkVersion" (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)
serverSdkVersion,
Key -> StorageLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StorageLocation" (StorageLocationProperty -> (Key, Value))
-> Maybe StorageLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StorageLocationProperty
storageLocation,
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,
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
"Version" (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)
version]))
instance Property "Name" Build where
type PropertyType "Name" Build = Value Prelude.Text
set :: PropertyType "Name" Build -> Build -> Build
set PropertyType "Name" Build
newValue Build {Maybe [Tag]
Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: Build -> ()
name :: Build -> Maybe (Value Text)
operatingSystem :: Build -> Maybe (Value Text)
serverSdkVersion :: Build -> Maybe (Value Text)
storageLocation :: Build -> Maybe StorageLocationProperty
tags :: Build -> Maybe [Tag]
version :: Build -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
..} = Build {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" Build
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: ()
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
haddock_workaround_ :: ()
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
..}
instance Property "OperatingSystem" Build where
type PropertyType "OperatingSystem" Build = Value Prelude.Text
set :: PropertyType "OperatingSystem" Build -> Build -> Build
set PropertyType "OperatingSystem" Build
newValue Build {Maybe [Tag]
Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: Build -> ()
name :: Build -> Maybe (Value Text)
operatingSystem :: Build -> Maybe (Value Text)
serverSdkVersion :: Build -> Maybe (Value Text)
storageLocation :: Build -> Maybe StorageLocationProperty
tags :: Build -> Maybe [Tag]
version :: Build -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
..}
= Build {operatingSystem :: Maybe (Value Text)
operatingSystem = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OperatingSystem" Build
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
..}
instance Property "ServerSdkVersion" Build where
type PropertyType "ServerSdkVersion" Build = Value Prelude.Text
set :: PropertyType "ServerSdkVersion" Build -> Build -> Build
set PropertyType "ServerSdkVersion" Build
newValue Build {Maybe [Tag]
Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: Build -> ()
name :: Build -> Maybe (Value Text)
operatingSystem :: Build -> Maybe (Value Text)
serverSdkVersion :: Build -> Maybe (Value Text)
storageLocation :: Build -> Maybe StorageLocationProperty
tags :: Build -> Maybe [Tag]
version :: Build -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
..}
= Build {serverSdkVersion :: Maybe (Value Text)
serverSdkVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ServerSdkVersion" Build
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
..}
instance Property "StorageLocation" Build where
type PropertyType "StorageLocation" Build = StorageLocationProperty
set :: PropertyType "StorageLocation" Build -> Build -> Build
set PropertyType "StorageLocation" Build
newValue Build {Maybe [Tag]
Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: Build -> ()
name :: Build -> Maybe (Value Text)
operatingSystem :: Build -> Maybe (Value Text)
serverSdkVersion :: Build -> Maybe (Value Text)
storageLocation :: Build -> Maybe StorageLocationProperty
tags :: Build -> Maybe [Tag]
version :: Build -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
..}
= Build {storageLocation :: Maybe StorageLocationProperty
storageLocation = StorageLocationProperty -> Maybe StorageLocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StorageLocation" Build
StorageLocationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
version :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
tags :: Maybe [Tag]
version :: Maybe (Value Text)
..}
instance Property "Tags" Build where
type PropertyType "Tags" Build = [Tag]
set :: PropertyType "Tags" Build -> Build -> Build
set PropertyType "Tags" Build
newValue Build {Maybe [Tag]
Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: Build -> ()
name :: Build -> Maybe (Value Text)
operatingSystem :: Build -> Maybe (Value Text)
serverSdkVersion :: Build -> Maybe (Value Text)
storageLocation :: Build -> Maybe StorageLocationProperty
tags :: Build -> Maybe [Tag]
version :: Build -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
..} = Build {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" Build
newValue, Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
version :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
version :: Maybe (Value Text)
..}
instance Property "Version" Build where
type PropertyType "Version" Build = Value Prelude.Text
set :: PropertyType "Version" Build -> Build -> Build
set PropertyType "Version" Build
newValue Build {Maybe [Tag]
Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: Build -> ()
name :: Build -> Maybe (Value Text)
operatingSystem :: Build -> Maybe (Value Text)
serverSdkVersion :: Build -> Maybe (Value Text)
storageLocation :: Build -> Maybe StorageLocationProperty
tags :: Build -> Maybe [Tag]
version :: Build -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
version :: Maybe (Value Text)
..}
= Build {version :: Maybe (Value Text)
version = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Version" Build
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe StorageLocationProperty
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
name :: Maybe (Value Text)
operatingSystem :: Maybe (Value Text)
serverSdkVersion :: Maybe (Value Text)
storageLocation :: Maybe StorageLocationProperty
tags :: Maybe [Tag]
..}