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 |
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.
- requestUploadCredentials :: Text -> RequestUploadCredentials
- data RequestUploadCredentials
- rucBuildId :: Lens' RequestUploadCredentials Text
- requestUploadCredentialsResponse :: Int -> RequestUploadCredentialsResponse
- data RequestUploadCredentialsResponse
- rucrsStorageLocation :: Lens' RequestUploadCredentialsResponse (Maybe S3Location)
- rucrsUploadCredentials :: Lens' RequestUploadCredentialsResponse (Maybe AWSCredentials)
- rucrsResponseStatus :: Lens' RequestUploadCredentialsResponse Int
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:
data RequestUploadCredentials Source
Represents the input for a request action.
See: requestUploadCredentials
smart constructor.
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:
data RequestUploadCredentialsResponse Source
Represents the returned data in response to a request action.
See: requestUploadCredentialsResponse
smart constructor.
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.
rucrsResponseStatus :: Lens' RequestUploadCredentialsResponse Int Source
The response status code.