{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-get-policy-generation-response-schema.json",
  "title": "GetPolicyGenerationResponse",
  "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/GetPolicyGenerationResponse",
  "type": "object",
  "properties": {
    "policyEngineId": {
      "type": "string",
      "description": "The identifier of the policy engine associated with this policy generation. This confirms the policy engine context for the generation operation."
    },
    "policyGenerationId": {
      "type": "string",
      "description": "The unique identifier of the policy generation request. This matches the generation ID provided in the request and serves as the tracking identifier."
    },
    "name": {
      "type": "string",
      "description": "The customer-assigned name for the policy generation request. This helps identify and track generation operations across multiple requests."
    },
    "policyGenerationArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the policy generation. This globally unique identifier can be used for tracking, auditing, and cross-service references."
    },
    "resource": {
      "$ref": "#/$defs/Resource"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the policy generation request was created. This is used for tracking and auditing generation operations and their lifecycle."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the policy generation was last updated. This tracks the progress of the generation process and any status changes."
    },
    "status": {
      "type": "string",
      "enum": [
        "GENERATING",
        "GENERATED",
        "GENERATE_FAILED",
        "DELETE_FAILED"
      ],
      "description": "The current status of the policy generation. This indicates whether the generation is in progress, completed successfully, or failed during processing."
    },
    "findings": {
      "type": "string",
      "description": "The findings and results from the policy generation process. This includes any issues, recommendations, validation results, or insights from the generated policies."
    },
    "statusReasons": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Additional information about the generation status. This provides details about any failures, warnings, or the current state of the generation process."
    }
  },
  "required": [
    "policyEngineId",
    "policyGenerationId",
    "name",
    "policyGenerationArn",
    "resource",
    "createdAt",
    "updatedAt",
    "status",
    "statusReasons"
  ],
  "$defs": {
    "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."
    }
  }
}