-
Notifications
You must be signed in to change notification settings - Fork 4.3k
fix(bedrock-agentcore-alpha): empty submodule accidentally exposed #36147
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
base: main
Are you sure you want to change the base?
Conversation
`perms.ts` is accidentally being exported. It only contains a namespace with static const arrays of strings, which are of no use to jsii consumers. These represent IAM actions that are being set inside the library, and don't need to be public to begin with. Move the file into a directory called `private` to make it clear it should not be exported, and remove it from the jsii entry point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(This review is outdated)
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
@rix0rrr I am working on another PR to fix this |
I'm not sure what "it can cause issues" means. The namespace leads to a submodule, which is "fine", though overkill. But the contents of that namespace/submodule are free constants, and jsii will not pick those up; primarily because they cannot be represented in Java and C#, where everything must be associated with a class. You could replace the namespace with an |
|
While I've got you here, can you also move all the files from the I'm not sure why export * from '../agentcore';Even though those files could equally well just be in |
We had these following the implementation in constructs like https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-s3/lib/perms.ts |
Done in the PR listed above, removed /agentcore and moved files under /lib. Waiting for build to finish |
|
#36148 approved |
perms.tsis accidentally being exported. It only contains a namespace with static const arrays of strings, which are of no use to jsii consumers. These represent IAM actions that are being set inside the library, and don't need to be public to begin with.Move the file into a directory called
privateto make it clear it should not be exported, and remove it from the jsii entry point.Solves this:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license