getFoundationModelAvailability method
Future<GetFoundationModelAvailabilityResponse>
getFoundationModelAvailability({
- 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);
}