Skip to content

Commit

Permalink
rename method name
Browse files Browse the repository at this point in the history
  • Loading branch information
watany-dev committed Oct 24, 2024
1 parent 3475884 commit f958621
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f958621

Please sign in to comment.