Skip to content
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

(IAM): Policy L2 Construct helper methods #29740

Open
1 of 2 tasks
jerry-shao opened this issue Apr 5, 2024 · 2 comments
Open
1 of 2 tasks

(IAM): Policy L2 Construct helper methods #29740

jerry-shao opened this issue Apr 5, 2024 · 2 comments
Labels
@aws-cdk/aws-iam Related to AWS Identity and Access Management effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2

Comments

@jerry-shao
Copy link
Member

Describe the feature

IPolicy has policyName only, looking for policyArn field as well.
IManagedPolicy has managedPolicyArn only, looking for managedPolicyName.

Use Case

I want to take either IPolicy or IManagedPolicy and be able to extract both policy name and arn from it without custom implementation.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.132.0

Environment details (OS name and version, etc.)

Amazon Linux2

@jerry-shao jerry-shao added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Apr 5, 2024
@github-actions github-actions bot added the @aws-cdk/aws-iam Related to AWS Identity and Access Management label Apr 5, 2024
@khushail khushail added the investigating This issue is being investigated and/or work is in progress to resolve the issue. label Apr 5, 2024
@khushail khushail self-assigned this Apr 5, 2024
@khushail
Copy link
Contributor

khushail commented Apr 5, 2024

Hi @jerry-shao ,thanks for requesting this feature. Although this seems useful to have, I don't see IPolicy L1 Construct having these props but yes,IManagedPolicy cloudformation construct supports it. So feel free to submit a PR for the same. Thanks for volunteering

@khushail khushail added p2 effort/small Small work item – less than a day of effort and removed needs-triage This issue or PR still needs to be triaged. investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Apr 5, 2024
@khushail khushail removed their assignment Apr 5, 2024
@jerry-shao
Copy link
Member Author

jerry-shao commented Apr 6, 2024

Thanks @khushail

Please have a look at the PR when you have time.
#29753

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-iam Related to AWS Identity and Access Management effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2
Projects
None yet
2 participants