---
id: "aws_s3_uri"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["internet"]
langs: ["common"]
quality: 85
url: "https://registry.apicrafter.io/datatype/aws_s3_uri"
---

# Amazon S3 URI (`aws_s3_uri`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Location of an Amazon S3 bucket, prefix or object written as s3://bucket/key, as the AWS CLI and many tools accept it. The regexp checks the general purpose bucket naming rules for the length (3 to 63 characters) and the characters (lowercase letters, digits, periods and hyphens, starting and ending with a letter or digit); it does not check the reserved prefixes and suffixes.

- Personal data (PII): no
- Categories: Internet (internet)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^s3://[a-z0-9][a-z0-9.-]{1,61}[a-z0-9](?:/\S*)?$
```

## Examples

- `s3://amzn-s3-demo-bucket` — Bucket name from the AWS documentation
- `s3://amzn-s3-demo-bucket/Development/` — Prefix in the example bucket
- `s3://AmznS3DemoBucket` (invalid example) — Uppercase letters, not allowed in bucket names

## Supported by tools

- `pydantic`
- `pywhat`

## Sources

- doc: <https://docs.aws.amazon.com/cli/latest/reference/s3/>
- doc: <https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html>

## Quality

Score 85/100. Missing: mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/aws_s3_uri.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/aws_s3_uri.yaml>
