{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-healthlake/json-schema/aws-healthlake-update-fhirdatastore-request-schema.json",
  "title": "UpdateFHIRDatastoreRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-healthlake-operations-api-openapi.yml#/components/schemas/UpdateFHIRDatastoreRequest",
  "type": "object",
  "properties": {
    "DatastoreId": {
      "type": "string",
      "description": "The data store identifier."
    },
    "DatastoreName": {
      "type": "string",
      "description": "The data store name."
    },
    "AnalyticsConfiguration": {
      "$ref": "#/$defs/AnalyticsConfiguration"
    },
    "NlpConfiguration": {
      "$ref": "#/$defs/NlpConfiguration"
    },
    "ProfileConfiguration": {
      "$ref": "#/$defs/ProfileConfiguration"
    },
    "IdentityProviderConfiguration": {
      "$ref": "#/$defs/IdentityProviderConfiguration"
    },
    "BackupConfiguration": {
      "$ref": "#/$defs/BackupConfiguration"
    }
  },
  "required": [
    "DatastoreId"
  ],
  "$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."
        }
      }
    },
    "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"
      ]
    },
    "NlpConfiguration": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "ENABLING",
            "DISABLED",
            "DISABLING"
          ],
          "description": "The status of the NLP configuration."
        }
      }
    },
    "ProfileConfiguration": {
      "type": "object",
      "properties": {
        "DefaultProfiles": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of default profiles for the data store."
        }
      }
    }
  }
}