Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Initializes a new build record and generates information required to upload a game build to Amazon GameLift. Once the build record has been created and is in an INITIALIZED state, you can upload your game build.
To create a build, use the CLI command 'upload-build', which creates a
new build record and uploads the build files in one step. (See the
Amazon GameLift Developer Guide
for more details on the CLI and the upload process.) Call the
CreateBuild
action only if you have your own Amazon Simple Storage
Service (Amazon S3) client and need to manually upload your build files.
To create a new build, optionally specify a build name and version. This metadata is stored with other properties in the build record and is displayed in the GameLift console (but not visible to players). If successful, this action returns the newly created build record along with an Amazon S3 storage location and AWS account credentials. Use the location and credentials to upload your game build.
- createBuild :: CreateBuild
- data CreateBuild
- cbStorageLocation :: Lens' CreateBuild (Maybe S3Location)
- cbName :: Lens' CreateBuild (Maybe Text)
- cbVersion :: Lens' CreateBuild (Maybe Text)
- createBuildResponse :: Int -> CreateBuildResponse
- data CreateBuildResponse
- cbrsStorageLocation :: Lens' CreateBuildResponse (Maybe S3Location)
- cbrsUploadCredentials :: Lens' CreateBuildResponse (Maybe AWSCredentials)
- cbrsBuild :: Lens' CreateBuildResponse (Maybe Build)
- cbrsResponseStatus :: Lens' CreateBuildResponse Int
Creating a Request
createBuild :: CreateBuild Source
Creates a value of CreateBuild
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateBuild Source
Represents the input for a request action.
See: createBuild
smart constructor.
Request Lenses
cbStorageLocation :: Lens' CreateBuild (Maybe S3Location) Source
Undocumented member.
cbName :: Lens' CreateBuild (Maybe Text) Source
Descriptive label associated with this build. Build names do not need to be unique. A build name can be changed later using UpdateBuild.
cbVersion :: Lens' CreateBuild (Maybe Text) Source
Version associated with this build. Version strings do not need to be unique to a build. A build version can be changed later using UpdateBuild.
Destructuring the Response
Creates a value of CreateBuildResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateBuildResponse Source
Represents the returned data in response to a request action.
See: createBuildResponse
smart constructor.
Response Lenses
cbrsStorageLocation :: Lens' CreateBuildResponse (Maybe S3Location) Source
Amazon S3 path and key, identifying where the game build files are stored.
cbrsUploadCredentials :: Lens' CreateBuildResponse (Maybe AWSCredentials) Source
AWS credentials required when uploading a game build to the storage location. These credentials have a limited lifespan and are valid only for the build they were issued for. If you need to get fresh credentials, call RequestUploadCredentials.
cbrsBuild :: Lens' CreateBuildResponse (Maybe Build) Source
Set of properties for the newly created build.
cbrsResponseStatus :: Lens' CreateBuildResponse Int Source
The response status code.