amazonka-gamelift-1.4.0: Amazon GameLift SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.GameLift.RequestUploadCredentials

Contents

Description

Retrieves a fresh set of upload credentials and the assigned Amazon S3 storage location for a specific build. Valid credentials are required to upload your game build files to Amazon S3.

Call this action only if you need credentials for a build created with CreateBuild. This is a rare situation; in most cases, builds are created using the CLI command 'upload-build', which creates a build record and also uploads build files.

Upload credentials are returned when you create the build, but they have a limited lifespan. You can get fresh credentials and use them to re-upload game files until the state of that build changes to READY. Once this happens, you must create a brand new build.

Synopsis

Creating a Request

requestUploadCredentials Source

Creates a value of RequestUploadCredentials with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

rucBuildId :: Lens' RequestUploadCredentials Text Source

Unique identifier for the build you want to get credentials for.

Destructuring the Response

requestUploadCredentialsResponse Source

Creates a value of RequestUploadCredentialsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

rucrsStorageLocation :: Lens' RequestUploadCredentialsResponse (Maybe S3Location) Source

Amazon S3 path and key, identifying where the game build files are stored.

rucrsUploadCredentials :: Lens' RequestUploadCredentialsResponse (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.