fix(bedrock-agentcore-alpha): empty submodule accidentally exposed#36147
fix(bedrock-agentcore-alpha): empty submodule accidentally exposed#36147
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.
✅ 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 |
That's fine,
(This predates the convention that we explicitly marked non-exported files as |
|
Comments on closed issues and PRs are hard for our team to see. |

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