File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed 
packages/aws-cdk-lib/cx-api Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff 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+ ` ` ` 
Original file line number Diff line number Diff 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.' , 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments