describeComputeQuota method

Future<DescribeComputeQuotaResponse> describeComputeQuota({
  1. required String computeQuotaId,
  2. int? computeQuotaVersion,
})

Description of the compute allocation definition.

May throw ResourceNotFound.

Parameter computeQuotaId : ID of the compute allocation definition.

Parameter computeQuotaVersion : Version of the compute allocation definition.

Implementation

Future<DescribeComputeQuotaResponse> describeComputeQuota({
  required String computeQuotaId,
  int? computeQuotaVersion,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeComputeQuota'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ComputeQuotaId': computeQuotaId,
      if (computeQuotaVersion != null)
        'ComputeQuotaVersion': computeQuotaVersion,
    },
  );

  return DescribeComputeQuotaResponse.fromJson(jsonResponse.body);
}