ec2: implement IPeer
to PrefixList
#33607
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
When we want to add a security group rule which peer is a
PrefixList
,we should write following code:
It's a bit frustrated with the redundant
prefixListId
.Use Case
We want to write DRY:
Proposed Solution
IPrefixList
to extendIPeer
PrefixListBase
to implementIPeer
Other Information
Related to #33606
We can rewrite its example simpler:
Acknowledgements
CDK version used
2.180.0
Environment details (OS name and version, etc.)
N/A
The text was updated successfully, but these errors were encountered: