{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-migration-source-params-schema.json",
  "title": "MigrationSourceParams",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-data-migration-api-openapi.yml#/components/schemas/MigrationSourceParams",
  "properties": {
    "bucket_name": {
      "description": "Bucket name to migrate the data from.",
      "type": "string"
    },
    "id": {
      "description": "Unique identifier for the data migration source.",
      "readOnly": true,
      "type": "string"
    },
    "provider": {
      "description": "Cloud provider from which to migrate data. Use 'telnyx' if you want to migrate data from one Telnyx bucket to another.",
      "enum": [
        "aws",
        "telnyx"
      ],
      "type": "string"
    },
    "provider_auth": {
      "properties": {
        "access_key": {
          "description": "AWS Access Key. For Telnyx-to-Telnyx migrations, use your Telnyx API key here.",
          "type": "string"
        },
        "secret_access_key": {
          "description": "AWS Secret Access Key. For Telnyx-to-Telnyx migrations, use your Telnyx API key here as well.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "source_region": {
      "description": "For intra-Telnyx buckets migration, specify the source bucket region in this field.",
      "type": "string"
    }
  },
  "required": [
    "provider",
    "provider_auth",
    "bucket_name"
  ],
  "type": "object"
}