{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-get-application-response-schema.json",
  "title": "GetApplicationResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-opensearch-api-openapi.yml#/components/schemas/GetApplicationResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the OpenSearch application."
    },
    "arn": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "description": "The name of the OpenSearch application."
    },
    "endpoint": {
      "type": "string",
      "description": "The endpoint URL of the OpenSearch application."
    },
    "status": {
      "type": "string",
      "enum": [
        "CREATING",
        "UPDATING",
        "DELETING",
        "ACTIVE",
        "FAILED"
      ],
      "description": "The current status of the OpenSearch application. Possible values: CREATING, UPDATING, DELETING, FAILED, ACTIVE, and DELETED."
    },
    "iamIdentityCenterOptions": {
      "$ref": "#/$defs/IamIdentityCenterOptions"
    },
    "dataSources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataSource"
      },
      "description": "The data sources associated with the OpenSearch application."
    },
    "appConfigs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AppConfig"
      },
      "description": "The configuration settings of the OpenSearch application."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the OpenSearch application was created."
    },
    "lastUpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of the last update to the OpenSearch application."
    },
    "kmsKeyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the KMS key used to encrypt the application's data at rest."
    }
  },
  "$defs": {
    "AppConfig": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "enum": [
            "opensearchDashboards.dashboardAdmin.users",
            "opensearchDashboards.dashboardAdmin.groups"
          ],
          "description": "The configuration item to set, such as the admin role for the OpenSearch application."
        },
        "value": {
          "type": "string",
          "description": "The value assigned to the configuration key, such as an IAM user ARN."
        }
      }
    },
    "DataSource": {
      "type": "object",
      "properties": {
        "dataSourceArn": {
          "type": "string"
        },
        "dataSourceDescription": {
          "type": "string",
          "description": "Detailed description of a data source."
        },
        "iamRoleForDataSourceArn": {
          "type": "string",
          "description": "The ARN of the IAM role to be used for cross account/region data source association."
        }
      }
    },
    "IamIdentityCenterOptions": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether IAM Identity Center is enabled for the OpenSearch application."
        },
        "iamIdentityCenterInstanceArn": {
          "type": "string"
        },
        "iamRoleForIdentityCenterApplicationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the IAM role assigned to the IAM Identity Center application for the OpenSearch application."
        },
        "iamIdentityCenterApplicationArn": {
          "type": "string"
        }
      }
    }
  }
}