Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Retrieves a fresh set of credentials for use when uploading a new set of game build files to Amazon GameLift's Amazon S3. This is done as part of the build creation process; see CreateBuild.
To request new credentials, specify the build ID as returned with an
initial CreateBuild
request. If successful, a new set of credentials
are returned, along with the S3 storage location associated with the
build ID.
Learn more
Create a Build with Files in S3
Related actions
CreateBuild | ListBuilds | DescribeBuild | UpdateBuild | DeleteBuild | All APIs by task
Synopsis
- data RequestUploadCredentials = RequestUploadCredentials' {}
- newRequestUploadCredentials :: Text -> RequestUploadCredentials
- requestUploadCredentials_buildId :: Lens' RequestUploadCredentials Text
- data RequestUploadCredentialsResponse = RequestUploadCredentialsResponse' {}
- newRequestUploadCredentialsResponse :: Int -> RequestUploadCredentialsResponse
- requestUploadCredentialsResponse_storageLocation :: Lens' RequestUploadCredentialsResponse (Maybe S3Location)
- requestUploadCredentialsResponse_uploadCredentials :: Lens' RequestUploadCredentialsResponse (Maybe AwsCredentials)
- requestUploadCredentialsResponse_httpStatus :: Lens' RequestUploadCredentialsResponse Int
Creating a Request
data RequestUploadCredentials Source #
Represents the input for a request operation.
See: newRequestUploadCredentials
smart constructor.
Instances
newRequestUploadCredentials Source #
Create a value of RequestUploadCredentials
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:buildId:RequestUploadCredentials'
, requestUploadCredentials_buildId
- A unique identifier for the build to get credentials for. You can use
either the build ID or ARN value.
Request Lenses
requestUploadCredentials_buildId :: Lens' RequestUploadCredentials Text Source #
A unique identifier for the build to get credentials for. You can use either the build ID or ARN value.
Destructuring the Response
data RequestUploadCredentialsResponse Source #
Represents the returned data in response to a request operation.
See: newRequestUploadCredentialsResponse
smart constructor.
RequestUploadCredentialsResponse' | |
|
Instances
newRequestUploadCredentialsResponse Source #
Create a value of RequestUploadCredentialsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:storageLocation:RequestUploadCredentialsResponse'
, requestUploadCredentialsResponse_storageLocation
- Amazon S3 path and key, identifying where the game build files are
stored.
$sel:uploadCredentials:RequestUploadCredentialsResponse'
, requestUploadCredentialsResponse_uploadCredentials
- 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.
$sel:httpStatus:RequestUploadCredentialsResponse'
, requestUploadCredentialsResponse_httpStatus
- The response's http status code.
Response Lenses
requestUploadCredentialsResponse_storageLocation :: Lens' RequestUploadCredentialsResponse (Maybe S3Location) Source #
Amazon S3 path and key, identifying where the game build files are stored.
requestUploadCredentialsResponse_uploadCredentials :: 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.
requestUploadCredentialsResponse_httpStatus :: Lens' RequestUploadCredentialsResponse Int Source #
The response's http status code.