Skip to content

Commit c7f8ca7

Browse files
committed
fix: rename func
1 parent 2bb2eda commit c7f8ca7

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/alarm-health-check.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class AlarmHealthCheck extends HealthCheckBase {
5454
insufficientDataHealthStatus: insufficientDataHealthStatus,
5555
type: HealthCheckType.CLOUDWATCH_METRIC,
5656
},
57-
healthCheckTags: this.getSafeRenderedTags(),
57+
healthCheckTags: this.resolveSafeTags(),
5858
});
5959

6060
this.healthCheckId = resource.attrHealthCheckId;

src/calculated-health-check.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class CalculatedHealthCheck extends HealthCheckBase {
5858
healthThreshold: props.healthThreshold,
5959
type: HealthCheckType.CALCULATED,
6060
},
61-
healthCheckTags: this.getSafeRenderedTags(),
61+
healthCheckTags: this.resolveSafeTags(),
6262
});
6363

6464
this.healthCheckId = resource.attrHealthCheckId;

src/endpoint-health-check.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class EndpointHealthCheck extends HealthCheckBase {
158158
measureLatency: props.latencyGraphs,
159159
regions: props.regions,
160160
},
161-
healthCheckTags: this.getSafeRenderedTags(),
161+
healthCheckTags: this.resolveSafeTags(),
162162
});
163163

164164
this.healthCheckId = resource.attrHealthCheckId;

src/health-check.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export abstract class HealthCheckBase extends Resource implements IHealthCheck,
8585

8686
readonly tags = new TagManager(TagType.STANDARD, "AWS::Route53::HealthCheck");
8787

88-
protected getSafeRenderedTags(): route53.CfnHealthCheck.HealthCheckTagProperty[] | IResolvable {
88+
protected resolveSafeTags(): route53.CfnHealthCheck.HealthCheckTagProperty[] | IResolvable {
8989
return Lazy.any({
9090
produce: () => {
9191
const raw = this.tags.renderedTags;
@@ -102,9 +102,7 @@ export abstract class HealthCheckBase extends Resource implements IHealthCheck,
102102
return allowed.test(v) && !v.includes("${") && !v.includes("}") && !v.includes("$");
103103
}
104104

105-
return arr
106-
.filter((t) => typeof t.key === "string" && isSafeString(t.value))
107-
.map((t) => ({ key: t.key!, value: t.value! }));
105+
return arr.filter((t) => isSafeString(t.value)).map((t) => ({ key: t.key!, value: t.value! }));
108106
},
109107
});
110108
}

0 commit comments

Comments
 (0)