> For the complete documentation index, see [llms.txt](https://docs.probe.splx.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.probe.splx.ai/ai-red-teaming/remediation/policy-generator/aws-bedrock-guardrails.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
