interface SigningProfileProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Signer.SigningProfileProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssigner#SigningProfileProps |
Java | software.amazon.awscdk.services.signer.SigningProfileProps |
Python | aws_cdk.aws_signer.SigningProfileProps |
TypeScript (source) | aws-cdk-lib » aws_signer » SigningProfileProps |
Construction properties for a Signing Profile object.
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 | Platform | The Signing Platform available for signing profile. |
signature | Duration | The validity period for signatures generated using this signing profile. |
signing | string | Physical name of this Signing Profile. |
platform
Type:
Platform
The Signing Platform available for signing profile.
See also: https://docs.aws.amazon.com/signer/latest/developerguide/gs-platform.html
signatureValidity?
Type:
Duration
(optional, default: 135 months)
The validity period for signatures generated using this signing profile.
signingProfileName?
Type:
string
(optional, default: Assigned by CloudFormation (recommended).)
Physical name of this Signing Profile.