From 8c2462d42a64e96368e63a65047510dc81836bf7 Mon Sep 17 00:00:00 2001 From: itvi-1234 Date: Wed, 2 Dec 2026 20:05:44 +0530 Subject: [PATCH 1/2] Write the S3 extension by hand, watch AWS for new operations, and release 0.3.0 The S3 extension came from a compiler that joined AWS's Smithy model with a hand-written semantic bridge. The bridge was a second, hand-made layer on top of the extension rather than the extension itself, and 0.2.0 was already edited by hand, so re-running the compiler would have undone it. The S3 extension is now written by hand like the others. Removed: the Smithy compiler (tooling/smithy-runtime-conditions), the S3 semantic bridge and generated service mapping, the Python SDK mappings built from it and their tools, the evidence and compiler docs, and the old daily smithy-maintenance workflow, whose issue step could not find the repository. Workflows that installed the compiler's requirements use tooling/common's. The Kubernetes and NATS bridges are left as they are. Added: catalog/aws/s3/aws-model.yaml names the AWS model the extension follows, and the daily "Watch AWS models for new operations" workflow compares its operations with the newest release. When AWS adds or removes an operation it opens one issue listing them, updates it if the difference changes, and closes it once a release matches. Only operations are compared: in the last 29 S3 model changes, 6 changed operations, and the other 23 changed only documentation, types or request fields, which do not change what a workload can declare. S3 0.3.0 is written by hand from 0.2.0. It adds the three operations AWS added on 2026-11-29 (GetBucketDefaultStorageClass, PutBucketDefaultStorageClass and GetPart), so it lists all 115, and documents the extension in simple English: what S3 and each interface type are for, examples, every field, the source/destination roles, and one line for every operation. The aws-s3 packages now come from 0.3.0, with new versions: Go 0.3.0, Python 0.3.0, TypeScript 0.3.0 and Java 0.2.0. --- .github/workflows/aws-model-watch.yml | 97 + .../downstream-extension-releases.yml | 4 +- .../workflows/enforce-kind-namespacing.yml | 2 +- .github/workflows/smithy-maintenance.yml | 117 - .github/workflows/tests.yml | 1 - README.md | 4 +- SERVICE_OPERATIONS_SEMANTIC_BRIDGES.md | 1 - catalog/aws/s3/README.md | 98 +- catalog/aws/s3/aws-model.yaml | 8 + catalog/aws/s3/docs/api-analysis.md | 76 - catalog/aws/s3/docs/design.md | 136 - catalog/aws/s3/docs/sdk-author-workflow.md | 76 - catalog/aws/s3/docs/validation.md | 71 - .../aws/s3/evidence/smithy-history/history.md | 32 - .../s3/evidence/smithy-history/history.yaml | 209 -- catalog/aws/s3/maintenance/smithy.yaml | 10 - catalog/aws/s3/mappings/boto3/README.md | 11 - .../boto3/runtimeconditions.sdk-mapping.yaml | 2264 ----------------- catalog/aws/s3/mappings/botocore/README.md | 9 - .../runtimeconditions.sdk-mapping.yaml | 1493 ----------- catalog/aws/s3/mappings/s3transfer/README.md | 9 - .../runtimeconditions.sdk-mapping.yaml | 464 ---- catalog/aws/s3/model/README.md | 41 - .../s3/model/boto3-wrapper-annotations.yaml | 358 --- .../s3/model/botocore-sdk-annotations.yaml | 6 - .../model/generated/s3-service-mapping.yaml | 1204 --------- .../aws/s3/model/generated/smithy-review.md | 38 - .../s3transfer-semantic-annotations.yaml | 379 --- .../service-operations-semantic-bridge.yaml | 89 - .../0.3.0/runtimeconditions.extension.yaml | 1517 +++++++++++ .../aws/s3/tools/generate_owner_mappings.py | 628 ----- catalog/aws/s3/tools/serialization.py | 24 - .../s3/tools/validate_extension_alignment.py | 79 - .../aws/s3/tools/validate_owner_mappings.py | 250 -- catalog/aws/s3/tools/validate_sdk_sources.py | 304 --- tooling/common/test_watch_aws_operations.py | 98 + tooling/common/watch_aws_operations.py | 150 ++ tooling/extension-bindings/packages.yaml | 10 +- tooling/smithy-runtime-conditions/README.md | 31 - .../requirements.txt | 1 - .../tests/test_compile_extension.py | 96 - .../tools/compile_extension.py | 568 ----- .../tools/replay_history.py | 110 - .../tools/run_maintenance.py | 212 -- .../tools/serialization.py | 24 - 45 files changed, 1934 insertions(+), 9475 deletions(-) create mode 100644 .github/workflows/aws-model-watch.yml delete mode 100644 .github/workflows/smithy-maintenance.yml create mode 100644 catalog/aws/s3/aws-model.yaml delete mode 100644 catalog/aws/s3/docs/api-analysis.md delete mode 100644 catalog/aws/s3/docs/design.md delete mode 100644 catalog/aws/s3/docs/sdk-author-workflow.md delete mode 100644 catalog/aws/s3/docs/validation.md delete mode 100644 catalog/aws/s3/evidence/smithy-history/history.md delete mode 100644 catalog/aws/s3/evidence/smithy-history/history.yaml delete mode 100644 catalog/aws/s3/maintenance/smithy.yaml delete mode 100644 catalog/aws/s3/mappings/boto3/README.md delete mode 100644 catalog/aws/s3/mappings/boto3/runtimeconditions.sdk-mapping.yaml delete mode 100644 catalog/aws/s3/mappings/botocore/README.md delete mode 100644 catalog/aws/s3/mappings/botocore/runtimeconditions.sdk-mapping.yaml delete mode 100644 catalog/aws/s3/mappings/s3transfer/README.md delete mode 100644 catalog/aws/s3/mappings/s3transfer/runtimeconditions.sdk-mapping.yaml delete mode 100644 catalog/aws/s3/model/README.md delete mode 100644 catalog/aws/s3/model/boto3-wrapper-annotations.yaml delete mode 100644 catalog/aws/s3/model/botocore-sdk-annotations.yaml delete mode 100644 catalog/aws/s3/model/generated/s3-service-mapping.yaml delete mode 100644 catalog/aws/s3/model/generated/smithy-review.md delete mode 100644 catalog/aws/s3/model/s3transfer-semantic-annotations.yaml delete mode 100644 catalog/aws/s3/model/service-operations-semantic-bridge.yaml create mode 100644 catalog/aws/s3/releases/0.3.0/runtimeconditions.extension.yaml delete mode 100644 catalog/aws/s3/tools/generate_owner_mappings.py delete mode 100644 catalog/aws/s3/tools/serialization.py delete mode 100644 catalog/aws/s3/tools/validate_extension_alignment.py delete mode 100644 catalog/aws/s3/tools/validate_owner_mappings.py delete mode 100644 catalog/aws/s3/tools/validate_sdk_sources.py create mode 100644 tooling/common/test_watch_aws_operations.py create mode 100644 tooling/common/watch_aws_operations.py delete mode 100644 tooling/smithy-runtime-conditions/README.md delete mode 100644 tooling/smithy-runtime-conditions/requirements.txt delete mode 100644 tooling/smithy-runtime-conditions/tests/test_compile_extension.py delete mode 100644 tooling/smithy-runtime-conditions/tools/compile_extension.py delete mode 100644 tooling/smithy-runtime-conditions/tools/replay_history.py delete mode 100644 tooling/smithy-runtime-conditions/tools/run_maintenance.py delete mode 100644 tooling/smithy-runtime-conditions/tools/serialization.py diff --git a/.github/workflows/aws-model-watch.yml b/.github/workflows/aws-model-watch.yml new file mode 100644 index 0000000..2800922 --- /dev/null +++ b/.github/workflows/aws-model-watch.yml @@ -0,0 +1,97 @@ +name: Watch AWS models for new operations + +# AWS extensions in this catalog are written by hand. Each one has an +# aws-model.yaml next to it naming the AWS Smithy model it follows. Every day +# this compares the operations in that model with the newest release of the +# extension (tooling/common/watch_aws_operations.py). When AWS adds or removes +# an operation, it opens one issue saying which, updates it if the difference +# changes, and closes it once a new release matches the model. +# +# Only operations are compared: AWS changes documentation, enums and request +# fields far more often, and none of that changes what an app can declare. + +on: + schedule: + - cron: "17 6 * * *" + workflow_dispatch: + pull_request: + paths: + - "catalog/aws/**" + - "tooling/common/watch_aws_operations.py" + - "tooling/common/test_watch_aws_operations.py" + - ".github/workflows/aws-model-watch.yml" + +permissions: + contents: read + +concurrency: + group: aws-model-watch-${{ github.event.pull_request.number || 'main' }} + cancel-in-progress: true + +jobs: + watch: + runs-on: ubuntu-24.04 + timeout-minutes: 15 + permissions: + contents: read + # Opening, updating and closing the issue; a pull request run only reports. + issues: write + steps: + - name: Check out the extensions + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Check out the AWS models + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + repository: aws/api-models-aws + path: ${{ runner.temp }}/api-models-aws + fetch-depth: 0 + filter: blob:none + sparse-checkout: models/s3 + persist-credentials: false + + - name: Set up Python + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 + with: + python-version: "3.12.10" + + - name: Install the YAML parser + run: python -m pip install --disable-pip-version-check -r tooling/common/requirements.txt + + - name: Test the watcher + run: python -m unittest discover -s tooling/common -p 'test_watch_aws_operations.py' + + - name: Compare AWS S3 operations with the extension + id: s3 + run: | + python tooling/common/watch_aws_operations.py --config catalog/aws/s3/aws-model.yaml \ + --models-root "$RUNNER_TEMP/api-models-aws" --output "$RUNNER_TEMP/s3.md" + cat "$RUNNER_TEMP/s3.md" >> "$GITHUB_STEP_SUMMARY" + + - name: Open, update or close the issue + if: github.event_name != 'pull_request' + shell: bash + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + CHANGED: ${{ steps.s3.outputs.changed }} + FINGERPRINT: ${{ steps.s3.outputs.fingerprint }} + TITLE: ${{ steps.s3.outputs.title }} + RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + run: | + set -euo pipefail + body="$RUNNER_TEMP/s3.md" + number="$(gh issue list --state open --search "\"$TITLE\" in:title" --json number,title \ + --jq "map(select(.title == env.TITLE)) | .[0].number // empty")" + if [[ "$CHANGED" == true ]]; then + if [[ -z "$number" ]]; then + gh issue create --title "$TITLE" --body-file "$body" + elif ! gh issue view "$number" --json body --jq .body | grep -q "$FINGERPRINT"; then + gh issue edit "$number" --body-file "$body" + gh issue comment "$number" --body "AWS changed the model again; the description now shows the current difference ([run]($RUN_URL))." + fi + elif [[ -n "$number" ]]; then + gh issue close "$number" --comment "The newest extension release now lists every AWS operation ([run]($RUN_URL))." + fi diff --git a/.github/workflows/downstream-extension-releases.yml b/.github/workflows/downstream-extension-releases.yml index 2d0126e..6d4ada7 100644 --- a/.github/workflows/downstream-extension-releases.yml +++ b/.github/workflows/downstream-extension-releases.yml @@ -41,7 +41,7 @@ jobs: python-version: "3.12" - name: Install prerequisites - run: python -m pip install --disable-pip-version-check -r tooling/smithy-runtime-conditions/requirements.txt + run: python -m pip install --disable-pip-version-check -r tooling/common/requirements.txt - name: Report dependents that will be released after merge run: | @@ -78,7 +78,7 @@ jobs: python-version: "3.12" - name: Install prerequisites - run: python -m pip install --disable-pip-version-check -r tooling/smithy-runtime-conditions/requirements.txt + run: python -m pip install --disable-pip-version-check -r tooling/common/requirements.txt - name: Write the next release of each stale dependent id: write diff --git a/.github/workflows/enforce-kind-namespacing.yml b/.github/workflows/enforce-kind-namespacing.yml index 1673841..0755131 100644 --- a/.github/workflows/enforce-kind-namespacing.yml +++ b/.github/workflows/enforce-kind-namespacing.yml @@ -32,7 +32,7 @@ jobs: python-version: "3.12" - name: Install prerequisites - run: python -m pip install --disable-pip-version-check -r tooling/smithy-runtime-conditions/requirements.txt + run: python -m pip install --disable-pip-version-check -r tooling/common/requirements.txt - name: Check kind namespacing run: python tooling/common/check_kind_namespacing.py diff --git a/.github/workflows/smithy-maintenance.yml b/.github/workflows/smithy-maintenance.yml deleted file mode 100644 index 2057b01..0000000 --- a/.github/workflows/smithy-maintenance.yml +++ /dev/null @@ -1,117 +0,0 @@ -name: AWS Smithy extension maintenance - -on: - pull_request: - paths: - - ".github/workflows/smithy-maintenance.yml" - - "catalog/aws/s3/**" - - "tooling/smithy-runtime-conditions/**" - schedule: - - cron: "17 6 * * *" - workflow_dispatch: - inputs: - replay_history: - description: Replay every public S3 model-changing commit and retain the inventory report - required: false - default: false - type: boolean - -permissions: - contents: read - issues: write - -concurrency: - group: aws-smithy-extension-maintenance - cancel-in-progress: false - -jobs: - observe-s3: - runs-on: ubuntu-latest - timeout-minutes: 30 - - steps: - - name: Check out extension semantics - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - path: extensions - - - name: Check out authoritative AWS API models - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - repository: aws/api-models-aws - path: api-models-aws - fetch-depth: 0 - filter: blob:none - sparse-checkout: models/s3 - - - name: Set up Python - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 - with: - python-version: "3.12" - - - name: Install generator prerequisites - run: python -m pip install --disable-pip-version-check -r extensions/tooling/smithy-runtime-conditions/requirements.txt - - - name: Observe authoritative S3 semantics - id: observation - continue-on-error: true - run: | - python extensions/tooling/smithy-runtime-conditions/tools/run_maintenance.py \ - --manifest extensions/catalog/aws/s3/maintenance/smithy.yaml \ - --models-root api-models-aws \ - --extensions-root extensions \ - --output maintenance-evidence/aws-s3 - - - name: Replay historical S3 model changes - if: github.event_name == 'workflow_dispatch' && inputs.replay_history - run: | - python extensions/tooling/smithy-runtime-conditions/tools/replay_history.py \ - --manifest extensions/catalog/aws/s3/maintenance/smithy.yaml \ - --models-root api-models-aws \ - --output maintenance-evidence/aws-s3-history - - - name: Upload maintenance evidence - if: always() - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 - with: - name: aws-s3-smithy-maintenance-${{ github.run_id }} - path: maintenance-evidence/aws-s3 - if-no-files-found: error - retention-days: 90 - - - name: Upload historical inventory - if: github.event_name == 'workflow_dispatch' && inputs.replay_history - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 - with: - name: aws-s3-smithy-history-${{ github.run_id }} - path: maintenance-evidence/aws-s3-history - if-no-files-found: error - retention-days: 90 - - - name: Publish maintenance summary - if: always() && hashFiles('maintenance-evidence/aws-s3/summary.md') != '' - run: cat maintenance-evidence/aws-s3/summary.md >> "$GITHUB_STEP_SUMMARY" - - - name: Create or update focused maintenance issue - if: steps.observation.outcome == 'failure' && github.event_name != 'pull_request' && hashFiles('maintenance-evidence/aws-s3/run.yaml') != '' - env: - GH_TOKEN: ${{ github.token }} - RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - run: | - classification="$(python -c 'import yaml; print(yaml.safe_load(open("maintenance-evidence/aws-s3/run.yaml"))["classification"])')" - fingerprint="$(python -c 'import yaml; print(yaml.safe_load(open("maintenance-evidence/aws-s3/run.yaml"))["source"]["operationNamesSha256"][:12])')" - if [[ "$classification" == "extension-review-required" ]]; then - title="AWS S3 extension semantic review: $fingerprint" - else - title="AWS S3 extension automation failure" - fi - issue="$(gh issue list --state open --search "$title in:title" --json number --jq '.[0].number // empty')" - if [[ -z "$issue" ]]; then - gh issue create --title "$title" --body-file maintenance-evidence/aws-s3/summary.md - else - gh issue comment "$issue" --body "The condition was observed again in [$GITHUB_WORKFLOW run $GITHUB_RUN_NUMBER]($RUN_URL)." - fi - - - name: Enforce maintenance classification - if: steps.observation.outcome == 'failure' - run: exit 1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0e10af7..0a2e04e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,7 +63,6 @@ jobs: python -m pytest -q -p no:cacheprovider catalog/nats/service/tests python -m pytest -q -p no:cacheprovider catalog/rabbitmq/service/tests python -m pytest -q -p no:cacheprovider catalog/rc/cql/tests - python -m pytest -q -p no:cacheprovider tooling/smithy-runtime-conditions/tests orchestrator: name: Go orchestrator tests diff --git a/README.md b/README.md index b23b317..c38c8ab 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ edit (see [EXTENSION_RELEASES.md](EXTENSION_RELEASES.md)). | --- | --- | | [`catalog/`](catalog/) | Every extension definition, as `//` with immutable releases under `releases//` | | [`bindings/`](bindings/) | Generated language declaration packages (Go, Java, Python, TypeScript), written by CI, never by hand | -| [`tooling/`](tooling/) | Maintenance automation: shared checks and helpers (`common/`), binding generation and publication (`extension-bindings/`), the Smithy compiler (`smithy-runtime-conditions/`) | +| [`tooling/`](tooling/) | Maintenance automation: shared checks and helpers (`common/`), binding generation and publication (`extension-bindings/`) | | [`docs/`](docs/) | How-to guides: Go bindings, local validation | ## Extensions @@ -43,7 +43,7 @@ extension; all older releases remain in the tree, immutable: | CQL Keyspace | `https://runtimeconditions.io/extensions/rc/cql/0.1.0/runtimeconditions.extension.yaml` | [`catalog/rc/cql/`](catalog/rc/cql/) | | Source Control | `https://runtimeconditions.io/extensions/source-control/0.1.0/runtimeconditions.extension.yaml` | [`catalog/rc/source-control/`](catalog/rc/source-control/) | | File System | `https://runtimeconditions.io/extensions/rc/file-system/0.2.0/runtimeconditions.extension.yaml` | [`catalog/rc/file-system/`](catalog/rc/file-system/) | -| Amazon S3 | `https://runtimeconditions.io/extensions/aws/s3/0.2.0/runtimeconditions.extension.yaml` | [`catalog/aws/s3/`](catalog/aws/s3/) | +| Amazon S3 | `https://runtimeconditions.io/extensions/aws/s3/0.3.0/runtimeconditions.extension.yaml` | [`catalog/aws/s3/`](catalog/aws/s3/) | | Amazon SQS | `https://runtimeconditions.io/extensions/aws/sqs/0.2.0/runtimeconditions.extension.yaml` | [`catalog/aws/sqs/`](catalog/aws/sqs/) | | AWS Secrets Manager | `https://runtimeconditions.io/extensions/aws/secrets-manager/0.1.0/runtimeconditions.extension.yaml` | [`catalog/aws/secrets-manager/`](catalog/aws/secrets-manager/) | | Kubernetes API | `https://runtimeconditions.io/extensions/kubernetes/api/0.1.0/runtimeconditions.extension.yaml` | [`catalog/kubernetes/api/`](catalog/kubernetes/api/) | diff --git a/SERVICE_OPERATIONS_SEMANTIC_BRIDGES.md b/SERVICE_OPERATIONS_SEMANTIC_BRIDGES.md index 0b6171a..36f7fe8 100644 --- a/SERVICE_OPERATIONS_SEMANTIC_BRIDGES.md +++ b/SERVICE_OPERATIONS_SEMANTIC_BRIDGES.md @@ -23,7 +23,6 @@ The fallback inventory MUST contain service facts only. It does not contain Runt Current examples intentionally use different source kinds: -- Amazon S3 references AWS's public Smithy model directly. - Kubernetes references the authoritative Kubernetes OpenAPI document directly. - NATS references a Service Operations Inventory because this experiment has not identified an adequate single upstream machine-readable operation model. diff --git a/catalog/aws/s3/README.md b/catalog/aws/s3/README.md index b1c7732..c62ec11 100644 --- a/catalog/aws/s3/README.md +++ b/catalog/aws/s3/README.md @@ -1,12 +1,25 @@ -# AWS S3 extension candidate +# AWS S3 extension -## Status +An AWS-specific Runtime Conditions extension for Amazon S3. It describes a +workload that needs an S3 bucket and the S3 API operations it calls. A +downstream adapter may fulfill it with a compatible implementation, but the +vocabulary describes Amazon S3, not a generic object store. -**Authoritative-model maintenance experiment — not yet an AWS-published extension.** +## Usage -This directory contains an AWS-specific Runtime Conditions extension, its externally maintained Service Operations Semantic Bridge, generated language-neutral service mapping, and owner-aligned Python SDK mappings. A downstream adapter may fulfill the requirement with a compatible implementation, but the extension vocabulary describes Amazon S3 rather than a generic object store. +Declare the need in code, here with the Go package +`runtimeconditions.io/x/aws/s3`: -## Condition shape +```go +var _ = s3.AwsS3(s3.Bucket{ + Operations: s3.BucketOperations{ + {Name: s3.BucketOperationsNamePutObject}, + {Name: s3.BucketOperationsNameGetObject}, + }, +}) +``` + +`rc profile generate` turns it into this Condition in the profile: ```yaml kind: aws.s3 @@ -14,58 +27,55 @@ interface: type: bucket operations: - name: PutObject + - name: GetObject ``` -This says that the workload requires an S3 bucket and invokes the canonical S3 `PutObject` operation against it. It does not name the bucket, select an AWS account or Region, prescribe credentials, or declare environment-variable names. - -Service-level operations use `interface.type: service`. `WriteGetObjectResponse` uses `interface.type: object_lambda` because its request route and token context are not an ordinary bucket identity. - -Operation entries identify canonical S3 API operations, not IAM actions. An adapter may translate operations and source-proven request features into permissions, provisioning behavior, and platform-specific bindings. - -## Authoritative semantic source - -AWS's public [`api-models-aws`](https://github.com/aws/api-models-aws) Smithy repository is the authoritative operation source. [`model/service-operations-semantic-bridge.yaml`](model/service-operations-semantic-bridge.yaml) references that source directly and defines only the Runtime Conditions decisions that the Smithy model does not own. - -The compiler under [`../../../tooling/smithy-runtime-conditions`](../../../tooling/smithy-runtime-conditions/) produces both: - -- [`releases/0.1.0/runtimeconditions.extension.yaml`](releases/0.1.0/runtimeconditions.extension.yaml), the immutable `0.1.0` extension semantic release; and -- [`model/generated/s3-service-mapping.yaml`](model/generated/s3-service-mapping.yaml), the language-neutral projection consumed by SDK-language mapping generators. - -The accepted authoritative model contains 112 canonical S3 operations: 108 bucket operations, three service operations, and one Object Lambda response operation. Seven additional Condition templates represent secondary S3 buckets in request inputs. - -The earlier botocore-derived extension listed 116 operations. The four additional names—`GetBucketLifecycle`, `GetBucketNotification`, `PutBucketLifecycle`, and `PutBucketNotification`—are deprecated botocore compatibility surfaces absent from the authoritative Smithy operation closure. They now remain in [`model/botocore-sdk-annotations.yaml`](model/botocore-sdk-annotations.yaml) and resolve to their canonical extension operations instead of expanding extension vocabulary. - -## One extension, many SDK mappings - -The extension does not enumerate supported languages or SDK releases. Each mapping identifies its exact owning distribution version and exact target extension release. - -- [`mappings/botocore/runtimeconditions.sdk-mapping.yaml`](mappings/botocore/runtimeconditions.sdk-mapping.yaml) owns Python low-level client methods, paginators, waiters, and terminal Condition templates. -- [`mappings/s3transfer/runtimeconditions.sdk-mapping.yaml`](mappings/s3transfer/runtimeconditions.sdk-mapping.yaml) owns managed-transfer calls and execution paths. -- [`mappings/boto3/runtimeconditions.sdk-mapping.yaml`](mappings/boto3/runtimeconditions.sdk-mapping.yaml) owns factories, resources, relations, and handwritten wrappers. +This says that the workload requires an S3 bucket and calls the S3 `PutObject` +and `GetObject` operations on it. It does not name the bucket, select an AWS account or Region, +prescribe credentials, or declare environment-variable names. -The tested Python graph contains 116 botocore SDK methods aligned to 112 canonical Smithy operations, eight paginators, four waiters, 18 boto3 resources, 71 resource actions, 37 relations, four collections, six resource waiters, 17 managed-transfer wrapper surfaces, and nine public s3transfer entrypoints. +Service-level operations use `interface.type: service`. `WriteGetObjectResponse` +uses `interface.type: object_lambda`, because its request route and token +context are not an ordinary bucket identity. -An older SDK may use a subset of operations in this extension release. A newer SDK operation that cannot be aligned after applying reviewed SDK compatibility aliases stops with `extension-review-required`. +Operation entries name S3 API operations, not IAM actions. An adapter may +translate operations into permissions, provisioning and platform-specific +bindings. -## Maintenance automation +## Releases -[`maintenance/smithy.yaml`](maintenance/smithy.yaml) declares the authoritative model, semantic bridge, generated release, and accepted service mapping. [`.github/workflows/smithy-maintenance.yml`](../.github/workflows/smithy-maintenance.yml) checks the public model daily, validates pull requests, retains evidence, and creates one deduplicated issue when extension review is required. +Releases live in [`releases/`](releases/) and are written by hand, like the +other extensions in this catalog. Each release is immutable: a change means a +new version. -[`evidence/smithy-history/history.md`](evidence/smithy-history/history.md) inventories the public S3 model history. The first 24 model-changing commits produced six distinct operation inventories and five operation-set transitions, establishing concrete historical extension-review points without claiming that every model-only change is semantically irrelevant. +## Keeping up with AWS -## Human-authored inputs +[`aws-model.yaml`](aws-model.yaml) names the AWS Smithy model this extension +follows, in AWS's public +[`api-models-aws`](https://github.com/aws/api-models-aws) repository. +[`Watch AWS models for new operations`](../../../.github/workflows/aws-model-watch.yml) +runs every day. It compares the operations in that model with the +`interface.operations[].name` values in the newest release, using +[`tooling/common/watch_aws_operations.py`](../../../tooling/common/watch_aws_operations.py). -- [`model/service-operations-semantic-bridge.yaml`](model/service-operations-semantic-bridge.yaml) owns S3 interface classification, resource identity paths, source/destination roles, secondary buckets, extension identity, and the reviewed operation fingerprint while referencing AWS's Smithy model as the operation authority. -- [`model/botocore-sdk-annotations.yaml`](model/botocore-sdk-annotations.yaml) owns deprecated Python SDK compatibility aliases absent from authoritative Smithy vocabulary. -- [`model/boto3-wrapper-annotations.yaml`](model/boto3-wrapper-annotations.yaml) owns handwritten boto3 surfaces absent from its resource model. -- [`model/s3transfer-semantic-annotations.yaml`](model/s3transfer-semantic-annotations.yaml) owns public transfer entrypoints and implementation paths absent from the service model. +When AWS adds or removes an operation, it opens one issue that lists them. If +the difference changes, it updates that issue, and once a new release lists +every operation, it closes it. To act on the issue, write a new release by +hand with the new operations and a short description of each. -Generated YAML is not a line-by-line human review surface. Maintainers review the semantic bridge diff, focused model summary, representative profile changes, and adapter-facing impact. +Only operations are compared. AWS changes documentation, enums and request +fields far more often, and none of that changes what a workload can declare +with this extension. ## Authentication and configuration -Creating or calling an AWS SDK client does not prove a workload-facing environment-variable convention, credential source, Region, account, or endpoint. Those concerns remain absent until application source or a separate additive extension proves a portable requirement. +Creating or calling an AWS SDK client does not show a workload-facing +environment-variable convention, credential source, Region, account or +endpoint. Those stay out of this extension until application source or a +separate extension shows a portable requirement. ## Remaining boundary -Some S3 request shapes refer to KMS keys, IAM roles, SNS topics, SQS queues, Lambda functions, or S3 Tables. Those are potential cross-service Runtime Conditions, but the S3 extension cannot own their vocabulary. They become expressible only after the corresponding extensions and reviewed cross-service bridge mappings exist. +Some S3 requests refer to KMS keys, IAM roles, SNS topics, SQS queues, Lambda +functions or S3 Tables. Those are possible cross-service conditions, but the S3 +extension cannot own their vocabulary. They need their own extensions first. diff --git a/catalog/aws/s3/aws-model.yaml b/catalog/aws/s3/aws-model.yaml new file mode 100644 index 0000000..210431f --- /dev/null +++ b/catalog/aws/s3/aws-model.yaml @@ -0,0 +1,8 @@ +# The AWS model this hand-written extension follows. A daily check +# (.github/workflows/aws-model-watch.yml) compares the operations in this model +# with the operations in the newest release under releases/, and opens an issue +# when AWS adds or removes one. +repository: aws/api-models-aws +path: models/s3/service/2006-03-01/s3-2006-03-01.json +serviceShape: com.amazonaws.s3#AmazonS3 +kind: aws.s3 diff --git a/catalog/aws/s3/docs/api-analysis.md b/catalog/aws/s3/docs/api-analysis.md deleted file mode 100644 index 13d293c..0000000 --- a/catalog/aws/s3/docs/api-analysis.md +++ /dev/null @@ -1,76 +0,0 @@ -# Amazon S3 API analysis - -## Purpose and authoritative source - -This analysis asks one question: what Runtime Condition can an S3 SDK operation truthfully imply before any language-specific mapping is written? - -The canonical service input is AWS's public Smithy model at `models/s3/service/2006-03-01/s3-2006-03-01.json` in [`aws/api-models-aws`](https://github.com/aws/api-models-aws). The accepted model revision, source digest, operation fingerprint, and generated semantic digest are recorded in [`../model/generated/smithy-review.md`](../model/generated/smithy-review.md). - -The accepted Smithy service contains 112 canonical operations. It describes the S3 data-plane and bucket-control API, not the separate S3 Control service. - -botocore 1.43.70 exposes 116 S3 client methods. Four are compatibility aliases for canonical operations that remain in the SDK but are absent from the authoritative service model: - -| SDK operation | Canonical operation | -| --- | --- | -| `GetBucketLifecycle` | `GetBucketLifecycleConfiguration` | -| `GetBucketNotification` | `GetBucketNotificationConfiguration` | -| `PutBucketLifecycle` | `PutBucketLifecycleConfiguration` | -| `PutBucketNotification` | `PutBucketNotificationConfiguration` | - -Those aliases are SDK facts and live in [`../model/botocore-sdk-annotations.yaml`](../model/botocore-sdk-annotations.yaml). They do not expand extension vocabulary. - -## Semantic classification - -The `Bucket` input member alone does not prove that an existing bucket is the runtime dependency. `CreateBucket` accepts a bucket name, but the bucket does not exist before the call. `ListBuckets` and `ListDirectoryBuckets` are also service-scoped. - -The reviewed extension semantics classify the authoritative operations as follows: - -| Runtime demand | Count | Condition | -| --- | ---: | --- | -| Existing bucket is the primary operation target | 108 | `aws.s3` / `bucket` | -| Service-level S3 access | 3 | `aws.s3` / `service` | -| Object Lambda response context | 1 | `aws.s3` / `object_lambda` | - -`WriteGetObjectResponse` passes a transformed object back to an active `GetObject` request through an Object Lambda access point. Its required route and request token are invocation context, not an ordinary bucket identifier, so the extension gives it a distinct interface type. - -This is extension vocabulary. It is not a mapping coverage field, profile diagnostic, or unresolved-observation mechanism. - -## Why operation names are necessary but insufficient - -For the basic case, `PutObject` proves two stable facts: the workload needs an S3 bucket and invokes the canonical `PutObject` operation. The extension records those facts and no more. - -An API operation name is useful to an adapter, but it is not an IAM policy declaration. AWS authorization requirements can vary with request features, encryption choices, endpoint forms, and service behavior. The adapter translates extension semantics into platform-specific permissions; the SDK mapping must not manufacture request facts the application source does not prove. - -Several operations demonstrate why the Smithy model still needs a reviewed Service Operations Semantic Bridge: - -- `CopyObject` and `UploadPartCopy` target a destination bucket and reference a source object through another input path. The mapping emits source and destination bucket templates with explicit roles. -- Bucket configuration calls can contain references to other buckets, KMS keys, IAM roles, SNS topics, SQS queues, or Lambda functions. Those secondary resources are nested request semantics, not consequences of an operation name. -- S3 calls can use bucket names, access points, directory buckets, or other endpoint forms. The SDK method alone does not prove the selected form. - -Incomplete detection remains a concern for application developers, platforms, profilers, and downstream tooling. The mapping does not publish a percentage or an unresolved-observation list. - -## Consequences for the architecture - -1. The extension owns resource scope, canonical operation vocabulary, schemas, and validation. -2. The service mapping projects authoritative Smithy operations and reviewed input paths into extension-owned Condition templates. -3. SDK mappings bind versioned public SDK surfaces to canonical operations and retain SDK-only compatibility aliases. -4. A new or removed authoritative operation stops extension generation until its semantics are reviewed and a new immutable extension release is accepted. -5. An SDK release can change independently without creating a new extension release when it continues to resolve to the same accepted canonical semantics. - -## Secondary S3 buckets - -The generated service mapping contains seven additional conditional bucket templates for S3 references nested outside the primary `Bucket` input: - -| Operation | Secondary bucket purpose | -| --- | --- | -| `CopyObject` | Copy source | -| `UploadPartCopy` | Copy source | -| `PutBucketAnalyticsConfiguration` | Analytics export destination | -| `PutBucketInventoryConfiguration` | Inventory destination | -| `PutBucketLogging` | Logging destination | -| `PutBucketReplication` | Replication destination | -| `RestoreObject` | Select restore output destination | - -These templates are emitted only when the nested input is present and statically identifiable. References to other AWS services require vocabulary owned by their respective extensions. - -[write-response]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_WriteGetObjectResponse.html diff --git a/catalog/aws/s3/docs/design.md b/catalog/aws/s3/docs/design.md deleted file mode 100644 index e2057ff..0000000 --- a/catalog/aws/s3/docs/design.md +++ /dev/null @@ -1,136 +0,0 @@ -# AWS S3 extension design - -## Design priority - -1. An application using a mapped SDK should generate an understandable profile without changing its source. -2. A Condition must say enough for an adapter to make a useful fulfillment decision without claiming facts the source did not prove. -3. Service semantics should be maintained once and reused by every language-specific SDK mapping. -4. SDK and extension releases must be independently maintainable while retaining an exact, mechanically verifiable relationship. -5. Manual declarations remain typed fallback mechanisms when static SDK detection cannot prove a requirement. - -## Layer responsibilities - -| Layer | Owns | Does not own | -| --- | --- | --- | -| AWS S3 extension | S3 kind, interface types, canonical operation vocabulary, schemas, validation, immutable semantic releases | SDK symbols, detection policy, credentials, provisioning | -| Service Operations Semantic Bridge | Reviewed translation from Smithy operations to Condition classification, resource identity paths, roles, and secondary dependencies | SDK-specific aliases and public names | -| Service mapping | Deterministic projection from authoritative Smithy operations to extension Condition templates | New Condition vocabulary, coverage reporting, adapter policy | -| Language SDK mapping | Versioned SDK construction patterns, public symbols, wrappers, and SDK compatibility aliases | Independent S3 semantics | -| Language profiler | Static discovery and profile generation | AWS semantics absent from resolved mappings | -| Adapter | S3 fulfillment, authorization translation, and platform wiring | Reinterpreting invalid extension vocabulary | - -The extension must exist before an SDK mapping can conform to it. The mapping may emit only vocabulary validated by an exact immutable extension release. - -## Condition shape - -`kind` identifies the AWS S3 integration family. `interface.type` identifies the resource-facing surface required by the workload. - -### Existing bucket demand - -```yaml -kind: aws.s3 -interface: - type: bucket - operations: - - name: PutObject -``` - -One Condition represents one distinguishable S3 bucket requirement. `operations[].name` contains canonical S3 API operations invoked against that bucket. The Condition does not carry a concrete runtime bucket name. - -### Service-level demand - -```yaml -kind: aws.s3 -interface: - type: service - operations: - - name: CreateBucket -``` - -This avoids claiming that an existing bucket should be provisioned for code whose purpose is to create buckets. It also covers account-wide listing operations without manufacturing a bucket Condition. - -### Object Lambda response demand - -```yaml -kind: aws.s3 -interface: - type: object_lambda - operations: - - name: WriteGetObjectResponse -``` - -`WriteGetObjectResponse` operates against route and request-token context supplied to an Object Lambda function. The separate interface type preserves that runtime contract. - -## Operation representation - -Canonical S3 operation objects are the selected minimum: - -```yaml -operations: - - name: CopyObject - role: source -``` - -The canonical name is the fact most directly proved by an SDK call. The `role` distinguishes source and destination bucket Conditions only for operations whose reviewed semantics define those roles; generated schemas reject a role on any other operation and require it when an operation such as `CopyObject` would otherwise be ambiguous. Object entries permit future proven request semantics without replacing a string array later. - -Broad capabilities such as `read`, `write`, `list`, and `admin` collapse materially different operations and create another taxonomy for extension authors to maintain. IAM actions are fulfillment instructions and do not map one-to-one to SDK behavior. HTTP methods and routes lose meaning across S3 endpoint forms. Desired features such as versioning or encryption may be useful later, but only when source analysis proves a desired state an adapter can act upon. None is a better primary source fact than the canonical API operation. - -## Authentication and configuration - -Creating an AWS SDK client does not prove `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_REGION`, a bucket environment variable, or any other delivery mechanism. AWS SDKs can use explicit settings, environment variables, shared files, web identity, container or instance providers, and other credential sources with precedence rules. - -Listing every supported setting as optional would still create misleading application inputs and repeat configuration that belongs to a shared SDK client or execution identity. The current decision is therefore not that AWS settings can never be represented; it is that an S3 operation mapping does not prove a settings delivery mechanism. - -A later AWS SDK Configuration extension could describe source-proven SDK settings and identity requirements at the client level. An application declaration could separately describe a workload-specific input such as `UPLOAD_BUCKET`. Both can compose with S3 Conditions without making configuration mandatory for ordinary SDK mapping. - -## Complete service vocabulary versus complete request semantics - -The extension contains the 112 canonical operations in the authoritative AWS Smithy service: - -- 108 operations primarily target an existing bucket; -- `CreateBucket`, `ListBuckets`, and `ListDirectoryBuckets` require the service surface; -- `WriteGetObjectResponse` requires the Object Lambda surface. - -The generated service mapping has 119 Condition templates: one primary template per canonical operation plus seven conditional secondary-bucket templates. - -Some S3 request shapes also reference KMS, IAM, SNS, SQS, Lambda, or S3 Tables resources. Those are real possible runtime dependencies, but an S3 extension cannot own their vocabulary. Complete cross-service request semantics depends on those extensions existing and on source analysis proving the nested values. - -botocore currently adds four deprecated compatibility operation names. Those remain SDK aliases that resolve to canonical operations and do not become extension operations. - -## Identity and aggregation - -The extension validates one Condition, the service mapping identifies where resource identity originates, and the profiler decides static grouping. - -- Two configured clients do not automatically collapse into one Condition. -- One client can address more than one bucket. -- Calls against the same statically identifiable bucket can share a Condition whose operation list is their union. -- A dynamic bucket expression may prevent reliable grouping. -- Concrete bucket names or ARNs remain outside the portable profile. - -Generated `identity` paths are analysis instructions, not profile fields. - -## Release and maintenance contract - -The accepted extension is published at an immutable versioned identifier and carries a semantic digest. The authoritative Smithy revision and source digest are provenance, not the extension's compatibility identity. - -An SDK mapping declares the exact extension identifier, version, and semantic digest it targets. Many SDK mappings and SDK versions can target one extension release. A new SDK release alone does not require a new extension release. A semantic extension change does require a new immutable extension release and regeneration or validation of every mapping that claims compatibility with it. - -Across extensions, a new service operation can map to existing Condition vocabulary without changing the extension. Every SDK release that exposes that operation must still regenerate its language mapping so the new public method references the canonical service operation. For this S3 extension, canonical operation names are deliberately adapter-actionable authorization vocabulary, so adding an S3 operation name normally changes the extension; that S3-specific consequence is not a universal semantic-bridge rule. - -The maintenance lanes are intentionally separate: - -1. The extension lane watches authoritative Smithy model changes and stops for focused semantic review when the accepted semantic bridge no longer covers the model. -2. Each SDK lane watches its own releases, binds public symbols and SDK-only aliases to the accepted canonical service mapping, and stops for SDK-specific review when that binding changes. -3. The join gate rejects an SDK mapping when its canonical operations, input paths, extension identity, or semantic digest do not match the selected extension release. - -## Acceptance criteria - -1. Every authoritative Smithy operation has a reviewed classification and valid identity path. -2. Every selected SDK operation resolves to one canonical extension operation, including declared SDK compatibility aliases. -3. Higher-level SDK mappings reference owner-qualified lower-level behavior without duplicating extension semantics. -4. The unmodified direct-client fixture can ultimately generate one `aws.s3` / `bucket` Condition containing `{name: PutObject}`. -5. Generated profiles contain no invented credentials, environment variables, Region, endpoint, concrete bucket value, coverage field, or unresolved observation. -6. Invalid operations, roles, paths, references, extension identities, or semantic digests fail validation. -7. A Smithy semantic change stops extension maintenance until a maintainer accepts a new immutable extension release. -8. An SDK release with unchanged bindings and semantics regenerates without handwritten changes. -9. No Runtime Conditions runtime dependency is added to an SDK or application. diff --git a/catalog/aws/s3/docs/sdk-author-workflow.md b/catalog/aws/s3/docs/sdk-author-workflow.md deleted file mode 100644 index fbf54a7..0000000 --- a/catalog/aws/s3/docs/sdk-author-workflow.md +++ /dev/null @@ -1,76 +0,0 @@ -# SDK author workflow for the AWS S3 extension - -## Goal - -SDK maintainers should maintain only the behavior their repository owns, reuse existing service and code-generation models, and review concise generated summaries. They should never hand-maintain complete operation tables or generated mapping YAML. - -The Python proof uses three owner-aligned artifacts because boto3, botocore, and s3transfer version and publish different public behavior. An SDK repository that owns all equivalent layers may keep those references within one artifact. - -## Shared service semantics - -AWS's public Smithy model supplies the authoritative S3 operation and shape inventory. [`../model/service-operations-semantic-bridge.yaml`](../model/service-operations-semantic-bridge.yaml) references that model and supplies only Runtime Conditions decisions that cannot be inferred safely: extension identity, default bucket classification, service and Object Lambda exceptions, resource identity paths, source/destination roles, secondary buckets, and the reviewed operation fingerprint. - -The shared compiler generates the immutable extension definition and language-neutral service mapping once. A new SDK language consumes that output and does not reproduce S3 semantics by hand. - -## Python-owned semantics - -[`../model/botocore-sdk-annotations.yaml`](../model/botocore-sdk-annotations.yaml) maps deprecated botocore compatibility methods absent from the authoritative Smithy closure to canonical extension operations. An SDK alias remains SDK metadata and does not expand extension vocabulary. - -[`../model/boto3-wrapper-annotations.yaml`](../model/boto3-wrapper-annotations.yaml) contains only factories, aliases, injected client and resource transfer helpers, transfer-class methods, and handwritten resource loads absent from boto3's resource model. - -[`../model/s3transfer-semantic-annotations.yaml`](../model/s3transfer-semantic-annotations.yaml) contains public transfer entrypoints grouped into logical calls, their argument bindings, receiver-held configuration, classic and CRT implementations, mutually exclusive paths, and conditional canonical operation references. - -Runtime branches remain behavioral mapping facts. They do not become profile coverage fields or unresolved observations; profilers and their callers decide how to handle source that cannot prove a branch. - -## Generated owner graph - -```text -boto3 factory/resource/wrapper - -> botocore client operation or waiter - -> exact AWS S3 extension release - -boto3 managed-transfer wrapper - -> s3transfer logical call and selected execution path - -> botocore client operations - -> exact AWS S3 extension release -``` - -Each mapping records its owning distribution, exact version, and SDK mapping-contract version. The terminal botocore service mapping records the target extension identifier and semantic digest plus the authoritative service-mapping digest; higher-level mappings reach that contract through required owner-qualified dependencies. The complete directed graph is validated recursively. - -## First repository integration - -For each owning distribution, a maintainer would: - -1. Add or adopt the small reviewed semantic bridge for behavior absent from generated service models and SDK annotations for behavior absent from generated SDK models. -2. Enable the Runtime Conditions projection in the repository's existing model or code-generation workflow. -3. Include `runtimeconditions/index.yaml` and `runtimeconditions/mappings/*.yaml` as static package data or in an automatically installed version-aligned companion artifact. -4. Run authoritative-extension alignment, SDK-source, recursive-reference, package, and representative application gates. -5. Review only the authored semantic bridge or SDK annotation diff, focused generated summary, representative profile change, and adapter-facing impact. -6. Publish static metadata through the SDK's normal release lifecycle without adding a Runtime Conditions runtime dependency. - -Application source and runtime behavior remain unchanged. - -## Normal maintenance - -- A package-only release regenerates automatically; distribution versions are derived from immutable source rather than maintained in the semantic bridge or SDK annotations. -- A Smithy operation or resource-semantic change is routed as `extension-review-required` before an SDK mapping update can be accepted. -- A generated language spelling or model-surface change updates mechanically and is checked against exact source. -- A handwritten wrapper signature, delegate, or implementation-path change is routed as `sdk-review-required` with the affected SDK annotation and source diagnostic. -- An automation or unsupported-input failure is `invalid` and is not counted as extension- or SDK-maintainer work. -- Repeated observations of one semantic fingerprint are deduplicated into one maintenance item. - -An older SDK may map a subset of operations defined by an additive extension release. The extension never lists every consuming language or SDK version, and maintainers never maintain a Cartesian compatibility matrix. - -## Application developer experience - -The application developer uses and versions the SDK normally, runs the language profiler locally or in CI, and reviews the generated profile when desired. Recognized SDK calls require no Runtime Conditions dependency, mapping file, evidence file, compatibility lock, or source annotation. - -When mapping metadata is absent or static detection is incomplete, extension-provided no-op declarations and project-local overrides remain the escape hatches. Application developers are not asked to become SDK mapping authors. - -## Decisions outside SDK mapping authorship - -SDK mappings do not decide how incomplete detection is handled, whether CI accepts a profile, what an adapter provisions, how IAM is rendered, which credential source is used, which Region or account is selected, which environment variables exist, or which compatible provider implementation fulfills a Condition. - -## Current proof boundary - -Authoritative Smithy generation, immutable extension identity, Python owner alignment, local packaging, static discovery, recursive validation, and unchanged application fixtures are implemented. The Python profiler now consumes the three owner mappings across all seven applications without adding SDK annotations or application declarations; the exact supported constructs and incomplete-source decisions remain an experimental consumer contract rather than a cross-language standard. diff --git a/catalog/aws/s3/docs/validation.md b/catalog/aws/s3/docs/validation.md deleted file mode 100644 index e215cd3..0000000 --- a/catalog/aws/s3/docs/validation.md +++ /dev/null @@ -1,71 +0,0 @@ -# Validation record - -## Authoritative extension generation - -The external compiler reads AWS's public Smithy JSON AST model for `com.amazonaws.s3#AmazonS3`, applies the reviewed Service Operations Semantic Bridge, validates every Condition identity path through authoritative shapes, verifies the reviewed operation fingerprint, and emits deterministic extension and service-mapping artifacts. - -The accepted source is the S3 model last changed by `aws/api-models-aws` commit `073f307ee1fd0acea67b706ddbd4ad5437c67eb8`. The model SHA-256 is `6975caa92319bf6c1fc2fdea7b3f64f9b9aca6d9b32edeccf086796338842e5a`. - -```text -Smithy service shape: com.amazonaws.s3#AmazonS3 -service version: 2006-03-01 -canonical operations: 112 -operation-name SHA-256: 209771cb0915567090f615e18dacf594436fc6aadc2867f56535ae0db7935436 -Condition templates: 119 -``` - -The extension semantic SHA-256 is `1a505b63d55893c26f3ffe6cf3cd9f90f0b5bd7975fabe47ff444a3ed1e13c72`. The generated release records the source repository, exact S3-changing commit, model path and digest, Smithy version, service shape, and service version. Operation schemas validate name-and-role pairs rather than independent global enums: for example, `PutObject` rejects a `source` role while `CopyObject` requires either `source` or `destination`. - -## Authoritative versus SDK operations - -Botocore 1.43.70 exposes 116 S3 client methods. Four are deprecated compatibility operations absent from the authoritative Smithy service closure. Reviewed SDK annotations map them to canonical extension operations: - -| Botocore operation | Canonical extension operation | -| --- | --- | -| `GetBucketLifecycle` | `GetBucketLifecycleConfiguration` | -| `GetBucketNotification` | `GetBucketNotificationConfiguration` | -| `PutBucketLifecycle` | `PutBucketLifecycleConfiguration` | -| `PutBucketNotification` | `PutBucketNotificationConfiguration` | - -SDK-to-extension alignment validates all 116 methods, 112 canonical operations, four aliases, and every Condition identity path against the botocore source model. - -## Owner-aligned mapping validation - -Static recursive validation checks unique mapping identities, declared dependencies, operation/waiter/call references, extension release identity and semantic digest, canonical Condition operations, client method projection, and dependency cycles. - -```text -recursive SDK mapping validation passed -dependency order: - botocore: botocore.aws.s3 - s3transfer: s3transfer.aws.s3 - boto3: boto3.aws.s3 -``` - -Pinned source validation checks exact distribution versions, the 116-to-112 operation projection, Python spellings, boto3 resource inventory, handwritten signatures and delegates, s3transfer public entrypoints, receiver bindings, and implementation operation sets. - -```text -pinned SDK source validation passed - botocore SDK methods: 116 - canonical Smithy operations: 112 - boto3 handwritten wrapper surfaces: 17 - boto3 modeled resources: 18 - s3transfer public entrypoints: 9 - s3transfer distinct canonical operations: 19 -``` - -## Historical Smithy evidence - -The public repository contains 24 commits that changed the S3 model between May 2025 and August 2026. They produced six distinct operation inventories and five operation-set transitions. The exact commits and additions are retained in [`../evidence/smithy-history/history.md`](../evidence/smithy-history/history.md). - -Every operation-set transition is a required extension-semantic review point. A model-only change is not automatically declared safe; the compiler also checks all reviewed shape paths and classifications against the selected model. - -## Installed package proof - -The existing Python packaging proof stages the owner mappings into local boto3, botocore, and s3transfer source trees, builds wheels without publishing to a registry, discovers the mappings through package metadata without SDK imports, validates the installed dependency closure, resolves representative recursive paths, and runs unchanged application fixtures. - -## Remaining limitations - -- The semantic-bridge compiler and normalized service-mapping contract are implemented externally but not yet packaged as a JVM `SmithyBuildPlugin` for AWS-owned integration. -- Cross-service request dependencies remain blocked until their target extensions and reviewed bridge mappings exist. -- Python profiler consumption is proved for the seven accepted AWS fixtures, while paginator, collection, transfer-class, and precise runtime-path selection remain outside that proof. -- Historical model inventory measures review opportunities; maintainer interview evidence is still required to measure the human cost of each semantic interruption. diff --git a/catalog/aws/s3/evidence/smithy-history/history.md b/catalog/aws/s3/evidence/smithy-history/history.md deleted file mode 100644 index 7dff39e..0000000 --- a/catalog/aws/s3/evidence/smithy-history/history.md +++ /dev/null @@ -1,32 +0,0 @@ -# Historical Smithy inventory: aws-s3 - -The authoritative repository contains 24 commits that changed the selected service model, producing 6 distinct operation inventories and 5 operation-set transitions after the first observed model. - -An operation-set transition is a required extension-semantic review point, not proof that every model-only change is automatically safe. Shape-level semantic classification is performed by the extension compiler against the reviewed Service Operations Semantic Bridge. - -| Date | Commit | Operations | Inventory change | Added | Removed | Fingerprint | -| --- | --- | ---: | --- | --- | --- | --- | -| 2025-05-20 | `6f26559e03b7` | 98 | initial | none | none | `88a8be162a49` | -| 2025-05-29 | `2e6422bbd854` | 98 | model-only-change | none | none | `88a8be162a49` | -| 2025-06-18 | `d725267ae45c` | 99 | operation-set-change | RenameObject | none | `dabc246b4ad7` | -| 2025-06-25 | `7e2048362f27` | 99 | model-only-change | none | none | `dabc246b4ad7` | -| 2025-07-02 | `0550b30ff224` | 99 | model-only-change | none | none | `dabc246b4ad7` | -| 2025-07-15 | `6e2498bebce9` | 104 | operation-set-change | CreateBucketMetadataConfiguration, DeleteBucketMetadataConfiguration, GetBucketMetadataConfiguration, UpdateBucketMetadataInventoryTableConfiguration, UpdateBucketMetadataJournalTableConfiguration | none | `768be92c4e6f` | -| 2025-09-08 | `9c9dd620e254` | 104 | model-only-change | none | none | `768be92c4e6f` | -| 2025-10-28 | `8f5ae54050ea` | 104 | model-only-change | none | none | `768be92c4e6f` | -| 2025-11-05 | `f622f1d5f018` | 104 | model-only-change | none | none | `768be92c4e6f` | -| 2025-11-19 | `37191a6a09ea` | 104 | model-only-change | none | none | `768be92c4e6f` | -| 2025-11-20 | `f616e74014ef` | 106 | operation-set-change | GetBucketAbac, PutBucketAbac | none | `db33480f4123` | -| 2025-12-02 | `e92ce0e47f33` | 106 | model-only-change | none | none | `db33480f4123` | -| 2025-12-15 | `a32d0009c460` | 106 | model-only-change | none | none | `db33480f4123` | -| 2025-12-23 | `47f3abf53e24` | 106 | model-only-change | none | none | `db33480f4123` | -| 2026-01-28 | `b51b62b3f664` | 107 | operation-set-change | UpdateObjectEncryption | none | `0f15e8c8a985` | -| 2026-03-12 | `b5f7a95adf58` | 107 | model-only-change | none | none | `0f15e8c8a985` | -| 2026-03-31 | `b76eca3ebd0d` | 107 | model-only-change | none | none | `0f15e8c8a985` | -| 2026-04-07 | `3b185fe13f91` | 107 | model-only-change | none | none | `0f15e8c8a985` | -| 2026-04-22 | `f7595fe81fd4` | 107 | model-only-change | none | none | `0f15e8c8a985` | -| 2026-05-06 | `e5749099f0cd` | 107 | model-only-change | none | none | `0f15e8c8a985` | -| 2026-06-02 | `87480db7ee4b` | 107 | model-only-change | none | none | `0f15e8c8a985` | -| 2026-06-16 | `56c1055a791d` | 112 | operation-set-change | DeleteObjectAnnotation, GetObjectAnnotation, ListObjectAnnotations, PutObjectAnnotation, UpdateBucketMetadataAnnotationTableConfiguration | none | `209771cb0915` | -| 2026-07-16 | `61d7b25d8cc3` | 112 | model-only-change | none | none | `209771cb0915` | -| 2026-08-06 | `073f307ee1fd` | 112 | model-only-change | none | none | `209771cb0915` | diff --git a/catalog/aws/s3/evidence/smithy-history/history.yaml b/catalog/aws/s3/evidence/smithy-history/history.yaml deleted file mode 100644 index 2152a6d..0000000 --- a/catalog/aws/s3/evidence/smithy-history/history.yaml +++ /dev/null @@ -1,209 +0,0 @@ -schemaVersion: 1 -experiment: aws-s3 -observations: -- commit: 6f26559e03b798f73140c7e97c897d883fd30ab0 - date: '2025-05-20T09:13:44-07:00' - modelSha256: d826d929f027c113fa8d33467ec1050307b3fd1b2e2aedf980e05ca03ac90af8 - operationCount: 98 - operationNamesSha256: 88a8be162a49d9b8b9a31110d4542c8cda3e81d65ae106d940f4dc1d71f2fb68 - change: initial - added: [] - removed: [] -- commit: 2e6422bbd85463d1af8eed57cb278db14e33554f - date: '2025-05-29T16:24:01-07:00' - modelSha256: 94e4555d27c41f8a8f44576249b7b9e2cc5f8906a80c96a4d380add32b63747f - operationCount: 98 - operationNamesSha256: 88a8be162a49d9b8b9a31110d4542c8cda3e81d65ae106d940f4dc1d71f2fb68 - change: model-only-change - added: [] - removed: [] -- commit: d725267ae45ca1743a5303da3bad408096e0dbde - date: '2025-06-18T18:50:19Z' - modelSha256: 1bebecbf6c81ae377c1f7945ce02ef0d1aca6e3ad84967d7889185bcaae880f8 - operationCount: 99 - operationNamesSha256: dabc246b4ad71ef249789e64d270af991142ce26ad34877028d93be63895ac7d - change: operation-set-change - added: - - RenameObject - removed: [] -- commit: 7e2048362f27c8eb0cb2dc913a7c53db72cbdaf6 - date: '2025-06-25T18:12:39Z' - modelSha256: a41eac5a280fd9355ccc2dfa282b61b90de2a4392e87e5d355d7182c6f7b5681 - operationCount: 99 - operationNamesSha256: dabc246b4ad71ef249789e64d270af991142ce26ad34877028d93be63895ac7d - change: model-only-change - added: [] - removed: [] -- commit: 0550b30ff224c289d40c637488d24b4cfc2b3a80 - date: '2025-07-02T18:04:38Z' - modelSha256: 0caf42dc4e3ba0577937f83e0d6db5052c183c45512dfa88dd1970038595b222 - operationCount: 99 - operationNamesSha256: dabc246b4ad71ef249789e64d270af991142ce26ad34877028d93be63895ac7d - change: model-only-change - added: [] - removed: [] -- commit: 6e2498bebce9e7d864013426fedbaa366ffff1b9 - date: '2025-07-15T18:09:30Z' - modelSha256: e30d007e61126e52a8b907f569a953744a8d8c5824c9e4a0796d3f47779955db - operationCount: 104 - operationNamesSha256: 768be92c4e6fa882263cd5688449735d546a08a03625f956530db3c513971c9c - change: operation-set-change - added: - - CreateBucketMetadataConfiguration - - DeleteBucketMetadataConfiguration - - GetBucketMetadataConfiguration - - UpdateBucketMetadataInventoryTableConfiguration - - UpdateBucketMetadataJournalTableConfiguration - removed: [] -- commit: 9c9dd620e2541b82f34ac5d52d73625b753f80a8 - date: '2025-09-08T18:37:09Z' - modelSha256: 061532bee5010bdfefd584b8eef47bd2b0d8215f1cd8ef77fe6cbae43cb31f39 - operationCount: 104 - operationNamesSha256: 768be92c4e6fa882263cd5688449735d546a08a03625f956530db3c513971c9c - change: model-only-change - added: [] - removed: [] -- commit: 8f5ae54050eadc15d7ba5387ace573fb5a196b7d - date: '2025-10-28T18:12:18Z' - modelSha256: f03ba0a5521c79fa02f5dc8ca1a484a7f0666b93381911ce735fce04f600a5dc - operationCount: 104 - operationNamesSha256: 768be92c4e6fa882263cd5688449735d546a08a03625f956530db3c513971c9c - change: model-only-change - added: [] - removed: [] -- commit: f622f1d5f018e4617cdc14766c3113b6a960703a - date: '2025-11-05T19:09:00Z' - modelSha256: b3dd1c2ad32297df0a87427a68b16b7d845b4cdd278c1738947e07eaab78e05d - operationCount: 104 - operationNamesSha256: 768be92c4e6fa882263cd5688449735d546a08a03625f956530db3c513971c9c - change: model-only-change - added: [] - removed: [] -- commit: 37191a6a09ea18c996cc10b45082f755b8d46470 - date: '2025-11-19T19:08:05Z' - modelSha256: 19cee9307aa171c7f1cb56d9f2ce7dccfca07f7e0cd782e1c226051374eabb11 - operationCount: 104 - operationNamesSha256: 768be92c4e6fa882263cd5688449735d546a08a03625f956530db3c513971c9c - change: model-only-change - added: [] - removed: [] -- commit: f616e74014ef06e23980452745a36dafb510f1c9 - date: '2025-11-20T19:09:07Z' - modelSha256: cae4cbac54a090209993c34b17f9dab73985ceae2b6cc9eca1b7e2f479994525 - operationCount: 106 - operationNamesSha256: db33480f41233c72834c3a1031cc2e46c611e705fc730ee58ca899df0dd5e17c - change: operation-set-change - added: - - GetBucketAbac - - PutBucketAbac - removed: [] -- commit: e92ce0e47f33fc32e7fbc61e9ec8f8abf862b623 - date: '2025-12-02T16:02:45Z' - modelSha256: b1237c0320f4f8781ff409bf1176f5aa8357549e5e59419273524f5269f4ae3a - operationCount: 106 - operationNamesSha256: db33480f41233c72834c3a1031cc2e46c611e705fc730ee58ca899df0dd5e17c - change: model-only-change - added: [] - removed: [] -- commit: a32d0009c4609e29d37b55e698544ce7de36c439 - date: '2025-12-15T19:07:50Z' - modelSha256: 2945ab17e5157363eb9ba4616afbf9a7f94f670d3341d0ae6cd857340fa0496e - operationCount: 106 - operationNamesSha256: db33480f41233c72834c3a1031cc2e46c611e705fc730ee58ca899df0dd5e17c - change: model-only-change - added: [] - removed: [] -- commit: 47f3abf53e247e97b8d3110d5a1737bfcfddec08 - date: '2025-12-23T19:20:29Z' - modelSha256: a5987a689ad8e1f29bb497183a16109910609c3239cf152cdfa90babce02d92c - operationCount: 106 - operationNamesSha256: db33480f41233c72834c3a1031cc2e46c611e705fc730ee58ca899df0dd5e17c - change: model-only-change - added: [] - removed: [] -- commit: b51b62b3f664f7a980d2ff98501dcab069192176 - date: '2026-01-28T19:16:48Z' - modelSha256: 0abf68a3fc82573ded95e51373e32a081bd866d6b7d05518b795f2402a20fa52 - operationCount: 107 - operationNamesSha256: 0f15e8c8a985bc0e8bd1708b410face60525d586e6a275d94484354a490f5291 - change: operation-set-change - added: - - UpdateObjectEncryption - removed: [] -- commit: b5f7a95adf58f273d84674b287701b2a8f7d3810 - date: '2026-03-12T18:15:25Z' - modelSha256: 440e557d4ee199da321c456416b37ff74480494f4a7b2407f4ae562307410f2a - operationCount: 107 - operationNamesSha256: 0f15e8c8a985bc0e8bd1708b410face60525d586e6a275d94484354a490f5291 - change: model-only-change - added: [] - removed: [] -- commit: b76eca3ebd0d0f336ca4a672be0055010e23cdb6 - date: '2026-03-31T18:11:49Z' - modelSha256: 4967f63f96f2957d99a5099097147941fb72c869a182645b4f55a6b9124ff9ff - operationCount: 107 - operationNamesSha256: 0f15e8c8a985bc0e8bd1708b410face60525d586e6a275d94484354a490f5291 - change: model-only-change - added: [] - removed: [] -- commit: 3b185fe13f91df0de7841fee7fac9516cf27f332 - date: '2026-04-07T18:12:41Z' - modelSha256: 48a2943b61938720729b75781b9e92b9482dc9cf7f4dfab643b0da97f7f253ce - operationCount: 107 - operationNamesSha256: 0f15e8c8a985bc0e8bd1708b410face60525d586e6a275d94484354a490f5291 - change: model-only-change - added: [] - removed: [] -- commit: f7595fe81fd4d4734c6619a526fe085e0af21c33 - date: '2026-04-22T18:13:29Z' - modelSha256: b3ae2e02b00db326956c0b8dec84f10f1b58f9b627c6a47f3a2307b20a320056 - operationCount: 107 - operationNamesSha256: 0f15e8c8a985bc0e8bd1708b410face60525d586e6a275d94484354a490f5291 - change: model-only-change - added: [] - removed: [] -- commit: e5749099f0cddf967cc93692f5817e8646fc80ea - date: '2026-05-06T18:28:51Z' - modelSha256: 5b9d8d655ffe78ef9eaa04952cb44a2998d6e8ace77b33161e6b0bd8fb663fd2 - operationCount: 107 - operationNamesSha256: 0f15e8c8a985bc0e8bd1708b410face60525d586e6a275d94484354a490f5291 - change: model-only-change - added: [] - removed: [] -- commit: 87480db7ee4bec827c971dbf0294446591d1b229 - date: '2026-06-02T18:21:26Z' - modelSha256: a57377a3e4a2df2d7d793d0d9dd7d9ceec3e8042701bd3da2931bbf68fbd91c4 - operationCount: 107 - operationNamesSha256: 0f15e8c8a985bc0e8bd1708b410face60525d586e6a275d94484354a490f5291 - change: model-only-change - added: [] - removed: [] -- commit: 56c1055a791ddd2c85cf079ce0d3efafbba642e0 - date: '2026-06-16T18:19:32Z' - modelSha256: 41b2ec5934cd473302a20b1ab16bb1ff6c965886bb39642c6ef81c0e9f458109 - operationCount: 112 - operationNamesSha256: 209771cb0915567090f615e18dacf594436fc6aadc2867f56535ae0db7935436 - change: operation-set-change - added: - - DeleteObjectAnnotation - - GetObjectAnnotation - - ListObjectAnnotations - - PutObjectAnnotation - - UpdateBucketMetadataAnnotationTableConfiguration - removed: [] -- commit: 61d7b25d8cc390475a1d3c566f2aef108b9c44af - date: '2026-07-16T18:07:06Z' - modelSha256: 3d7f95eac05a258236e6edb18525f6706444aa9a73e96789ff23dfea2f57d217 - operationCount: 112 - operationNamesSha256: 209771cb0915567090f615e18dacf594436fc6aadc2867f56535ae0db7935436 - change: model-only-change - added: [] - removed: [] -- commit: 073f307ee1fd0acea67b706ddbd4ad5437c67eb8 - date: '2026-08-06T18:25:40Z' - modelSha256: 6975caa92319bf6c1fc2fdea7b3f64f9b9aca6d9b32edeccf086796338842e5a - operationCount: 112 - operationNamesSha256: 209771cb0915567090f615e18dacf594436fc6aadc2867f56535ae0db7935436 - change: model-only-change - added: [] - removed: [] diff --git a/catalog/aws/s3/maintenance/smithy.yaml b/catalog/aws/s3/maintenance/smithy.yaml deleted file mode 100644 index fa3edfd..0000000 --- a/catalog/aws/s3/maintenance/smithy.yaml +++ /dev/null @@ -1,10 +0,0 @@ -schemaVersion: 1 -id: aws-s3 -source: - repository: https://github.com/aws/api-models-aws.git - path: models/s3/service/2006-03-01/s3-2006-03-01.json - serviceShape: com.amazonaws.s3#AmazonS3 -semanticBridge: catalog/aws/s3/model/service-operations-semantic-bridge.yaml -accepted: - extension: catalog/aws/s3/releases/0.1.0/runtimeconditions.extension.yaml - serviceMapping: catalog/aws/s3/model/generated/s3-service-mapping.yaml diff --git a/catalog/aws/s3/mappings/boto3/README.md b/catalog/aws/s3/mappings/boto3/README.md deleted file mode 100644 index ae2c31c..0000000 --- a/catalog/aws/s3/mappings/boto3/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Generated boto3-owned S3 mapping - -[`runtimeconditions.sdk-mapping.yaml`](runtimeconditions.sdk-mapping.yaml) is generated static metadata for the public S3 behavior owned by boto3 1.43.70. - -It contains top-level and Session client/resource factories, the complete 18-resource S3 construction graph, 71 modeled resource actions, 37 relations, four collections, six resource waiters, five injected client transfer helpers, ten Bucket/Object helpers, and two `boto3.s3.transfer.S3Transfer` methods. - -It deliberately does not copy botocore's canonical operation templates or s3transfer's implementation behavior. Those are independently owned and versioned, and this mapping uses owner-qualified references to the sibling [`botocore`](../botocore/) and [`s3transfer`](../s3transfer/) artifacts. - -Maintainers review the boto3 resource-model diff, [`../../model/boto3-wrapper-annotations.yaml`](../../model/boto3-wrapper-annotations.yaml), source-validation output, and representative resolutions. The generated file is not a line-by-line review surface. - -The local wheel proof, recursive discovery, release-maintenance tools, and seven-application profiler integration live under [`../../../../sdk/authorship/aws-python`](../../../../sdk/authorship/aws-python/). diff --git a/catalog/aws/s3/mappings/boto3/runtimeconditions.sdk-mapping.yaml b/catalog/aws/s3/mappings/boto3/runtimeconditions.sdk-mapping.yaml deleted file mode 100644 index cee16ff..0000000 --- a/catalog/aws/s3/mappings/boto3/runtimeconditions.sdk-mapping.yaml +++ /dev/null @@ -1,2264 +0,0 @@ -apiVersion: runtimeconditions.io/sdk-mapping/v1alpha1 -kind: RuntimeConditionsSDKMapping -metadata: - name: boto3.aws.s3 - distribution: boto3 - distributionVersion: 1.43.70 - language: python - service: s3 - semanticSha256: 0e7942c78cf4d835f8189e62597d907a311422852b929d7fa2c85fcb2a3a8804 -dependencies: -- kind: sdkMapping - distribution: botocore - mapping: botocore.aws.s3 -- kind: sdkMapping - distribution: s3transfer - mapping: s3transfer.aws.s3 -python: - aliases: - - symbol: boto3.Session - target: boto3.session.Session - clientFactories: - - symbols: - - boto3.client - serviceSelector: - position: 0 - keyword: service_name - service: s3 - produces: - distribution: botocore - mapping: botocore.aws.s3 - surface: client - - symbols: - - boto3.Session.client - - boto3.session.Session.client - serviceSelector: - position: 0 - keyword: service_name - service: s3 - produces: - distribution: botocore - mapping: botocore.aws.s3 - surface: client - resourceFactories: - - symbols: - - boto3.resource - serviceSelector: - position: 0 - keyword: service_name - service: s3 - produces: - mapping: boto3.aws.s3 - resource: ServiceResource - - symbols: - - boto3.Session.resource - - boto3.session.Session.resource - serviceSelector: - position: 0 - keyword: service_name - service: s3 - produces: - mapping: boto3.aws.s3 - resource: ServiceResource - clientWrappers: - - method: upload_file - arguments: - fileobj: - position: 0 - keyword: Filename - bucket: - position: 1 - keyword: Bucket - key: - position: 2 - keyword: Key - extraArgs: - position: 3 - keyword: ExtraArgs - config: - position: 5 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-upload - - method: download_file - arguments: - bucket: - position: 0 - keyword: Bucket - key: - position: 1 - keyword: Key - fileobj: - position: 2 - keyword: Filename - extraArgs: - position: 3 - keyword: ExtraArgs - config: - position: 5 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-download - - method: copy - arguments: - copySource: - position: 0 - keyword: CopySource - bucket: - position: 1 - keyword: Bucket - key: - position: 2 - keyword: Key - extraArgs: - position: 3 - keyword: ExtraArgs - sourceClient: - position: 5 - keyword: SourceClient - config: - position: 6 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-copy - - method: upload_fileobj - arguments: - fileobj: - position: 0 - keyword: Fileobj - bucket: - position: 1 - keyword: Bucket - key: - position: 2 - keyword: Key - extraArgs: - position: 3 - keyword: ExtraArgs - config: - position: 5 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-upload - - method: download_fileobj - arguments: - bucket: - position: 0 - keyword: Bucket - key: - position: 1 - keyword: Key - fileobj: - position: 2 - keyword: Fileobj - extraArgs: - position: 3 - keyword: ExtraArgs - config: - position: 5 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-download - transferClassWrappers: - - symbol: boto3.s3.transfer.S3Transfer.upload_file - receiverContext: - constructor: boto3.s3.transfer.S3Transfer - arguments: - config: - position: 1 - keyword: config - arguments: - fileobj: - position: 0 - keyword: filename - bucket: - position: 1 - keyword: bucket - key: - position: 2 - keyword: key - extraArgs: - position: 4 - keyword: extra_args - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-upload - - symbol: boto3.s3.transfer.S3Transfer.download_file - receiverContext: - constructor: boto3.s3.transfer.S3Transfer - arguments: - config: - position: 1 - keyword: config - arguments: - bucket: - position: 0 - keyword: bucket - key: - position: 1 - keyword: key - fileobj: - position: 2 - keyword: filename - extraArgs: - position: 3 - keyword: extra_args - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-download - serviceResource: - name: ServiceResource - identifiers: [] - actions: - - method: create_bucket - modelName: CreateBucket - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CreateBucket - parameterBindings: [] - returns: - resource: Bucket - path: null - identifierBindings: - - target: Name - source: requestParameter - path: Bucket - waiters: [] - relations: - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: input - - member: BucketAcl - modelName: BucketAcl - kind: subresource - resource: BucketAcl - identifierBindings: - - target: BucketName - source: input - - member: BucketCors - modelName: BucketCors - kind: subresource - resource: BucketCors - identifierBindings: - - target: BucketName - source: input - - member: BucketLifecycle - modelName: BucketLifecycle - kind: subresource - resource: BucketLifecycle - identifierBindings: - - target: BucketName - source: input - - member: BucketLifecycleConfiguration - modelName: BucketLifecycleConfiguration - kind: subresource - resource: BucketLifecycleConfiguration - identifierBindings: - - target: BucketName - source: input - - member: BucketLogging - modelName: BucketLogging - kind: subresource - resource: BucketLogging - identifierBindings: - - target: BucketName - source: input - - member: BucketNotification - modelName: BucketNotification - kind: subresource - resource: BucketNotification - identifierBindings: - - target: BucketName - source: input - - member: BucketPolicy - modelName: BucketPolicy - kind: subresource - resource: BucketPolicy - identifierBindings: - - target: BucketName - source: input - - member: BucketRequestPayment - modelName: BucketRequestPayment - kind: subresource - resource: BucketRequestPayment - identifierBindings: - - target: BucketName - source: input - - member: BucketTagging - modelName: BucketTagging - kind: subresource - resource: BucketTagging - identifierBindings: - - target: BucketName - source: input - - member: BucketVersioning - modelName: BucketVersioning - kind: subresource - resource: BucketVersioning - identifierBindings: - - target: BucketName - source: input - - member: BucketWebsite - modelName: BucketWebsite - kind: subresource - resource: BucketWebsite - identifierBindings: - - target: BucketName - source: input - - member: MultipartUpload - modelName: MultipartUpload - kind: subresource - resource: MultipartUpload - identifierBindings: - - target: BucketName - source: input - - target: ObjectKey - source: input - - target: Id - source: input - - member: MultipartUploadPart - modelName: MultipartUploadPart - kind: subresource - resource: MultipartUploadPart - identifierBindings: - - target: BucketName - source: input - - target: ObjectKey - source: input - - target: MultipartUploadId - source: input - - target: PartNumber - source: input - - member: Object - modelName: Object - kind: subresource - resource: Object - identifierBindings: - - target: BucketName - source: input - - target: Key - source: input - - member: ObjectAcl - modelName: ObjectAcl - kind: subresource - resource: ObjectAcl - identifierBindings: - - target: BucketName - source: input - - target: ObjectKey - source: input - - member: ObjectSummary - modelName: ObjectSummary - kind: subresource - resource: ObjectSummary - identifierBindings: - - target: BucketName - source: input - - target: Key - source: input - - member: ObjectVersion - modelName: ObjectVersion - kind: subresource - resource: ObjectVersion - identifierBindings: - - target: BucketName - source: input - - target: ObjectKey - source: input - - target: Id - source: input - collections: - - member: buckets - modelName: Buckets - resource: Bucket - identifierBindings: - - target: Name - source: response - path: Buckets[].Name - batchActions: [] - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: ListBuckets - parameterBindings: [] - responsePath: Buckets[] - wrappers: [] - resources: - - name: Bucket - identifiers: - - name: Name - pythonName: name - actions: - - method: create - modelName: Create - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CreateBucket - parameterBindings: - - target: Bucket - source: identifier - name: Name - - method: delete - modelName: Delete - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteBucket - parameterBindings: - - target: Bucket - source: identifier - name: Name - - method: delete_objects - modelName: DeleteObjects - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteObjects - parameterBindings: - - target: Bucket - source: identifier - name: Name - - method: load - modelName: handwritten - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: ListBuckets - parameterBindings: [] - - method: put_object - modelName: PutObject - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutObject - parameterBindings: - - target: Bucket - source: identifier - name: Name - returns: - resource: Object - path: null - identifierBindings: - - target: BucketName - source: identifier - name: Name - - target: Key - source: requestParameter - path: Key - waiters: - - method: wait_until_exists - waiterRef: - distribution: botocore - mapping: botocore.aws.s3 - waiter: bucket_exists - parameterBindings: - - target: Bucket - source: identifier - name: Name - - method: wait_until_not_exists - waiterRef: - distribution: botocore - mapping: botocore.aws.s3 - waiter: bucket_not_exists - parameterBindings: - - target: Bucket - source: identifier - name: Name - relations: - - member: Acl - modelName: Acl - kind: subresource - resource: BucketAcl - identifierBindings: - - target: BucketName - source: identifier - name: Name - - member: Cors - modelName: Cors - kind: subresource - resource: BucketCors - identifierBindings: - - target: BucketName - source: identifier - name: Name - - member: Lifecycle - modelName: Lifecycle - kind: subresource - resource: BucketLifecycle - identifierBindings: - - target: BucketName - source: identifier - name: Name - - member: LifecycleConfiguration - modelName: LifecycleConfiguration - kind: subresource - resource: BucketLifecycleConfiguration - identifierBindings: - - target: BucketName - source: identifier - name: Name - - member: Logging - modelName: Logging - kind: subresource - resource: BucketLogging - identifierBindings: - - target: BucketName - source: identifier - name: Name - - member: Notification - modelName: Notification - kind: subresource - resource: BucketNotification - identifierBindings: - - target: BucketName - source: identifier - name: Name - - member: Object - modelName: Object - kind: subresource - resource: Object - identifierBindings: - - target: BucketName - source: identifier - name: Name - - target: Key - source: input - - member: Policy - modelName: Policy - kind: subresource - resource: BucketPolicy - identifierBindings: - - target: BucketName - source: identifier - name: Name - - member: RequestPayment - modelName: RequestPayment - kind: subresource - resource: BucketRequestPayment - identifierBindings: - - target: BucketName - source: identifier - name: Name - - member: Tagging - modelName: Tagging - kind: subresource - resource: BucketTagging - identifierBindings: - - target: BucketName - source: identifier - name: Name - - member: Versioning - modelName: Versioning - kind: subresource - resource: BucketVersioning - identifierBindings: - - target: BucketName - source: identifier - name: Name - - member: Website - modelName: Website - kind: subresource - resource: BucketWebsite - identifierBindings: - - target: BucketName - source: identifier - name: Name - collections: - - member: multipart_uploads - modelName: MultipartUploads - resource: MultipartUpload - identifierBindings: - - target: BucketName - source: identifier - name: Name - - target: ObjectKey - source: response - path: Uploads[].Key - - target: Id - source: response - path: Uploads[].UploadId - batchActions: [] - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: ListMultipartUploads - parameterBindings: - - target: Bucket - source: identifier - name: Name - responsePath: Uploads[] - - member: object_versions - modelName: ObjectVersions - resource: ObjectVersion - identifierBindings: - - target: BucketName - source: identifier - name: Name - - target: ObjectKey - source: response - path: '[Versions,DeleteMarkers]|[].Key' - - target: Id - source: response - path: '[Versions,DeleteMarkers]|[].VersionId' - batchActions: - - method: delete - modelName: Delete - batch: true - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteObjects - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Delete.Objects[*].Key - source: identifier - name: ObjectKey - - target: Delete.Objects[*].VersionId - source: identifier - name: Id - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: ListObjectVersions - parameterBindings: - - target: Bucket - source: identifier - name: Name - responsePath: '[Versions,DeleteMarkers]|[]' - - member: objects - modelName: Objects - resource: ObjectSummary - identifierBindings: - - target: BucketName - source: identifier - name: Name - - target: Key - source: response - path: Contents[].Key - batchActions: - - method: delete - modelName: Delete - batch: true - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteObjects - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Delete.Objects[].Key - source: identifier - name: Key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: ListObjects - parameterBindings: - - target: Bucket - source: identifier - name: Name - responsePath: Contents[] - wrappers: - - method: upload_file - receiverArguments: - bucket: Name - arguments: - fileobj: - position: 0 - keyword: Filename - key: - position: 1 - keyword: Key - extraArgs: - position: 2 - keyword: ExtraArgs - config: - position: 4 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-upload - - method: download_file - receiverArguments: - bucket: Name - arguments: - key: - position: 0 - keyword: Key - fileobj: - position: 1 - keyword: Filename - extraArgs: - position: 2 - keyword: ExtraArgs - config: - position: 4 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-download - - method: copy - receiverArguments: - bucket: Name - arguments: - copySource: - position: 0 - keyword: CopySource - key: - position: 1 - keyword: Key - extraArgs: - position: 2 - keyword: ExtraArgs - sourceClient: - position: 4 - keyword: SourceClient - config: - position: 5 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-copy - - method: upload_fileobj - receiverArguments: - bucket: Name - arguments: - fileobj: - position: 0 - keyword: Fileobj - key: - position: 1 - keyword: Key - extraArgs: - position: 2 - keyword: ExtraArgs - config: - position: 4 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-upload - - method: download_fileobj - receiverArguments: - bucket: Name - arguments: - key: - position: 0 - keyword: Key - fileobj: - position: 1 - keyword: Fileobj - extraArgs: - position: 2 - keyword: ExtraArgs - config: - position: 4 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-download - - name: BucketAcl - identifiers: - - name: BucketName - pythonName: bucket_name - actions: - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketAcl - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketAcl - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketAcl - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - waiters: [] - relations: - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - collections: [] - wrappers: [] - - name: BucketCors - identifiers: - - name: BucketName - pythonName: bucket_name - actions: - - method: delete - modelName: Delete - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteBucketCors - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketCors - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketCors - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketCors - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - waiters: [] - relations: - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - collections: [] - wrappers: [] - - name: BucketLifecycle - identifiers: - - name: BucketName - pythonName: bucket_name - actions: - - method: delete - modelName: Delete - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteBucketLifecycle - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketLifecycleConfiguration - sdkOperation: GetBucketLifecycle - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketLifecycleConfiguration - sdkOperation: PutBucketLifecycle - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketLifecycleConfiguration - sdkOperation: GetBucketLifecycle - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - waiters: [] - relations: - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - collections: [] - wrappers: [] - - name: BucketLifecycleConfiguration - identifiers: - - name: BucketName - pythonName: bucket_name - actions: - - method: delete - modelName: Delete - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteBucketLifecycle - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketLifecycleConfiguration - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketLifecycleConfiguration - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketLifecycleConfiguration - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - waiters: [] - relations: - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - collections: [] - wrappers: [] - - name: BucketLogging - identifiers: - - name: BucketName - pythonName: bucket_name - actions: - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketLogging - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketLogging - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketLogging - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - waiters: [] - relations: - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - collections: [] - wrappers: [] - - name: BucketNotification - identifiers: - - name: BucketName - pythonName: bucket_name - actions: - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketNotificationConfiguration - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketNotificationConfiguration - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketNotificationConfiguration - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - waiters: [] - relations: - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - collections: [] - wrappers: [] - - name: BucketPolicy - identifiers: - - name: BucketName - pythonName: bucket_name - actions: - - method: delete - modelName: Delete - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteBucketPolicy - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketPolicy - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketPolicy - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketPolicy - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - waiters: [] - relations: - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - collections: [] - wrappers: [] - - name: BucketRequestPayment - identifiers: - - name: BucketName - pythonName: bucket_name - actions: - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketRequestPayment - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketRequestPayment - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketRequestPayment - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - waiters: [] - relations: - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - collections: [] - wrappers: [] - - name: BucketTagging - identifiers: - - name: BucketName - pythonName: bucket_name - actions: - - method: delete - modelName: Delete - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteBucketTagging - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketTagging - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketTagging - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketTagging - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - waiters: [] - relations: - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - collections: [] - wrappers: [] - - name: BucketVersioning - identifiers: - - name: BucketName - pythonName: bucket_name - actions: - - method: enable - modelName: Enable - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketVersioning - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: VersioningConfiguration.Status - source: string - value: Enabled - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketVersioning - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketVersioning - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketVersioning - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: suspend - modelName: Suspend - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketVersioning - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: VersioningConfiguration.Status - source: string - value: Suspended - waiters: [] - relations: - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - collections: [] - wrappers: [] - - name: BucketWebsite - identifiers: - - name: BucketName - pythonName: bucket_name - actions: - - method: delete - modelName: Delete - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteBucketWebsite - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketWebsite - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutBucketWebsite - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetBucketWebsite - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - waiters: [] - relations: - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - collections: [] - wrappers: [] - - name: MultipartUpload - identifiers: - - name: BucketName - pythonName: bucket_name - - name: ObjectKey - pythonName: object_key - - name: Id - pythonName: id - actions: - - method: abort - modelName: Abort - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: AbortMultipartUpload - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - - target: UploadId - source: identifier - name: Id - - method: complete - modelName: Complete - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CompleteMultipartUpload - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - - target: UploadId - source: identifier - name: Id - returns: - resource: Object - path: null - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - waiters: [] - relations: - - member: Object - modelName: Object - kind: subresource - resource: Object - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - - member: Part - modelName: Part - kind: subresource - resource: MultipartUploadPart - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: ObjectKey - source: identifier - name: ObjectKey - - target: MultipartUploadId - source: identifier - name: Id - - target: PartNumber - source: input - collections: - - member: parts - modelName: Parts - resource: MultipartUploadPart - identifierBindings: - - target: BucketName - source: requestParameter - path: Bucket - - target: ObjectKey - source: requestParameter - path: Key - - target: MultipartUploadId - source: requestParameter - path: UploadId - - target: PartNumber - source: response - path: Parts[].PartNumber - batchActions: [] - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: ListParts - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - - target: UploadId - source: identifier - name: Id - responsePath: Parts[] - wrappers: [] - - name: MultipartUploadPart - identifiers: - - name: BucketName - pythonName: bucket_name - - name: ObjectKey - pythonName: object_key - - name: MultipartUploadId - pythonName: multipart_upload_id - - name: PartNumber - pythonName: part_number - type: integer - memberName: PartNumber - actions: - - method: copy_from - modelName: CopyFrom - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: UploadPartCopy - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - - target: UploadId - source: identifier - name: MultipartUploadId - - target: PartNumber - source: identifier - name: PartNumber - - method: upload - modelName: Upload - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: UploadPart - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - - target: UploadId - source: identifier - name: MultipartUploadId - - target: PartNumber - source: identifier - name: PartNumber - waiters: [] - relations: - - member: MultipartUpload - modelName: MultipartUpload - kind: subresource - resource: MultipartUpload - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: ObjectKey - source: identifier - name: ObjectKey - - target: Id - source: identifier - name: MultipartUploadId - collections: [] - wrappers: [] - - name: Object - identifiers: - - name: BucketName - pythonName: bucket_name - - name: Key - pythonName: key - actions: - - method: copy_from - modelName: CopyFrom - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CopyObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: delete - modelName: Delete - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: get - modelName: Get - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: initiate_multipart_upload - modelName: InitiateMultipartUpload - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CreateMultipartUpload - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - returns: - resource: MultipartUpload - path: null - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: ObjectKey - source: identifier - name: Key - - target: Id - source: response - path: UploadId - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: HeadObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: HeadObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: restore_object - modelName: RestoreObject - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: RestoreObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - waiters: - - method: wait_until_exists - waiterRef: - distribution: botocore - mapping: botocore.aws.s3 - waiter: object_exists - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: wait_until_not_exists - waiterRef: - distribution: botocore - mapping: botocore.aws.s3 - waiter: object_not_exists - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - relations: - - member: Acl - modelName: Acl - kind: subresource - resource: ObjectAcl - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: ObjectKey - source: identifier - name: Key - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - - member: MultipartUpload - modelName: MultipartUpload - kind: subresource - resource: MultipartUpload - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: ObjectKey - source: identifier - name: Key - - target: Id - source: input - - member: Version - modelName: Version - kind: subresource - resource: ObjectVersion - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: ObjectKey - source: identifier - name: Key - - target: Id - source: input - collections: [] - wrappers: - - method: upload_file - receiverArguments: - bucket: BucketName - key: Key - arguments: - fileobj: - position: 0 - keyword: Filename - extraArgs: - position: 1 - keyword: ExtraArgs - config: - position: 3 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-upload - - method: download_file - receiverArguments: - bucket: BucketName - key: Key - arguments: - fileobj: - position: 0 - keyword: Filename - extraArgs: - position: 1 - keyword: ExtraArgs - config: - position: 3 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-download - - method: copy - receiverArguments: - bucket: BucketName - key: Key - arguments: - copySource: - position: 0 - keyword: CopySource - extraArgs: - position: 1 - keyword: ExtraArgs - sourceClient: - position: 3 - keyword: SourceClient - config: - position: 4 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-copy - - method: upload_fileobj - receiverArguments: - bucket: BucketName - key: Key - arguments: - fileobj: - position: 0 - keyword: Fileobj - extraArgs: - position: 1 - keyword: ExtraArgs - config: - position: 3 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-upload - - method: download_fileobj - receiverArguments: - bucket: BucketName - key: Key - arguments: - fileobj: - position: 0 - keyword: Fileobj - extraArgs: - position: 1 - keyword: ExtraArgs - config: - position: 3 - keyword: Config - callRef: - distribution: s3transfer - mapping: s3transfer.aws.s3 - call: managed-download - - name: ObjectAcl - identifiers: - - name: BucketName - pythonName: bucket_name - - name: ObjectKey - pythonName: object_key - actions: - - method: load - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetObjectAcl - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutObjectAcl - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - - method: reload - modelName: load - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetObjectAcl - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - waiters: [] - relations: - - member: Object - modelName: Object - kind: subresource - resource: Object - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - collections: [] - wrappers: [] - - name: ObjectSummary - identifiers: - - name: BucketName - pythonName: bucket_name - - name: Key - pythonName: key - actions: - - method: copy_from - modelName: CopyFrom - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CopyObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: delete - modelName: Delete - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: get - modelName: Get - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: initiate_multipart_upload - modelName: InitiateMultipartUpload - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CreateMultipartUpload - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - returns: - resource: MultipartUpload - path: null - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: ObjectKey - source: identifier - name: Key - - target: Id - source: response - path: UploadId - - method: load - modelName: handwritten - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: HeadObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: put - modelName: Put - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: restore_object - modelName: RestoreObject - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: RestoreObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - waiters: - - method: wait_until_exists - waiterRef: - distribution: botocore - mapping: botocore.aws.s3 - waiter: object_exists - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - method: wait_until_not_exists - waiterRef: - distribution: botocore - mapping: botocore.aws.s3 - waiter: object_not_exists - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - relations: - - member: Acl - modelName: Acl - kind: subresource - resource: ObjectAcl - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: ObjectKey - source: identifier - name: Key - - member: Bucket - modelName: Bucket - kind: subresource - resource: Bucket - identifierBindings: - - target: Name - source: identifier - name: BucketName - - member: MultipartUpload - modelName: MultipartUpload - kind: subresource - resource: MultipartUpload - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: ObjectKey - source: identifier - name: Key - - target: Id - source: input - - member: Object - modelName: Object - kind: subresource - resource: Object - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key - - member: Version - modelName: Version - kind: subresource - resource: ObjectVersion - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: ObjectKey - source: identifier - name: Key - - target: Id - source: input - collections: [] - wrappers: [] - - name: ObjectVersion - identifiers: - - name: BucketName - pythonName: bucket_name - - name: ObjectKey - pythonName: object_key - - name: Id - pythonName: id - actions: - - method: delete - modelName: Delete - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - - target: VersionId - source: identifier - name: Id - - method: get - modelName: Get - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - - target: VersionId - source: identifier - name: Id - - method: head - modelName: Head - batch: false - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: HeadObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - - target: VersionId - source: identifier - name: Id - waiters: [] - relations: - - member: Object - modelName: Object - kind: subresource - resource: Object - identifierBindings: - - target: BucketName - source: identifier - name: BucketName - - target: Key - source: identifier - name: ObjectKey - collections: [] - wrappers: [] diff --git a/catalog/aws/s3/mappings/botocore/README.md b/catalog/aws/s3/mappings/botocore/README.md deleted file mode 100644 index 0515f94..0000000 --- a/catalog/aws/s3/mappings/botocore/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# Generated botocore-owned S3 mapping - -[`runtimeconditions.sdk-mapping.yaml`](runtimeconditions.sdk-mapping.yaml) is generated static metadata for the S3 surface owned by botocore 1.43.70. - -It binds 116 botocore client methods to the 112 canonical operations in the selected AWS S3 extension release, including four declared compatibility aliases. It also contains eight paginator bindings, four waiter bindings, and the 119 canonical Condition templates supplied by the language-neutral service mapping. - -This mapping is the owner-qualified operation target for boto3 resource bindings and s3transfer execution paths. botocore owns it because botocore owns the public low-level client model and versions that behavior independently of boto3. - -The operation semantics come from AWS's authoritative Smithy model and the reviewed Service Operations Semantic Bridge. [`../../model/botocore-sdk-annotations.yaml`](../../model/botocore-sdk-annotations.yaml) contains only botocore-specific compatibility aliases. Maintainers review those compact inputs and generated summaries, not this YAML line by line. diff --git a/catalog/aws/s3/mappings/botocore/runtimeconditions.sdk-mapping.yaml b/catalog/aws/s3/mappings/botocore/runtimeconditions.sdk-mapping.yaml deleted file mode 100644 index 2cf3671..0000000 --- a/catalog/aws/s3/mappings/botocore/runtimeconditions.sdk-mapping.yaml +++ /dev/null @@ -1,1493 +0,0 @@ -apiVersion: runtimeconditions.io/sdk-mapping/v1alpha1 -kind: RuntimeConditionsSDKMapping -metadata: - name: botocore.aws.s3 - distribution: botocore - distributionVersion: 1.43.70 - language: python - service: s3 - serviceId: S3 - serviceShape: com.amazonaws.s3#AmazonS3 - serviceVersion: '2006-03-01' - operationNamesSha256: 209771cb0915567090f615e18dacf594436fc6aadc2867f56535ae0db7935436 - serviceMappingSemanticSha256: 54a92a0dc07c238ac56b125ca74f5bdcafa2741a45afd2440d91723dc865763d - sdkOperationCount: 116 - sdkCanonicalOperationNamesSha256: 209771cb0915567090f615e18dacf594436fc6aadc2867f56535ae0db7935436 - semanticSha256: ca6b8b7d7594dd4ead3ea79c95206db553d8929671ff3b64c4be15a29dee6e36 -dependencies: -- kind: extension - id: https://runtimeconditions.io/extensions/aws/s3/0.1.0/runtimeconditions.extension.yaml - version: 0.1.0 - semanticSha256: 1a505b63d55893c26f3ffe6cf3cd9f90f0b5bd7975fabe47ff444a3ed1e13c72 -extension: - id: https://runtimeconditions.io/extensions/aws/s3/0.1.0/runtimeconditions.extension.yaml - version: 0.1.0 - semanticSha256: 1a505b63d55893c26f3ffe6cf3cd9f90f0b5bd7975fabe47ff444a3ed1e13c72 -operations: -- name: AbortMultipartUpload - shapeId: com.amazonaws.s3#AbortMultipartUpload - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: AbortMultipartUpload - identity: - source: input - path: Bucket -- name: CompleteMultipartUpload - shapeId: com.amazonaws.s3#CompleteMultipartUpload - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: CompleteMultipartUpload - identity: - source: input - path: Bucket -- name: CopyObject - shapeId: com.amazonaws.s3#CopyObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: CopyObject - role: destination - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: CopyObject - role: source - identity: - source: input - path: CopySource - encoding: s3-copy-source - conditional: true -- name: CreateBucket - shapeId: com.amazonaws.s3#CreateBucket - conditions: - - kind: aws.s3 - interfaceType: service - operation: - name: CreateBucket -- name: CreateBucketMetadataConfiguration - shapeId: com.amazonaws.s3#CreateBucketMetadataConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: CreateBucketMetadataConfiguration - identity: - source: input - path: Bucket -- name: CreateBucketMetadataTableConfiguration - shapeId: com.amazonaws.s3#CreateBucketMetadataTableConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: CreateBucketMetadataTableConfiguration - identity: - source: input - path: Bucket -- name: CreateMultipartUpload - shapeId: com.amazonaws.s3#CreateMultipartUpload - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: CreateMultipartUpload - identity: - source: input - path: Bucket -- name: CreateSession - shapeId: com.amazonaws.s3#CreateSession - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: CreateSession - identity: - source: input - path: Bucket -- name: DeleteBucket - shapeId: com.amazonaws.s3#DeleteBucket - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucket - identity: - source: input - path: Bucket -- name: DeleteBucketAnalyticsConfiguration - shapeId: com.amazonaws.s3#DeleteBucketAnalyticsConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketAnalyticsConfiguration - identity: - source: input - path: Bucket -- name: DeleteBucketCors - shapeId: com.amazonaws.s3#DeleteBucketCors - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketCors - identity: - source: input - path: Bucket -- name: DeleteBucketEncryption - shapeId: com.amazonaws.s3#DeleteBucketEncryption - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketEncryption - identity: - source: input - path: Bucket -- name: DeleteBucketIntelligentTieringConfiguration - shapeId: com.amazonaws.s3#DeleteBucketIntelligentTieringConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketIntelligentTieringConfiguration - identity: - source: input - path: Bucket -- name: DeleteBucketInventoryConfiguration - shapeId: com.amazonaws.s3#DeleteBucketInventoryConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketInventoryConfiguration - identity: - source: input - path: Bucket -- name: DeleteBucketLifecycle - shapeId: com.amazonaws.s3#DeleteBucketLifecycle - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketLifecycle - identity: - source: input - path: Bucket -- name: DeleteBucketMetadataConfiguration - shapeId: com.amazonaws.s3#DeleteBucketMetadataConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketMetadataConfiguration - identity: - source: input - path: Bucket -- name: DeleteBucketMetadataTableConfiguration - shapeId: com.amazonaws.s3#DeleteBucketMetadataTableConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketMetadataTableConfiguration - identity: - source: input - path: Bucket -- name: DeleteBucketMetricsConfiguration - shapeId: com.amazonaws.s3#DeleteBucketMetricsConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketMetricsConfiguration - identity: - source: input - path: Bucket -- name: DeleteBucketOwnershipControls - shapeId: com.amazonaws.s3#DeleteBucketOwnershipControls - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketOwnershipControls - identity: - source: input - path: Bucket -- name: DeleteBucketPolicy - shapeId: com.amazonaws.s3#DeleteBucketPolicy - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketPolicy - identity: - source: input - path: Bucket -- name: DeleteBucketReplication - shapeId: com.amazonaws.s3#DeleteBucketReplication - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketReplication - identity: - source: input - path: Bucket -- name: DeleteBucketTagging - shapeId: com.amazonaws.s3#DeleteBucketTagging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketTagging - identity: - source: input - path: Bucket -- name: DeleteBucketWebsite - shapeId: com.amazonaws.s3#DeleteBucketWebsite - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketWebsite - identity: - source: input - path: Bucket -- name: DeleteObject - shapeId: com.amazonaws.s3#DeleteObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteObject - identity: - source: input - path: Bucket -- name: DeleteObjectAnnotation - shapeId: com.amazonaws.s3#DeleteObjectAnnotation - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteObjectAnnotation - identity: - source: input - path: Bucket -- name: DeleteObjectTagging - shapeId: com.amazonaws.s3#DeleteObjectTagging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteObjectTagging - identity: - source: input - path: Bucket -- name: DeleteObjects - shapeId: com.amazonaws.s3#DeleteObjects - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteObjects - identity: - source: input - path: Bucket -- name: DeletePublicAccessBlock - shapeId: com.amazonaws.s3#DeletePublicAccessBlock - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeletePublicAccessBlock - identity: - source: input - path: Bucket -- name: GetBucketAbac - shapeId: com.amazonaws.s3#GetBucketAbac - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketAbac - identity: - source: input - path: Bucket -- name: GetBucketAccelerateConfiguration - shapeId: com.amazonaws.s3#GetBucketAccelerateConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketAccelerateConfiguration - identity: - source: input - path: Bucket -- name: GetBucketAcl - shapeId: com.amazonaws.s3#GetBucketAcl - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketAcl - identity: - source: input - path: Bucket -- name: GetBucketAnalyticsConfiguration - shapeId: com.amazonaws.s3#GetBucketAnalyticsConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketAnalyticsConfiguration - identity: - source: input - path: Bucket -- name: GetBucketCors - shapeId: com.amazonaws.s3#GetBucketCors - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketCors - identity: - source: input - path: Bucket -- name: GetBucketEncryption - shapeId: com.amazonaws.s3#GetBucketEncryption - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketEncryption - identity: - source: input - path: Bucket -- name: GetBucketIntelligentTieringConfiguration - shapeId: com.amazonaws.s3#GetBucketIntelligentTieringConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketIntelligentTieringConfiguration - identity: - source: input - path: Bucket -- name: GetBucketInventoryConfiguration - shapeId: com.amazonaws.s3#GetBucketInventoryConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketInventoryConfiguration - identity: - source: input - path: Bucket -- name: GetBucketLifecycleConfiguration - shapeId: com.amazonaws.s3#GetBucketLifecycleConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketLifecycleConfiguration - identity: - source: input - path: Bucket -- name: GetBucketLocation - shapeId: com.amazonaws.s3#GetBucketLocation - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketLocation - identity: - source: input - path: Bucket -- name: GetBucketLogging - shapeId: com.amazonaws.s3#GetBucketLogging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketLogging - identity: - source: input - path: Bucket -- name: GetBucketMetadataConfiguration - shapeId: com.amazonaws.s3#GetBucketMetadataConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketMetadataConfiguration - identity: - source: input - path: Bucket -- name: GetBucketMetadataTableConfiguration - shapeId: com.amazonaws.s3#GetBucketMetadataTableConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketMetadataTableConfiguration - identity: - source: input - path: Bucket -- name: GetBucketMetricsConfiguration - shapeId: com.amazonaws.s3#GetBucketMetricsConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketMetricsConfiguration - identity: - source: input - path: Bucket -- name: GetBucketNotificationConfiguration - shapeId: com.amazonaws.s3#GetBucketNotificationConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketNotificationConfiguration - identity: - source: input - path: Bucket -- name: GetBucketOwnershipControls - shapeId: com.amazonaws.s3#GetBucketOwnershipControls - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketOwnershipControls - identity: - source: input - path: Bucket -- name: GetBucketPolicy - shapeId: com.amazonaws.s3#GetBucketPolicy - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketPolicy - identity: - source: input - path: Bucket -- name: GetBucketPolicyStatus - shapeId: com.amazonaws.s3#GetBucketPolicyStatus - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketPolicyStatus - identity: - source: input - path: Bucket -- name: GetBucketReplication - shapeId: com.amazonaws.s3#GetBucketReplication - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketReplication - identity: - source: input - path: Bucket -- name: GetBucketRequestPayment - shapeId: com.amazonaws.s3#GetBucketRequestPayment - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketRequestPayment - identity: - source: input - path: Bucket -- name: GetBucketTagging - shapeId: com.amazonaws.s3#GetBucketTagging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketTagging - identity: - source: input - path: Bucket -- name: GetBucketVersioning - shapeId: com.amazonaws.s3#GetBucketVersioning - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketVersioning - identity: - source: input - path: Bucket -- name: GetBucketWebsite - shapeId: com.amazonaws.s3#GetBucketWebsite - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketWebsite - identity: - source: input - path: Bucket -- name: GetObject - shapeId: com.amazonaws.s3#GetObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObject - identity: - source: input - path: Bucket -- name: GetObjectAcl - shapeId: com.amazonaws.s3#GetObjectAcl - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectAcl - identity: - source: input - path: Bucket -- name: GetObjectAnnotation - shapeId: com.amazonaws.s3#GetObjectAnnotation - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectAnnotation - identity: - source: input - path: Bucket -- name: GetObjectAttributes - shapeId: com.amazonaws.s3#GetObjectAttributes - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectAttributes - identity: - source: input - path: Bucket -- name: GetObjectLegalHold - shapeId: com.amazonaws.s3#GetObjectLegalHold - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectLegalHold - identity: - source: input - path: Bucket -- name: GetObjectLockConfiguration - shapeId: com.amazonaws.s3#GetObjectLockConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectLockConfiguration - identity: - source: input - path: Bucket -- name: GetObjectRetention - shapeId: com.amazonaws.s3#GetObjectRetention - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectRetention - identity: - source: input - path: Bucket -- name: GetObjectTagging - shapeId: com.amazonaws.s3#GetObjectTagging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectTagging - identity: - source: input - path: Bucket -- name: GetObjectTorrent - shapeId: com.amazonaws.s3#GetObjectTorrent - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectTorrent - identity: - source: input - path: Bucket -- name: GetPublicAccessBlock - shapeId: com.amazonaws.s3#GetPublicAccessBlock - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetPublicAccessBlock - identity: - source: input - path: Bucket -- name: HeadBucket - shapeId: com.amazonaws.s3#HeadBucket - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: HeadBucket - identity: - source: input - path: Bucket -- name: HeadObject - shapeId: com.amazonaws.s3#HeadObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: HeadObject - identity: - source: input - path: Bucket -- name: ListBucketAnalyticsConfigurations - shapeId: com.amazonaws.s3#ListBucketAnalyticsConfigurations - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListBucketAnalyticsConfigurations - identity: - source: input - path: Bucket -- name: ListBucketIntelligentTieringConfigurations - shapeId: com.amazonaws.s3#ListBucketIntelligentTieringConfigurations - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListBucketIntelligentTieringConfigurations - identity: - source: input - path: Bucket -- name: ListBucketInventoryConfigurations - shapeId: com.amazonaws.s3#ListBucketInventoryConfigurations - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListBucketInventoryConfigurations - identity: - source: input - path: Bucket -- name: ListBucketMetricsConfigurations - shapeId: com.amazonaws.s3#ListBucketMetricsConfigurations - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListBucketMetricsConfigurations - identity: - source: input - path: Bucket -- name: ListBuckets - shapeId: com.amazonaws.s3#ListBuckets - conditions: - - kind: aws.s3 - interfaceType: service - operation: - name: ListBuckets -- name: ListDirectoryBuckets - shapeId: com.amazonaws.s3#ListDirectoryBuckets - conditions: - - kind: aws.s3 - interfaceType: service - operation: - name: ListDirectoryBuckets -- name: ListMultipartUploads - shapeId: com.amazonaws.s3#ListMultipartUploads - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListMultipartUploads - identity: - source: input - path: Bucket -- name: ListObjectAnnotations - shapeId: com.amazonaws.s3#ListObjectAnnotations - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListObjectAnnotations - identity: - source: input - path: Bucket -- name: ListObjectVersions - shapeId: com.amazonaws.s3#ListObjectVersions - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListObjectVersions - identity: - source: input - path: Bucket -- name: ListObjects - shapeId: com.amazonaws.s3#ListObjects - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListObjects - identity: - source: input - path: Bucket -- name: ListObjectsV2 - shapeId: com.amazonaws.s3#ListObjectsV2 - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListObjectsV2 - identity: - source: input - path: Bucket -- name: ListParts - shapeId: com.amazonaws.s3#ListParts - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListParts - identity: - source: input - path: Bucket -- name: PutBucketAbac - shapeId: com.amazonaws.s3#PutBucketAbac - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketAbac - identity: - source: input - path: Bucket -- name: PutBucketAccelerateConfiguration - shapeId: com.amazonaws.s3#PutBucketAccelerateConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketAccelerateConfiguration - identity: - source: input - path: Bucket -- name: PutBucketAcl - shapeId: com.amazonaws.s3#PutBucketAcl - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketAcl - identity: - source: input - path: Bucket -- name: PutBucketAnalyticsConfiguration - shapeId: com.amazonaws.s3#PutBucketAnalyticsConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketAnalyticsConfiguration - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketAnalyticsConfiguration - role: destination - identity: - source: input - path: AnalyticsConfiguration.StorageClassAnalysis.DataExport.Destination.S3BucketDestination.Bucket - conditional: true -- name: PutBucketCors - shapeId: com.amazonaws.s3#PutBucketCors - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketCors - identity: - source: input - path: Bucket -- name: PutBucketEncryption - shapeId: com.amazonaws.s3#PutBucketEncryption - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketEncryption - identity: - source: input - path: Bucket -- name: PutBucketIntelligentTieringConfiguration - shapeId: com.amazonaws.s3#PutBucketIntelligentTieringConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketIntelligentTieringConfiguration - identity: - source: input - path: Bucket -- name: PutBucketInventoryConfiguration - shapeId: com.amazonaws.s3#PutBucketInventoryConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketInventoryConfiguration - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketInventoryConfiguration - role: destination - identity: - source: input - path: InventoryConfiguration.Destination.S3BucketDestination.Bucket - conditional: true -- name: PutBucketLifecycleConfiguration - shapeId: com.amazonaws.s3#PutBucketLifecycleConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketLifecycleConfiguration - identity: - source: input - path: Bucket -- name: PutBucketLogging - shapeId: com.amazonaws.s3#PutBucketLogging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketLogging - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketLogging - role: destination - identity: - source: input - path: BucketLoggingStatus.LoggingEnabled.TargetBucket - conditional: true -- name: PutBucketMetricsConfiguration - shapeId: com.amazonaws.s3#PutBucketMetricsConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketMetricsConfiguration - identity: - source: input - path: Bucket -- name: PutBucketNotificationConfiguration - shapeId: com.amazonaws.s3#PutBucketNotificationConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketNotificationConfiguration - identity: - source: input - path: Bucket -- name: PutBucketOwnershipControls - shapeId: com.amazonaws.s3#PutBucketOwnershipControls - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketOwnershipControls - identity: - source: input - path: Bucket -- name: PutBucketPolicy - shapeId: com.amazonaws.s3#PutBucketPolicy - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketPolicy - identity: - source: input - path: Bucket -- name: PutBucketReplication - shapeId: com.amazonaws.s3#PutBucketReplication - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketReplication - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketReplication - role: destination - identity: - source: input - path: ReplicationConfiguration.Rules[].Destination.Bucket - encoding: s3-bucket-arn - conditional: true -- name: PutBucketRequestPayment - shapeId: com.amazonaws.s3#PutBucketRequestPayment - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketRequestPayment - identity: - source: input - path: Bucket -- name: PutBucketTagging - shapeId: com.amazonaws.s3#PutBucketTagging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketTagging - identity: - source: input - path: Bucket -- name: PutBucketVersioning - shapeId: com.amazonaws.s3#PutBucketVersioning - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketVersioning - identity: - source: input - path: Bucket -- name: PutBucketWebsite - shapeId: com.amazonaws.s3#PutBucketWebsite - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketWebsite - identity: - source: input - path: Bucket -- name: PutObject - shapeId: com.amazonaws.s3#PutObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObject - identity: - source: input - path: Bucket -- name: PutObjectAcl - shapeId: com.amazonaws.s3#PutObjectAcl - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObjectAcl - identity: - source: input - path: Bucket -- name: PutObjectAnnotation - shapeId: com.amazonaws.s3#PutObjectAnnotation - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObjectAnnotation - identity: - source: input - path: Bucket -- name: PutObjectLegalHold - shapeId: com.amazonaws.s3#PutObjectLegalHold - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObjectLegalHold - identity: - source: input - path: Bucket -- name: PutObjectLockConfiguration - shapeId: com.amazonaws.s3#PutObjectLockConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObjectLockConfiguration - identity: - source: input - path: Bucket -- name: PutObjectRetention - shapeId: com.amazonaws.s3#PutObjectRetention - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObjectRetention - identity: - source: input - path: Bucket -- name: PutObjectTagging - shapeId: com.amazonaws.s3#PutObjectTagging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObjectTagging - identity: - source: input - path: Bucket -- name: PutPublicAccessBlock - shapeId: com.amazonaws.s3#PutPublicAccessBlock - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutPublicAccessBlock - identity: - source: input - path: Bucket -- name: RenameObject - shapeId: com.amazonaws.s3#RenameObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: RenameObject - identity: - source: input - path: Bucket -- name: RestoreObject - shapeId: com.amazonaws.s3#RestoreObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: RestoreObject - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: RestoreObject - role: destination - identity: - source: input - path: RestoreRequest.OutputLocation.S3.BucketName - conditional: true -- name: SelectObjectContent - shapeId: com.amazonaws.s3#SelectObjectContent - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: SelectObjectContent - identity: - source: input - path: Bucket -- name: UpdateBucketMetadataAnnotationTableConfiguration - shapeId: com.amazonaws.s3#UpdateBucketMetadataAnnotationTableConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: UpdateBucketMetadataAnnotationTableConfiguration - identity: - source: input - path: Bucket -- name: UpdateBucketMetadataInventoryTableConfiguration - shapeId: com.amazonaws.s3#UpdateBucketMetadataInventoryTableConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: UpdateBucketMetadataInventoryTableConfiguration - identity: - source: input - path: Bucket -- name: UpdateBucketMetadataJournalTableConfiguration - shapeId: com.amazonaws.s3#UpdateBucketMetadataJournalTableConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: UpdateBucketMetadataJournalTableConfiguration - identity: - source: input - path: Bucket -- name: UpdateObjectEncryption - shapeId: com.amazonaws.s3#UpdateObjectEncryption - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: UpdateObjectEncryption - identity: - source: input - path: Bucket -- name: UploadPart - shapeId: com.amazonaws.s3#UploadPart - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: UploadPart - identity: - source: input - path: Bucket -- name: UploadPartCopy - shapeId: com.amazonaws.s3#UploadPartCopy - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: UploadPartCopy - role: destination - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: UploadPartCopy - role: source - identity: - source: input - path: CopySource - encoding: s3-copy-source - conditional: true -- name: WriteGetObjectResponse - shapeId: com.amazonaws.s3#WriteGetObjectResponse - conditions: - - kind: aws.s3 - interfaceType: object_lambda - operation: - name: WriteGetObjectResponse - identity: - source: input - path: RequestRoute -python: - client: - surface: botocore.client.s3 - methods: - - method: abort_multipart_upload - operation: AbortMultipartUpload - - method: complete_multipart_upload - operation: CompleteMultipartUpload - - method: copy_object - operation: CopyObject - - method: create_bucket - operation: CreateBucket - - method: create_bucket_metadata_configuration - operation: CreateBucketMetadataConfiguration - - method: create_bucket_metadata_table_configuration - operation: CreateBucketMetadataTableConfiguration - - method: create_multipart_upload - operation: CreateMultipartUpload - - method: create_session - operation: CreateSession - - method: delete_bucket - operation: DeleteBucket - - method: delete_bucket_analytics_configuration - operation: DeleteBucketAnalyticsConfiguration - - method: delete_bucket_cors - operation: DeleteBucketCors - - method: delete_bucket_encryption - operation: DeleteBucketEncryption - - method: delete_bucket_intelligent_tiering_configuration - operation: DeleteBucketIntelligentTieringConfiguration - - method: delete_bucket_inventory_configuration - operation: DeleteBucketInventoryConfiguration - - method: delete_bucket_lifecycle - operation: DeleteBucketLifecycle - - method: delete_bucket_metadata_configuration - operation: DeleteBucketMetadataConfiguration - - method: delete_bucket_metadata_table_configuration - operation: DeleteBucketMetadataTableConfiguration - - method: delete_bucket_metrics_configuration - operation: DeleteBucketMetricsConfiguration - - method: delete_bucket_ownership_controls - operation: DeleteBucketOwnershipControls - - method: delete_bucket_policy - operation: DeleteBucketPolicy - - method: delete_bucket_replication - operation: DeleteBucketReplication - - method: delete_bucket_tagging - operation: DeleteBucketTagging - - method: delete_bucket_website - operation: DeleteBucketWebsite - - method: delete_object - operation: DeleteObject - - method: delete_object_annotation - operation: DeleteObjectAnnotation - - method: delete_object_tagging - operation: DeleteObjectTagging - - method: delete_objects - operation: DeleteObjects - - method: delete_public_access_block - operation: DeletePublicAccessBlock - - method: get_bucket_abac - operation: GetBucketAbac - - method: get_bucket_accelerate_configuration - operation: GetBucketAccelerateConfiguration - - method: get_bucket_acl - operation: GetBucketAcl - - method: get_bucket_analytics_configuration - operation: GetBucketAnalyticsConfiguration - - method: get_bucket_cors - operation: GetBucketCors - - method: get_bucket_encryption - operation: GetBucketEncryption - - method: get_bucket_intelligent_tiering_configuration - operation: GetBucketIntelligentTieringConfiguration - - method: get_bucket_inventory_configuration - operation: GetBucketInventoryConfiguration - - method: get_bucket_lifecycle - sdkOperation: GetBucketLifecycle - operation: GetBucketLifecycleConfiguration - - method: get_bucket_lifecycle_configuration - operation: GetBucketLifecycleConfiguration - - method: get_bucket_location - operation: GetBucketLocation - - method: get_bucket_logging - operation: GetBucketLogging - - method: get_bucket_metadata_configuration - operation: GetBucketMetadataConfiguration - - method: get_bucket_metadata_table_configuration - operation: GetBucketMetadataTableConfiguration - - method: get_bucket_metrics_configuration - operation: GetBucketMetricsConfiguration - - method: get_bucket_notification - sdkOperation: GetBucketNotification - operation: GetBucketNotificationConfiguration - - method: get_bucket_notification_configuration - operation: GetBucketNotificationConfiguration - - method: get_bucket_ownership_controls - operation: GetBucketOwnershipControls - - method: get_bucket_policy - operation: GetBucketPolicy - - method: get_bucket_policy_status - operation: GetBucketPolicyStatus - - method: get_bucket_replication - operation: GetBucketReplication - - method: get_bucket_request_payment - operation: GetBucketRequestPayment - - method: get_bucket_tagging - operation: GetBucketTagging - - method: get_bucket_versioning - operation: GetBucketVersioning - - method: get_bucket_website - operation: GetBucketWebsite - - method: get_object - operation: GetObject - - method: get_object_acl - operation: GetObjectAcl - - method: get_object_annotation - operation: GetObjectAnnotation - - method: get_object_attributes - operation: GetObjectAttributes - - method: get_object_legal_hold - operation: GetObjectLegalHold - - method: get_object_lock_configuration - operation: GetObjectLockConfiguration - - method: get_object_retention - operation: GetObjectRetention - - method: get_object_tagging - operation: GetObjectTagging - - method: get_object_torrent - operation: GetObjectTorrent - - method: get_public_access_block - operation: GetPublicAccessBlock - - method: head_bucket - operation: HeadBucket - - method: head_object - operation: HeadObject - - method: list_bucket_analytics_configurations - operation: ListBucketAnalyticsConfigurations - - method: list_bucket_intelligent_tiering_configurations - operation: ListBucketIntelligentTieringConfigurations - - method: list_bucket_inventory_configurations - operation: ListBucketInventoryConfigurations - - method: list_bucket_metrics_configurations - operation: ListBucketMetricsConfigurations - - method: list_buckets - operation: ListBuckets - - method: list_directory_buckets - operation: ListDirectoryBuckets - - method: list_multipart_uploads - operation: ListMultipartUploads - - method: list_object_annotations - operation: ListObjectAnnotations - - method: list_object_versions - operation: ListObjectVersions - - method: list_objects - operation: ListObjects - - method: list_objects_v2 - operation: ListObjectsV2 - - method: list_parts - operation: ListParts - - method: put_bucket_abac - operation: PutBucketAbac - - method: put_bucket_accelerate_configuration - operation: PutBucketAccelerateConfiguration - - method: put_bucket_acl - operation: PutBucketAcl - - method: put_bucket_analytics_configuration - operation: PutBucketAnalyticsConfiguration - - method: put_bucket_cors - operation: PutBucketCors - - method: put_bucket_encryption - operation: PutBucketEncryption - - method: put_bucket_intelligent_tiering_configuration - operation: PutBucketIntelligentTieringConfiguration - - method: put_bucket_inventory_configuration - operation: PutBucketInventoryConfiguration - - method: put_bucket_lifecycle - sdkOperation: PutBucketLifecycle - operation: PutBucketLifecycleConfiguration - - method: put_bucket_lifecycle_configuration - operation: PutBucketLifecycleConfiguration - - method: put_bucket_logging - operation: PutBucketLogging - - method: put_bucket_metrics_configuration - operation: PutBucketMetricsConfiguration - - method: put_bucket_notification - sdkOperation: PutBucketNotification - operation: PutBucketNotificationConfiguration - - method: put_bucket_notification_configuration - operation: PutBucketNotificationConfiguration - - method: put_bucket_ownership_controls - operation: PutBucketOwnershipControls - - method: put_bucket_policy - operation: PutBucketPolicy - - method: put_bucket_replication - operation: PutBucketReplication - - method: put_bucket_request_payment - operation: PutBucketRequestPayment - - method: put_bucket_tagging - operation: PutBucketTagging - - method: put_bucket_versioning - operation: PutBucketVersioning - - method: put_bucket_website - operation: PutBucketWebsite - - method: put_object - operation: PutObject - - method: put_object_acl - operation: PutObjectAcl - - method: put_object_annotation - operation: PutObjectAnnotation - - method: put_object_legal_hold - operation: PutObjectLegalHold - - method: put_object_lock_configuration - operation: PutObjectLockConfiguration - - method: put_object_retention - operation: PutObjectRetention - - method: put_object_tagging - operation: PutObjectTagging - - method: put_public_access_block - operation: PutPublicAccessBlock - - method: rename_object - operation: RenameObject - - method: restore_object - operation: RestoreObject - - method: select_object_content - operation: SelectObjectContent - - method: update_bucket_metadata_annotation_table_configuration - operation: UpdateBucketMetadataAnnotationTableConfiguration - - method: update_bucket_metadata_inventory_table_configuration - operation: UpdateBucketMetadataInventoryTableConfiguration - - method: update_bucket_metadata_journal_table_configuration - operation: UpdateBucketMetadataJournalTableConfiguration - - method: update_object_encryption - operation: UpdateObjectEncryption - - method: upload_part - operation: UploadPart - - method: upload_part_copy - operation: UploadPartCopy - - method: write_get_object_response - operation: WriteGetObjectResponse - paginatorFactory: - method: get_paginator - selector: - position: 0 - keyword: operation_name - items: - - name: list_buckets - terminalMethod: paginate - operation: ListBuckets - - name: list_directory_buckets - terminalMethod: paginate - operation: ListDirectoryBuckets - - name: list_multipart_uploads - terminalMethod: paginate - operation: ListMultipartUploads - - name: list_object_annotations - terminalMethod: paginate - operation: ListObjectAnnotations - - name: list_object_versions - terminalMethod: paginate - operation: ListObjectVersions - - name: list_objects - terminalMethod: paginate - operation: ListObjects - - name: list_objects_v2 - terminalMethod: paginate - operation: ListObjectsV2 - - name: list_parts - terminalMethod: paginate - operation: ListParts - waiterFactory: - method: get_waiter - selector: - position: 0 - keyword: waiter_name - items: - - name: bucket_exists - terminalMethod: wait - operation: HeadBucket - - name: bucket_not_exists - terminalMethod: wait - operation: HeadBucket - - name: object_exists - terminalMethod: wait - operation: HeadObject - - name: object_not_exists - terminalMethod: wait - operation: HeadObject diff --git a/catalog/aws/s3/mappings/s3transfer/README.md b/catalog/aws/s3/mappings/s3transfer/README.md deleted file mode 100644 index 033ac31..0000000 --- a/catalog/aws/s3/mappings/s3transfer/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# Generated s3transfer-owned S3 mapping - -[`runtimeconditions.sdk-mapping.yaml`](runtimeconditions.sdk-mapping.yaml) is static metadata for managed-transfer behavior owned by s3transfer 0.19.2. - -It groups nine public entrypoints into upload, download, copy, and delete calls. Classic and CRT implementations remain distinct, as do single-part, multipart-success, and multipart-abort paths. Conditional multipart-copy tag and annotation operations retain their implementation predicates. - -Every service operation is an owner-qualified reference to the botocore S3 mapping. The artifact therefore does not duplicate extension Condition templates or claim botocore operation ownership. - -Maintainers review [`../../model/s3transfer-semantic-annotations.yaml`](../../model/s3transfer-semantic-annotations.yaml), source-validation output, and focused release diffs. The source gate checks public signatures and the actual operation set in the transfer modules. diff --git a/catalog/aws/s3/mappings/s3transfer/runtimeconditions.sdk-mapping.yaml b/catalog/aws/s3/mappings/s3transfer/runtimeconditions.sdk-mapping.yaml deleted file mode 100644 index fe53a4f..0000000 --- a/catalog/aws/s3/mappings/s3transfer/runtimeconditions.sdk-mapping.yaml +++ /dev/null @@ -1,464 +0,0 @@ -apiVersion: runtimeconditions.io/sdk-mapping/v1alpha1 -kind: RuntimeConditionsSDKMapping -metadata: - name: s3transfer.aws.s3 - distribution: s3transfer - distributionVersion: 0.19.2 - language: python - service: s3 - semanticSha256: 8882179e21c20092386581173251fab325f7b6616a6fd1ccc5c0be2dd3896217 -dependencies: -- kind: sdkMapping - distribution: botocore - mapping: botocore.aws.s3 -python: - calls: - - name: managed-upload - entrypoints: - - symbol: s3transfer.S3Transfer.upload_file - receiverContext: - constructor: s3transfer.S3Transfer - arguments: - config: - position: 1 - keyword: config - arguments: - fileobj: - position: 0 - keyword: filename - bucket: - position: 1 - keyword: bucket - key: - position: 2 - keyword: key - extraArgs: - position: 4 - keyword: extra_args - - symbol: s3transfer.manager.TransferManager.upload - receiverContext: - constructor: s3transfer.manager.TransferManager - arguments: - config: - position: 1 - keyword: config - arguments: - fileobj: - position: 0 - keyword: fileobj - bucket: - position: 1 - keyword: bucket - key: - position: 2 - keyword: key - extraArgs: - position: 3 - keyword: extra_args - - symbol: s3transfer.crt.CRTTransferManager.upload - arguments: - fileobj: - position: 0 - keyword: fileobj - bucket: - position: 1 - keyword: bucket - key: - position: 2 - keyword: key - extraArgs: - position: 3 - keyword: extra_args - arguments: - - fileobj - - bucket - - key - - extraArgs - - config - implementations: - - name: classic - selection: classic transfer manager selected by boto3 configuration and environment - executionPaths: - - name: single-part - selection: transfer manager chooses a single request - operationRefs: - - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutObject - - name: multipart-success - selection: transfer manager chooses multipart and completes successfully - operationRefs: - - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CreateMultipartUpload - - usage: one-or-more - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: UploadPart - - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CompleteMultipartUpload - - name: multipart-abort - selection: multipart transfer fails after creation and cleanup is attempted - operationRefs: - - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CreateMultipartUpload - - usage: zero-or-more-before-failure - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: UploadPart - - usage: failure-recovery - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: AbortMultipartUpload - - name: crt - operationRefs: - - usage: managed-request - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutObject - - name: managed-download - entrypoints: - - symbol: s3transfer.S3Transfer.download_file - receiverContext: - constructor: s3transfer.S3Transfer - arguments: - config: - position: 1 - keyword: config - arguments: - bucket: - position: 0 - keyword: bucket - key: - position: 1 - keyword: key - fileobj: - position: 2 - keyword: filename - extraArgs: - position: 3 - keyword: extra_args - - symbol: s3transfer.manager.TransferManager.download - receiverContext: - constructor: s3transfer.manager.TransferManager - arguments: - config: - position: 1 - keyword: config - arguments: - bucket: - position: 0 - keyword: bucket - key: - position: 1 - keyword: key - fileobj: - position: 2 - keyword: fileobj - extraArgs: - position: 3 - keyword: extra_args - - symbol: s3transfer.crt.CRTTransferManager.download - arguments: - bucket: - position: 0 - keyword: bucket - key: - position: 1 - keyword: key - fileobj: - position: 2 - keyword: fileobj - extraArgs: - position: 3 - keyword: extra_args - arguments: - - bucket - - key - - fileobj - - extraArgs - - config - implementations: - - name: classic - operationRefs: - - usage: metadata-discovery - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: HeadObject - - usage: always - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetObject - - name: crt - operationRefs: - - usage: managed-request - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetObject - - name: managed-copy - entrypoints: - - symbol: s3transfer.manager.TransferManager.copy - receiverContext: - constructor: s3transfer.manager.TransferManager - arguments: - config: - position: 1 - keyword: config - arguments: - copySource: - position: 0 - keyword: copy_source - bucket: - position: 1 - keyword: bucket - key: - position: 2 - keyword: key - extraArgs: - position: 3 - keyword: extra_args - sourceClient: - position: 5 - keyword: source_client - arguments: - - copySource - - bucket - - key - - extraArgs - - sourceClient - - config - implementations: - - name: classic - selection: copy is implemented only by the classic transfer manager - commonOperationRefs: - - usage: metadata-discovery - inputBindings: - Bucket: copySource.Bucket - Key: copySource.Key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: HeadObject - executionPaths: - - name: single-request-success - selection: source size is below the multipart copy threshold - operationRefs: - - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - CopySource: copySource - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CopyObject - - name: multipart-success - selection: source size meets the multipart copy threshold and completion succeeds - operationRefs: - - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CreateMultipartUpload - - usage: one-or-more - inputBindings: - Bucket: bucket - Key: key - CopySource: copySource - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: UploadPartCopy - - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CompleteMultipartUpload - - usage: conditional - when: - argument: extraArgs - path: TaggingDirective - equals: COPY - inputBindings: - Bucket: copySource.Bucket - Key: copySource.Key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetObjectTagging - - usage: conditional - whenAll: - - argument: extraArgs - path: TaggingDirective - in: - - COPY - - REPLACE - - derived: resolved tag set is non-empty - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutObjectTagging - - usage: conditional - when: - argument: extraArgs - path: AnnotationDirective - equals: COPY - inputBindings: - Bucket: copySource.Bucket - Key: copySource.Key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: ListObjectAnnotations - - usage: zero-or-more - whenAll: - - argument: extraArgs - path: AnnotationDirective - equals: COPY - - derived: source annotation list is non-empty - inputBindings: - Bucket: copySource.Bucket - Key: copySource.Key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: GetObjectAnnotation - - usage: zero-or-more - whenAll: - - argument: extraArgs - path: AnnotationDirective - equals: COPY - - derived: source annotation list is non-empty - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: PutObjectAnnotation - - name: multipart-abort - selection: multipart copy fails after creation and cleanup is attempted - operationRefs: - - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: CreateMultipartUpload - - usage: zero-or-more-before-failure - inputBindings: - Bucket: bucket - Key: key - CopySource: copySource - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: UploadPartCopy - - usage: failure-recovery - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: AbortMultipartUpload - - name: managed-delete - entrypoints: - - symbol: s3transfer.manager.TransferManager.delete - arguments: - bucket: - position: 0 - keyword: bucket - key: - position: 1 - keyword: key - extraArgs: - position: 2 - keyword: extra_args - - symbol: s3transfer.crt.CRTTransferManager.delete - arguments: - bucket: - position: 0 - keyword: bucket - key: - position: 1 - keyword: key - extraArgs: - position: 2 - keyword: extra_args - arguments: - - bucket - - key - - extraArgs - implementations: - - name: classic-or-crt - operationRefs: - - usage: always - inputBindings: - Bucket: bucket - Key: key - operationRef: - distribution: botocore - mapping: botocore.aws.s3 - operation: DeleteObject diff --git a/catalog/aws/s3/model/README.md b/catalog/aws/s3/model/README.md deleted file mode 100644 index 8e2f502..0000000 --- a/catalog/aws/s3/model/README.md +++ /dev/null @@ -1,41 +0,0 @@ -# S3 semantic inputs and generated owner mappings - -This directory separates authoritative AWS service semantics from language-specific SDK behavior and generated artifacts. - -## Reviewed inputs - -[`service-operations-semantic-bridge.yaml`](service-operations-semantic-bridge.yaml) references AWS's authoritative `com.amazonaws.s3#AmazonS3` Smithy service and defines only the operations requiring Runtime Conditions classification, identity, role, or secondary-resource exceptions. It does not duplicate the authoritative service model. - -[`botocore-sdk-annotations.yaml`](botocore-sdk-annotations.yaml) maps four deprecated botocore compatibility operations to canonical Smithy operations. These aliases are Python SDK surface, not extension vocabulary. - -[`boto3-wrapper-annotations.yaml`](boto3-wrapper-annotations.yaml) describes only public boto3 factories, aliases, handwritten managed-transfer wrappers, and handwritten resource loads absent from generated SDK models. - -[`s3transfer-semantic-annotations.yaml`](s3transfer-semantic-annotations.yaml) describes public transfer entrypoints, argument bindings, classic and CRT implementations, mutually exclusive execution paths, and conditional service operations. - -The semantic bridge and SDK annotations do not contain profiler coverage percentages, unresolved application observations, fixed environment variables, credentials, Regions, endpoints, or adapter policy. - -## Generated outputs - -[`generated/s3-service-mapping.yaml`](generated/s3-service-mapping.yaml) is generated from AWS's authoritative Smithy model plus the reviewed semantic bridge. It contains 112 canonical operations and 119 S3 Condition templates. - -[`generated/smithy-review.md`](generated/smithy-review.md) is the focused generation summary. It records exact upstream provenance, semantic digests, interface counts, and operation-set changes without requiring review of generated YAML. - -The owner generator then produces three independently versioned Python artifacts under `../mappings`: botocore owns low-level client surfaces, s3transfer owns managed-transfer behavior, and boto3 owns factories, resources, and handwritten wrappers. - -## Regeneration - -Obtain a full or history-capable checkout of `https://github.com/aws/api-models-aws.git`, then run: - -```sh -python3 extensions/tooling/smithy-runtime-conditions/tools/run_maintenance.py \ - --manifest extensions/catalog/aws/s3/maintenance/smithy.yaml \ - --models-root /absolute/path/to/api-models-aws \ - --extensions-root extensions \ - --output /tmp/aws-s3-extension-maintenance -``` - -The accepted semantic digests must match the candidate semantic digests. Candidate bytes may differ only in upstream provenance when a newer authoritative model remains semantically compatible; provenance-only drift does not mutate the immutable accepted release or require a new version. An operation or shape change not covered by the reviewed semantic bridge produces `extension-review-required`, and the runner never edits or approves the bridge. - -Generate Python owner mappings from pinned SDK sources with [`../tools/generate_owner_mappings.py`](../tools/generate_owner_mappings.py). The generator requires the authoritative service mapping, the botocore service/paginator/waiter models, the boto3 resource model, all three reviewed SDK annotation files, and exact distribution versions. - -Both compilers read models as static data and never import or execute the SDK packages whose metadata they generate. diff --git a/catalog/aws/s3/model/boto3-wrapper-annotations.yaml b/catalog/aws/s3/model/boto3-wrapper-annotations.yaml deleted file mode 100644 index 3ae3edd..0000000 --- a/catalog/aws/s3/model/boto3-wrapper-annotations.yaml +++ /dev/null @@ -1,358 +0,0 @@ -service: s3 -dependencies: - botocore: - distribution: botocore - mapping: botocore.aws.s3 - s3transfer: - distribution: s3transfer - mapping: s3transfer.aws.s3 -aliases: -- symbol: boto3.Session - target: boto3.session.Session -clientFactories: -- symbols: - - boto3.client - serviceSelector: - position: 0 - keyword: service_name -- symbols: - - boto3.Session.client - - boto3.session.Session.client - serviceSelector: - position: 0 - keyword: service_name -resourceFactories: -- symbols: - - boto3.resource - serviceSelector: - position: 0 - keyword: service_name -- symbols: - - boto3.Session.resource - - boto3.session.Session.resource - serviceSelector: - position: 0 - keyword: service_name -clientWrappers: -- method: upload_file - call: managed-upload - arguments: - fileobj: - position: 0 - keyword: Filename - bucket: - position: 1 - keyword: Bucket - key: - position: 2 - keyword: Key - extraArgs: - position: 3 - keyword: ExtraArgs - config: - position: 5 - keyword: Config -- method: download_file - call: managed-download - arguments: - bucket: - position: 0 - keyword: Bucket - key: - position: 1 - keyword: Key - fileobj: - position: 2 - keyword: Filename - extraArgs: - position: 3 - keyword: ExtraArgs - config: - position: 5 - keyword: Config -- method: copy - call: managed-copy - arguments: - copySource: - position: 0 - keyword: CopySource - bucket: - position: 1 - keyword: Bucket - key: - position: 2 - keyword: Key - extraArgs: - position: 3 - keyword: ExtraArgs - sourceClient: - position: 5 - keyword: SourceClient - config: - position: 6 - keyword: Config -- method: upload_fileobj - call: managed-upload - arguments: - fileobj: - position: 0 - keyword: Fileobj - bucket: - position: 1 - keyword: Bucket - key: - position: 2 - keyword: Key - extraArgs: - position: 3 - keyword: ExtraArgs - config: - position: 5 - keyword: Config -- method: download_fileobj - call: managed-download - arguments: - bucket: - position: 0 - keyword: Bucket - key: - position: 1 - keyword: Key - fileobj: - position: 2 - keyword: Fileobj - extraArgs: - position: 3 - keyword: ExtraArgs - config: - position: 5 - keyword: Config -transferClassWrappers: -- symbol: boto3.s3.transfer.S3Transfer.upload_file - call: managed-upload - receiverContext: - constructor: boto3.s3.transfer.S3Transfer - arguments: - config: - position: 1 - keyword: config - arguments: - fileobj: - position: 0 - keyword: filename - bucket: - position: 1 - keyword: bucket - key: - position: 2 - keyword: key - extraArgs: - position: 4 - keyword: extra_args -- symbol: boto3.s3.transfer.S3Transfer.download_file - call: managed-download - receiverContext: - constructor: boto3.s3.transfer.S3Transfer - arguments: - config: - position: 1 - keyword: config - arguments: - bucket: - position: 0 - keyword: bucket - key: - position: 1 - keyword: key - fileobj: - position: 2 - keyword: filename - extraArgs: - position: 3 - keyword: extra_args -resourceWrappers: - Bucket: - - method: upload_file - call: managed-upload - receiverArguments: - bucket: Name - arguments: - fileobj: - position: 0 - keyword: Filename - key: - position: 1 - keyword: Key - extraArgs: - position: 2 - keyword: ExtraArgs - config: - position: 4 - keyword: Config - - method: download_file - call: managed-download - receiverArguments: - bucket: Name - arguments: - key: - position: 0 - keyword: Key - fileobj: - position: 1 - keyword: Filename - extraArgs: - position: 2 - keyword: ExtraArgs - config: - position: 4 - keyword: Config - - method: copy - call: managed-copy - receiverArguments: - bucket: Name - arguments: - copySource: - position: 0 - keyword: CopySource - key: - position: 1 - keyword: Key - extraArgs: - position: 2 - keyword: ExtraArgs - sourceClient: - position: 4 - keyword: SourceClient - config: - position: 5 - keyword: Config - - method: upload_fileobj - call: managed-upload - receiverArguments: - bucket: Name - arguments: - fileobj: - position: 0 - keyword: Fileobj - key: - position: 1 - keyword: Key - extraArgs: - position: 2 - keyword: ExtraArgs - config: - position: 4 - keyword: Config - - method: download_fileobj - call: managed-download - receiverArguments: - bucket: Name - arguments: - key: - position: 0 - keyword: Key - fileobj: - position: 1 - keyword: Fileobj - extraArgs: - position: 2 - keyword: ExtraArgs - config: - position: 4 - keyword: Config - Object: - - method: upload_file - call: managed-upload - receiverArguments: - bucket: BucketName - key: Key - arguments: - fileobj: - position: 0 - keyword: Filename - extraArgs: - position: 1 - keyword: ExtraArgs - config: - position: 3 - keyword: Config - - method: download_file - call: managed-download - receiverArguments: - bucket: BucketName - key: Key - arguments: - fileobj: - position: 0 - keyword: Filename - extraArgs: - position: 1 - keyword: ExtraArgs - config: - position: 3 - keyword: Config - - method: copy - call: managed-copy - receiverArguments: - bucket: BucketName - key: Key - arguments: - copySource: - position: 0 - keyword: CopySource - extraArgs: - position: 1 - keyword: ExtraArgs - sourceClient: - position: 3 - keyword: SourceClient - config: - position: 4 - keyword: Config - - method: upload_fileobj - call: managed-upload - receiverArguments: - bucket: BucketName - key: Key - arguments: - fileobj: - position: 0 - keyword: Fileobj - extraArgs: - position: 1 - keyword: ExtraArgs - config: - position: 3 - keyword: Config - - method: download_fileobj - call: managed-download - receiverArguments: - bucket: BucketName - key: Key - arguments: - fileobj: - position: 0 - keyword: Fileobj - extraArgs: - position: 1 - keyword: ExtraArgs - config: - position: 3 - keyword: Config -handwrittenResourceActions: - Bucket: - - methods: - - load - operation: ListBuckets - parameterBindings: [] - ObjectSummary: - - methods: - - load - operation: HeadObject - parameterBindings: - - target: Bucket - source: identifier - name: BucketName - - target: Key - source: identifier - name: Key diff --git a/catalog/aws/s3/model/botocore-sdk-annotations.yaml b/catalog/aws/s3/model/botocore-sdk-annotations.yaml deleted file mode 100644 index 7af3ed0..0000000 --- a/catalog/aws/s3/model/botocore-sdk-annotations.yaml +++ /dev/null @@ -1,6 +0,0 @@ -schemaVersion: 1 -canonicalOperationAliases: - GetBucketLifecycle: GetBucketLifecycleConfiguration - GetBucketNotification: GetBucketNotificationConfiguration - PutBucketLifecycle: PutBucketLifecycleConfiguration - PutBucketNotification: PutBucketNotificationConfiguration diff --git a/catalog/aws/s3/model/generated/s3-service-mapping.yaml b/catalog/aws/s3/model/generated/s3-service-mapping.yaml deleted file mode 100644 index 1f5c2fe..0000000 --- a/catalog/aws/s3/model/generated/s3-service-mapping.yaml +++ /dev/null @@ -1,1204 +0,0 @@ -apiVersion: runtimeconditions.io/service-mapping/v1alpha1 -kind: RuntimeConditionsServiceMapping -metadata: - name: aws.s3 - service: s3 - serviceId: S3 - serviceShape: com.amazonaws.s3#AmazonS3 - serviceVersion: '2006-03-01' - operationCount: 112 - operationNamesSha256: 209771cb0915567090f615e18dacf594436fc6aadc2867f56535ae0db7935436 - semanticSha256: 54a92a0dc07c238ac56b125ca74f5bdcafa2741a45afd2440d91723dc865763d - semanticBridgeSha256: 6b6ba14abd14eb1d85d668491db9e43542d4623af15ad3e2aac3319c45eb0a90 - source: - repository: https://github.com/aws/api-models-aws.git - revision: 073f307ee1fd0acea67b706ddbd4ad5437c67eb8 - path: models/s3/service/2006-03-01/s3-2006-03-01.json - sha256: 6975caa92319bf6c1fc2fdea7b3f64f9b9aca6d9b32edeccf086796338842e5a - smithyVersion: '2.0' - serviceShape: com.amazonaws.s3#AmazonS3 - serviceVersion: '2006-03-01' -extension: - id: https://runtimeconditions.io/extensions/aws/s3/0.1.0/runtimeconditions.extension.yaml - version: 0.1.0 - semanticSha256: 1a505b63d55893c26f3ffe6cf3cd9f90f0b5bd7975fabe47ff444a3ed1e13c72 -operations: -- name: AbortMultipartUpload - shapeId: com.amazonaws.s3#AbortMultipartUpload - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: AbortMultipartUpload - identity: - source: input - path: Bucket -- name: CompleteMultipartUpload - shapeId: com.amazonaws.s3#CompleteMultipartUpload - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: CompleteMultipartUpload - identity: - source: input - path: Bucket -- name: CopyObject - shapeId: com.amazonaws.s3#CopyObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: CopyObject - role: destination - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: CopyObject - role: source - identity: - source: input - path: CopySource - encoding: s3-copy-source - conditional: true -- name: CreateBucket - shapeId: com.amazonaws.s3#CreateBucket - conditions: - - kind: aws.s3 - interfaceType: service - operation: - name: CreateBucket -- name: CreateBucketMetadataConfiguration - shapeId: com.amazonaws.s3#CreateBucketMetadataConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: CreateBucketMetadataConfiguration - identity: - source: input - path: Bucket -- name: CreateBucketMetadataTableConfiguration - shapeId: com.amazonaws.s3#CreateBucketMetadataTableConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: CreateBucketMetadataTableConfiguration - identity: - source: input - path: Bucket -- name: CreateMultipartUpload - shapeId: com.amazonaws.s3#CreateMultipartUpload - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: CreateMultipartUpload - identity: - source: input - path: Bucket -- name: CreateSession - shapeId: com.amazonaws.s3#CreateSession - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: CreateSession - identity: - source: input - path: Bucket -- name: DeleteBucket - shapeId: com.amazonaws.s3#DeleteBucket - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucket - identity: - source: input - path: Bucket -- name: DeleteBucketAnalyticsConfiguration - shapeId: com.amazonaws.s3#DeleteBucketAnalyticsConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketAnalyticsConfiguration - identity: - source: input - path: Bucket -- name: DeleteBucketCors - shapeId: com.amazonaws.s3#DeleteBucketCors - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketCors - identity: - source: input - path: Bucket -- name: DeleteBucketEncryption - shapeId: com.amazonaws.s3#DeleteBucketEncryption - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketEncryption - identity: - source: input - path: Bucket -- name: DeleteBucketIntelligentTieringConfiguration - shapeId: com.amazonaws.s3#DeleteBucketIntelligentTieringConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketIntelligentTieringConfiguration - identity: - source: input - path: Bucket -- name: DeleteBucketInventoryConfiguration - shapeId: com.amazonaws.s3#DeleteBucketInventoryConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketInventoryConfiguration - identity: - source: input - path: Bucket -- name: DeleteBucketLifecycle - shapeId: com.amazonaws.s3#DeleteBucketLifecycle - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketLifecycle - identity: - source: input - path: Bucket -- name: DeleteBucketMetadataConfiguration - shapeId: com.amazonaws.s3#DeleteBucketMetadataConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketMetadataConfiguration - identity: - source: input - path: Bucket -- name: DeleteBucketMetadataTableConfiguration - shapeId: com.amazonaws.s3#DeleteBucketMetadataTableConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketMetadataTableConfiguration - identity: - source: input - path: Bucket -- name: DeleteBucketMetricsConfiguration - shapeId: com.amazonaws.s3#DeleteBucketMetricsConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketMetricsConfiguration - identity: - source: input - path: Bucket -- name: DeleteBucketOwnershipControls - shapeId: com.amazonaws.s3#DeleteBucketOwnershipControls - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketOwnershipControls - identity: - source: input - path: Bucket -- name: DeleteBucketPolicy - shapeId: com.amazonaws.s3#DeleteBucketPolicy - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketPolicy - identity: - source: input - path: Bucket -- name: DeleteBucketReplication - shapeId: com.amazonaws.s3#DeleteBucketReplication - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketReplication - identity: - source: input - path: Bucket -- name: DeleteBucketTagging - shapeId: com.amazonaws.s3#DeleteBucketTagging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketTagging - identity: - source: input - path: Bucket -- name: DeleteBucketWebsite - shapeId: com.amazonaws.s3#DeleteBucketWebsite - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteBucketWebsite - identity: - source: input - path: Bucket -- name: DeleteObject - shapeId: com.amazonaws.s3#DeleteObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteObject - identity: - source: input - path: Bucket -- name: DeleteObjectAnnotation - shapeId: com.amazonaws.s3#DeleteObjectAnnotation - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteObjectAnnotation - identity: - source: input - path: Bucket -- name: DeleteObjectTagging - shapeId: com.amazonaws.s3#DeleteObjectTagging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteObjectTagging - identity: - source: input - path: Bucket -- name: DeleteObjects - shapeId: com.amazonaws.s3#DeleteObjects - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeleteObjects - identity: - source: input - path: Bucket -- name: DeletePublicAccessBlock - shapeId: com.amazonaws.s3#DeletePublicAccessBlock - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: DeletePublicAccessBlock - identity: - source: input - path: Bucket -- name: GetBucketAbac - shapeId: com.amazonaws.s3#GetBucketAbac - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketAbac - identity: - source: input - path: Bucket -- name: GetBucketAccelerateConfiguration - shapeId: com.amazonaws.s3#GetBucketAccelerateConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketAccelerateConfiguration - identity: - source: input - path: Bucket -- name: GetBucketAcl - shapeId: com.amazonaws.s3#GetBucketAcl - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketAcl - identity: - source: input - path: Bucket -- name: GetBucketAnalyticsConfiguration - shapeId: com.amazonaws.s3#GetBucketAnalyticsConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketAnalyticsConfiguration - identity: - source: input - path: Bucket -- name: GetBucketCors - shapeId: com.amazonaws.s3#GetBucketCors - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketCors - identity: - source: input - path: Bucket -- name: GetBucketEncryption - shapeId: com.amazonaws.s3#GetBucketEncryption - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketEncryption - identity: - source: input - path: Bucket -- name: GetBucketIntelligentTieringConfiguration - shapeId: com.amazonaws.s3#GetBucketIntelligentTieringConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketIntelligentTieringConfiguration - identity: - source: input - path: Bucket -- name: GetBucketInventoryConfiguration - shapeId: com.amazonaws.s3#GetBucketInventoryConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketInventoryConfiguration - identity: - source: input - path: Bucket -- name: GetBucketLifecycleConfiguration - shapeId: com.amazonaws.s3#GetBucketLifecycleConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketLifecycleConfiguration - identity: - source: input - path: Bucket -- name: GetBucketLocation - shapeId: com.amazonaws.s3#GetBucketLocation - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketLocation - identity: - source: input - path: Bucket -- name: GetBucketLogging - shapeId: com.amazonaws.s3#GetBucketLogging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketLogging - identity: - source: input - path: Bucket -- name: GetBucketMetadataConfiguration - shapeId: com.amazonaws.s3#GetBucketMetadataConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketMetadataConfiguration - identity: - source: input - path: Bucket -- name: GetBucketMetadataTableConfiguration - shapeId: com.amazonaws.s3#GetBucketMetadataTableConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketMetadataTableConfiguration - identity: - source: input - path: Bucket -- name: GetBucketMetricsConfiguration - shapeId: com.amazonaws.s3#GetBucketMetricsConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketMetricsConfiguration - identity: - source: input - path: Bucket -- name: GetBucketNotificationConfiguration - shapeId: com.amazonaws.s3#GetBucketNotificationConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketNotificationConfiguration - identity: - source: input - path: Bucket -- name: GetBucketOwnershipControls - shapeId: com.amazonaws.s3#GetBucketOwnershipControls - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketOwnershipControls - identity: - source: input - path: Bucket -- name: GetBucketPolicy - shapeId: com.amazonaws.s3#GetBucketPolicy - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketPolicy - identity: - source: input - path: Bucket -- name: GetBucketPolicyStatus - shapeId: com.amazonaws.s3#GetBucketPolicyStatus - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketPolicyStatus - identity: - source: input - path: Bucket -- name: GetBucketReplication - shapeId: com.amazonaws.s3#GetBucketReplication - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketReplication - identity: - source: input - path: Bucket -- name: GetBucketRequestPayment - shapeId: com.amazonaws.s3#GetBucketRequestPayment - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketRequestPayment - identity: - source: input - path: Bucket -- name: GetBucketTagging - shapeId: com.amazonaws.s3#GetBucketTagging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketTagging - identity: - source: input - path: Bucket -- name: GetBucketVersioning - shapeId: com.amazonaws.s3#GetBucketVersioning - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketVersioning - identity: - source: input - path: Bucket -- name: GetBucketWebsite - shapeId: com.amazonaws.s3#GetBucketWebsite - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetBucketWebsite - identity: - source: input - path: Bucket -- name: GetObject - shapeId: com.amazonaws.s3#GetObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObject - identity: - source: input - path: Bucket -- name: GetObjectAcl - shapeId: com.amazonaws.s3#GetObjectAcl - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectAcl - identity: - source: input - path: Bucket -- name: GetObjectAnnotation - shapeId: com.amazonaws.s3#GetObjectAnnotation - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectAnnotation - identity: - source: input - path: Bucket -- name: GetObjectAttributes - shapeId: com.amazonaws.s3#GetObjectAttributes - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectAttributes - identity: - source: input - path: Bucket -- name: GetObjectLegalHold - shapeId: com.amazonaws.s3#GetObjectLegalHold - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectLegalHold - identity: - source: input - path: Bucket -- name: GetObjectLockConfiguration - shapeId: com.amazonaws.s3#GetObjectLockConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectLockConfiguration - identity: - source: input - path: Bucket -- name: GetObjectRetention - shapeId: com.amazonaws.s3#GetObjectRetention - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectRetention - identity: - source: input - path: Bucket -- name: GetObjectTagging - shapeId: com.amazonaws.s3#GetObjectTagging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectTagging - identity: - source: input - path: Bucket -- name: GetObjectTorrent - shapeId: com.amazonaws.s3#GetObjectTorrent - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetObjectTorrent - identity: - source: input - path: Bucket -- name: GetPublicAccessBlock - shapeId: com.amazonaws.s3#GetPublicAccessBlock - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: GetPublicAccessBlock - identity: - source: input - path: Bucket -- name: HeadBucket - shapeId: com.amazonaws.s3#HeadBucket - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: HeadBucket - identity: - source: input - path: Bucket -- name: HeadObject - shapeId: com.amazonaws.s3#HeadObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: HeadObject - identity: - source: input - path: Bucket -- name: ListBucketAnalyticsConfigurations - shapeId: com.amazonaws.s3#ListBucketAnalyticsConfigurations - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListBucketAnalyticsConfigurations - identity: - source: input - path: Bucket -- name: ListBucketIntelligentTieringConfigurations - shapeId: com.amazonaws.s3#ListBucketIntelligentTieringConfigurations - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListBucketIntelligentTieringConfigurations - identity: - source: input - path: Bucket -- name: ListBucketInventoryConfigurations - shapeId: com.amazonaws.s3#ListBucketInventoryConfigurations - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListBucketInventoryConfigurations - identity: - source: input - path: Bucket -- name: ListBucketMetricsConfigurations - shapeId: com.amazonaws.s3#ListBucketMetricsConfigurations - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListBucketMetricsConfigurations - identity: - source: input - path: Bucket -- name: ListBuckets - shapeId: com.amazonaws.s3#ListBuckets - conditions: - - kind: aws.s3 - interfaceType: service - operation: - name: ListBuckets -- name: ListDirectoryBuckets - shapeId: com.amazonaws.s3#ListDirectoryBuckets - conditions: - - kind: aws.s3 - interfaceType: service - operation: - name: ListDirectoryBuckets -- name: ListMultipartUploads - shapeId: com.amazonaws.s3#ListMultipartUploads - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListMultipartUploads - identity: - source: input - path: Bucket -- name: ListObjectAnnotations - shapeId: com.amazonaws.s3#ListObjectAnnotations - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListObjectAnnotations - identity: - source: input - path: Bucket -- name: ListObjectVersions - shapeId: com.amazonaws.s3#ListObjectVersions - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListObjectVersions - identity: - source: input - path: Bucket -- name: ListObjects - shapeId: com.amazonaws.s3#ListObjects - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListObjects - identity: - source: input - path: Bucket -- name: ListObjectsV2 - shapeId: com.amazonaws.s3#ListObjectsV2 - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListObjectsV2 - identity: - source: input - path: Bucket -- name: ListParts - shapeId: com.amazonaws.s3#ListParts - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: ListParts - identity: - source: input - path: Bucket -- name: PutBucketAbac - shapeId: com.amazonaws.s3#PutBucketAbac - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketAbac - identity: - source: input - path: Bucket -- name: PutBucketAccelerateConfiguration - shapeId: com.amazonaws.s3#PutBucketAccelerateConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketAccelerateConfiguration - identity: - source: input - path: Bucket -- name: PutBucketAcl - shapeId: com.amazonaws.s3#PutBucketAcl - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketAcl - identity: - source: input - path: Bucket -- name: PutBucketAnalyticsConfiguration - shapeId: com.amazonaws.s3#PutBucketAnalyticsConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketAnalyticsConfiguration - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketAnalyticsConfiguration - role: destination - identity: - source: input - path: AnalyticsConfiguration.StorageClassAnalysis.DataExport.Destination.S3BucketDestination.Bucket - conditional: true -- name: PutBucketCors - shapeId: com.amazonaws.s3#PutBucketCors - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketCors - identity: - source: input - path: Bucket -- name: PutBucketEncryption - shapeId: com.amazonaws.s3#PutBucketEncryption - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketEncryption - identity: - source: input - path: Bucket -- name: PutBucketIntelligentTieringConfiguration - shapeId: com.amazonaws.s3#PutBucketIntelligentTieringConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketIntelligentTieringConfiguration - identity: - source: input - path: Bucket -- name: PutBucketInventoryConfiguration - shapeId: com.amazonaws.s3#PutBucketInventoryConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketInventoryConfiguration - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketInventoryConfiguration - role: destination - identity: - source: input - path: InventoryConfiguration.Destination.S3BucketDestination.Bucket - conditional: true -- name: PutBucketLifecycleConfiguration - shapeId: com.amazonaws.s3#PutBucketLifecycleConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketLifecycleConfiguration - identity: - source: input - path: Bucket -- name: PutBucketLogging - shapeId: com.amazonaws.s3#PutBucketLogging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketLogging - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketLogging - role: destination - identity: - source: input - path: BucketLoggingStatus.LoggingEnabled.TargetBucket - conditional: true -- name: PutBucketMetricsConfiguration - shapeId: com.amazonaws.s3#PutBucketMetricsConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketMetricsConfiguration - identity: - source: input - path: Bucket -- name: PutBucketNotificationConfiguration - shapeId: com.amazonaws.s3#PutBucketNotificationConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketNotificationConfiguration - identity: - source: input - path: Bucket -- name: PutBucketOwnershipControls - shapeId: com.amazonaws.s3#PutBucketOwnershipControls - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketOwnershipControls - identity: - source: input - path: Bucket -- name: PutBucketPolicy - shapeId: com.amazonaws.s3#PutBucketPolicy - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketPolicy - identity: - source: input - path: Bucket -- name: PutBucketReplication - shapeId: com.amazonaws.s3#PutBucketReplication - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketReplication - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketReplication - role: destination - identity: - source: input - path: ReplicationConfiguration.Rules[].Destination.Bucket - encoding: s3-bucket-arn - conditional: true -- name: PutBucketRequestPayment - shapeId: com.amazonaws.s3#PutBucketRequestPayment - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketRequestPayment - identity: - source: input - path: Bucket -- name: PutBucketTagging - shapeId: com.amazonaws.s3#PutBucketTagging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketTagging - identity: - source: input - path: Bucket -- name: PutBucketVersioning - shapeId: com.amazonaws.s3#PutBucketVersioning - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketVersioning - identity: - source: input - path: Bucket -- name: PutBucketWebsite - shapeId: com.amazonaws.s3#PutBucketWebsite - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutBucketWebsite - identity: - source: input - path: Bucket -- name: PutObject - shapeId: com.amazonaws.s3#PutObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObject - identity: - source: input - path: Bucket -- name: PutObjectAcl - shapeId: com.amazonaws.s3#PutObjectAcl - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObjectAcl - identity: - source: input - path: Bucket -- name: PutObjectAnnotation - shapeId: com.amazonaws.s3#PutObjectAnnotation - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObjectAnnotation - identity: - source: input - path: Bucket -- name: PutObjectLegalHold - shapeId: com.amazonaws.s3#PutObjectLegalHold - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObjectLegalHold - identity: - source: input - path: Bucket -- name: PutObjectLockConfiguration - shapeId: com.amazonaws.s3#PutObjectLockConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObjectLockConfiguration - identity: - source: input - path: Bucket -- name: PutObjectRetention - shapeId: com.amazonaws.s3#PutObjectRetention - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObjectRetention - identity: - source: input - path: Bucket -- name: PutObjectTagging - shapeId: com.amazonaws.s3#PutObjectTagging - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutObjectTagging - identity: - source: input - path: Bucket -- name: PutPublicAccessBlock - shapeId: com.amazonaws.s3#PutPublicAccessBlock - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: PutPublicAccessBlock - identity: - source: input - path: Bucket -- name: RenameObject - shapeId: com.amazonaws.s3#RenameObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: RenameObject - identity: - source: input - path: Bucket -- name: RestoreObject - shapeId: com.amazonaws.s3#RestoreObject - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: RestoreObject - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: RestoreObject - role: destination - identity: - source: input - path: RestoreRequest.OutputLocation.S3.BucketName - conditional: true -- name: SelectObjectContent - shapeId: com.amazonaws.s3#SelectObjectContent - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: SelectObjectContent - identity: - source: input - path: Bucket -- name: UpdateBucketMetadataAnnotationTableConfiguration - shapeId: com.amazonaws.s3#UpdateBucketMetadataAnnotationTableConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: UpdateBucketMetadataAnnotationTableConfiguration - identity: - source: input - path: Bucket -- name: UpdateBucketMetadataInventoryTableConfiguration - shapeId: com.amazonaws.s3#UpdateBucketMetadataInventoryTableConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: UpdateBucketMetadataInventoryTableConfiguration - identity: - source: input - path: Bucket -- name: UpdateBucketMetadataJournalTableConfiguration - shapeId: com.amazonaws.s3#UpdateBucketMetadataJournalTableConfiguration - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: UpdateBucketMetadataJournalTableConfiguration - identity: - source: input - path: Bucket -- name: UpdateObjectEncryption - shapeId: com.amazonaws.s3#UpdateObjectEncryption - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: UpdateObjectEncryption - identity: - source: input - path: Bucket -- name: UploadPart - shapeId: com.amazonaws.s3#UploadPart - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: UploadPart - identity: - source: input - path: Bucket -- name: UploadPartCopy - shapeId: com.amazonaws.s3#UploadPartCopy - conditions: - - kind: aws.s3 - interfaceType: bucket - operation: - name: UploadPartCopy - role: destination - identity: - source: input - path: Bucket - - kind: aws.s3 - interfaceType: bucket - operation: - name: UploadPartCopy - role: source - identity: - source: input - path: CopySource - encoding: s3-copy-source - conditional: true -- name: WriteGetObjectResponse - shapeId: com.amazonaws.s3#WriteGetObjectResponse - conditions: - - kind: aws.s3 - interfaceType: object_lambda - operation: - name: WriteGetObjectResponse - identity: - source: input - path: RequestRoute diff --git a/catalog/aws/s3/model/generated/smithy-review.md b/catalog/aws/s3/model/generated/smithy-review.md deleted file mode 100644 index 113cc22..0000000 --- a/catalog/aws/s3/model/generated/smithy-review.md +++ /dev/null @@ -1,38 +0,0 @@ -# Smithy extension maintenance review - -**Classification: `automatic`** - -The authoritative Smithy operation inventory matches the reviewed Service Operations Semantic Bridge, and deterministic extension and service-mapping artifacts were generated successfully. - -## Authoritative input - -- Repository: `https://github.com/aws/api-models-aws.git` -- Revision: `073f307ee1fd0acea67b706ddbd4ad5437c67eb8` -- Path: `models/s3/service/2006-03-01/s3-2006-03-01.json` -- SHA-256: `6975caa92319bf6c1fc2fdea7b3f64f9b9aca6d9b32edeccf086796338842e5a` -- Canonical operations: 112 -- Operation-name SHA-256: `209771cb0915567090f615e18dacf594436fc6aadc2867f56535ae0db7935436` - -## Generated semantic release - -- Extension: `https://runtimeconditions.io/extensions/aws/s3/0.1.0/runtimeconditions.extension.yaml` -- Extension version: `0.1.0` -- Extension semantic SHA-256: `1a505b63d55893c26f3ffe6cf3cd9f90f0b5bd7975fabe47ff444a3ed1e13c72` -- Service-mapping semantic SHA-256: `54a92a0dc07c238ac56b125ca74f5bdcafa2741a45afd2440d91723dc865763d` - -## Interface inventory - -| Interface | Operations | Roles | -| --- | ---: | --- | -| `bucket` | 108 | destination, source | -| `service` | 3 | none | -| `object_lambda` | 1 | none | - -## Operation-set change - -- Added: none -- Removed: none - -## Maintainer decision - -Review only changes to operation classification, resource identity paths, roles, cross-service dependencies, and representative profile meaning. Generated extension and mapping artifacts are machine review output, not line-by-line human review surfaces. diff --git a/catalog/aws/s3/model/s3transfer-semantic-annotations.yaml b/catalog/aws/s3/model/s3transfer-semantic-annotations.yaml deleted file mode 100644 index 5774020..0000000 --- a/catalog/aws/s3/model/s3transfer-semantic-annotations.yaml +++ /dev/null @@ -1,379 +0,0 @@ -service: s3 -botocoreMapping: - distribution: botocore - mapping: botocore.aws.s3 -calls: -- name: managed-upload - entrypoints: - - symbol: s3transfer.S3Transfer.upload_file - receiverContext: - constructor: s3transfer.S3Transfer - arguments: - config: - position: 1 - keyword: config - arguments: - fileobj: - position: 0 - keyword: filename - bucket: - position: 1 - keyword: bucket - key: - position: 2 - keyword: key - extraArgs: - position: 4 - keyword: extra_args - - symbol: s3transfer.manager.TransferManager.upload - receiverContext: - constructor: s3transfer.manager.TransferManager - arguments: - config: - position: 1 - keyword: config - arguments: - fileobj: - position: 0 - keyword: fileobj - bucket: - position: 1 - keyword: bucket - key: - position: 2 - keyword: key - extraArgs: - position: 3 - keyword: extra_args - - symbol: s3transfer.crt.CRTTransferManager.upload - arguments: - fileobj: - position: 0 - keyword: fileobj - bucket: - position: 1 - keyword: bucket - key: - position: 2 - keyword: key - extraArgs: - position: 3 - keyword: extra_args - arguments: - - fileobj - - bucket - - key - - extraArgs - - config - implementations: - - name: classic - selection: classic transfer manager selected by boto3 configuration and environment - executionPaths: - - name: single-part - selection: transfer manager chooses a single request - operationRefs: - - operation: PutObject - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - - name: multipart-success - selection: transfer manager chooses multipart and completes successfully - operationRefs: - - operation: CreateMultipartUpload - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - - operation: UploadPart - usage: one-or-more - inputBindings: - Bucket: bucket - Key: key - - operation: CompleteMultipartUpload - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - - name: multipart-abort - selection: multipart transfer fails after creation and cleanup is attempted - operationRefs: - - operation: CreateMultipartUpload - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - - operation: UploadPart - usage: zero-or-more-before-failure - inputBindings: - Bucket: bucket - Key: key - - operation: AbortMultipartUpload - usage: failure-recovery - inputBindings: - Bucket: bucket - Key: key - - name: crt - operationRefs: - - operation: PutObject - usage: managed-request - inputBindings: - Bucket: bucket - Key: key -- name: managed-download - entrypoints: - - symbol: s3transfer.S3Transfer.download_file - receiverContext: - constructor: s3transfer.S3Transfer - arguments: - config: - position: 1 - keyword: config - arguments: - bucket: - position: 0 - keyword: bucket - key: - position: 1 - keyword: key - fileobj: - position: 2 - keyword: filename - extraArgs: - position: 3 - keyword: extra_args - - symbol: s3transfer.manager.TransferManager.download - receiverContext: - constructor: s3transfer.manager.TransferManager - arguments: - config: - position: 1 - keyword: config - arguments: - bucket: - position: 0 - keyword: bucket - key: - position: 1 - keyword: key - fileobj: - position: 2 - keyword: fileobj - extraArgs: - position: 3 - keyword: extra_args - - symbol: s3transfer.crt.CRTTransferManager.download - arguments: - bucket: - position: 0 - keyword: bucket - key: - position: 1 - keyword: key - fileobj: - position: 2 - keyword: fileobj - extraArgs: - position: 3 - keyword: extra_args - arguments: - - bucket - - key - - fileobj - - extraArgs - - config - implementations: - - name: classic - operationRefs: - - operation: HeadObject - usage: metadata-discovery - inputBindings: - Bucket: bucket - Key: key - - operation: GetObject - usage: always - inputBindings: - Bucket: bucket - Key: key - - name: crt - operationRefs: - - operation: GetObject - usage: managed-request - inputBindings: - Bucket: bucket - Key: key -- name: managed-copy - entrypoints: - - symbol: s3transfer.manager.TransferManager.copy - receiverContext: - constructor: s3transfer.manager.TransferManager - arguments: - config: - position: 1 - keyword: config - arguments: - copySource: - position: 0 - keyword: copy_source - bucket: - position: 1 - keyword: bucket - key: - position: 2 - keyword: key - extraArgs: - position: 3 - keyword: extra_args - sourceClient: - position: 5 - keyword: source_client - arguments: - - copySource - - bucket - - key - - extraArgs - - sourceClient - - config - implementations: - - name: classic - selection: copy is implemented only by the classic transfer manager - commonOperationRefs: - - operation: HeadObject - usage: metadata-discovery - inputBindings: - Bucket: copySource.Bucket - Key: copySource.Key - executionPaths: - - name: single-request-success - selection: source size is below the multipart copy threshold - operationRefs: - - operation: CopyObject - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - CopySource: copySource - - name: multipart-success - selection: source size meets the multipart copy threshold and completion succeeds - operationRefs: - - operation: CreateMultipartUpload - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - - operation: UploadPartCopy - usage: one-or-more - inputBindings: - Bucket: bucket - Key: key - CopySource: copySource - - operation: CompleteMultipartUpload - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - - operation: GetObjectTagging - usage: conditional - when: - argument: extraArgs - path: TaggingDirective - equals: COPY - inputBindings: - Bucket: copySource.Bucket - Key: copySource.Key - - operation: PutObjectTagging - usage: conditional - whenAll: - - argument: extraArgs - path: TaggingDirective - in: - - COPY - - REPLACE - - derived: resolved tag set is non-empty - inputBindings: - Bucket: bucket - Key: key - - operation: ListObjectAnnotations - usage: conditional - when: - argument: extraArgs - path: AnnotationDirective - equals: COPY - inputBindings: - Bucket: copySource.Bucket - Key: copySource.Key - - operation: GetObjectAnnotation - usage: zero-or-more - whenAll: - - argument: extraArgs - path: AnnotationDirective - equals: COPY - - derived: source annotation list is non-empty - inputBindings: - Bucket: copySource.Bucket - Key: copySource.Key - - operation: PutObjectAnnotation - usage: zero-or-more - whenAll: - - argument: extraArgs - path: AnnotationDirective - equals: COPY - - derived: source annotation list is non-empty - inputBindings: - Bucket: bucket - Key: key - - name: multipart-abort - selection: multipart copy fails after creation and cleanup is attempted - operationRefs: - - operation: CreateMultipartUpload - usage: always-on-path - inputBindings: - Bucket: bucket - Key: key - - operation: UploadPartCopy - usage: zero-or-more-before-failure - inputBindings: - Bucket: bucket - Key: key - CopySource: copySource - - operation: AbortMultipartUpload - usage: failure-recovery - inputBindings: - Bucket: bucket - Key: key -- name: managed-delete - entrypoints: - - symbol: s3transfer.manager.TransferManager.delete - arguments: - bucket: - position: 0 - keyword: bucket - key: - position: 1 - keyword: key - extraArgs: - position: 2 - keyword: extra_args - - symbol: s3transfer.crt.CRTTransferManager.delete - arguments: - bucket: - position: 0 - keyword: bucket - key: - position: 1 - keyword: key - extraArgs: - position: 2 - keyword: extra_args - arguments: - - bucket - - key - - extraArgs - implementations: - - name: classic-or-crt - operationRefs: - - operation: DeleteObject - usage: always - inputBindings: - Bucket: bucket - Key: key diff --git a/catalog/aws/s3/model/service-operations-semantic-bridge.yaml b/catalog/aws/s3/model/service-operations-semantic-bridge.yaml deleted file mode 100644 index 2bdb19c..0000000 --- a/catalog/aws/s3/model/service-operations-semantic-bridge.yaml +++ /dev/null @@ -1,89 +0,0 @@ -apiVersion: runtimeconditions.io/service-operations-semantic-bridge/v1alpha1 -kind: RuntimeConditionsServiceOperationsSemanticBridge -metadata: - name: aws.s3 - service: s3 -operationSource: - kind: SmithyModel - repository: https://github.com/aws/api-models-aws.git - path: models/s3/service/2006-03-01/s3-2006-03-01.json - serviceShape: com.amazonaws.s3#AmazonS3 - operationCount: 112 - operationNamesSha256: 209771cb0915567090f615e18dacf594436fc6aadc2867f56535ae0db7935436 -extension: - id: https://runtimeconditions.io/extensions/aws/s3/0.1.0/runtimeconditions.extension.yaml - version: 0.1.0 - extensionName: aws-s3 - serviceKey: s3 - displayName: Amazon S3 - conditionKind: aws.s3 -defaultCondition: - interfaceType: bucket - identityPath: Bucket -operationMappings: -- operation: CopyObject - primaryCondition: - interfaceType: bucket - identityPath: Bucket - operationRole: destination - additionalConditions: - - interfaceType: bucket - identityPath: CopySource - identityEncoding: s3-copy-source - operationRole: source - conditional: true -- operation: CreateBucket - primaryCondition: - interfaceType: service -- operation: ListBuckets - primaryCondition: - interfaceType: service -- operation: ListDirectoryBuckets - primaryCondition: - interfaceType: service -- operation: PutBucketAnalyticsConfiguration - additionalConditions: - - interfaceType: bucket - identityPath: AnalyticsConfiguration.StorageClassAnalysis.DataExport.Destination.S3BucketDestination.Bucket - operationRole: destination - conditional: true -- operation: PutBucketInventoryConfiguration - additionalConditions: - - interfaceType: bucket - identityPath: InventoryConfiguration.Destination.S3BucketDestination.Bucket - operationRole: destination - conditional: true -- operation: PutBucketLogging - additionalConditions: - - interfaceType: bucket - identityPath: BucketLoggingStatus.LoggingEnabled.TargetBucket - operationRole: destination - conditional: true -- operation: PutBucketReplication - additionalConditions: - - interfaceType: bucket - identityPath: ReplicationConfiguration.Rules[].Destination.Bucket - identityEncoding: s3-bucket-arn - operationRole: destination - conditional: true -- operation: RestoreObject - additionalConditions: - - interfaceType: bucket - identityPath: RestoreRequest.OutputLocation.S3.BucketName - operationRole: destination - conditional: true -- operation: UploadPartCopy - primaryCondition: - interfaceType: bucket - identityPath: Bucket - operationRole: destination - additionalConditions: - - interfaceType: bucket - identityPath: CopySource - identityEncoding: s3-copy-source - operationRole: source - conditional: true -- operation: WriteGetObjectResponse - primaryCondition: - interfaceType: object_lambda - identityPath: RequestRoute diff --git a/catalog/aws/s3/releases/0.3.0/runtimeconditions.extension.yaml b/catalog/aws/s3/releases/0.3.0/runtimeconditions.extension.yaml new file mode 100644 index 0000000..9476efb --- /dev/null +++ b/catalog/aws/s3/releases/0.3.0/runtimeconditions.extension.yaml @@ -0,0 +1,1517 @@ +apiVersion: runtimeconditions.io/v1alpha1 +kind: RuntimeConditionsExtensionDefinition +metadata: + id: https://runtimeconditions.io/extensions/aws/s3/0.3.0/runtimeconditions.extension.yaml + version: 0.3.0 + description: |- + Use this extension when your workload uses Amazon S3, the file storage service from AWS. + + S3 keeps files, called objects, in buckets. A bucket is like a folder in the cloud. Your workload can + upload objects, download them, list them and delete them. It can also change the settings of a bucket, + such as who can read it or how long objects are kept. + + There are three interface types: + + - bucket: your workload uses one bucket that already exists. This is the most common one. + - service: your workload creates buckets, or lists the buckets in its AWS account. It does not need a + bucket to exist first. + - object_lambda: your workload is an S3 Object Lambda function that sends a changed object back to the + app that asked for it. + + List the operations that your workload calls, by their S3 API names, such as PutObject or GetObject. + The platform turns them into the right AWS permissions, and finds or creates the bucket. + + This extension does not ask for a bucket name, an AWS account, a Region, credentials or environment + variables. The platform decides those. If your workload needs one fixed bucket, you can give its name in + bucketName. + + A few operations work with two buckets, for example CopyObject, which copies from one bucket to another. + For those, write one Condition for each bucket, and set role to source on one and destination on the + other. +spec: + kinds: + - name: aws.s3 + description: |- + Your workload needs Amazon S3, and calls the S3 operations listed in the Condition. + + Example: a service that saves uploaded photos in a bucket and shows them again later. + + ```condition + kind: aws.s3 + interface: + type: bucket + operations: + - name: PutObject + - name: GetObject + ``` + interfaceTypes: + - name: bucket + targetKind: aws.s3 + description: |- + Your workload uses one S3 bucket that already exists. It reads or writes objects in it, or it + changes the bucket settings. + + Example: a backup job that uploads files in parts and lists what is already there. + + ```condition + kind: aws.s3 + interface: + type: bucket + operations: + - name: CreateMultipartUpload + - name: UploadPart + - name: CompleteMultipartUpload + - name: ListObjectsV2 + ``` + + Example: a job that copies objects from one bucket to another. It uses two Conditions, one for each + bucket. + + ```condition + kind: aws.s3 + interface: + type: bucket + operations: + - name: CopyObject + role: source + ``` + - name: service + targetKind: aws.s3 + description: |- + Your workload creates buckets, or lists the buckets in its AWS account. It does not need a bucket + to exist first. + + Example: a tool that makes one new bucket for each customer. + + ```condition + kind: aws.s3 + interface: + type: service + operations: + - name: CreateBucket + ``` + - name: object_lambda + targetKind: aws.s3 + description: |- + Your workload is an S3 Object Lambda function. S3 calls it when an app asks for an object, and the + function sends back a changed copy, for example a smaller image or a file with private data hidden. + + ```condition + kind: aws.s3 + interface: + type: object_lambda + operations: + - name: WriteGetObjectResponse + ``` + interfaceFields: + - name: bucketName + targetKind: aws.s3 + targetType: bucket + description: The name of the bucket, if your workload needs one fixed bucket. Leave it out to let the platform + choose or create the bucket. + - name: operations + targetKind: aws.s3 + targetType: bucket + description: The S3 operations that your workload calls on this bucket. List each one once. The platform works + out the AWS permissions that they need. + - name: operations + targetKind: aws.s3 + targetType: service + description: The operations that your workload uses to create or list buckets. The platform works out the AWS + permissions that they need. + - name: operations + targetKind: aws.s3 + targetType: object_lambda + description: The operations that your S3 Object Lambda function calls. Today this is only WriteGetObjectResponse. + fieldValues: + - field: interface.operations[].name + targetKind: aws.s3 + targetType: bucket + values: + - AbortMultipartUpload + - CompleteMultipartUpload + - CopyObject + - CreateBucketMetadataConfiguration + - CreateBucketMetadataTableConfiguration + - CreateMultipartUpload + - CreateSession + - DeleteBucket + - DeleteBucketAnalyticsConfiguration + - DeleteBucketCors + - DeleteBucketEncryption + - DeleteBucketIntelligentTieringConfiguration + - DeleteBucketInventoryConfiguration + - DeleteBucketLifecycle + - DeleteBucketMetadataConfiguration + - DeleteBucketMetadataTableConfiguration + - DeleteBucketMetricsConfiguration + - DeleteBucketOwnershipControls + - DeleteBucketPolicy + - DeleteBucketReplication + - DeleteBucketTagging + - DeleteBucketWebsite + - DeleteObject + - DeleteObjectAnnotation + - DeleteObjectTagging + - DeleteObjects + - DeletePublicAccessBlock + - GetBucketAbac + - GetBucketAccelerateConfiguration + - GetBucketAcl + - GetBucketAnalyticsConfiguration + - GetBucketCors + - GetBucketDefaultStorageClass + - GetBucketEncryption + - GetBucketIntelligentTieringConfiguration + - GetBucketInventoryConfiguration + - GetBucketLifecycleConfiguration + - GetBucketLocation + - GetBucketLogging + - GetBucketMetadataConfiguration + - GetBucketMetadataTableConfiguration + - GetBucketMetricsConfiguration + - GetBucketNotificationConfiguration + - GetBucketOwnershipControls + - GetBucketPolicy + - GetBucketPolicyStatus + - GetBucketReplication + - GetBucketRequestPayment + - GetBucketTagging + - GetBucketVersioning + - GetBucketWebsite + - GetObject + - GetObjectAcl + - GetObjectAnnotation + - GetObjectAttributes + - GetObjectLegalHold + - GetObjectLockConfiguration + - GetObjectRetention + - GetObjectTagging + - GetObjectTorrent + - GetPart + - GetPublicAccessBlock + - HeadBucket + - HeadObject + - ListBucketAnalyticsConfigurations + - ListBucketIntelligentTieringConfigurations + - ListBucketInventoryConfigurations + - ListBucketMetricsConfigurations + - ListMultipartUploads + - ListObjectAnnotations + - ListObjectVersions + - ListObjects + - ListObjectsV2 + - ListParts + - PutBucketAbac + - PutBucketAccelerateConfiguration + - PutBucketAcl + - PutBucketAnalyticsConfiguration + - PutBucketCors + - PutBucketDefaultStorageClass + - PutBucketEncryption + - PutBucketIntelligentTieringConfiguration + - PutBucketInventoryConfiguration + - PutBucketLifecycleConfiguration + - PutBucketLogging + - PutBucketMetricsConfiguration + - PutBucketNotificationConfiguration + - PutBucketOwnershipControls + - PutBucketPolicy + - PutBucketReplication + - PutBucketRequestPayment + - PutBucketTagging + - PutBucketVersioning + - PutBucketWebsite + - PutObject + - PutObjectAcl + - PutObjectAnnotation + - PutObjectLegalHold + - PutObjectLockConfiguration + - PutObjectRetention + - PutObjectTagging + - PutPublicAccessBlock + - RenameObject + - RestoreObject + - SelectObjectContent + - UpdateBucketMetadataAnnotationTableConfiguration + - UpdateBucketMetadataInventoryTableConfiguration + - UpdateBucketMetadataJournalTableConfiguration + - UpdateObjectEncryption + - UploadPart + - UploadPartCopy + valueDescriptions: + AbortMultipartUpload: Stop an upload that was being sent in parts, and delete the parts that were already + uploaded. + CompleteMultipartUpload: Finish an upload that was sent in parts, so that S3 joins the parts into one object. + CopyObject: Copy an object. Use role source on the bucket that you copy from, and role destination on the + bucket that you copy to. + CreateBucketMetadataConfiguration: Turn on S3 Metadata for the bucket. S3 then keeps tables that describe + the objects in the bucket. + CreateBucketMetadataTableConfiguration: Turn on the first version of S3 Metadata (one journal table) for the + bucket. AWS now suggests CreateBucketMetadataConfiguration instead. + CreateMultipartUpload: Start an upload that sends a big object in several parts. + CreateSession: Get short-lived credentials for fast access to a directory bucket (S3 Express One Zone). + DeleteBucket: Delete the bucket. The bucket must be empty first. + DeleteBucketAnalyticsConfiguration: Delete one storage class analysis setting from the bucket. + DeleteBucketCors: Delete the CORS rules of the bucket. CORS rules say which websites can call the bucket from + a web browser. + DeleteBucketEncryption: Remove the default encryption setting of the bucket, so that S3 goes back to its standard + encryption. + DeleteBucketIntelligentTieringConfiguration: Delete one S3 Intelligent-Tiering setting from the bucket. + DeleteBucketInventoryConfiguration: Delete one inventory report setting from the bucket. + DeleteBucketLifecycle: Delete all lifecycle rules of the bucket. Lifecycle rules move or delete objects after + some time. + DeleteBucketMetadataConfiguration: Turn off S3 Metadata for the bucket. + DeleteBucketMetadataTableConfiguration: Turn off the first version of S3 Metadata (the journal table) for + the bucket. + DeleteBucketMetricsConfiguration: Delete one request metrics setting from the bucket. + DeleteBucketOwnershipControls: Delete the object ownership setting of the bucket. + DeleteBucketPolicy: Delete the bucket policy, which is the list of access rules attached to the bucket. + DeleteBucketReplication: Delete the replication rules of the bucket. Replication rules copy new objects to + another bucket. + DeleteBucketTagging: Delete all tags from the bucket. + DeleteBucketWebsite: Turn off static website hosting for the bucket. + DeleteObject: Delete one object. + DeleteObjectAnnotation: Delete an annotation from an object. An annotation is a named piece of extra data + attached to an object. + DeleteObjectTagging: Delete all tags from an object. + DeleteObjects: Delete many objects in one call. + DeletePublicAccessBlock: Remove the Block Public Access setting of the bucket. + GetBucketAbac: Read whether the bucket uses its tags for access control (attribute-based access control, or + ABAC). + GetBucketAccelerateConfiguration: Read whether Transfer Acceleration is on for the bucket. + GetBucketAcl: Read the access control list (ACL) of the bucket. + GetBucketAnalyticsConfiguration: Read one storage class analysis setting of the bucket. + GetBucketCors: Read the CORS rules of the bucket. + GetBucketDefaultStorageClass: Read the default storage class of the bucket. New objects get this storage class + when the upload does not choose one. + GetBucketEncryption: Read the default encryption setting of the bucket. + GetBucketIntelligentTieringConfiguration: Read one S3 Intelligent-Tiering setting of the bucket. + GetBucketInventoryConfiguration: Read one inventory report setting of the bucket. + GetBucketLifecycleConfiguration: Read the lifecycle rules of the bucket. + GetBucketLocation: Read which AWS Region the bucket is in. + GetBucketLogging: Read where the access logs of the bucket are written. + GetBucketMetadataConfiguration: Read the S3 Metadata setting of the bucket. + GetBucketMetadataTableConfiguration: Read the setting of the first version of S3 Metadata (the journal table) + for the bucket. + GetBucketMetricsConfiguration: Read one request metrics setting of the bucket. + GetBucketNotificationConfiguration: Read which bucket events S3 reports, and where it sends them. + GetBucketOwnershipControls: Read the object ownership setting of the bucket. + GetBucketPolicy: Read the bucket policy. + GetBucketPolicyStatus: Check whether the bucket policy makes the bucket public. + GetBucketReplication: Read the replication rules of the bucket. + GetBucketRequestPayment: 'Read who pays for requests and downloads: the bucket owner, or the person who makes + the request.' + GetBucketTagging: Read the tags of the bucket. + GetBucketVersioning: Read whether versioning is on for the bucket. + GetBucketWebsite: Read the static website settings of the bucket. + GetObject: Download an object, or a part of it. + GetObjectAcl: Read the access control list (ACL) of an object. + GetObjectAnnotation: Read one annotation of an object. + GetObjectAttributes: Read facts about an object, such as its size, checksum and parts, without downloading + it. + GetObjectLegalHold: Read whether an object has a legal hold. A legal hold stops anyone from deleting the object. + GetObjectLockConfiguration: Read the Object Lock setting of the bucket. Object Lock can stop objects from + being deleted for some time. + GetObjectRetention: Read until when an object is locked against deletion. + GetObjectTagging: Read the tags of an object. + GetObjectTorrent: Download an object as a BitTorrent file. + GetPart: Download one part of an upload that was sent in parts. The upload can be finished or still going + on. + GetPublicAccessBlock: Read the Block Public Access setting of the bucket. + HeadBucket: Check that the bucket exists, and that the workload is allowed to use it. + HeadObject: Read the metadata of an object, such as its size and type, without downloading it. + ListBucketAnalyticsConfigurations: List the storage class analysis settings of the bucket. + ListBucketIntelligentTieringConfigurations: List the S3 Intelligent-Tiering settings of the bucket. + ListBucketInventoryConfigurations: List the inventory report settings of the bucket. + ListBucketMetricsConfigurations: List the request metrics settings of the bucket. + ListMultipartUploads: List the uploads in parts that were started, but not finished or stopped yet. + ListObjectAnnotations: List the annotations of an object. + ListObjectVersions: List every version of the objects in the bucket. + ListObjects: List the objects in the bucket. This is the older version of ListObjectsV2. + ListObjectsV2: List the objects in the bucket. + ListParts: List the parts that were already uploaded for an upload in parts. + PutBucketAbac: Turn on or off the use of bucket tags for access control (attribute-based access control, or + ABAC). + PutBucketAccelerateConfiguration: Turn Transfer Acceleration on or off for the bucket. + PutBucketAcl: Set the access control list (ACL) of the bucket. + PutBucketAnalyticsConfiguration: Add or change a storage class analysis setting. Use role source on this bucket, + and role destination on the bucket that gets the exported results. + PutBucketCors: Set the CORS rules of the bucket. + PutBucketDefaultStorageClass: Set the default storage class of the bucket. New objects get this storage class + when the upload does not choose one. + PutBucketEncryption: Set the default encryption of the bucket. + PutBucketIntelligentTieringConfiguration: Add or change an S3 Intelligent-Tiering setting of the bucket. + PutBucketInventoryConfiguration: Add or change an inventory report setting. Use role source on this bucket, + and role destination on the bucket that gets the reports. + PutBucketLifecycleConfiguration: Set the lifecycle rules of the bucket. + PutBucketLogging: Turn access logs on or off. Use role source on this bucket, and role destination on the + bucket that gets the logs. + PutBucketMetricsConfiguration: Add or change a request metrics setting of the bucket. + PutBucketNotificationConfiguration: Set which bucket events S3 reports, and where it sends them. + PutBucketOwnershipControls: Set the object ownership setting of the bucket. + PutBucketPolicy: Set the bucket policy. + PutBucketReplication: Set the replication rules. Use role source on this bucket, and role destination on the + bucket that gets the copies. + PutBucketRequestPayment: Set who pays for requests and downloads. + PutBucketTagging: Set the tags of the bucket. + PutBucketVersioning: Turn versioning on, or pause it, for the bucket. + PutBucketWebsite: Set up static website hosting for the bucket. + PutObject: Upload an object. + PutObjectAcl: Set the access control list (ACL) of an object. + PutObjectAnnotation: Add an annotation to an object, or change one. + PutObjectLegalHold: Put a legal hold on an object, or take it off. + PutObjectLockConfiguration: Set the Object Lock setting of the bucket. + PutObjectRetention: Set until when an object is locked against deletion. + PutObjectTagging: Set the tags of an object. + PutPublicAccessBlock: Set the Block Public Access setting of the bucket. + RenameObject: Give an object a new name. This works only in a directory bucket (S3 Express One Zone). + RestoreObject: Bring back an archived object, for example from S3 Glacier, so that it can be read again. Use + role source on the bucket of the archived object. If the restore writes results to another bucket, use role + destination on that bucket. + SelectObjectContent: Read only some of the data in an object, with a simple SQL query. + UpdateBucketMetadataAnnotationTableConfiguration: Turn the S3 Metadata annotation table on or off for the + bucket, or change its settings. + UpdateBucketMetadataInventoryTableConfiguration: Turn the S3 Metadata inventory table on or off for the bucket, + or change its settings. + UpdateBucketMetadataJournalTableConfiguration: Change the settings of the S3 Metadata journal table of the + bucket. + UpdateObjectEncryption: Change how an existing object is encrypted, without uploading it again. + UploadPart: Upload one part of an upload in parts. + UploadPartCopy: Copy data from an existing object as one part of an upload in parts. Use role source on the + bucket that you copy from, and role destination on the bucket that you upload to. + - field: interface.operations[].role + targetKind: aws.s3 + targetType: bucket + values: + - destination + - source + valueDescriptions: + destination: This bucket is where the data goes, for example the bucket that you copy to or that gets the + logs. + source: This bucket is where the data comes from, for example the bucket that you copy from. + - field: interface.operations[].name + targetKind: aws.s3 + targetType: service + values: + - CreateBucket + - ListBuckets + - ListDirectoryBuckets + valueDescriptions: + CreateBucket: Create a new bucket. + ListBuckets: List the buckets in the AWS account. + ListDirectoryBuckets: List the directory buckets (S3 Express One Zone) in the AWS account. + - field: interface.operations[].name + targetKind: aws.s3 + targetType: object_lambda + values: + - WriteGetObjectResponse + valueDescriptions: + WriteGetObjectResponse: Send the changed object back to the app that asked for it, from inside an S3 Object + Lambda function. + schemas: + - id: aws-s3-bucket-interface + appliesToKind: aws.s3 + appliesToInterfaceType: bucket + description: Checks a bucket Condition. Fields from other extensions are allowed. + schema: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + required: + - kind + - interface + properties: + kind: + const: aws.s3 + description: Always aws.s3 for this extension. + interface: + type: object + required: + - type + - operations + properties: + type: + const: bucket + description: Always bucket for this interface type. + bucketName: + type: string + minLength: 1 + description: The name of the bucket, if your workload needs one fixed bucket. Leave it out to let + the platform choose or create the bucket. + operations: + type: array + minItems: 1 + uniqueItems: true + items: + oneOf: + - type: object + required: + - name + properties: + name: + const: AbortMultipartUpload + description: Stop an upload that was being sent in parts, and delete the parts that were already + uploaded. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: CompleteMultipartUpload + description: Finish an upload that was sent in parts, so that S3 joins the parts into one + object. + additionalProperties: false + - type: object + required: + - name + - role + properties: + name: + const: CopyObject + description: Copy an object. Use role source on the bucket that you copy from, and role destination + on the bucket that you copy to. + role: + enum: + - destination + - source + description: 'Which bucket this Condition is in this operation: source, where the data comes + from, or destination, where it goes.' + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: CreateBucketMetadataConfiguration + description: Turn on S3 Metadata for the bucket. S3 then keeps tables that describe the objects + in the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: CreateBucketMetadataTableConfiguration + description: Turn on the first version of S3 Metadata (one journal table) for the bucket. + AWS now suggests CreateBucketMetadataConfiguration instead. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: CreateMultipartUpload + description: Start an upload that sends a big object in several parts. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: CreateSession + description: Get short-lived credentials for fast access to a directory bucket (S3 Express + One Zone). + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucket + description: Delete the bucket. The bucket must be empty first. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketAnalyticsConfiguration + description: Delete one storage class analysis setting from the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketCors + description: Delete the CORS rules of the bucket. CORS rules say which websites can call the + bucket from a web browser. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketEncryption + description: Remove the default encryption setting of the bucket, so that S3 goes back to + its standard encryption. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketIntelligentTieringConfiguration + description: Delete one S3 Intelligent-Tiering setting from the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketInventoryConfiguration + description: Delete one inventory report setting from the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketLifecycle + description: Delete all lifecycle rules of the bucket. Lifecycle rules move or delete objects + after some time. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketMetadataConfiguration + description: Turn off S3 Metadata for the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketMetadataTableConfiguration + description: Turn off the first version of S3 Metadata (the journal table) for the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketMetricsConfiguration + description: Delete one request metrics setting from the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketOwnershipControls + description: Delete the object ownership setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketPolicy + description: Delete the bucket policy, which is the list of access rules attached to the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketReplication + description: Delete the replication rules of the bucket. Replication rules copy new objects + to another bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketTagging + description: Delete all tags from the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteBucketWebsite + description: Turn off static website hosting for the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteObject + description: Delete one object. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteObjectAnnotation + description: Delete an annotation from an object. An annotation is a named piece of extra + data attached to an object. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteObjectTagging + description: Delete all tags from an object. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeleteObjects + description: Delete many objects in one call. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: DeletePublicAccessBlock + description: Remove the Block Public Access setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketAbac + description: Read whether the bucket uses its tags for access control (attribute-based access + control, or ABAC). + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketAccelerateConfiguration + description: Read whether Transfer Acceleration is on for the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketAcl + description: Read the access control list (ACL) of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketAnalyticsConfiguration + description: Read one storage class analysis setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketCors + description: Read the CORS rules of the bucket. + additionalProperties: false + - type: object + required: + - name + additionalProperties: false + properties: + name: + const: GetBucketDefaultStorageClass + description: Read the default storage class of the bucket. New objects get this storage class + when the upload does not choose one. + - type: object + required: + - name + properties: + name: + const: GetBucketEncryption + description: Read the default encryption setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketIntelligentTieringConfiguration + description: Read one S3 Intelligent-Tiering setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketInventoryConfiguration + description: Read one inventory report setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketLifecycleConfiguration + description: Read the lifecycle rules of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketLocation + description: Read which AWS Region the bucket is in. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketLogging + description: Read where the access logs of the bucket are written. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketMetadataConfiguration + description: Read the S3 Metadata setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketMetadataTableConfiguration + description: Read the setting of the first version of S3 Metadata (the journal table) for + the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketMetricsConfiguration + description: Read one request metrics setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketNotificationConfiguration + description: Read which bucket events S3 reports, and where it sends them. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketOwnershipControls + description: Read the object ownership setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketPolicy + description: Read the bucket policy. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketPolicyStatus + description: Check whether the bucket policy makes the bucket public. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketReplication + description: Read the replication rules of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketRequestPayment + description: 'Read who pays for requests and downloads: the bucket owner, or the person who + makes the request.' + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketTagging + description: Read the tags of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketVersioning + description: Read whether versioning is on for the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetBucketWebsite + description: Read the static website settings of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetObject + description: Download an object, or a part of it. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetObjectAcl + description: Read the access control list (ACL) of an object. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetObjectAnnotation + description: Read one annotation of an object. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetObjectAttributes + description: Read facts about an object, such as its size, checksum and parts, without downloading + it. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetObjectLegalHold + description: Read whether an object has a legal hold. A legal hold stops anyone from deleting + the object. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetObjectLockConfiguration + description: Read the Object Lock setting of the bucket. Object Lock can stop objects from + being deleted for some time. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetObjectRetention + description: Read until when an object is locked against deletion. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetObjectTagging + description: Read the tags of an object. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: GetObjectTorrent + description: Download an object as a BitTorrent file. + additionalProperties: false + - type: object + required: + - name + additionalProperties: false + properties: + name: + const: GetPart + description: Download one part of an upload that was sent in parts. The upload can be finished + or still going on. + - type: object + required: + - name + properties: + name: + const: GetPublicAccessBlock + description: Read the Block Public Access setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: HeadBucket + description: Check that the bucket exists, and that the workload is allowed to use it. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: HeadObject + description: Read the metadata of an object, such as its size and type, without downloading + it. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: ListBucketAnalyticsConfigurations + description: List the storage class analysis settings of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: ListBucketIntelligentTieringConfigurations + description: List the S3 Intelligent-Tiering settings of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: ListBucketInventoryConfigurations + description: List the inventory report settings of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: ListBucketMetricsConfigurations + description: List the request metrics settings of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: ListMultipartUploads + description: List the uploads in parts that were started, but not finished or stopped yet. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: ListObjectAnnotations + description: List the annotations of an object. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: ListObjectVersions + description: List every version of the objects in the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: ListObjects + description: List the objects in the bucket. This is the older version of ListObjectsV2. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: ListObjectsV2 + description: List the objects in the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: ListParts + description: List the parts that were already uploaded for an upload in parts. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketAbac + description: Turn on or off the use of bucket tags for access control (attribute-based access + control, or ABAC). + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketAccelerateConfiguration + description: Turn Transfer Acceleration on or off for the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketAcl + description: Set the access control list (ACL) of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketAnalyticsConfiguration + description: Add or change a storage class analysis setting. Use role source on this bucket, + and role destination on the bucket that gets the exported results. + role: + enum: + - destination + description: 'Which bucket this Condition is in this operation: source, where the data comes + from, or destination, where it goes.' + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketCors + description: Set the CORS rules of the bucket. + additionalProperties: false + - type: object + required: + - name + additionalProperties: false + properties: + name: + const: PutBucketDefaultStorageClass + description: Set the default storage class of the bucket. New objects get this storage class + when the upload does not choose one. + - type: object + required: + - name + properties: + name: + const: PutBucketEncryption + description: Set the default encryption of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketIntelligentTieringConfiguration + description: Add or change an S3 Intelligent-Tiering setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketInventoryConfiguration + description: Add or change an inventory report setting. Use role source on this bucket, and + role destination on the bucket that gets the reports. + role: + enum: + - destination + description: 'Which bucket this Condition is in this operation: source, where the data comes + from, or destination, where it goes.' + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketLifecycleConfiguration + description: Set the lifecycle rules of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketLogging + description: Turn access logs on or off. Use role source on this bucket, and role destination + on the bucket that gets the logs. + role: + enum: + - destination + description: 'Which bucket this Condition is in this operation: source, where the data comes + from, or destination, where it goes.' + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketMetricsConfiguration + description: Add or change a request metrics setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketNotificationConfiguration + description: Set which bucket events S3 reports, and where it sends them. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketOwnershipControls + description: Set the object ownership setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketPolicy + description: Set the bucket policy. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketReplication + description: Set the replication rules. Use role source on this bucket, and role destination + on the bucket that gets the copies. + role: + enum: + - destination + description: 'Which bucket this Condition is in this operation: source, where the data comes + from, or destination, where it goes.' + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketRequestPayment + description: Set who pays for requests and downloads. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketTagging + description: Set the tags of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketVersioning + description: Turn versioning on, or pause it, for the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutBucketWebsite + description: Set up static website hosting for the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutObject + description: Upload an object. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutObjectAcl + description: Set the access control list (ACL) of an object. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutObjectAnnotation + description: Add an annotation to an object, or change one. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutObjectLegalHold + description: Put a legal hold on an object, or take it off. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutObjectLockConfiguration + description: Set the Object Lock setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutObjectRetention + description: Set until when an object is locked against deletion. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutObjectTagging + description: Set the tags of an object. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: PutPublicAccessBlock + description: Set the Block Public Access setting of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: RenameObject + description: Give an object a new name. This works only in a directory bucket (S3 Express + One Zone). + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: RestoreObject + description: Bring back an archived object, for example from S3 Glacier, so that it can be + read again. Use role source on the bucket of the archived object. If the restore writes + results to another bucket, use role destination on that bucket. + role: + enum: + - destination + description: 'Which bucket this Condition is in this operation: source, where the data comes + from, or destination, where it goes.' + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: SelectObjectContent + description: Read only some of the data in an object, with a simple SQL query. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: UpdateBucketMetadataAnnotationTableConfiguration + description: Turn the S3 Metadata annotation table on or off for the bucket, or change its + settings. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: UpdateBucketMetadataInventoryTableConfiguration + description: Turn the S3 Metadata inventory table on or off for the bucket, or change its + settings. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: UpdateBucketMetadataJournalTableConfiguration + description: Change the settings of the S3 Metadata journal table of the bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: UpdateObjectEncryption + description: Change how an existing object is encrypted, without uploading it again. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: UploadPart + description: Upload one part of an upload in parts. + additionalProperties: false + - type: object + required: + - name + - role + properties: + name: + const: UploadPartCopy + description: Copy data from an existing object as one part of an upload in parts. Use role + source on the bucket that you copy from, and role destination on the bucket that you upload + to. + role: + enum: + - destination + - source + description: 'Which bucket this Condition is in this operation: source, where the data comes + from, or destination, where it goes.' + additionalProperties: false + description: The S3 operations that your workload calls on this bucket. List each one once. The platform + works out the AWS permissions that they need. + additionalProperties: true + description: What your workload needs from S3, and which S3 operations it calls. + additionalProperties: true + description: 'A bucket Condition for Amazon S3: one bucket that already exists, and the operations that your + workload calls on it.' + - id: aws-s3-service-interface + appliesToKind: aws.s3 + appliesToInterfaceType: service + description: Checks a service Condition. Fields from other extensions are allowed. + schema: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + required: + - kind + - interface + properties: + kind: + const: aws.s3 + description: Always aws.s3 for this extension. + interface: + type: object + required: + - type + - operations + properties: + type: + const: service + description: Always service for this interface type. + operations: + type: array + minItems: 1 + uniqueItems: true + items: + oneOf: + - type: object + required: + - name + properties: + name: + const: CreateBucket + description: Create a new bucket. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: ListBuckets + description: List the buckets in the AWS account. + additionalProperties: false + - type: object + required: + - name + properties: + name: + const: ListDirectoryBuckets + description: List the directory buckets (S3 Express One Zone) in the AWS account. + additionalProperties: false + description: The operations that your workload uses to create or list buckets. The platform works + out the AWS permissions that they need. + additionalProperties: true + description: What your workload needs from S3, and which S3 operations it calls. + additionalProperties: true + description: 'A service Condition for Amazon S3: operations that create or list buckets, and need no bucket + first.' + - id: aws-s3-object-lambda-interface + appliesToKind: aws.s3 + appliesToInterfaceType: object_lambda + description: Checks an object_lambda Condition. Fields from other extensions are allowed. + schema: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + required: + - kind + - interface + properties: + kind: + const: aws.s3 + description: Always aws.s3 for this extension. + interface: + type: object + required: + - type + - operations + properties: + type: + const: object_lambda + description: Always object_lambda for this interface type. + operations: + type: array + minItems: 1 + uniqueItems: true + items: + oneOf: + - type: object + required: + - name + properties: + name: + const: WriteGetObjectResponse + description: Send the changed object back to the app that asked for it, from inside an S3 + Object Lambda function. + additionalProperties: false + description: The operations that your S3 Object Lambda function calls. Today this is only WriteGetObjectResponse. + additionalProperties: true + description: What your workload needs from S3, and which S3 operations it calls. + additionalProperties: true + description: 'An object_lambda Condition for Amazon S3: an S3 Object Lambda function that sends back changed + objects.' diff --git a/catalog/aws/s3/tools/generate_owner_mappings.py b/catalog/aws/s3/tools/generate_owner_mappings.py deleted file mode 100644 index 9d7ca0b..0000000 --- a/catalog/aws/s3/tools/generate_owner_mappings.py +++ /dev/null @@ -1,628 +0,0 @@ -#!/usr/bin/env python3 -"""Generate owner-aligned botocore, boto3, and s3transfer S3 mappings. - -The script reads SDK models and reviewed wrapper annotations as data. It does -not import or execute any of the SDK packages whose metadata it generates. -""" - -from __future__ import annotations - -import argparse -import hashlib -import json -import re -from pathlib import Path -from typing import Any - -from serialization import read_document, write_yaml - - -API_VERSION = "runtimeconditions.io/sdk-mapping/v1alpha1" -MAPPING_KIND = "RuntimeConditionsSDKMapping" - - -def semantic_sha256(value: Any) -> str: - encoded = json.dumps(value, sort_keys=True, separators=(",", ":"), ensure_ascii=False).encode("utf-8") - return hashlib.sha256(encoded).hexdigest() - - -def add_mapping_semantic_digest(mapping: dict[str, Any]) -> None: - mapping["metadata"]["semanticSha256"] = semantic_sha256({"operations": mapping.get("operations", []), "python": mapping.get("python", {})}) - - -def python_name(name: str) -> str: - first = re.sub(r"(.)([A-Z][a-z]+)", r"\1_\2", name) - return re.sub(r"([a-z0-9])([A-Z])", r"\1_\2", first).lower() - - -def operation_fingerprint(names: list[str]) -> str: - return hashlib.sha256(("\n".join(names) + "\n").encode()).hexdigest() - - -def sdk_dependency(distribution: str, mapping: str) -> dict[str, str]: - return { - "kind": "sdkMapping", - "distribution": distribution, - "mapping": mapping, - } - - -def operation_ref(operation: str) -> dict[str, str]: - return { - "distribution": "botocore", - "mapping": "botocore.aws.s3", - "operation": operation, - } - - -def wrapper_binding(value: dict[str, Any]) -> dict[str, Any]: - result = dict(value) - call = result.pop("call") - result["callRef"] = { - "distribution": "s3transfer", - "mapping": "s3transfer.aws.s3", - "call": call, - } - return result - - -def referenced_operation(value: Any, operations: set[str], context: str) -> Any: - """Replace every semantic operation leaf with an owner-qualified ref.""" - if isinstance(value, list): - return [referenced_operation(item, operations, context) for item in value] - if not isinstance(value, dict): - return value - generated = { - key: referenced_operation(item, operations, context) - for key, item in value.items() - if key != "operation" - } - if "operation" in value: - operation = value["operation"] - if operation not in operations: - raise ValueError(f"{context} references unknown operation: {operation}") - generated["operationRef"] = operation_ref(operation) - return generated - - -def canonicalize_operation_refs(value: Any, aliases: dict[str, str]) -> Any: - if isinstance(value, list): - return [canonicalize_operation_refs(item, aliases) for item in value] - if not isinstance(value, dict): - return value - result = { - key: canonicalize_operation_refs(item, aliases) - for key, item in value.items() - } - operation_ref_value = result.get("operationRef") - if isinstance(operation_ref_value, dict): - operation = operation_ref_value.get("operation") - if operation in aliases: - operation_ref_value["sdkOperation"] = operation - operation_ref_value["operation"] = aliases[operation] - return result - - -def request_binding(request: dict[str, Any] | None) -> dict[str, Any] | None: - if not request or not request.get("operation"): - return None - return { - "operationRef": operation_ref(request["operation"]), - "parameterBindings": request.get("params", []), - } - - -def response_resource(value: dict[str, Any] | None) -> dict[str, Any] | None: - if not value: - return None - return { - "resource": value.get("type"), - "path": value.get("path"), - "identifierBindings": value.get("identifiers", []), - } - - -def action_binding(name: str, value: dict[str, Any], batch: bool = False) -> dict[str, Any]: - result: dict[str, Any] = { - "method": python_name(name), - "modelName": name, - "batch": batch, - } - request = request_binding(value.get("request")) - if request: - result.update(request) - returned = response_resource(value.get("resource")) - if returned: - result["returns"] = returned - if value.get("path"): - result["responsePath"] = value["path"] - return result - - -def relation_binding(name: str, value: dict[str, Any]) -> dict[str, Any]: - resource = value.get("resource", {}) - identifiers = resource.get("identifiers", []) - needs_data = any(item.get("source") == "data" for item in identifiers) - relation_kind = "reference" if needs_data else "subresource" - member = python_name(name) if needs_data else name - result: dict[str, Any] = { - "member": member, - "modelName": name, - "kind": relation_kind, - "resource": resource.get("type"), - "identifierBindings": identifiers, - } - if resource.get("path"): - result["responsePath"] = resource["path"] - return result - - -def collection_binding(name: str, value: dict[str, Any], resources: dict[str, Any]) -> dict[str, Any]: - resource = value.get("resource", {}) - target = resource.get("type") - result: dict[str, Any] = { - "member": python_name(name), - "modelName": name, - "resource": target, - "identifierBindings": resource.get("identifiers", []), - "batchActions": [], - } - request = request_binding(value.get("request")) - if request: - result.update(request) - if resource.get("path"): - result["responsePath"] = resource["path"] - for action_name, action in sorted(resources.get(target, {}).get("batchActions", {}).items()): - result["batchActions"].append(action_binding(action_name, action, batch=True)) - return result - - -def service_relations(service: dict[str, Any], resources: dict[str, Any]) -> dict[str, Any]: - relations = dict(service.get("has", {})) - represented = { - value.get("resource", {}).get("type") - for value in relations.values() - } - for name, definition in resources.items(): - if name in represented: - continue - relations[name] = { - "resource": { - "type": name, - "identifiers": [ - {"target": item["name"], "source": "input"} - for item in definition.get("identifiers", []) - ], - } - } - return relations - - -def resource_binding( - name: str, - definition: dict[str, Any], - resources: dict[str, Any], - wrapper_annotations: dict[str, Any], -) -> dict[str, Any]: - identifiers = [ - { - "name": item["name"], - "pythonName": python_name(item["name"]), - **({"type": item["type"]} if item.get("type") else {}), - **({"memberName": item["memberName"]} if item.get("memberName") else {}), - } - for item in definition.get("identifiers", []) - ] - actions = [ - action_binding(action_name, action) - for action_name, action in sorted(definition.get("actions", {}).items()) - ] - load = definition.get("load") - if load and load.get("request", {}).get("operation"): - binding = request_binding(load["request"]) - actions.extend( - { - "method": method, - "modelName": "load", - "batch": False, - **binding, - } - for method in ("load", "reload") - ) - for extra in wrapper_annotations.get("handwrittenResourceActions", {}).get(name, []): - for method in extra["methods"]: - actions.append( - { - "method": method, - "modelName": "handwritten", - "batch": False, - "operationRef": operation_ref(extra["operation"]), - "parameterBindings": extra.get("parameterBindings", []), - } - ) - - waiters = [ - { - "method": f"wait_until_{python_name(waiter_name)}", - "waiterRef": { - "distribution": "botocore", - "mapping": "botocore.aws.s3", - "waiter": python_name(waiter.get("waiterName", waiter_name)), - }, - "parameterBindings": waiter.get("params", []), - } - for waiter_name, waiter in sorted(definition.get("waiters", {}).items()) - ] - relations = [ - relation_binding(relation_name, relation) - for relation_name, relation in sorted(definition.get("has", {}).items()) - ] - collections = [ - collection_binding(collection_name, collection, resources) - for collection_name, collection in sorted(definition.get("hasMany", {}).items()) - ] - return { - "name": name, - "identifiers": identifiers, - "actions": sorted(actions, key=lambda item: (item["method"], item["modelName"])), - "waiters": waiters, - "relations": relations, - "collections": collections, - "wrappers": [ - wrapper_binding(item) - for item in wrapper_annotations.get("resourceWrappers", {}).get(name, []) - ], - } - - -def botocore_mapping( - service_mapping: dict[str, Any], - sdk_service_model: dict[str, Any], - paginators: dict[str, Any], - waiters: dict[str, Any], - annotations: dict[str, Any], - version: str, -) -> dict[str, Any]: - service_metadata = service_mapping["metadata"] - authoritative_operations = { - item["name"]: item for item in service_mapping["operations"] - } - authoritative_operation_names = set(authoritative_operations) - aliases = annotations.get("canonicalOperationAliases", {}) - sdk_operation_names = set(sdk_service_model.get("operations", {})) - applicable_aliases = { - alias: canonical - for alias, canonical in aliases.items() - if alias in sdk_operation_names - } - canonical_sdk_operations = { - aliases.get(operation, operation) for operation in sdk_operation_names - } - unknown_alias_targets = sorted(set(applicable_aliases.values()) - authoritative_operation_names) - if unknown_alias_targets: - raise ValueError( - "botocore aliases target unknown canonical operations: " - + ", ".join(unknown_alias_targets) - ) - conflicting_aliases = sorted(set(applicable_aliases) & authoritative_operation_names) - if conflicting_aliases: - raise ValueError( - "botocore aliases conflict with canonical operations: " - + ", ".join(conflicting_aliases) - ) - unsupported_operations = sorted(canonical_sdk_operations - authoritative_operation_names) - if unsupported_operations: - raise ValueError( - "SDK operations are absent from the version-aligned extension: " - + ", ".join(unsupported_operations) - ) - operations = [ - authoritative_operations[name] for name in sorted(canonical_sdk_operations) - ] - operation_names = set(canonical_sdk_operations) - - paginator_items = [] - for name in sorted(paginators.get("pagination", {})): - if name not in operation_names: - raise ValueError(f"paginator references unknown operation: {name}") - paginator_items.append( - { - "name": python_name(name), - "terminalMethod": "paginate", - "operation": name, - } - ) - - waiter_items = [] - for name, value in sorted(waiters.get("waiters", {}).items()): - operation = value.get("operation") - if operation not in operation_names: - raise ValueError(f"waiter {name} references unknown operation: {operation}") - waiter_items.append( - { - "name": python_name(name), - "terminalMethod": "wait", - "operation": operation, - } - ) - - return { - "apiVersion": API_VERSION, - "kind": MAPPING_KIND, - "metadata": { - "name": "botocore.aws.s3", - "distribution": "botocore", - "distributionVersion": version, - "language": "python", - "service": "s3", - "serviceId": service_metadata["serviceId"], - "serviceShape": service_metadata["serviceShape"], - "serviceVersion": service_metadata["serviceVersion"], - "operationNamesSha256": service_metadata["operationNamesSha256"], - "serviceMappingSemanticSha256": service_metadata["semanticSha256"], - "sdkOperationCount": len(sdk_operation_names), - "sdkCanonicalOperationNamesSha256": operation_fingerprint( - sorted(canonical_sdk_operations) - ), - }, - "dependencies": [ - {"kind": "extension", **service_mapping["extension"]} - ], - "extension": service_mapping["extension"], - "operations": operations, - "python": { - "client": { - "surface": "botocore.client.s3", - "methods": sorted([ - {"method": python_name(item["name"]), "operation": item["name"]} - for item in operations - ] + [ - { - "method": python_name(alias), - "sdkOperation": alias, - "operation": canonical, - } - for alias, canonical in applicable_aliases.items() - ], key=lambda item: item["method"]), - "paginatorFactory": { - "method": "get_paginator", - "selector": {"position": 0, "keyword": "operation_name"}, - "items": paginator_items, - }, - "waiterFactory": { - "method": "get_waiter", - "selector": {"position": 0, "keyword": "waiter_name"}, - "items": waiter_items, - }, - } - }, - } - - -def s3transfer_mapping(annotations: dict[str, Any], version: str, operations: set[str]) -> dict[str, Any]: - calls = [] - for call in annotations.get("calls", []): - declared_arguments = set(call.get("arguments", [])) - for entrypoint in call.get("entrypoints", []): - supplied_arguments = set(entrypoint.get("arguments", {})) - supplied_arguments.update( - entrypoint.get("receiverContext", {}).get("arguments", {}) - ) - unknown_arguments = sorted(supplied_arguments - declared_arguments) - if unknown_arguments: - raise ValueError( - f"s3transfer call {call['name']} entrypoint {entrypoint.get('symbol')} " - f"binds undeclared arguments: {', '.join(unknown_arguments)}" - ) - generated_call = dict(call) - generated_call["implementations"] = referenced_operation( - call.get("implementations", []), - operations, - f"s3transfer call {call['name']}", - ) - calls.append(generated_call) - return { - "apiVersion": API_VERSION, - "kind": MAPPING_KIND, - "metadata": { - "name": "s3transfer.aws.s3", - "distribution": "s3transfer", - "distributionVersion": version, - "language": "python", - "service": "s3", - }, - "dependencies": [sdk_dependency("botocore", "botocore.aws.s3")], - "python": {"calls": calls}, - } - - -def boto3_mapping( - resource_model: dict[str, Any], - annotations: dict[str, Any], - version: str, - known_calls: dict[str, set[str]], -) -> dict[str, Any]: - referenced_calls = { - item["call"] for item in annotations.get("clientWrappers", []) - } - referenced_calls.update( - item["call"] for item in annotations.get("transferClassWrappers", []) - ) - for wrappers in annotations.get("resourceWrappers", {}).values(): - referenced_calls.update(item["call"] for item in wrappers) - unknown_calls = sorted(referenced_calls - set(known_calls)) - if unknown_calls: - raise ValueError(f"boto3 wrappers reference unknown s3transfer calls: {', '.join(unknown_calls)}") - - all_wrappers = list(annotations.get("clientWrappers", [])) - all_wrappers.extend(annotations.get("transferClassWrappers", [])) - for wrappers in annotations.get("resourceWrappers", {}).values(): - all_wrappers.extend(wrappers) - for wrapper in all_wrappers: - supplied_arguments = set(wrapper.get("arguments", {})) - supplied_arguments.update(wrapper.get("receiverArguments", {})) - supplied_arguments.update( - wrapper.get("receiverContext", {}).get("arguments", {}) - ) - unknown_arguments = sorted(supplied_arguments - known_calls[wrapper["call"]]) - if unknown_arguments: - label = wrapper.get("symbol", wrapper.get("method")) - raise ValueError( - f"boto3 wrapper {label} binds arguments absent from " - f"s3transfer call {wrapper['call']}: {', '.join(unknown_arguments)}" - ) - - resources = resource_model.get("resources", {}) - service = resource_model.get("service", {}) - service_definition = dict(service) - service_definition["has"] = service_relations(service, resources) - service_resource = resource_binding("ServiceResource", service_definition, resources, annotations) - service_resource["actions"] = [ - action_binding(name, value) - for name, value in sorted(service.get("actions", {}).items()) - ] - service_resource["collections"] = [ - collection_binding(name, value, resources) - for name, value in sorted(service.get("hasMany", {}).items()) - ] - - return { - "apiVersion": API_VERSION, - "kind": MAPPING_KIND, - "metadata": { - "name": "boto3.aws.s3", - "distribution": "boto3", - "distributionVersion": version, - "language": "python", - "service": "s3", - }, - "dependencies": [ - sdk_dependency("botocore", "botocore.aws.s3"), - sdk_dependency("s3transfer", "s3transfer.aws.s3"), - ], - "python": { - "aliases": annotations.get("aliases", []), - "clientFactories": [ - { - **factory, - "service": "s3", - "produces": { - "distribution": "botocore", - "mapping": "botocore.aws.s3", - "surface": "client", - }, - } - for factory in annotations.get("clientFactories", []) - ], - "resourceFactories": [ - { - **factory, - "service": "s3", - "produces": {"mapping": "boto3.aws.s3", "resource": "ServiceResource"}, - } - for factory in annotations.get("resourceFactories", []) - ], - "clientWrappers": [ - wrapper_binding(item) for item in annotations.get("clientWrappers", []) - ], - "transferClassWrappers": [ - wrapper_binding(item) - for item in annotations.get("transferClassWrappers", []) - ], - "serviceResource": service_resource, - "resources": [ - resource_binding(name, definition, resources, annotations) - for name, definition in sorted(resources.items()) - ], - }, - } - - -def main() -> None: - parser = argparse.ArgumentParser() - parser.add_argument("--service-mapping", type=Path, required=True) - parser.add_argument("--botocore-service-model", type=Path, required=True) - parser.add_argument("--paginator-model", type=Path, required=True) - parser.add_argument("--waiter-model", type=Path, required=True) - parser.add_argument("--resource-model", type=Path, required=True) - parser.add_argument("--botocore-annotations", type=Path, required=True) - parser.add_argument("--boto3-wrappers", type=Path, required=True) - parser.add_argument("--s3transfer-annotations", type=Path, required=True) - parser.add_argument("--botocore-output", type=Path, required=True) - parser.add_argument("--boto3-output", type=Path, required=True) - parser.add_argument("--s3transfer-output", type=Path, required=True) - parser.add_argument("--botocore-version", required=True) - parser.add_argument("--boto3-version", required=True) - parser.add_argument("--s3transfer-version", required=True) - args = parser.parse_args() - - service = read_document(args.service_mapping) - botocore_service_model = read_document(args.botocore_service_model) - paginator = read_document(args.paginator_model) - waiter = read_document(args.waiter_model) - resource = read_document(args.resource_model) - boto3_annotations = read_document(args.boto3_wrappers) - botocore_annotations = read_document(args.botocore_annotations) - transfer_annotations = read_document(args.s3transfer_annotations) - - botocore = botocore_mapping( - service, - botocore_service_model, - paginator, - waiter, - botocore_annotations, - args.botocore_version, - ) - operation_names = {item["name"] for item in botocore["operations"]} - aliases = botocore_annotations.get("canonicalOperationAliases", {}) - transfer = s3transfer_mapping(transfer_annotations, args.s3transfer_version, operation_names) - transfer = canonicalize_operation_refs(transfer, aliases) - call_arguments = { - item["name"]: set(item.get("arguments", [])) - for item in transfer["python"]["calls"] - } - boto3 = boto3_mapping(resource, boto3_annotations, args.boto3_version, call_arguments) - boto3 = canonicalize_operation_refs(boto3, aliases) - - for mapping in (botocore, transfer, boto3): - add_mapping_semantic_digest(mapping) - - write_yaml(args.botocore_output, botocore) - write_yaml(args.s3transfer_output, transfer) - write_yaml(args.boto3_output, boto3) - - resource_count = len(boto3["python"]["resources"]) - resource_actions = sum(len(item["actions"]) for item in boto3["python"]["resources"]) - relations = sum(len(item["relations"]) for item in boto3["python"]["resources"]) - collections = sum(len(item["collections"]) for item in boto3["python"]["resources"]) - resource_waiters = sum(len(item["waiters"]) for item in boto3["python"]["resources"]) - wrappers = ( - len(boto3["python"]["clientWrappers"]) - + len(boto3["python"]["transferClassWrappers"]) - + sum(len(item["wrappers"]) for item in boto3["python"]["resources"]) - ) - def count_operation_refs(value: Any) -> int: - if isinstance(value, list): - return sum(count_operation_refs(item) for item in value) - if not isinstance(value, dict): - return 0 - return int("operationRef" in value) + sum( - count_operation_refs(item) for item in value.values() - ) - - transfer_refs = count_operation_refs(transfer["python"]["calls"]) - print(f"botocore operations: {len(botocore['operations'])}") - print(f"botocore paginators: {len(botocore['python']['client']['paginatorFactory']['items'])}") - print(f"botocore waiters: {len(botocore['python']['client']['waiterFactory']['items'])}") - print(f"boto3 resources: {resource_count}") - print(f"boto3 resource actions: {resource_actions}") - print(f"boto3 relations: {relations}") - print(f"boto3 collections: {collections}") - print(f"boto3 resource waiters: {resource_waiters}") - print(f"boto3 managed-transfer wrappers: {wrappers}") - print(f"s3transfer calls: {len(transfer['python']['calls'])}") - print(f"s3transfer operation references: {transfer_refs}") - - -if __name__ == "__main__": - main() diff --git a/catalog/aws/s3/tools/serialization.py b/catalog/aws/s3/tools/serialization.py deleted file mode 100644 index b53fe4c..0000000 --- a/catalog/aws/s3/tools/serialization.py +++ /dev/null @@ -1,24 +0,0 @@ -"""Shim: re-exports the canonical serialization helpers from tooling/common. - -Kept as a same-named local module (not a package import) so this -directory's scripts can keep using `from serialization import ...` when -run directly as `python tools/