AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Evaluates messages against inline guardrail checks. You specify the check configurations directly in the request, and Amazon Bedrock returns per-check results with severity or confidence scores.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to InvokeGuardrailChecksAsync.

Namespace: Amazon.BedrockRuntime
Assembly: AWSSDK.BedrockRuntime.dll
Version: 3.x.y.z

Syntax

C#
public abstract InvokeGuardrailChecksResponse InvokeGuardrailChecks(
         InvokeGuardrailChecksRequest request
)

Parameters

request
Type: Amazon.BedrockRuntime.Model.InvokeGuardrailChecksRequest

Container for the necessary parameters to execute the InvokeGuardrailChecks service method.

Return Value


The response from the InvokeGuardrailChecks service method, as returned by BedrockRuntime.

Exceptions

ExceptionCondition
AccessDeniedException The request is denied because you do not have sufficient permissions to perform the requested action. For troubleshooting this error, see AccessDeniedException in the Amazon Bedrock User Guide
InternalServerException An internal server error occurred. For troubleshooting this error, see InternalFailure in the Amazon Bedrock User Guide
ServiceUnavailableException The service isn't currently available. For troubleshooting this error, see ServiceUnavailable in the Amazon Bedrock User Guide
ThrottlingException Your request was denied due to exceeding the account quotas for Amazon Bedrock. For troubleshooting this error, see ThrottlingException in the Amazon Bedrock User Guide
ValidationException The input fails to satisfy the constraints specified by Amazon Bedrock. For troubleshooting this error, see ValidationError in the Amazon Bedrock User Guide

Version Information

.NET Framework:
Supported in: 4.7.2 and newer

See Also