AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

CodeSigningConfig

Defines a Code Signing Config.

Import

import { CodeSigningConfig } from 'aws-cdk-lib/aws-lambda';

Or use the module namespace:

import * as lambda from 'aws-cdk-lib/aws-lambda';
// lambda.CodeSigningConfig

Properties

Configuration passed to the constructor as CodeSigningConfigProps.

signingProfilesRequired
ISigningProfile[]

List of signing profiles that defines a trusted user who can sign a code package.

descriptionOptional
string

Code signing configuration description.

Default: - No description.

untrustedArtifactOnDeploymentOptional
UntrustedArtifactOnDeployment

Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if signature validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log.

Default: UntrustedArtifactOnDeployment.WARN

Get the AWS Lambda Cheat Sheet

Everything you need to know about AWS Lambda on one page. HD quality, print-friendly.

Download Free Infographic