Skip to content

Commit

Permalink
WafConfig: add prop + must lowercase others
Browse files Browse the repository at this point in the history
CDK was rejecting the deployment of the stack if the firt char of the CustomResponseBodies
props aren't lowercased. After this commit my CDK deployment worked perfectly.
  • Loading branch information
vboufleur committed Jan 31, 2025
1 parent ded4e4d commit 3e2ef19
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/types/config/waf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ export interface WafConfig {
* Replace web ACLs that are currently associated with in-scope resources with the web ACLs created by this policy - Default is False
*/
readonly OverrideCustomerWebACLAssociation?: boolean;

/**
* Automatically remove protections from resources that leave the policy scope and clean up resources that
* Firewall Manager is managing for accounts when those accounts leave policy scope - Default is False
*/
readonly OptimizeUnassociatedWebACL?: boolean;

/**
* Specifies whether this is for an Amazon CloudFront distribution or for a regional application.
* A regional application can be
Expand Down Expand Up @@ -162,15 +169,15 @@ export type CustomResponseBodies = {
/**
* @TJS-pattern [\s\S]*
*/
Content: string;
content: string;
/**
* AWS WAF Content Type
*
* The type of content in the payload that you are defining in the Content string.
*
* @see https://docs.aws.amazon.com/waf/latest/APIReference/API_CustomResponseBody.html
*/
ContentType: CustomResponseBodiesContentType;
contentType: CustomResponseBodiesContentType;
};
};

Expand Down Expand Up @@ -392,6 +399,7 @@ export interface ManagedServiceData {
preProcessRuleGroups: any,
postProcessRuleGroups: any,
overrideCustomerWebACLAssociation: boolean,
optimizeUnassociatedWebACL?: boolean,
loggingConfiguration: {
logDestinationConfigs: string[]
}
Expand Down Expand Up @@ -446,4 +454,4 @@ export interface NotStatementProperty {
*/
export interface SubVariables {
[key: string]: string;
}
}

0 comments on commit 3e2ef19

Please sign in to comment.