Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lambda): incorrect values for prop UntrustedArtifactOnDeployment #13667

Merged
merged 2 commits into from Mar 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-lambda/lib/code-signing-config.ts
Expand Up @@ -10,13 +10,13 @@ export enum UntrustedArtifactOnDeployment {
/**
* Lambda blocks the deployment request if signature validation checks fail.
*/
ENFORCE = 'enforce',
ENFORCE = 'Enforce',

/**
* Lambda allows the deployment of the code package, but issues a warning.
* Lambda issues a new Amazon CloudWatch metric, called a signature validation error and also stores the warning in CloudTrail.
*/
WARN = 'warn',
WARN = 'Warn',
}

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-lambda/test/code-signing-config.test.ts
Expand Up @@ -28,7 +28,7 @@ describe('code signing config', () => {
}],
},
CodeSigningPolicies: {
UntrustedArtifactOnDeployment: lambda.UntrustedArtifactOnDeployment.WARN,
UntrustedArtifactOnDeployment: 'Warn',
},
});
});
Expand Down Expand Up @@ -78,7 +78,7 @@ describe('code signing config', () => {

expect(stack).toHaveResource('AWS::Lambda::CodeSigningConfig', {
CodeSigningPolicies: {
UntrustedArtifactOnDeployment: lambda.UntrustedArtifactOnDeployment.ENFORCE,
UntrustedArtifactOnDeployment: 'Enforce',
},
Description: 'test description',
});
Expand Down