Skip to content

Commit

Permalink
format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Park committed Jul 10, 2023
1 parent 14b26f4 commit 1146a97
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/static-hosting/lib/static-hosting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class StaticHosting extends Construct {
"ico",
"woff",
"woff2",
"otf"
"otf",
];

constructor(scope: Construct, id: string, props: StaticHostingProps) {
Expand Down
42 changes: 21 additions & 21 deletions packages/waf/lib/waf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,48 +128,48 @@ export class WebApplicationFirewall extends Construct {

if (props.allowedIPv6s) {
// IPv6 Allowlist
const allowed_ips = new wafv2.CfnIPSet(this, 'IPSet-IPv6', {
const allowed_ips = new wafv2.CfnIPSet(this, "IPSet-IPv6", {
addresses: props.allowedIPv6s,
ipAddressVersion: 'IPV6',
ipAddressVersion: "IPV6",
scope: wafScope,
description: props.wafName
})
description: props.wafName,
});

finalRules.push({
name: 'allow_xff_ip_rule_ipv6',
name: "allow_xff_ip_rule_ipv6",
priority: 4,
statement: {
ipSetReferenceStatement: {
arn: allowed_ips.attrArn,
ipSetForwardedIpConfig: {
fallbackBehavior : 'NO_MATCH',
headerName : 'X-Forwarded-For',
position : 'ANY'
}
}
fallbackBehavior: "NO_MATCH",
headerName: "X-Forwarded-For",
position: "ANY",
},
},
},
action: { allow: {} },
visibilityConfig: {
cloudWatchMetricsEnabled: true,
metricName: 'AllowXFFIPRule',
sampledRequestsEnabled: true
}
cloudWatchMetricsEnabled: true,
metricName: "AllowXFFIPRule",
sampledRequestsEnabled: true,
},
});

finalRules.push({
name: 'allow_src_ip_rule_ipv6',
name: "allow_src_ip_rule_ipv6",
priority: 5,
statement: {
ipSetReferenceStatement: {
arn: allowed_ips.attrArn
}
arn: allowed_ips.attrArn,
},
},
action: { allow: {} },
visibilityConfig: {
cloudWatchMetricsEnabled: true,
metricName: 'allow_src_ip_rule',
sampledRequestsEnabled: true
}
cloudWatchMetricsEnabled: true,
metricName: "allow_src_ip_rule",
sampledRequestsEnabled: true,
},
});
}

Expand Down

0 comments on commit 1146a97

Please sign in to comment.