Skip to content

fix(aws): make UnsupportedOperation a common error instead of a cloudwatch patch - #452

Open
Mkassabov wants to merge 2 commits into
mainfrom
fix/cloudwatch-patch-format
Open

fix(aws): make UnsupportedOperation a common error instead of a cloudwatch patch#452
Mkassabov wants to merge 2 commits into
mainfrom
fix/cloudwatch-patch-format

Conversation

@Mkassabov

@Mkassabov Mkassabov commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Supersedes the approach from #450: instead of patching UnsupportedOperation onto cloudwatch's describeInsightRules via patches/cloudwatch.json, add it to COMMON_ERRORS/CommonAwsError in src/errors.ts so it is typed and decodable on every operation.

Local emulators (floci/LocalStack) reject unsupported APIs with this wire code regardless of service, so it belongs alongside UnknownOperationException as a common error rather than in per-service spec patches.

🤖 Generated with Claude Code

The patch added in e2f141d was not run through oxfmt, breaking the
format:check step in CI on main.
@alchemy-version-bot

Copy link
Copy Markdown
Contributor

Install the packages built from this commit:

Distilled

@distilled.cloud/core

bun add https://pkg.ing/@distilled.cloud/core/84881d2

@distilled.cloud/aws

bun add https://pkg.ing/@distilled.cloud/aws/84881d2

…watch patch

Reverts the describeInsightRules-specific patch from #450 and adds
UnsupportedOperation to COMMON_ERRORS/CommonAwsError, so it is typed and
decodable on every operation. Local emulators reject unsupported APIs
with this wire code regardless of service, so it belongs alongside
UnknownOperationException rather than in per-service spec patches.

Service-specific UnsupportedOperation schemas (ec2, cloudtrail, ...)
still take decode precedence over the common one.
@Mkassabov
Mkassabov force-pushed the fix/cloudwatch-patch-format branch from 11d126a to 335c6e8 Compare August 14, 2026 14:57
@Mkassabov Mkassabov changed the title fix(aws/cloudwatch): format cloudwatch.json patch fix(aws): make UnsupportedOperation a common error instead of a cloudwatch patch Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant