getFoundationModel method

Future<GetFoundationModelResponse> getFoundationModel({
  1. required String modelIdentifier,
})

Get details about a Amazon Bedrock foundation model.

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

Parameter modelIdentifier : The model identifier.

Implementation

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