# AWS Bedrock Guardrails

## Creating a Policy

After you have [selected AWS Bedrock Guardrails as your AI firewall provider](/ai-red-teaming/remediation/policy-generator.md#generate-new-policy):

#### Step 1: Select Mapped Probes

Only probes that meet the required criteria are shown, and their fail rates are displayed for reference.

**Probes used in this step must:**

* Have a completed probe run.
* Have mapped Policy Rules.

These criteria ensure that only relevant probes are included in the generated policy, keeping configurations accurate and efficient.

<figure><img src="/files/SM3mryKOXN6XYOsAe1wX" alt=""><figcaption><p>Figure 1: Select Mapped Probes </p></figcaption></figure>

## Generated Policy Template Page

Once the new policy has been generated, the **Generated Policy Template Page** displays the full details of the result.

The top section includes key policy information:

* **AI Firewall Provider** - AI firewall provider for which the policy was generated.
* **Generated on** - when the policy was generated.
* **Generated by** -  who generated the policy.
* **Selected probes** - probes used to create a template based on the results of their runs.
* **Progress** - showing whether the policy template is being generated or the generation is finished.

Below the summary of the latest generated policy, users can interact with two key sections:

1. **CLI Command:** A pre-generated AWS CLI command for provisioning a Bedrock guardrail using `create-guardrail` with a predefined JSON configuration. This command simplifies the process of applying guardrails to an AI runtime environment.
2. **JSON Formatted Policy:** A detailed JSON configuration that outlines the rules and settings for the Bedrock guardrail. It includes predefined values for fields such as names, blocked input/output messages, and other policy configurations, which users can directly use.

<figure><img src="/files/iZpqtosNY0xcmQXAmefJ" alt=""><figcaption><p>Figure 2: Latest Generated Policy Template page for AWS Bedrock Guardrails</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.probe.splx.ai/ai-red-teaming/remediation/policy-generator/aws-bedrock-guardrails.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
