{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-create-snapshot-request-schema.json",
  "title": "CreateSnapshotRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-redshift-snapshot-api-openapi.yml#/components/schemas/CreateSnapshotRequest",
  "type": "object",
  "properties": {
    "namespaceName": {
      "type": "string",
      "description": "The namespace to create a snapshot for."
    },
    "snapshotName": {
      "type": "string",
      "description": "The name of the snapshot."
    },
    "retentionPeriod": {
      "type": "integer",
      "description": "How long to retain the created snapshot."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RedshiftServerlessTag"
      },
      "description": "An array of Tag objects to associate with the snapshot."
    }
  },
  "required": [
    "namespaceName",
    "snapshotName"
  ],
  "$defs": {
    "RedshiftServerlessTag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key to use in the tag."
        },
        "value": {
          "type": "string",
          "description": "The value of the tag."
        }
      },
      "required": [
        "key",
        "value"
      ]
    }
  }
}