SigningProfileProps

class aws_cdk.aws_signer.SigningProfileProps(*, platform, signature_validity=None, signing_profile_name=None)

Bases: object

Construction properties for a Signing Profile object.

Parameters:
  • platform (Platform) – The Signing Platform available for signing profile.

  • signature_validity (Optional[Duration]) – The validity period for signatures generated using this signing profile. Default: - 135 months

  • signing_profile_name (Optional[str]) – Physical name of this Signing Profile. Default: - Assigned by CloudFormation (recommended).

ExampleMetadata:

infused

Example:

import aws_cdk.aws_signer as signer


signing_profile = signer.SigningProfile(self, "SigningProfile",
    platform=signer.Platform.AWS_LAMBDA_SHA384_ECDSA
)

code_signing_config = lambda_.CodeSigningConfig(self, "CodeSigningConfig",
    signing_profiles=[signing_profile]
)

lambda_.Function(self, "Function",
    code_signing_config=code_signing_config,
    runtime=lambda_.Runtime.NODEJS_18_X,
    handler="index.handler",
    code=lambda_.Code.from_asset(path.join(__dirname, "lambda-handler"))
)

Attributes

platform

The Signing Platform available for signing profile.

See:

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

signature_validity

The validity period for signatures generated using this signing profile.

Default:
  • 135 months

signing_profile_name

Physical name of this Signing Profile.

Default:
  • Assigned by CloudFormation (recommended).