Interface CodeSigningConfigProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CodeSigningConfigProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.693Z") @Stability(Stable) public interface CodeSigningConfigProps extends software.amazon.jsii.JsiiSerializable
Construction properties for a Code Signing Config object.

Example:

 import software.amazon.awscdk.services.signer.*;
 SigningProfile signingProfile = SigningProfile.Builder.create(this, "SigningProfile")
         .platform(Platform.AWS_LAMBDA_SHA384_ECDSA)
         .build();
 CodeSigningConfig codeSigningConfig = CodeSigningConfig.Builder.create(this, "CodeSigningConfig")
         .signingProfiles(List.of(signingProfile))
         .build();
 Function.Builder.create(this, "Function")
         .codeSigningConfig(codeSigningConfig)
         .runtime(Runtime.NODEJS_16_X)
         .handler("index.handler")
         .code(Code.fromAsset(join(__dirname, "lambda-handler")))
         .build();
 
  • Method Details

    • getSigningProfiles

      @Stability(Stable) @NotNull List<ISigningProfile> getSigningProfiles()
      List of signing profiles that defines a trusted user who can sign a code package.
    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      Code signing configuration description.

      Default: - No description.

    • getUntrustedArtifactOnDeployment

      @Stability(Stable) @Nullable default UntrustedArtifactOnDeployment getUntrustedArtifactOnDeployment()
      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

    • builder

      @Stability(Stable) static CodeSigningConfigProps.Builder builder()
      Returns:
      a CodeSigningConfigProps.Builder of CodeSigningConfigProps