Skip to content

Commit a667892

Browse files
authored
Merge branch 'main' into conroy/docdb
2 parents f2bcb5f + 6761f56 commit a667892

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

packages/aws-cdk-lib/cx-api/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,3 +658,24 @@ _cdk.json_
658658
}
659659
}
660660
```
661+
662+
* `@aws-cdk/aws-events:requireEventBusPolicySid`
663+
664+
When this flag is enabled:
665+
- Resource policies will be created with Statement IDs for service principals
666+
- The operation will succeed as expected
667+
668+
When this flag is disabled:
669+
- A warning will be emitted
670+
- The grant operation will be dropped
671+
- No permissions will be added
672+
673+
_cdk.json_
674+
675+
```json
676+
{
677+
"context": {
678+
"@aws-cdk/aws-events:requireEventBusPolicySid": true
679+
}
680+
}
681+
```

packages/aws-cdk-lib/cx-api/lib/features.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,7 @@ export const FLAGS: Record<string, FlagInfo> = {
14311431
compatibilityWithOldBehaviorMd: 'Disable the feature flag to add the root account principal back',
14321432
},
14331433

1434+
//////////////////////////////////////////////////////////////////////
14341435
[EVENTBUS_POLICY_SID_REQUIRED]: {
14351436
type: FlagType.BugFix,
14361437
summary: 'When enabled, grantPutEventsTo() will use resource policies with Statement IDs for service principals.',

0 commit comments

Comments
 (0)