{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-backup/json-schema/aws-backup-start-copy-job-input-schema.json",
  "title": "StartCopyJobInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-backup-copy-jobs-api-openapi.yml#/components/schemas/StartCopyJobInput",
  "type": "object",
  "properties": {
    "RecoveryPointArn": {
      "type": "string",
      "description": "An ARN that uniquely identifies a recovery point to use for the copy job; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45."
    },
    "SourceBackupVaultName": {
      "type": "string",
      "description": "The name of a logical source container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created."
    },
    "DestinationBackupVaultArn": {
      "type": "string",
      "description": "An Amazon Resource Name (ARN) that uniquely identifies a destination backup vault to copy to; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault."
    },
    "IamRoleArn": {
      "type": "string",
      "description": "Specifies the IAM role ARN used to copy the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access."
    },
    "IdempotencyToken": {
      "type": "string",
      "description": "A customer-chosen string that you can use to distinguish between otherwise identical calls to StartCopyJob. Retrying a successful request with the same idempotency token results in a success message with no action taken."
    },
    "Lifecycle": {
      "$ref": "#/$defs/Lifecycle"
    }
  },
  "required": [
    "RecoveryPointArn",
    "SourceBackupVaultName",
    "DestinationBackupVaultArn",
    "IamRoleArn"
  ],
  "$defs": {
    "Lifecycle": {
      "type": "object",
      "properties": {
        "MoveToColdStorageAfterDays": {
          "type": "integer",
          "description": "The number of days after creation that a recovery point is moved to cold storage."
        },
        "DeleteAfterDays": {
          "type": "integer",
          "description": "The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in MoveToColdStorageAfterDays."
        },
        "OptInToArchiveForSupportedResources": {
          "type": "boolean",
          "description": "If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings."
        },
        "DeleteAfterEvent": {
          "type": "string",
          "enum": [
            "DELETE_AFTER_COPY"
          ],
          "description": "The event after which a recovery point is deleted. A recovery point with both DeleteAfterDays and DeleteAfterEvent will delete after whichever condition is satisfied first. Not valid as an input."
        }
      }
    }
  }
}