{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-healthlake/json-schema/aws-healthlake-restore-fhirdatastore-request-schema.json",
  "title": "RestoreFHIRDatastoreRequest",
  "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/RestoreFHIRDatastoreRequest",
  "type": "object",
  "properties": {
    "SourceDatastoreId": {
      "type": "string",
      "description": "The identifier of the source data store to restore from."
    },
    "RestoreConfiguration": {
      "$ref": "#/$defs/RestoreConfiguration"
    },
    "DatastoreName": {
      "type": "string",
      "description": "The name for the restored data store."
    },
    "SseConfiguration": {
      "$ref": "#/$defs/SseConfiguration"
    },
    "ClientToken": {
      "type": "string",
      "description": "An optional user-provided token to ensure API idempotency of the restore."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The resource tags applied to the restored data store."
    },
    "IdentityProviderConfiguration": {
      "$ref": "#/$defs/IdentityProviderConfiguration"
    },
    "AnalyticsConfiguration": {
      "$ref": "#/$defs/AnalyticsConfiguration"
    },
    "NlpConfiguration": {
      "$ref": "#/$defs/NlpConfiguration"
    },
    "ProfileConfiguration": {
      "$ref": "#/$defs/ProfileConfiguration"
    }
  },
  "required": [
    "SourceDatastoreId",
    "RestoreConfiguration"
  ],
  "$defs": {
    "AnalyticsConfiguration": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "ENABLING",
            "DISABLED",
            "DISABLING",
            "PAUSING",
            "PAUSED"
          ],
          "description": "The status of the analytics configuration."
        }
      }
    },
    "ContinuousBackupRestoreConfiguration": {
      "type": "object",
      "properties": {
        "RestorePointTime": {
          "type": "string",
          "format": "date-time",
          "description": "The point in time to restore the data store to, specified as a UTC timestamp."
        }
      }
    },
    "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."
        }
      }
    },
    "ProfileConfiguration": {
      "type": "object",
      "properties": {
        "DefaultProfiles": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of default profiles for the data store."
        }
      }
    },
    "RestoreConfiguration": {
      "type": "object",
      "properties": {
        "ContinuousBackupRestoreConfiguration": {
          "$ref": "#/$defs/ContinuousBackupRestoreConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "SseConfiguration": {
      "type": "object",
      "properties": {
        "KmsEncryptionConfig": {
          "$ref": "#/$defs/KmsEncryptionConfig"
        }
      },
      "required": [
        "KmsEncryptionConfig"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key portion of a tag. Tag keys are case sensitive."
        },
        "Value": {
          "type": "string",
          "description": "The value portion of a tag. Tag values are case-sensitive."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}