aws-cdk-lib.aws_signer.Platform

class Platform

LanguageType name
.NETAmazon.CDK.AWS.Signer.Platform
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssigner#Platform
Javasoftware.amazon.awscdk.services.signer.Platform
Pythonaws_cdk.aws_signer.Platform
TypeScript (source)aws-cdk-lib » aws_signer » Platform

Platforms that are allowed with signing config.

See also: https://docs.aws.amazon.com/signer/latest/developerguide/gs-platform.html

Example

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_18_X,
  handler: 'index.handler',
  code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),
});

Properties

NameTypeDescription
platformIdstringThe id of signing platform.
static AMAZON_FREE_RTOS_DEFAULTPlatformSpecification of signature format and signing algorithms with SHA256 hash and ECDSA encryption for Amazon FreeRTOS.
static AMAZON_FREE_RTOS_TI_CC3220SFPlatformSpecification of signature format and signing algorithms with SHA1 hash and RSA encryption for Amazon FreeRTOS.
static AWS_IOT_DEVICE_MANAGEMENT_SHA256_ECDSAPlatformSpecification of signature format and signing algorithms for AWS IoT Device.
static AWS_LAMBDA_SHA384_ECDSAPlatformSpecification of signature format and signing algorithms for AWS Lambda.

platformId

Type: string

The id of signing platform.

See also: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-signer-signingprofile.html#cfn-signer-signingprofile-platformid


static AMAZON_FREE_RTOS_DEFAULT

Type: Platform

Specification of signature format and signing algorithms with SHA256 hash and ECDSA encryption for Amazon FreeRTOS.


static AMAZON_FREE_RTOS_TI_CC3220SF

Type: Platform

Specification of signature format and signing algorithms with SHA1 hash and RSA encryption for Amazon FreeRTOS.


static AWS_IOT_DEVICE_MANAGEMENT_SHA256_ECDSA

Type: Platform

Specification of signature format and signing algorithms for AWS IoT Device.


static AWS_LAMBDA_SHA384_ECDSA

Type: Platform

Specification of signature format and signing algorithms for AWS Lambda.