aws / aws/aws-cdk

(IAM): Policy L2 Construct helper methods

Open
#29,740 2 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-iam effort/small feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### 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

- [X] 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

Contributor guide

Open the contributing guide

Research direction

The issue names IPolicy and IManagedPolicy but no files or tests. Start by locating those interface definitions and their existing helper methods; done means either interface can provide both its policy name and ARN without a custom implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
authorization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.