aws-logs: add AccountPolicy
L2 construct
#34130
Labels
@aws-cdk/aws-logs
Related to Amazon CloudWatch Logs
feature-request
A feature should be added or improved.
p2
Describe the feature
The L2 construct equivalent of
CfnAccountPolicy
, aimed at reducing boilerplate code and simplifying configuration; it should help to prevent common pitfalls (see #31266).Use Case
See above.
Proposed Solution
The
AccountPolicy
construct should accept an input of typeAccountPolicyType
, an enum with the following possible values:LAMBDA
KINESIS_DATA_STREAM
DATA_FIREHOSE
Depending on the selected
AccountPolicyType
, you’ll need to provide a different kind oftarget
. For example, ifLAMBDA
is specified, you must provide anIFunction
. The required permissions for the target resource will be automatically attached when theAccountPolicy
is created.Other Information
Creating an account-level subscription filter involves 4 steps:
Acknowledgements
CDK version used
2.189.0
Environment details (OS name and version, etc.)
Ubuntu 24.04
The text was updated successfully, but these errors were encountered: