{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-resilience-hub/json-schema/amazon-resilience-hub-import-resources-to-draft-app-version-request-schema.json",
  "title": "ImportResourcesToDraftAppVersionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-resilience-hub-resource-management-api-openapi.yml#/components/schemas/ImportResourcesToDraftAppVersionRequest",
  "type": "object",
  "properties": {
    "appArn": {
      "type": "string",
      "description": "Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide."
    },
    "sourceArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Resource Names (ARNs) for the resources."
    },
    "terraformSources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TerraformSource"
      },
      "description": "A list of terraform file s3 URLs you need to import."
    },
    "importStrategy": {
      "type": "string",
      "enum": [
        "AddOnly",
        "ReplaceAll"
      ],
      "description": "The import strategy you would like to set to import resources into Resilience Hub application."
    },
    "eksSources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EksSource"
      },
      "description": "The input sources of the Amazon Elastic Kubernetes Service resources you need to import."
    }
  },
  "required": [
    "appArn"
  ],
  "$defs": {
    "EksSource": {
      "type": "object",
      "properties": {
        "eksClusterArn": {
          "type": "string",
          "description": "Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service cluster. The format for this ARN is: arn:aws:eks:region:account-id:cluster/cluster-name. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide."
        },
        "namespaces": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of namespaces located on your Amazon Elastic Kubernetes Service cluster."
        }
      },
      "required": [
        "eksClusterArn",
        "namespaces"
      ]
    },
    "TerraformSource": {
      "type": "object",
      "properties": {
        "s3StateFileUrl": {
          "type": "string",
          "description": "The URL of the Terraform s3 state file you need to import."
        }
      },
      "required": [
        "s3StateFileUrl"
      ]
    }
  }
}