getFoundationModelAvailability method

Future<GetFoundationModelAvailabilityResponse> getFoundationModelAvailability({
  1. required String modelId,
})

Get information about the Foundation model availability.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter modelId : The model Id of the foundation model.

Implementation

Future<GetFoundationModelAvailabilityResponse>
    getFoundationModelAvailability({
  required String modelId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/foundation-model-availability/${Uri.encodeComponent(modelId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetFoundationModelAvailabilityResponse.fromJson(response);
}