| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.GameLift.RequestUploadCredentials
Description
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 GameSession.
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
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 #
See: newRequestUploadCredentials smart constructor.
Constructors
| RequestUploadCredentials' | |
Instances
newRequestUploadCredentials Source #
Arguments
| :: Text | |
| -> RequestUploadCredentials |
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:
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 #
See: newRequestUploadCredentialsResponse smart constructor.
Constructors
| RequestUploadCredentialsResponse' | |
Fields
| |
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:
RequestUploadCredentialsResponse, requestUploadCredentialsResponse_storageLocation - Amazon S3 path and key, identifying where the game build files are
stored.
$sel:uploadCredentials:RequestUploadCredentialsResponse', requestUploadCredentialsResponse_uploadCredentials - Amazon Web Services 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 #
Amazon Web Services 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.