class Platform
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Signer.Platform |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awssigner#Platform |
![]() | software.amazon.awscdk.services.signer.Platform |
![]() | aws_cdk.aws_signer.Platform |
![]() | 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
Name | Type | Description |
---|---|---|
platform | string | - The id of signing platform. |
static AMAZON_FREE_RTOS_DEFAULT | Platform | Specification of signature format and signing algorithms with SHA256 hash and ECDSA encryption for Amazon FreeRTOS. |
static AMAZON_FREE_RTOS_TI_CC3220 | Platform | Specification of signature format and signing algorithms with SHA1 hash and RSA encryption for Amazon FreeRTOS. |
static AWS_IOT_DEVICE_MANAGEMENT_SHA256_ECDSA | Platform | Specification of signature format and signing algorithms for AWS IoT Device. |
static AWS_LAMBDA_SHA384_ECDSA | Platform | Specification of signature format and signing algorithms for AWS Lambda. |
static NOTATION_OCI_SHA384_ECDSA | Platform | Specification of signature format and signing algorithms with SHA256 hash and ECDSA encryption for container registries with notation. |
platformId
Type:
string
- The id of signing platform.
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.
static NOTATION_OCI_SHA384_ECDSA
Type:
Platform
Specification of signature format and signing algorithms with SHA256 hash and ECDSA encryption for container registries with notation.
Methods
Name | Description |
---|---|
static of(platformId) | Custom signing profile platform. |
static of(platformId)
public static of(platformId: string): Platform
Parameters
- platformId
string
— - The id of signing platform.
Returns
Custom signing profile platform.