Class CodeSigningConfig

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.lambda.CodeSigningConfig
All Implemented Interfaces:
IResource, ICodeSigningConfig, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-11T15:56:01.076Z") @Stability(Stable) public class CodeSigningConfig extends Resource implements ICodeSigningConfig
Defines a Code Signing Config.

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_18_X)
         .handler("index.handler")
         .code(Code.fromAsset(join(__dirname, "lambda-handler")))
         .build();
 
  • Constructor Details

    • CodeSigningConfig

      protected CodeSigningConfig(software.amazon.jsii.JsiiObjectRef objRef)
    • CodeSigningConfig

      protected CodeSigningConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CodeSigningConfig

      @Stability(Stable) public CodeSigningConfig(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CodeSigningConfigProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromCodeSigningConfigArn

      @Stability(Stable) @NotNull public static ICodeSigningConfig fromCodeSigningConfigArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String codeSigningConfigArn)
      Creates a Signing Profile construct that represents an external Signing Profile.

      Parameters:
      scope - The parent creating construct (usually this). This parameter is required.
      id - The construct's name. This parameter is required.
      codeSigningConfigArn - The ARN of code signing config. This parameter is required.
    • getCodeSigningConfigArn

      @Stability(Stable) @NotNull public String getCodeSigningConfigArn()
      The ARN of Code Signing Config.
      Specified by:
      getCodeSigningConfigArn in interface ICodeSigningConfig
    • getCodeSigningConfigId

      @Stability(Stable) @NotNull public String getCodeSigningConfigId()
      The id of Code Signing Config.
      Specified by:
      getCodeSigningConfigId in interface ICodeSigningConfig