Interface ICodeSigningConfigProps
Construction properties for a Code Signing Config object.
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICodeSigningConfigProps
Syntax (vb)
Public Interface ICodeSigningConfigProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Signer;
var signingProfile = new SigningProfile(this, "SigningProfile", new SigningProfileProps {
Platform = Platform.AWS_LAMBDA_SHA384_ECDSA
});
var codeSigningConfig = new CodeSigningConfig(this, "CodeSigningConfig", new CodeSigningConfigProps {
SigningProfiles = new [] { signingProfile }
});
new Function(this, "Function", new FunctionProps {
CodeSigningConfig = codeSigningConfig,
Runtime = Runtime.NODEJS_18_X,
Handler = "index.handler",
Code = Code.FromAsset(Join(__dirname, "lambda-handler"))
});
Synopsis
Properties
Description | Code signing configuration description. |
SigningProfiles | List of signing profiles that defines a trusted user who can sign a code package. |
UntrustedArtifactOnDeployment | Code signing configuration policy for deployment validation failure. |
Properties
Description
Code signing configuration description.
virtual string Description { get; }
Property Value
System.String
Remarks
Default: - No description.
SigningProfiles
List of signing profiles that defines a trusted user who can sign a code package.
ISigningProfile[] SigningProfiles { get; }
Property Value
UntrustedArtifactOnDeployment
Code signing configuration policy for deployment validation failure.
virtual Nullable<UntrustedArtifactOnDeployment> UntrustedArtifactOnDeployment { get; }
Property Value
System.Nullable<UntrustedArtifactOnDeployment>
Remarks
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