From 1146a9793bf158a665f94149e8c654e2c2cffab0 Mon Sep 17 00:00:00 2001 From: Chris Park Date: Mon, 10 Jul 2023 12:20:36 +0930 Subject: [PATCH] format with prettier --- packages/static-hosting/lib/static-hosting.ts | 2 +- packages/waf/lib/waf.ts | 42 +++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/static-hosting/lib/static-hosting.ts b/packages/static-hosting/lib/static-hosting.ts index 6e8df73e..9bd963f0 100644 --- a/packages/static-hosting/lib/static-hosting.ts +++ b/packages/static-hosting/lib/static-hosting.ts @@ -118,7 +118,7 @@ export class StaticHosting extends Construct { "ico", "woff", "woff2", - "otf" + "otf", ]; constructor(scope: Construct, id: string, props: StaticHostingProps) { diff --git a/packages/waf/lib/waf.ts b/packages/waf/lib/waf.ts index 197ef1f9..387788ab 100644 --- a/packages/waf/lib/waf.ts +++ b/packages/waf/lib/waf.ts @@ -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, + }, }); }