{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-memorydb/json-schema/amazon-memorydb-copy-snapshot-request-schema.json",
  "title": "CopySnapshotRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-memorydb-operations-api-openapi.yml#/components/schemas/CopySnapshotRequest",
  "type": "object",
  "properties": {
    "SourceSnapshotName": {
      "type": "string",
      "description": "The name of an existing snapshot from which to make a copy."
    },
    "TargetSnapshotName": {
      "type": "string",
      "description": "A name for the snapshot copy. MemoryDB does not permit overwriting a snapshot, therefore this name must be unique within its context - MemoryDB or an Amazon S3 bucket if exporting."
    },
    "TargetBucket": {
      "type": "string",
      "description": "The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access. When using this parameter to export a snapshot, be sure MemoryDB has the needed permissions to this S3 bucket. For more information, see Step 2: Grant MemoryDB Access to Your Amazon S3 Bucket."
    },
    "KmsKeyId": {
      "type": "string",
      "description": "The ID of the KMS key used to encrypt the target snapshot."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted."
    }
  },
  "required": [
    "SourceSnapshotName",
    "TargetSnapshotName"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key for the tag. May not be null."
        },
        "Value": {
          "type": "string",
          "description": "The tag's value. May be null."
        }
      }
    }
  }
}