Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
go-to-k committed Jan 19, 2024
1 parent 9724848 commit 49d1ccb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cx-api/FEATURE_FLAGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ However, with the activation of this feature flag, the default branch is updated
*When enabled, the logical ID of a Lambda permission for a Lambda action includes an alarm ID.* (fix)

When this feature flag is enabled, a logical ID of `LambdaPermission` for a
`LambdaAction` will include an alarm ID. So multiple alarms for the same Lambda
`LambdaAction` will include an alarm ID. Therefore multiple alarms for the same Lambda
can be created with `LambdaAction`.

If the flag is set to false then it can only make one alarm for the Lambda with
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ However, with the activation of this feature flag, the default branch is updated
*When enabled, the logical ID of a Lambda permission for a Lambda action includes an alarm ID.* (fix)

When this feature flag is enabled, a logical ID of `LambdaPermission` for a
`LambdaAction` will include an alarm ID. So multiple alarms for the same Lambda
`LambdaAction` will include an alarm ID. Therefore multiple alarms for the same Lambda
can be created with `LambdaAction`.

If the flag is set to false then it can only make one alarm for the Lambda with
Expand Down
17 changes: 17 additions & 0 deletions packages/aws-cdk-lib/cx-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,20 @@ _cdk.json_
}
}
```

* `@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction`

Enable this feature flag to change the logical ID of a Lambda permission for a Lambda action to include an alarm ID.

Previously, only one alarm with a Lambda action could be created per Lambda.
This flag allows multiple alarms with a Lambda action for the same Lambda to be created.

_cdk.json_

```json
{
"context": {
"@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction": true
}
}
```
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/cx-api/lib/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ export const FLAGS: Record<string, FlagInfo> = {
summary: 'When enabled, the logical ID of a Lambda permission for a Lambda action includes an alarm ID.',
detailsMd: `
When this feature flag is enabled, a logical ID of \`LambdaPermission\` for a
\`LambdaAction\` will include an alarm ID. So multiple alarms for the same Lambda
\`LambdaAction\` will include an alarm ID. Therefore multiple alarms for the same Lambda
can be created with \`LambdaAction\`.
If the flag is set to false then it can only make one alarm for the Lambda with
Expand Down

0 comments on commit 49d1ccb

Please sign in to comment.