{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-batch-get-lifecycle-policy-response-schema.json",
  "title": "BatchGetLifecyclePolicyResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-lifecycle-policy-api-openapi.yml#/components/schemas/BatchGetLifecyclePolicyResponse",
  "type": "object",
  "properties": {
    "lifecyclePolicyDetails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LifecyclePolicyDetail"
      },
      "description": "A list of lifecycle policies matched to the input policy name and policy type."
    },
    "lifecyclePolicyErrorDetails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LifecyclePolicyErrorDetail"
      },
      "description": "A list of lifecycle policy names and policy types for which retrieval failed."
    }
  },
  "$defs": {
    "LifecyclePolicyDetail": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of lifecycle policy."
        },
        "name": {
          "type": "string",
          "description": "The name of the lifecycle policy."
        },
        "policyVersion": {
          "type": "string",
          "description": "The version of the lifecycle policy."
        },
        "description": {
          "type": "string",
          "description": "The description of the lifecycle policy."
        },
        "policy": {
          "type": "object",
          "description": "The JSON policy document without any whitespaces."
        },
        "createdDate": {
          "type": "integer",
          "description": "The date the lifecycle policy was created."
        },
        "lastModifiedDate": {
          "type": "integer",
          "description": "The timestamp of when the lifecycle policy was last modified."
        }
      }
    },
    "LifecyclePolicyErrorDetail": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of lifecycle policy."
        },
        "name": {
          "type": "string",
          "description": "The name of the lifecycle policy."
        },
        "errorMessage": {
          "type": "string",
          "description": "A description of the error. For example, The specified Lifecycle Policy is not found."
        },
        "errorCode": {
          "type": "string",
          "description": "The error code for the request. For example, NOT_FOUND."
        }
      }
    }
  }
}