{
  "slug": "object-key-prefix",
  "term": "Object key prefix",
  "aliases": [
    "key prefix",
    "object prefix",
    "S3 prefix"
  ],
  "definition": "An object key prefix is an initial string used to select or organize object keys.",
  "note": "S3 general-purpose bucket listings match keys that start with the supplied prefix; the match need not end at a slash. A prefix is not itself a directory or a separately stored parent object. [s3-prefixes]\n\nA delimiter groups deeper matches into CommonPrefixes. Each group consumes one MaxKeys result slot, and its member objects are not also returned individually in that response. Group counts are therefore not descendant-object counts. [s3-list-v2]\n\nFolder creation in the S3 console writes a zero-byte marker, but shared prefixes can produce folder views without that marker. A slash-ending key alone does not establish a zero-byte payload. [s3-folders]\n\nS3 directory buckets use a different, hierarchical namespace. Their non-empty ListObjectsV2 prefixes must end in a slash, and the only supported delimiter is a slash. [s3-directory-buckets] [s3-list-v2]",
  "status": "shipping",
  "advantages": [
    {
      "text": "Prefix filtering and delimiter grouping support browsing a selected portion of a namespace.",
      "citationIds": [
        "s3-prefixes"
      ]
    }
  ],
  "limitations": [
    {
      "text": "A grouped listing is not a complete inventory of the objects inside each returned group.",
      "citationIds": [
        "s3-list-v2"
      ]
    }
  ],
  "related": [
    "object-key",
    "object-storage"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-28",
  "citations": [
    {
      "id": "s3-prefixes",
      "title": "Amazon S3: Organizing objects using prefixes and delimiters",
      "url": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html",
      "accessed": "2026-10-28"
    },
    {
      "id": "s3-list-v2",
      "title": "Amazon S3 API: ListObjectsV2, grouping and continuation",
      "url": "https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html",
      "accessed": "2026-10-28"
    },
    {
      "id": "s3-folders",
      "title": "Amazon S3: Console folders and zero-byte marker objects",
      "url": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-folders.html",
      "accessed": "2026-10-28"
    },
    {
      "id": "s3-directory-buckets",
      "title": "Amazon S3: Directory buckets and hierarchical namespaces",
      "url": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html",
      "accessed": "2026-10-28"
    }
  ]
}
