{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-update-policy-response-schema.json",
  "title": "UpdatePolicyResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-policies-api-openapi.yml#/components/schemas/UpdatePolicyResponse",
  "type": "object",
  "properties": {
    "policyId": {
      "type": "string",
      "description": "The unique identifier of the updated policy."
    },
    "name": {
      "type": "string",
      "description": "The name of the updated policy."
    },
    "policyEngineId": {
      "type": "string",
      "description": "The identifier of the policy engine managing the updated policy."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The original creation timestamp of the policy."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the policy was last updated."
    },
    "policyArn": {
      "type": "string",
      "description": "The ARN of the updated policy."
    },
    "status": {
      "type": "string",
      "enum": [
        "CREATING",
        "ACTIVE",
        "UPDATING",
        "DELETING",
        "CREATE_FAILED",
        "UPDATE_FAILED",
        "DELETE_FAILED"
      ],
      "description": "The current status of the updated policy."
    },
    "enforcementMode": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "LOG_ONLY"
      ],
      "description": "The current enforcement mode of the updated policy."
    },
    "definition": {
      "$ref": "#/$defs/PolicyDefinition"
    },
    "description": {
      "type": "string",
      "description": "The updated description of the policy."
    },
    "statusReasons": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Additional information about the update status."
    }
  },
  "required": [
    "policyId",
    "name",
    "policyEngineId",
    "createdAt",
    "updatedAt",
    "policyArn",
    "status",
    "definition",
    "statusReasons"
  ],
  "$defs": {
    "CedarPolicy": {
      "type": "object",
      "properties": {
        "statement": {
          "type": "string",
          "description": "The Cedar policy statement that defines the authorization logic. This statement follows Cedar syntax and specifies principals, actions, resources, and conditions that determine when access should be allowed or denied."
        }
      },
      "required": [
        "statement"
      ]
    },
    "PolicyDefinition": {
      "type": "object",
      "properties": {
        "cedar": {
          "$ref": "#/$defs/CedarPolicy"
        },
        "policyGeneration": {
          "$ref": "#/$defs/PolicyGenerationDetails"
        },
        "policy": {
          "$ref": "#/$defs/PolicyStatement"
        }
      },
      "description": "Exactly one member is set."
    },
    "PolicyGenerationDetails": {
      "type": "object",
      "properties": {
        "policyGenerationId": {
          "type": "string",
          "description": "The unique identifier for this policy generation request."
        },
        "policyGenerationAssetId": {
          "type": "string",
          "description": "The unique identifier for this generated policy asset within the policy generation request."
        }
      },
      "required": [
        "policyGenerationId",
        "policyGenerationAssetId"
      ]
    },
    "PolicyStatement": {
      "type": "object",
      "properties": {
        "statement": {
          "type": "string",
          "description": "The body of the AgentCore Cedar or Dogwood policy statement. Contains the policy logic, which can be a Cedar policy, a temporal policy, or a guardrails definition."
        }
      },
      "required": [
        "statement"
      ]
    }
  }
}