describeBuild method

Future<DescribeBuildOutput> describeBuild({
  1. required String buildId,
})

Retrieves properties for a custom game build. To request a build resource, specify a build ID. If successful, an object containing the build properties is returned.

Learn more

Upload a Custom Server Build

Related operations

May throw UnauthorizedException. May throw InvalidRequestException. May throw NotFoundException. May throw InternalServiceException.

Parameter buildId : A unique identifier for a build to retrieve properties for. You can use either the build ID or ARN value.

Implementation

Future<DescribeBuildOutput> describeBuild({
  required String buildId,
}) async {
  ArgumentError.checkNotNull(buildId, 'buildId');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'GameLift.DescribeBuild'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'BuildId': buildId,
    },
  );

  return DescribeBuildOutput.fromJson(jsonResponse.body);
}