{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-healthlake/json-schema/aws-healthlake-list-fhirdatastores-response-schema.json",
  "title": "ListFHIRDatastoresResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-healthlake-datastore-api-openapi.yml#/components/schemas/ListFHIRDatastoresResponse",
  "type": "object",
  "properties": {
    "DatastorePropertiesList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DatastoreProperties"
      },
      "description": "The properties associated with all listed data stores."
    },
    "NextToken": {
      "type": "string",
      "description": "The pagination token used to retrieve the next page of results."
    }
  },
  "required": [
    "DatastorePropertiesList"
  ],
  "$defs": {
    "AnalyticsConfiguration": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "ENABLING",
            "DISABLED",
            "DISABLING",
            "PAUSING",
            "PAUSED"
          ],
          "description": "The status of the analytics configuration."
        }
      }
    },
    "BackupConfiguration": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The backup status of the data store."
        },
        "BackupType": {
          "type": "string",
          "enum": [
            "CONTINUOUS"
          ],
          "description": "The type of backup."
        },
        "RetentionPeriodInDays": {
          "type": "integer",
          "description": "The number of days backup data is retained."
        },
        "BackupTagsEnabled": {
          "type": "boolean",
          "description": "Specifies whether tags are included in backups."
        }
      }
    },
    "DatastoreBackupStatus": {
      "type": "object",
      "properties": {
        "Configuration": {
          "$ref": "#/$defs/BackupConfiguration"
        },
        "BackupEnabledAt": {
          "type": "string",
          "format": "date-time",
          "description": "The time backup was enabled on the data store."
        },
        "EarliestRestorePoint": {
          "type": "string",
          "format": "date-time",
          "description": "The earliest point in time the data store can be restored to."
        },
        "LatestRestorePoint": {
          "type": "string",
          "format": "date-time",
          "description": "The latest point in time the data store can be restored to."
        },
        "ScheduledPermanentDeletionTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the retained backup data is scheduled for permanent deletion."
        }
      }
    },
    "DatastoreProperties": {
      "type": "object",
      "properties": {
        "DatastoreId": {
          "type": "string",
          "description": "The data store identifier."
        },
        "DatastoreArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) used in the creation of the data store."
        },
        "DatastoreName": {
          "type": "string",
          "description": "The data store name."
        },
        "DatastoreStatus": {
          "type": "string",
          "enum": [
            "CREATING",
            "ACTIVE",
            "DELETING",
            "DELETED",
            "CREATE_FAILED",
            "UPDATING",
            "UPDATE_FAILED"
          ],
          "description": "The data store status."
        },
        "CreatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The time the data store was created."
        },
        "DatastoreTypeVersion": {
          "type": "string",
          "enum": [
            "R4"
          ],
          "description": "The FHIR release version supported by the data store. Current support is for version R4."
        },
        "DatastoreEndpoint": {
          "type": "string",
          "description": "The Amazon Web Services endpoint for the data store."
        },
        "SseConfiguration": {
          "$ref": "#/$defs/SseConfiguration"
        },
        "PreloadDataConfig": {
          "$ref": "#/$defs/PreloadDataConfig"
        },
        "IdentityProviderConfiguration": {
          "$ref": "#/$defs/IdentityProviderConfiguration"
        },
        "ErrorCause": {
          "$ref": "#/$defs/ErrorCause"
        },
        "NlpConfiguration": {
          "$ref": "#/$defs/NlpConfiguration"
        },
        "AnalyticsConfiguration": {
          "$ref": "#/$defs/AnalyticsConfiguration"
        },
        "ProfileConfiguration": {
          "$ref": "#/$defs/ProfileConfiguration"
        },
        "BackupStatusInfo": {
          "$ref": "#/$defs/DatastoreBackupStatus"
        }
      },
      "required": [
        "DatastoreId",
        "DatastoreArn",
        "DatastoreStatus",
        "DatastoreTypeVersion",
        "DatastoreEndpoint"
      ]
    },
    "ErrorCause": {
      "type": "object",
      "properties": {
        "ErrorMessage": {
          "type": "string",
          "description": "The error message text for ErrorCause."
        },
        "ErrorCategory": {
          "type": "string",
          "enum": [
            "RETRYABLE_ERROR",
            "NON_RETRYABLE_ERROR"
          ],
          "description": "The error category for ErrorCause."
        }
      }
    },
    "IdentityProviderConfiguration": {
      "type": "object",
      "properties": {
        "AuthorizationStrategy": {
          "type": "string",
          "enum": [
            "SMART_ON_FHIR_V1",
            "SMART_ON_FHIR",
            "AWS_AUTH"
          ],
          "description": "The authorization strategy selected when the HealthLake data store is created. HealthLake provides support for both SMART on FHIR V1 and V2 as described below. SMART_ON_FHIR_V1 – Support for only SMART on FHIR V1, which includes read (read/search) and write (create/update/delete) permissions. SMART_ON_FHIR – Support for both SMART on FHIR V1 and V2, which includes create, read, update, delete, and search permissions. Amazon Web Services_AUTH – The default HealthLake authorization strategy; not affiliated with SMART on FHIR."
        },
        "FineGrainedAuthorizationEnabled": {
          "type": "boolean",
          "description": "The parameter to enable SMART on FHIR fine-grained authorization for the data store."
        },
        "Metadata": {
          "type": "string",
          "description": "The JSON metadata elements to use in your identity provider configuration. Required elements are listed based on the launch specification of the SMART application. For more information on all possible elements, see Metadata in SMART's App Launch specification. authorization_endpoint: The URL to the OAuth2 authorization endpoint. grant_types_supported: An array of grant types that are supported at the token endpoint. You must provide at least one grant type option. Valid options are authorization_code and client_credentials. token_endpoint: The URL to the OAuth2 token endpoint. capabilities: An"
        },
        "IdpLambdaArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Lambda function to use to decode the access token created by the authorization server."
        }
      },
      "required": [
        "AuthorizationStrategy"
      ]
    },
    "KmsEncryptionConfig": {
      "type": "object",
      "properties": {
        "CmkType": {
          "type": "string",
          "enum": [
            "CUSTOMER_MANAGED_KMS_KEY",
            "AWS_OWNED_KMS_KEY"
          ],
          "description": "The type of customer-managed-key (CMK) used for encryption."
        },
        "KmsKeyId": {
          "type": "string",
          "description": "The Key Management Service (KMS) encryption key id/alias used to encrypt the data store contents at rest."
        }
      },
      "required": [
        "CmkType"
      ]
    },
    "NlpConfiguration": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "ENABLING",
            "DISABLED",
            "DISABLING"
          ],
          "description": "The status of the NLP configuration."
        }
      }
    },
    "PreloadDataConfig": {
      "type": "object",
      "properties": {
        "PreloadDataType": {
          "type": "string",
          "enum": [
            "SYNTHEA"
          ],
          "description": "The type of preloaded data. Only Synthea preloaded data is supported."
        }
      },
      "required": [
        "PreloadDataType"
      ]
    },
    "ProfileConfiguration": {
      "type": "object",
      "properties": {
        "DefaultProfiles": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of default profiles for the data store."
        }
      }
    },
    "SseConfiguration": {
      "type": "object",
      "properties": {
        "KmsEncryptionConfig": {
          "$ref": "#/$defs/KmsEncryptionConfig"
        }
      },
      "required": [
        "KmsEncryptionConfig"
      ]
    }
  }
}