mirror of
https://github.com/awslabs/iam-policy-autopilot.git
synced 2026-04-26 00:15:57 +03:00
[PR #152] [MERGED] refactor: SdkMethodCallMetadata easier to extend #265
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/iam-policy-autopilot#265
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/awslabs/iam-policy-autopilot/pull/152
Author: @mschlaipfer
Created: 2/17/2026
Status: ✅ Merged
Merged: 2/17/2026
Merged by: @mschlaipfer
Base:
main← Head:refactor-sdk-method-call-metadata📝 Commits (1)
012255brefactor: SdkMethodCallMetadata easier to extend📊 Changes
11 files changed (+784 additions, -692 deletions)
View changed files
📝
iam-policy-autopilot-policy-generation/src/enrichment/mod.rs(+17 -21)📝
iam-policy-autopilot-policy-generation/src/extraction/go/disambiguation.rs(+219 -213)📝
iam-policy-autopilot-policy-generation/src/extraction/go/extractor.rs(+12 -7)📝
iam-policy-autopilot-policy-generation/src/extraction/go/features_extractor.rs(+10 -7)📝
iam-policy-autopilot-policy-generation/src/extraction/javascript/shared.rs(+40 -42)📝
iam-policy-autopilot-policy-generation/src/extraction/mod.rs(+90 -19)📝
iam-policy-autopilot-policy-generation/src/extraction/python/disambiguation.rs(+113 -107)📝
iam-policy-autopilot-policy-generation/src/extraction/python/disambiguation_tests.rs(+212 -202)📝
iam-policy-autopilot-policy-generation/src/extraction/python/extractor.rs(+12 -7)📝
iam-policy-autopilot-policy-generation/src/extraction/python/resource_direct_calls_extractor.rs(+48 -53)📝
iam-policy-autopilot-policy-generation/src/extraction/shared/extraction_utils.rs(+11 -14)📄 Description
Issue #, if available: related: https://github.com/awslabs/iam-policy-autopilot/issues/61
Description of changes: Refactor
SdkMethodCallMetadatato make it easier to extend. Currently adding a new field requires changing ~50 struct initialization sites (mostly in tests). Adding thewith_...setters makes it easier to add a new field, which adds functionality, without having to immediately refactor the extractors for all languages.Prepares for using return type information in Java, if present. Adds, the currently unused
result_usage: Option<MethodCallResultUsage>.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.