getAIGuardrail method
Gets the Amazon Q in Connect AI Guardrail.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw UnauthorizedException.
May throw ValidationException.
Parameter aiGuardrailId :
The identifier of the Amazon Q in Connect AI Guardrail.
Parameter assistantId :
The identifier of the Amazon Q in Connect assistant. Can be either the ID
or the ARN. URLs cannot contain the ARN.
Implementation
Future<GetAIGuardrailResponse> getAIGuardrail({
required String aiGuardrailId,
required String assistantId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/assistants/${Uri.encodeComponent(assistantId)}/aiguardrails/${Uri.encodeComponent(aiGuardrailId)}',
exceptionFnMap: _exceptionFns,
);
return GetAIGuardrailResponse.fromJson(response);
}