From f95862117efce6ccf185b7f320f294f5005a2802 Mon Sep 17 00:00:00 2001 From: watany <76135106+watany-dev@users.noreply.github.com> Date: Thu, 24 Oct 2024 07:05:16 +0000 Subject: [PATCH] rename method name --- .../aws-cloudfront-origins/lib/function-url-origin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-cdk-lib/aws-cloudfront-origins/lib/function-url-origin.ts b/packages/aws-cdk-lib/aws-cloudfront-origins/lib/function-url-origin.ts index e4e7ad5488fb9..364979b7eb132 100644 --- a/packages/aws-cdk-lib/aws-cloudfront-origins/lib/function-url-origin.ts +++ b/packages/aws-cdk-lib/aws-cloudfront-origins/lib/function-url-origin.ts @@ -118,7 +118,7 @@ class FunctionUrlOriginWithOAC extends cloudfront.OriginBase { this.addInvokePermission(scope, options); - if (!this.isCheckAuthType()) { + if (!this.validateAuthType()) { cdk.Annotations.of(scope).addWarning( 'FunctionUrlOriginWithOAC: When the origin access control signing method is SIGV4_ALWAYS, it is recommended to set the authType of the Function URL to AWS_IAM.', ); @@ -147,7 +147,7 @@ class FunctionUrlOriginWithOAC extends cloudfront.OriginBase { /** * Validation method: Ensures that when the OAC signing method is SIGV4_ALWAYS, the authType is set to AWS_IAM. */ - private isCheckAuthType(): boolean { + private validateAuthType(): boolean { const cfnFunctionUrl = this.functionUrl.node.defaultChild as lambda.CfnUrl; const CfnOriginAccessControl