Platform

class aws_cdk.aws_signer.Platform(*args: Any, **kwargs)

Bases: object

Platforms that are allowed with signing config.

See:

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

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

AMAZON_FREE_RTOS_DEFAULT = <aws_cdk.aws_signer.Platform object>
AMAZON_FREE_RTOS_TI_CC3220_SF = <aws_cdk.aws_signer.Platform object>
AWS_IOT_DEVICE_MANAGEMENT_SHA256_ECDSA = <aws_cdk.aws_signer.Platform object>
AWS_LAMBDA_SHA384_ECDSA = <aws_cdk.aws_signer.Platform object>
NOTATION_OCI_SHA384_ECDSA = <aws_cdk.aws_signer.Platform object>
platform_id
  • The id of signing platform.

Static Methods

classmethod of(platform_id)

Custom signing profile platform.

Parameters:

platform_id (str) –

  • The id of signing platform.

See:

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

Return type:

Platform