describeReservedCapacity method

Future<DescribeReservedCapacityResponse> describeReservedCapacity({
  1. required String reservedCapacityArn,
})

Retrieves details about a reserved capacity.

May throw ResourceNotFound.

Parameter reservedCapacityArn : ARN of the reserved capacity to describe.

Implementation

Future<DescribeReservedCapacityResponse> describeReservedCapacity({
  required String reservedCapacityArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeReservedCapacity'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ReservedCapacityArn': reservedCapacityArn,
    },
  );

  return DescribeReservedCapacityResponse.fromJson(jsonResponse.body);
}