{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-get-guardrail-response-schema.json",
  "title": "GetGuardrailResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-guardrails-api-openapi.yml#/components/schemas/GetGuardrailResponse",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the guardrail."
    },
    "description": {
      "type": "string",
      "description": "The description of the guardrail."
    },
    "guardrailId": {
      "type": "string",
      "description": "The unique identifier of the guardrail."
    },
    "guardrailArn": {
      "type": "string",
      "description": "The ARN of the guardrail."
    },
    "version": {
      "type": "string",
      "description": "The version of the guardrail."
    },
    "status": {
      "type": "string",
      "enum": [
        "CREATING",
        "UPDATING",
        "VERSIONING",
        "READY",
        "FAILED",
        "DELETING"
      ],
      "description": "The status of the guardrail."
    },
    "topicPolicy": {
      "$ref": "#/$defs/GuardrailTopicPolicy"
    },
    "contentPolicy": {
      "$ref": "#/$defs/GuardrailContentPolicy"
    },
    "wordPolicy": {
      "$ref": "#/$defs/GuardrailWordPolicy"
    },
    "sensitiveInformationPolicy": {
      "$ref": "#/$defs/GuardrailSensitiveInformationPolicy"
    },
    "contextualGroundingPolicy": {
      "$ref": "#/$defs/GuardrailContextualGroundingPolicy"
    },
    "automatedReasoningPolicy": {
      "$ref": "#/$defs/GuardrailAutomatedReasoningPolicy"
    },
    "crossRegionDetails": {
      "$ref": "#/$defs/GuardrailCrossRegionDetails"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time at which the guardrail was created."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time at which the guardrail was updated."
    },
    "statusReasons": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Appears if the status is FAILED. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted."
    },
    "failureRecommendations": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Appears if the status of the guardrail is FAILED. A list of recommendations to carry out before retrying the request."
    },
    "blockedInputMessaging": {
      "type": "string",
      "description": "The message that the guardrail returns when it blocks a prompt."
    },
    "blockedOutputsMessaging": {
      "type": "string",
      "description": "The message that the guardrail returns when it blocks a model response."
    },
    "kmsKeyArn": {
      "type": "string",
      "description": "The ARN of the KMS key that encrypts the guardrail."
    }
  },
  "required": [
    "name",
    "guardrailId",
    "guardrailArn",
    "version",
    "status",
    "createdAt",
    "updatedAt",
    "blockedInputMessaging",
    "blockedOutputsMessaging"
  ],
  "$defs": {
    "GuardrailAutomatedReasoningPolicy": {
      "type": "object",
      "properties": {
        "policies": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of Automated Reasoning policy ARNs that should be applied as part of this guardrail configuration."
        },
        "confidenceThreshold": {
          "type": "number",
          "description": "The minimum confidence level required for Automated Reasoning policy violations to trigger guardrail actions. Values range from 0.0 to 1.0."
        }
      },
      "required": [
        "policies"
      ]
    },
    "GuardrailContentFilter": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "SEXUAL",
            "VIOLENCE",
            "HATE",
            "INSULTS",
            "MISCONDUCT",
            "PROMPT_ATTACK"
          ],
          "description": "The harmful category that the content filter is applied to."
        },
        "inputStrength": {
          "type": "string",
          "enum": [
            "NONE",
            "LOW",
            "MEDIUM",
            "HIGH"
          ],
          "description": "The strength of the content filter to apply to prompts. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces."
        },
        "outputStrength": {
          "type": "string",
          "enum": [
            "NONE",
            "LOW",
            "MEDIUM",
            "HIGH"
          ],
          "description": "The strength of the content filter to apply to model responses. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces."
        },
        "inputModalities": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "TEXT",
              "IMAGE"
            ]
          },
          "description": "The input modalities selected for the guardrail content filter."
        },
        "outputModalities": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "TEXT",
              "IMAGE"
            ]
          },
          "description": "The output modalities selected for the guardrail content filter."
        },
        "inputAction": {
          "type": "string",
          "enum": [
            "BLOCK",
            "NONE"
          ],
          "description": "The action to take when harmful content is detected in the input. Supported values include: BLOCK – Block the content and replace it with blocked messaging. NONE – Take no action but return detection information in the trace response."
        },
        "outputAction": {
          "type": "string",
          "enum": [
            "BLOCK",
            "NONE"
          ],
          "description": "The action to take when harmful content is detected in the output. Supported values include: BLOCK – Block the content and replace it with blocked messaging. NONE – Take no action but return detection information in the trace response."
        },
        "inputEnabled": {
          "type": "boolean",
          "description": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        },
        "outputEnabled": {
          "type": "boolean",
          "description": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        }
      },
      "required": [
        "type",
        "inputStrength",
        "outputStrength"
      ]
    },
    "GuardrailContentFiltersTier": {
      "type": "object",
      "properties": {
        "tierName": {
          "type": "string",
          "enum": [
            "CLASSIC",
            "STANDARD"
          ],
          "description": "The tier that your guardrail uses for content filters. Valid values include: CLASSIC tier – Provides established guardrails functionality supporting English, French, and Spanish languages. STANDARD tier – Provides a more robust solution than the CLASSIC tier and has more comprehensive language support. This tier requires that your guardrail use cross-Region inference."
        }
      },
      "required": [
        "tierName"
      ]
    },
    "GuardrailContentPolicy": {
      "type": "object",
      "properties": {
        "filters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GuardrailContentFilter"
          },
          "description": "Contains the type of the content filter and how strongly it should apply to prompts and model responses."
        },
        "tier": {
          "$ref": "#/$defs/GuardrailContentFiltersTier"
        }
      }
    },
    "GuardrailContextualGroundingFilter": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "GROUNDING",
            "RELEVANCE"
          ],
          "description": "The filter type details for the guardrails contextual grounding filter."
        },
        "threshold": {
          "type": "number",
          "description": "The threshold details for the guardrails contextual grounding filter."
        },
        "action": {
          "type": "string",
          "enum": [
            "BLOCK",
            "NONE"
          ],
          "description": "The action to take when content fails the contextual grounding evaluation. Supported values include: BLOCK – Block the content and replace it with blocked messaging. NONE – Take no action but return detection information in the trace response."
        },
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether contextual grounding is enabled for evaluation. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        }
      },
      "required": [
        "type",
        "threshold"
      ]
    },
    "GuardrailContextualGroundingPolicy": {
      "type": "object",
      "properties": {
        "filters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GuardrailContextualGroundingFilter"
          },
          "description": "The filter details for the guardrails contextual grounding policy."
        },
        "tier": {
          "$ref": "#/$defs/GuardrailContextualGroundingTier"
        }
      },
      "required": [
        "filters"
      ]
    },
    "GuardrailContextualGroundingTier": {
      "type": "object",
      "properties": {
        "tierName": {
          "type": "string",
          "enum": [
            "CLASSIC",
            "STANDARD"
          ],
          "description": "The tier that your guardrail uses for contextual grounding. Valid values include: CLASSIC tier – Provides established contextual grounding functionality supporting English, French, and Spanish languages. STANDARD tier – Provides a more robust solution than the CLASSIC tier, with support for reasoning, conversational content and more comprehensive language support. This tier requires that your guardrail use cross-Region inference."
        }
      },
      "required": [
        "tierName"
      ]
    },
    "GuardrailCrossRegionDetails": {
      "type": "object",
      "properties": {
        "guardrailProfileId": {
          "type": "string",
          "description": "The ID of the guardrail profile that your guardrail is using. Profile availability depends on your current Amazon Web Services Region. For more information, see the Amazon Bedrock User Guide."
        },
        "guardrailProfileArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the guardrail profile that you're using with your guardrail."
        }
      }
    },
    "GuardrailManagedWords": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "PROFANITY"
          ],
          "description": "ManagedWords$type The managed word type that was configured for the guardrail. (For now, we only offer profanity word list)"
        },
        "inputAction": {
          "type": "string",
          "enum": [
            "BLOCK",
            "NONE"
          ],
          "description": "The action to take when harmful content is detected in the input. Supported values include: BLOCK – Block the content and replace it with blocked messaging. NONE – Take no action but return detection information in the trace response."
        },
        "outputAction": {
          "type": "string",
          "enum": [
            "BLOCK",
            "NONE"
          ],
          "description": "The action to take when harmful content is detected in the output. Supported values include: BLOCK – Block the content and replace it with blocked messaging. NONE – Take no action but return detection information in the trace response."
        },
        "inputEnabled": {
          "type": "boolean",
          "description": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        },
        "outputEnabled": {
          "type": "boolean",
          "description": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        }
      },
      "required": [
        "type"
      ]
    },
    "GuardrailPiiEntity": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "ADDRESS",
            "AGE",
            "AWS_ACCESS_KEY",
            "AWS_SECRET_KEY",
            "CA_HEALTH_NUMBER",
            "CA_SOCIAL_INSURANCE_NUMBER",
            "CREDIT_DEBIT_CARD_CVV",
            "CREDIT_DEBIT_CARD_EXPIRY",
            "CREDIT_DEBIT_CARD_NUMBER",
            "DRIVER_ID",
            "EMAIL",
            "INTERNATIONAL_BANK_ACCOUNT_NUMBER",
            "IP_ADDRESS",
            "LICENSE_PLATE",
            "MAC_ADDRESS",
            "NAME",
            "PASSWORD",
            "PHONE",
            "PIN",
            "SWIFT_CODE",
            "UK_NATIONAL_HEALTH_SERVICE_NUMBER",
            "UK_NATIONAL_INSURANCE_NUMBER",
            "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
            "URL",
            "USERNAME",
            "US_BANK_ACCOUNT_NUMBER",
            "US_BANK_ROUTING_NUMBER",
            "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",
            "US_PASSPORT_NUMBER",
            "US_SOCIAL_SECURITY_NUMBER",
            "VEHICLE_IDENTIFICATION_NUMBER"
          ],
          "description": "The type of PII entity. For example, Social Security Number."
        },
        "action": {
          "type": "string",
          "enum": [
            "BLOCK",
            "ANONYMIZE",
            "NONE"
          ],
          "description": "The configured guardrail action when PII entity is detected."
        },
        "inputAction": {
          "type": "string",
          "enum": [
            "BLOCK",
            "ANONYMIZE",
            "NONE"
          ],
          "description": "The action to take when harmful content is detected in the input. Supported values include: BLOCK – Block the content and replace it with blocked messaging. ANONYMIZE – Mask the content and replace it with identifier tags. NONE – Take no action but return detection information in the trace response."
        },
        "outputAction": {
          "type": "string",
          "enum": [
            "BLOCK",
            "ANONYMIZE",
            "NONE"
          ],
          "description": "The action to take when harmful content is detected in the output. Supported values include: BLOCK – Block the content and replace it with blocked messaging. ANONYMIZE – Mask the content and replace it with identifier tags. NONE – Take no action but return detection information in the trace response."
        },
        "inputEnabled": {
          "type": "boolean",
          "description": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        },
        "outputEnabled": {
          "type": "boolean",
          "description": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        }
      },
      "required": [
        "type",
        "action"
      ]
    },
    "GuardrailRegex": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the regular expression for the guardrail."
        },
        "description": {
          "type": "string",
          "description": "The description of the regular expression for the guardrail."
        },
        "pattern": {
          "type": "string",
          "description": "The pattern of the regular expression configured for the guardrail."
        },
        "action": {
          "type": "string",
          "enum": [
            "BLOCK",
            "ANONYMIZE",
            "NONE"
          ],
          "description": "The action taken when a match to the regular expression is detected."
        },
        "inputAction": {
          "type": "string",
          "enum": [
            "BLOCK",
            "ANONYMIZE",
            "NONE"
          ],
          "description": "The action to take when harmful content is detected in the input. Supported values include: BLOCK – Block the content and replace it with blocked messaging. NONE – Take no action but return detection information in the trace response."
        },
        "outputAction": {
          "type": "string",
          "enum": [
            "BLOCK",
            "ANONYMIZE",
            "NONE"
          ],
          "description": "The action to take when harmful content is detected in the output. Supported values include: BLOCK – Block the content and replace it with blocked messaging. NONE – Take no action but return detection information in the trace response."
        },
        "inputEnabled": {
          "type": "boolean",
          "description": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        },
        "outputEnabled": {
          "type": "boolean",
          "description": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        }
      },
      "required": [
        "name",
        "pattern",
        "action"
      ]
    },
    "GuardrailSensitiveInformationPolicy": {
      "type": "object",
      "properties": {
        "piiEntities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GuardrailPiiEntity"
          },
          "description": "The list of PII entities configured for the guardrail."
        },
        "regexes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GuardrailRegex"
          },
          "description": "The list of regular expressions configured for the guardrail."
        }
      }
    },
    "GuardrailTopic": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the topic to deny."
        },
        "definition": {
          "type": "string",
          "description": "A definition of the topic to deny."
        },
        "type": {
          "type": "string",
          "enum": [
            "DENY"
          ],
          "description": "Specifies to deny the topic."
        },
        "inputAction": {
          "type": "string",
          "enum": [
            "BLOCK",
            "NONE"
          ],
          "description": "The action to take when harmful content is detected in the input. Supported values include: BLOCK – Block the content and replace it with blocked messaging. NONE – Take no action but return detection information in the trace response."
        },
        "outputAction": {
          "type": "string",
          "enum": [
            "BLOCK",
            "NONE"
          ],
          "description": "The action to take when harmful content is detected in the output. Supported values include: BLOCK – Block the content and replace it with blocked messaging. NONE – Take no action but return detection information in the trace response."
        },
        "inputEnabled": {
          "type": "boolean",
          "description": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        },
        "outputEnabled": {
          "type": "boolean",
          "description": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        }
      },
      "required": [
        "name",
        "definition"
      ]
    },
    "GuardrailTopicPolicy": {
      "type": "object",
      "properties": {
        "topics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GuardrailTopic"
          },
          "description": "A list of policies related to topics that the guardrail should deny."
        },
        "tier": {
          "$ref": "#/$defs/GuardrailTopicsTier"
        }
      },
      "required": [
        "topics"
      ]
    },
    "GuardrailTopicsTier": {
      "type": "object",
      "properties": {
        "tierName": {
          "type": "string",
          "enum": [
            "CLASSIC",
            "STANDARD"
          ],
          "description": "The tier that your guardrail uses for denied topic filters. Valid values include: CLASSIC tier – Provides established guardrails functionality supporting English, French, and Spanish languages. STANDARD tier – Provides a more robust solution than the CLASSIC tier and has more comprehensive language support. This tier requires that your guardrail use cross-Region inference."
        }
      },
      "required": [
        "tierName"
      ]
    },
    "GuardrailWord": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "Text of the word configured for the guardrail to block."
        },
        "inputAction": {
          "type": "string",
          "enum": [
            "BLOCK",
            "NONE"
          ],
          "description": "The action to take when harmful content is detected in the input. Supported values include: BLOCK – Block the content and replace it with blocked messaging. NONE – Take no action but return detection information in the trace response."
        },
        "outputAction": {
          "type": "string",
          "enum": [
            "BLOCK",
            "NONE"
          ],
          "description": "The action to take when harmful content is detected in the output. Supported values include: BLOCK – Block the content and replace it with blocked messaging. NONE – Take no action but return detection information in the trace response."
        },
        "inputEnabled": {
          "type": "boolean",
          "description": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        },
        "outputEnabled": {
          "type": "boolean",
          "description": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response."
        }
      },
      "required": [
        "text"
      ]
    },
    "GuardrailWordPolicy": {
      "type": "object",
      "properties": {
        "words": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GuardrailWord"
          },
          "description": "A list of words configured for the guardrail."
        },
        "managedWordLists": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GuardrailManagedWords"
          },
          "description": "A list of managed words configured for the guardrail."
        }
      }
    }
  }
}