Skip to content
v2.275.0

Platform Class ​

Platforms that are allowed with signing config.

Example ​

ts
import * as signer from 'aws-cdk-lib/aws-signer';

const signingProfile = new signer.SigningProfile(this, 'SigningProfile', {
  platform: signer.Platform.AWS_LAMBDA_SHA384_ECDSA,
});

const codeSigningConfig = new lambda.CodeSigningConfig(this, 'CodeSigningConfig', {
  signingProfiles: [signingProfile],
});

new lambda.Function(this, 'Function', {
  codeSigningConfig,
  runtime: lambda.Runtime.NODEJS_LATEST,
  handler: 'index.handler',
  code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),
});

Properties ​

AMAZON_FREE_RTOS_DEFAULTPlatformamazon_free_rtos_defaultPlatformAMAZON_FREE_RTOS_DEFAULTPlatformAMAZON_FREE_RTOS_DEFAULTPlatformAMAZON_FREE_RTOS_DEFAULTPlatformstaticdeprecated#
This signature platform has been discontinued.
AMAZON_FREE_RTOS_TI_CC3220SFPlatformamazon_free_rtos_ti_cc3220_sfPlatformAMAZON_FREE_RTOS_TI_CC3220SFPlatformAMAZON_FREE_RTOS_TI_CC3220SFPlatformAMAZON_FREE_RTOS_TI_CC3220SFPlatformstaticdeprecated#
This signature platform has been discontinued.
AWS_IOT_DEVICE_MANAGEMENT_SHA256_ECDSAPlatformaws_iot_device_management_sha256_ecdsaPlatformAWS_IOT_DEVICE_MANAGEMENT_SHA256_ECDSAPlatformAWS_IOT_DEVICE_MANAGEMENT_SHA256_ECDSAPlatformAWS_IOT_DEVICE_MANAGEMENT_SHA256_ECDSAPlatformstatic#
Specification of signature format and signing algorithms for AWS IoT Device.
AWS_LAMBDA_SHA384_ECDSAPlatformaws_lambda_sha384_ecdsaPlatformAWS_LAMBDA_SHA384_ECDSAPlatformAWS_LAMBDA_SHA384_ECDSAPlatformAWS_LAMBDA_SHA384_ECDSAPlatformstatic#
Specification of signature format and signing algorithms for AWS Lambda.
NOTATION_OCI_SHA384_ECDSAPlatformnotation_oci_sha384_ecdsaPlatformNOTATION_OCI_SHA384_ECDSAPlatformNOTATION_OCI_SHA384_ECDSAPlatformNOTATION_OCI_SHA384_ECDSAPlatformstatic#
Specification of signature format and signing algorithms with SHA256 hash and ECDSA encryption for container registries with notation.
platformIdstringplatform_idstrplatformIdStringPlatformIdstringPlatformId*string#
- The id of signing platform.

Methods ​

of(platformId: string): Platform // chainable@staticmethod def of(platform_id: str) -> Platformpublic static Platform of(String platformId)public static Platform Of(string platformId)func Of(PlatformId *string) Platformstatic#
Custom signing profile platform.
1 parameter

Parameters

  • platformIdplatform_idplatformIdplatformIdPlatformId — - The id of signing platform.