Class CodeSigningConfigProps
Construction properties for a Code Signing Config object.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CodeSigningConfigProps : Object, ICodeSigningConfigProps
Syntax (vb)
Public Class CodeSigningConfigProps
Inherits Object
Implements 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
Constructors
CodeSigningConfigProps() |
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. |
Constructors
CodeSigningConfigProps()
public CodeSigningConfigProps()
Properties
Description
Code signing configuration description.
public string Description { get; set; }
Property Value
System.String
Remarks
Default: - No description.
SigningProfiles
List of signing profiles that defines a trusted user who can sign a code package.
public ISigningProfile[] SigningProfiles { get; set; }
Property Value
UntrustedArtifactOnDeployment
Code signing configuration policy for deployment validation failure.
public Nullable<UntrustedArtifactOnDeployment> UntrustedArtifactOnDeployment { get; set; }
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