Open lbustelo opened 2 weeks ago
@lbustelo , thanks for requesting this. it makes sense to expose this access point
However I see this CDK Example , where you can construct the access point arn.
Marking it as P2 as there are ways to construct it a stated in example but it would be good to have direct access. Contributions are welcome from the community.
Describe the feature
When using aws-s3objectlambda.AccessPoint construct, it manages the creation of an s3.CfnAccessPoint. Unfortunately, the instance of aws-s3objectlambda.AccessPoint does not expose this AccessPoint.
Use Case
After the creation of a new aws-s3objectlambda.AccessPoint, you typically need to create an IAM policy to allow the user to have necessary access to the S3 Object Lambda access point. An example of these are provided in this AWS doc. One of the policy statements grants access to the S3 AccessPoint (supporting AccessPoint)
Unfortunately, the supportedAccessPoint is not expose by this construct and there is not clear way of getting the ARN of this S3 AccessPoint.
Proposed Solution
Expose the ARN of the internally managed s3 AccessPoint created here.
Other Information
No response
Acknowledgements
CDK version used
2.151.0
Environment details (OS name and version, etc.)
OSX 14.6.1 (Using the python bindings)