aws / aws/aws-cdk

(ses): add `configurationSetArn` property on `ConfigurationSet`

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

Description

### Describe the feature

Add a `configurationSetArn` property exposed on `ConfigurationSet` construct to improve building policies for resource using this ConfigurationSet to send emails with SES.

### Use Case

When granting send email access to a lambda the ARN for the ConfigurationSet must be constructed manually:
```
Grant.addToPrincipal({
grantee,
actions: ["ses:SendEmail"],
resourceArns: [
this.stack.formatArn({
service: 'ses',
resource: 'configuration-set',
resourceName: 'marketing-team-configuration-set',
}),
],
scope: this
})
```

### Proposed Solution

Similar to addition made in https://github.com/aws/aws-cdk/pull/29084 , proposed solution includes building with `formatArn` method the resource underlying ARN.

### Other Information

This paves the way for future `grant` methods on `ConfigurationSet` construct

### Acknowledgements

- [x] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.137.0

### Environment details (OS name and version, etc.)

macOS 14.2.1

Contributor guide

Open the contributing guide

Research direction

Start at the SES ConfigurationSet construct and inspect the analogous change in pull request 29084. Trace how the construct can use formatArn to expose the configuration-set ARN, and consider the work complete when consumers can reference configurationSetArn instead of constructing that ARN manually.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.