Skip to content

Commit

Permalink
fix 4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
daknhh committed Oct 10, 2023
1 parent cff5c44 commit 0f558b4
Show file tree
Hide file tree
Showing 5 changed files with 684 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/tools/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ async function calculateCapacities(
managedrule.version
);
managedrule.capacity = capacity;
managedcapacitieslog.push([managedrule.name, managedrule.capacity, managedrule.version ?? "unversioned", managedrule.enforceUpdate ?? "false"]);
managedcapacitieslog.push([managedrule.name, managedrule.capacity, managedrule.version !== "" ? managedrule.version : "[unversioned]", managedrule.enforceUpdate ?? "false"]);
runtimeProperties.ManagedRuleCapacity += capacity;
runtimeProperties.PreProcess.ManagedRuleGroupCount += 1;
managedrule.name === "AWSManagedRulesBotControlRuleSet" ? runtimeProperties.PreProcess.ManagedRuleBotControlCount +=1 : "";
Expand All @@ -312,7 +312,7 @@ async function calculateCapacities(
config.WebAcl.Scope,
managedrule.version
);
managedcapacitieslog.push([managedrule.name, managedrule.capacity, managedrule.version ?? "unversioned", managedrule.enforceUpdate ?? "false"]);
managedcapacitieslog.push([managedrule.name, managedrule.capacity, managedrule.capacity, managedrule.version !== "" ? managedrule.version : "[unversioned]", managedrule.enforceUpdate ?? "false"]);
runtimeProperties.ManagedRuleCapacity += capacity;
runtimeProperties.PostProcess.ManagedRuleGroupCount += 1;
managedrule.name === "AWSManagedRulesBotControlRuleSet" ? runtimeProperties.PostProcess.ManagedRuleBotControlCount +=1 : "";
Expand Down
6 changes: 5 additions & 1 deletion lib/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ export interface Prerequisites {
readonly General: {
readonly Prefix: string,
},
readonly Logging: {
readonly Information?:{
SlackWebhook?: string,
TeamsWebhook?: string,
}
readonly Logging?: {
readonly BucketProperties?: {
readonly BucketName?: string,
readonly KmsEncryptionKey: boolean,
Expand Down
Loading

0 comments on commit 0f558b4

Please sign in to comment.