{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-start-policy-generation-request-schema.json",
  "title": "StartPolicyGenerationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-policy-generations-api-openapi.yml#/components/schemas/StartPolicyGenerationRequest",
  "type": "object",
  "properties": {
    "policyEngineId": {
      "type": "string",
      "description": "The identifier of the policy engine that provides the context for policy generation. This engine's schema and tool context are used to ensure generated policies are valid and applicable."
    },
    "resource": {
      "$ref": "#/$defs/Resource"
    },
    "content": {
      "$ref": "#/$defs/BedrockAgentcoreControlContent"
    },
    "name": {
      "type": "string",
      "description": "A customer-assigned name for the policy generation request. This helps track and identify generation operations, especially when running multiple generations simultaneously."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier to ensure the idempotency of the request. The Amazon Web Services SDK automatically generates this token, so you don't need to provide it in most cases. If you retry a request with the same client token, the service returns the same response without starting a duplicate generation."
    }
  },
  "required": [
    "policyEngineId",
    "resource",
    "content",
    "name"
  ],
  "$defs": {
    "BedrockAgentcoreControlContent": {
      "type": "object",
      "properties": {
        "rawText": {
          "type": "string",
          "description": "The raw text content containing natural language descriptions of desired policy behavior. This text is processed by AI to generate corresponding Dogwood policy statements that match the described intent."
        }
      },
      "description": "Exactly one member is set."
    },
    "Resource": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the resource. This globally unique identifier specifies the exact resource that policies will be evaluated against for access control decisions."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}