naftiko: 1.0.0-alpha2 info: label: Amazon S3 REST API — Bucket Configuration description: 'Amazon S3 REST API — Bucket Configuration. 11 operations. Lead operation: Amazon S3 Get Bucket Cors. Self-contained Naftiko capability covering one Amazon S3 business surface.' tags: - Amazon S3 - Bucket Configuration created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: AMAZON_S3_API_KEY: AMAZON_S3_API_KEY capability: consumes: - type: http namespace: rest-bucket-configuration baseUri: https://s3.{region}.amazonaws.com description: Amazon S3 REST API — Bucket Configuration business capability. Self-contained, no shared references. resources: - name: Bucket}?cors path: /{Bucket}?cors operations: - name: getbucketcors method: GET description: Amazon S3 Get Bucket Cors outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: x-amz-expected-bucket-owner in: header type: string description: The account ID of the expected bucket owner. - name: putbucketcors method: PUT description: Amazon S3 Put Bucket Cors outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-MD5 in: header type: string description: The base64-encoded 128-bit MD5 digest. - name: x-amz-expected-bucket-owner in: header type: string description: The account ID of the expected bucket owner. - name: body in: body type: object description: Request body (JSON). required: true - name: deletebucketcors method: DELETE description: Amazon S3 Delete Bucket Cors outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: x-amz-expected-bucket-owner in: header type: string description: The account ID of the expected bucket owner. - name: Bucket}?encryption path: /{Bucket}?encryption operations: - name: getbucketencryption method: GET description: Amazon S3 Get Bucket Encryption outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: x-amz-expected-bucket-owner in: header type: string description: The account ID of the expected bucket owner. - name: putbucketencryption method: PUT description: Amazon S3 Put Bucket Encryption outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-MD5 in: header type: string description: The base64-encoded 128-bit MD5 digest. - name: x-amz-expected-bucket-owner in: header type: string description: The account ID of the expected bucket owner. - name: x-amz-checksum-algorithm in: header type: string description: Algorithm used to create the checksum. - name: body in: body type: object description: Request body (JSON). required: true - name: deletebucketencryption method: DELETE description: Amazon S3 Delete Bucket Encryption outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: x-amz-expected-bucket-owner in: header type: string description: The account ID of the expected bucket owner. - name: Bucket}?lifecycle path: /{Bucket}?lifecycle operations: - name: getbucketlifecycleconfiguration method: GET description: Amazon S3 Get Bucket Lifecycle Configuration outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: x-amz-expected-bucket-owner in: header type: string description: The account ID of the expected bucket owner. - name: putbucketlifecycleconfiguration method: PUT description: Amazon S3 Put Bucket Lifecycle Configuration outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: x-amz-expected-bucket-owner in: header type: string description: The account ID of the expected bucket owner. - name: x-amz-checksum-algorithm in: header type: string description: Algorithm used to create the checksum. - name: body in: body type: object description: Request body (JSON). required: true - name: deletebucketlifecycle method: DELETE description: Amazon S3 Delete Bucket Lifecycle outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: x-amz-expected-bucket-owner in: header type: string description: The account ID of the expected bucket owner. - name: Bucket}?versioning path: /{Bucket}?versioning operations: - name: getbucketversioning method: GET description: Amazon S3 Get Bucket Versioning outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: x-amz-expected-bucket-owner in: header type: string description: The account ID of the expected bucket owner. - name: putbucketversioning method: PUT description: Amazon S3 Put Bucket Versioning outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-MD5 in: header type: string description: The base64-encoded 128-bit MD5 digest of the data. - name: x-amz-mfa in: header type: string description: The concatenation of the authentication device serial number, a space, and the value displayed on your authentication device. - name: x-amz-expected-bucket-owner in: header type: string description: The account ID of the expected bucket owner. - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: Authorization value: '{{env.AMAZON_S3_API_KEY}}' placement: header exposes: - type: rest namespace: rest-bucket-configuration-rest port: 8080 description: REST adapter for Amazon S3 REST API — Bucket Configuration. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/bucket-cors name: bucket-cors description: REST surface for Bucket}?cors. operations: - method: GET name: getbucketcors description: Amazon S3 Get Bucket Cors call: rest-bucket-configuration.getbucketcors with: x-amz-expected-bucket-owner: rest.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - method: PUT name: putbucketcors description: Amazon S3 Put Bucket Cors call: rest-bucket-configuration.putbucketcors with: Content-MD5: rest.Content-MD5 x-amz-expected-bucket-owner: rest.x-amz-expected-bucket-owner body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletebucketcors description: Amazon S3 Delete Bucket Cors call: rest-bucket-configuration.deletebucketcors with: x-amz-expected-bucket-owner: rest.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - path: /v1/bucket-encryption name: bucket-encryption description: REST surface for Bucket}?encryption. operations: - method: GET name: getbucketencryption description: Amazon S3 Get Bucket Encryption call: rest-bucket-configuration.getbucketencryption with: x-amz-expected-bucket-owner: rest.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - method: PUT name: putbucketencryption description: Amazon S3 Put Bucket Encryption call: rest-bucket-configuration.putbucketencryption with: Content-MD5: rest.Content-MD5 x-amz-expected-bucket-owner: rest.x-amz-expected-bucket-owner x-amz-checksum-algorithm: rest.x-amz-checksum-algorithm body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletebucketencryption description: Amazon S3 Delete Bucket Encryption call: rest-bucket-configuration.deletebucketencryption with: x-amz-expected-bucket-owner: rest.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - path: /v1/bucket-lifecycle name: bucket-lifecycle description: REST surface for Bucket}?lifecycle. operations: - method: GET name: getbucketlifecycleconfiguration description: Amazon S3 Get Bucket Lifecycle Configuration call: rest-bucket-configuration.getbucketlifecycleconfiguration with: x-amz-expected-bucket-owner: rest.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - method: PUT name: putbucketlifecycleconfiguration description: Amazon S3 Put Bucket Lifecycle Configuration call: rest-bucket-configuration.putbucketlifecycleconfiguration with: x-amz-expected-bucket-owner: rest.x-amz-expected-bucket-owner x-amz-checksum-algorithm: rest.x-amz-checksum-algorithm body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletebucketlifecycle description: Amazon S3 Delete Bucket Lifecycle call: rest-bucket-configuration.deletebucketlifecycle with: x-amz-expected-bucket-owner: rest.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - path: /v1/bucket-versioning name: bucket-versioning description: REST surface for Bucket}?versioning. operations: - method: GET name: getbucketversioning description: Amazon S3 Get Bucket Versioning call: rest-bucket-configuration.getbucketversioning with: x-amz-expected-bucket-owner: rest.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - method: PUT name: putbucketversioning description: Amazon S3 Put Bucket Versioning call: rest-bucket-configuration.putbucketversioning with: Content-MD5: rest.Content-MD5 x-amz-mfa: rest.x-amz-mfa x-amz-expected-bucket-owner: rest.x-amz-expected-bucket-owner body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: rest-bucket-configuration-mcp port: 9090 transport: http description: MCP adapter for Amazon S3 REST API — Bucket Configuration. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: amazon-s3-get-bucket-cors description: Amazon S3 Get Bucket Cors hints: readOnly: true destructive: false idempotent: true call: rest-bucket-configuration.getbucketcors with: x-amz-expected-bucket-owner: tools.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - name: amazon-s3-put-bucket-cors description: Amazon S3 Put Bucket Cors hints: readOnly: false destructive: false idempotent: true call: rest-bucket-configuration.putbucketcors with: Content-MD5: tools.Content-MD5 x-amz-expected-bucket-owner: tools.x-amz-expected-bucket-owner body: tools.body outputParameters: - type: object mapping: $. - name: amazon-s3-delete-bucket-cors description: Amazon S3 Delete Bucket Cors hints: readOnly: false destructive: true idempotent: true call: rest-bucket-configuration.deletebucketcors with: x-amz-expected-bucket-owner: tools.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - name: amazon-s3-get-bucket-encryption description: Amazon S3 Get Bucket Encryption hints: readOnly: true destructive: false idempotent: true call: rest-bucket-configuration.getbucketencryption with: x-amz-expected-bucket-owner: tools.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - name: amazon-s3-put-bucket-encryption description: Amazon S3 Put Bucket Encryption hints: readOnly: false destructive: false idempotent: true call: rest-bucket-configuration.putbucketencryption with: Content-MD5: tools.Content-MD5 x-amz-expected-bucket-owner: tools.x-amz-expected-bucket-owner x-amz-checksum-algorithm: tools.x-amz-checksum-algorithm body: tools.body outputParameters: - type: object mapping: $. - name: amazon-s3-delete-bucket-encryption description: Amazon S3 Delete Bucket Encryption hints: readOnly: false destructive: true idempotent: true call: rest-bucket-configuration.deletebucketencryption with: x-amz-expected-bucket-owner: tools.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - name: amazon-s3-get-bucket-lifecycle description: Amazon S3 Get Bucket Lifecycle Configuration hints: readOnly: true destructive: false idempotent: true call: rest-bucket-configuration.getbucketlifecycleconfiguration with: x-amz-expected-bucket-owner: tools.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - name: amazon-s3-put-bucket-lifecycle description: Amazon S3 Put Bucket Lifecycle Configuration hints: readOnly: false destructive: false idempotent: true call: rest-bucket-configuration.putbucketlifecycleconfiguration with: x-amz-expected-bucket-owner: tools.x-amz-expected-bucket-owner x-amz-checksum-algorithm: tools.x-amz-checksum-algorithm body: tools.body outputParameters: - type: object mapping: $. - name: amazon-s3-delete-bucket-lifecycle description: Amazon S3 Delete Bucket Lifecycle hints: readOnly: false destructive: true idempotent: true call: rest-bucket-configuration.deletebucketlifecycle with: x-amz-expected-bucket-owner: tools.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - name: amazon-s3-get-bucket-versioning description: Amazon S3 Get Bucket Versioning hints: readOnly: true destructive: false idempotent: true call: rest-bucket-configuration.getbucketversioning with: x-amz-expected-bucket-owner: tools.x-amz-expected-bucket-owner outputParameters: - type: object mapping: $. - name: amazon-s3-put-bucket-versioning description: Amazon S3 Put Bucket Versioning hints: readOnly: false destructive: false idempotent: true call: rest-bucket-configuration.putbucketversioning with: Content-MD5: tools.Content-MD5 x-amz-mfa: tools.x-amz-mfa x-amz-expected-bucket-owner: tools.x-amz-expected-bucket-owner body: tools.body outputParameters: - type: object mapping: $.