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 its status is INITIALIZED
, you can upload your game build.
Important: Do not use this API action unless you are using your own Amazon Simple Storage Service (Amazon S3) client and need to manually upload your build files. Instead, 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 help on packaging and uploading your build.)
To create a new build, identify the operating system of the game server binaries. All game servers in a build must use the same operating system. 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 (it is not visible to players). If successful, this action returns the newly created build record along with the 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)
- cbOperatingSystem :: Lens' CreateBuild (Maybe OperatingSystem)
- 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:
cbStorageLocation
- Undocumented member.cbOperatingSystem
- Operating system that the game server binaries are built to run on. This value determines the type of fleet resources that you can use for this build.cbName
- Descriptive label associated with a build. Build names do not need to be unique. A build name can be changed later using
.UpdateBuild
cbVersion
- 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
data CreateBuild Source #
Represents the input for a request action.
See: createBuild
smart constructor.
Request Lenses
cbStorageLocation :: Lens' CreateBuild (Maybe S3Location) Source #
Undocumented member.
cbOperatingSystem :: Lens' CreateBuild (Maybe OperatingSystem) Source #
Operating system that the game server binaries are built to run on. This value determines the type of fleet resources that you can use for this build.
cbName :: Lens' CreateBuild (Maybe Text) Source #
Descriptive label associated with a 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:
cbrsStorageLocation
- Amazon S3 path and key, identifying where the game build files are stored.cbrsUploadCredentials
- 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
- Set of properties for the newly created build.cbrsResponseStatus
- -- | The response status code.
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.