-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Structured Error Output #9890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AndrewAsseily
merged 141 commits into
aws:feature/str-std-error
from
AndrewAsseily:nyandrew/structured-error
Jan 16, 2026
Merged
Structured Error Output #9890
Changes from all commits
Commits
Show all changes
141 commits
Select commit
Hold shift + click to select a range
1afe452
Structured errors draft - failing tests
AndrewAsseily c46cf3e
Merge branch 'v2' into nyandrew/structured-error
AndrewAsseily 6842e4e
Revert "Structured errors draft - failing tests"
AndrewAsseily 3fe5630
Merge branch 'v2' into nyandrew/structured-error
AndrewAsseily bcc33fc
Structured Errors implementation Draft 1
AndrewAsseily 829968b
Refactor structured error
AndrewAsseily 00213ca
CLI examples for cloudformation.
elysahall 181b94a
Merge branch 'v2' into nyandrew/structured-error
AndrewAsseily 6958d85
Remove cli_hide_error_details
AndrewAsseily 9eef83f
Merge branch 'v2' into nyandrew/structured-error
AndrewAsseily e678480
Fix start-live-tail tests
kdaily 329d167
Implement --output off format to suppress stdout
AndrewAsseily 5700443
Merge branch 'v2' into nyandrew/structured-error
AndrewAsseily 073c28d
Add missing off status to output choices
AndrewAsseily 60b04ee
Merge branch 'v2' into nyandrew/structured-error
AndrewAsseily b82ef33
Catch and format ClientError exceptions raised during pagination
AndrewAsseily 4b34b62
Merge branch 'v2' into nyandrew/structured-error
AndrewAsseily 7f511a2
Update test fixtures and documentation for 'off' output format option
AndrewAsseily b7d7ebe
Update to latest models
aws-sdk-python-automation 614b09a
Update endpoints model
aws-sdk-python-automation 5b0ce61
Bump version to 2.32.8
aws-sdk-python-automation 47b6129
Update to latest models
aws-sdk-python-automation 9f04b48
Bump version to 2.32.9
aws-sdk-python-automation c7f1a50
Update to latest models
aws-sdk-python-automation 0493e92
Bump version to 2.32.10
aws-sdk-python-automation ae6987d
Remove TODO for filtering; use --output off for sensitive data instead
AndrewAsseily dd7974e
Update to latest models
aws-sdk-python-automation 3c5af8d
Bump version to 2.32.11
aws-sdk-python-automation 9db425e
Add changelog entry for structured error output
AndrewAsseily e62ce3b
[v2] Add monitoring configuration to emr create-cluster (#9892)
justinmae a31fb33
Update to latest models
aws-sdk-python-automation 79e5322
Update endpoints model
aws-sdk-python-automation 6f0f981
Bump version to 2.32.12
aws-sdk-python-automation a7e07b7
Merge pull request #9877 from kdaily/startlivetail-stdin-test-fix-v2
kdaily fa72088
Remove S3 endpoint s3v4 test (#9903)
hssyoo e6347d1
Update to latest models
aws-sdk-python-automation 7972caf
Update endpoints model
aws-sdk-python-automation 7ceeaa1
Bump version to 2.32.13
aws-sdk-python-automation 2cb1a04
Adds support for expanding host prefix to the BaseRpcV2Serializer cla…
SamRemis 8ac8385
Update model-validation tests to describe violations in custom proper…
aemous 1d0341a
Update to latest models
aws-sdk-python-automation f9c1256
Bump version to 2.32.14
aws-sdk-python-automation 4989c22
Upgrade bundled Python interpreter to 3.13.11. (#9902)
aemous b6dddb4
Update to latest models
aws-sdk-python-automation 5e8313d
Update endpoints model
aws-sdk-python-automation 28ab15f
Bump version to 2.32.15
aws-sdk-python-automation 1f517fa
[Documentation] Warning against the use of S3 Global Endpoint (s3.ama…
adev-code e2598bf
Update to latest models
aws-sdk-python-automation 6d9e747
Update endpoints model
aws-sdk-python-automation 439b186
Bump version to 2.32.16
aws-sdk-python-automation bc25515
Moves structured error handling into ClientErrorHandler to write erro…
AndrewAsseily ce86991
Remove cli_error_format from global options docs (config-only variable)
AndrewAsseily ec56d0e
Fix validates models record_property serialization errors (#9912)
aemous 558c9f6
Update to latest models
aws-sdk-python-automation 41c4e27
Bump version to 2.32.17
aws-sdk-python-automation 6e36a98
[v2] Add GitHub Actions build workflow (#9918)
hssyoo 926c63a
Update to latest models
aws-sdk-python-automation af6a93c
Update endpoints model
aws-sdk-python-automation 0d754e9
Bump version to 2.32.18
aws-sdk-python-automation 29ee23c
Add structured error output with configurable formats (json, yaml, en…
AndrewAsseily e003f09
Update changelog entry to reflect new error format settings
AndrewAsseily 4f87cfa
Update validation text and format relevant files
AndrewAsseily 64a79eb
Refactor error handling: simplify logic, add constants
AndrewAsseily a7548f6
Update documentation to include --cli-error-format global option
AndrewAsseily 3c14ea4
Fix legacy format test to verify modeled fields are not displayed
AndrewAsseily 20923d1
[v2] Fix pr action (#9922)
hssyoo 408c0c6
Fix error handler double construction and improve error format messaging
AndrewAsseily b6a806a
Update to latest models
aws-sdk-python-automation dd8b2fc
Update endpoints model
aws-sdk-python-automation 08c42f9
Bump version to 2.32.19
aws-sdk-python-automation 8c77925
Extract service-specific error fields from top-level response
AndrewAsseily 1800d25
Add prefix to CloudTrail S3 digest file listing (#9933)
sasankamouliveleti 8a4c74b
Remove text format from complex value suggestions due to poor array h…
AndrewAsseily aa19e40
Simplified the format_error method to always use consistent formatting
AndrewAsseily b4db2ae
Add the new error format to the general options table in config-vars
AndrewAsseily 5ad8a9f
Merge pull request #9851 from aws/v2-sync-pr-9813
kdaily 4232a97
Restore error handler fallback
AndrewAsseily 4f56944
Update to latest models
aws-sdk-python-automation 3943d63
Update endpoints model
aws-sdk-python-automation 1df3abf
Bump version to 2.32.20
aws-sdk-python-automation d5294d8
ci: Skip new internal build for fork-origin PRs (#9937)
ashovlin f83e308
Adding new examples for medical-imaging's create-datastore and get-da…
ashovlin aad20f6
Merge customizations for ARC Region switch
aws-sdk-python-automation 5bc5025
Update to latest models
aws-sdk-python-automation dd99339
Update endpoints model
aws-sdk-python-automation 5aa7f84
Bump version to 2.32.21
aws-sdk-python-automation 4ed2eac
Introduce ECS Express Text-Only Mode (#9943)
jutyler1 0c7a1d0
Update to latest models
aws-sdk-python-automation b7ccb23
Bump version to 2.32.22
aws-sdk-python-automation 4ddf51e
Remove elastictranscoder client following the service deprecation
kdaily 36d2350
[v2] Add case-sensitivity handling to multi-object download operation…
hssyoo bb51f3b
Update to latest models
aws-sdk-python-automation 46ae82a
Update endpoints model
aws-sdk-python-automation d6274b5
Bump version to 2.32.23
aws-sdk-python-automation a9d62b4
Update to latest models
aws-sdk-python-automation af4ff69
Update endpoints model
aws-sdk-python-automation 12e3109
Bump version to 2.32.24
aws-sdk-python-automation 9a99e6b
Merge pull request #9947 from kdaily/elastictranscoder-removal-v2
kdaily c460a71
Update to latest models
aws-sdk-python-automation 40a7626
Bump version to 2.32.25
aws-sdk-python-automation e73a257
refactor: pass parsed_globals at exception handling time
AndrewAsseily b21394b
Update to latest models
aws-sdk-python-automation 60937ba
Update endpoints model
aws-sdk-python-automation 0adb050
Bump version to 2.32.26
aws-sdk-python-automation 00330f3
Update to latest models
aws-sdk-python-automation 5fd6d51
Bump version to 2.32.27
aws-sdk-python-automation 4d427da
Revert case sensitivity handling feature (#9960)
SamRemis b04e3df
Bump version to 2.32.28
aws-sdk-python-automation 18b00bd
Update to latest models
aws-sdk-python-automation 12aea15
Bump version to 2.32.29
aws-sdk-python-automation f1d9604
[v2] ci: scope down GitHub Token permissions (#9965)
ashovlin 9144bc4
Support # in user_agent_appid (#9967)
jonathan343 55d333b
Merge customizations for Cost Explorer
aws-sdk-python-automation adcfb9e
Update to latest models
aws-sdk-python-automation 71bc63a
Bump version to 2.32.30
aws-sdk-python-automation cbfe40a
Fix UnknownArgumentErrorHandler to accept **kwargs
AndrewAsseily 44df686
Update to latest models
aws-sdk-python-automation 832392e
Update endpoints model
aws-sdk-python-automation ff901d4
Bump version to 2.32.31
aws-sdk-python-automation afcbf9a
Prevent 'aws login' from updating a profile with existing credentials…
ashovlin 31fbeeb
[v2] Update urllib3 to 2.6.3 (#9971)
hssyoo bd629ff
[V2] Create update-vpc-link.rst (#9974)
github-actions[bot] 0a415e9
Address code review feedback: simplify namespace handling and remove …
AndrewAsseily 1047303
Merge branch 'v2' into nyandrew/structured-error
AndrewAsseily c527bd9
Merge branch 'feature/str-std-error' of https://github.com/aws/aws-cl…
AndrewAsseily 36f6e59
Merge branch 'feature/str-std-error' into nyandrew/structured-error
AndrewAsseily 34bb9a7
test_error_handler_receives_parsed_globals_from_clidriver to enable J…
AndrewAsseily a2cd4a7
Merge branch 'nyandrew/structured-error' of github.com:AndrewAsseily/…
AndrewAsseily 57eec7c
Merge branch 'feature/str-std-error' of https://github.com/aws/aws-cl…
AndrewAsseily 39c4790
Merge branch 'feature/str-std-error' into nyandrew/structured-error
AndrewAsseily 7aaac09
Extend structured error formatting to non-modeled CLI exceptions
AndrewAsseily 90df436
Update changelog entry to reflect CLI errors and not only AWS service…
AndrewAsseily 19e3c1b
Fix cli_error_format documentation wording
AndrewAsseily 8ad7287
Refactor such that the structured format works regardless of session …
AndrewAsseily 0cdaf45
Ran pre-commit and fixed all the remaining failing EMR tests by updat…
AndrewAsseily 4b01307
Consolidated the 3 redundant tests (test_suppresses_simple_response, …
AndrewAsseily 099a3b7
Refactor error handlers to eliminate duplicate _do_handle_exception m…
AndrewAsseily 5ca1c7d
Fixed the failing functional test in tests/functional/s3/test_mv_com…
AndrewAsseily d935f1d
Use ruamel.yaml in test_structured_error.py
AndrewAsseily 6baf1ff
Use exact string assertions in test_structured_error.py
AndrewAsseily 79aa0dd
Add **kwargs to BaseExceptionHandler.handle_exception
AndrewAsseily File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "type": "enhancement", | ||
| "category": "Output", | ||
| "description": "Add support for ``--output off`` to suppress all stdout output while preserving stderr for errors and warnings." | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "type": "feature", | ||
| "category": "Output", | ||
| "description": "Add structured error output with configurable formats. CLI errors now display additional fields in the configured format (legacy, json, yaml, text, table, or enhanced). Configure via ``--cli-error-format``, ``cli_error_format`` config variable, or ``AWS_CLI_ERROR_FORMAT`` environment variable. The new enhanced format is the default. Set ``cli_error_format=legacy`` to preserve the original error format." | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.