CfnParametersCodeProps

class aws_cdk.aws_lambda.CfnParametersCodeProps(*, bucket_name_param=None, object_key_param=None, source_kms_key=None)

Bases: object

Construction properties for CfnParametersCode.

Parameters:
  • bucket_name_param (Optional[CfnParameter]) – The CloudFormation parameter that represents the name of the S3 Bucket where the Lambda code will be located in. Must be of type ‘String’. Default: a new parameter will be created

  • object_key_param (Optional[CfnParameter]) – The CloudFormation parameter that represents the path inside the S3 Bucket where the Lambda code will be located at. Must be of type ‘String’. Default: a new parameter will be created

  • source_kms_key (Optional[IKeyRef]) – The KMS key that Lambda uses to encrypt the deployment package in Lambda-managed storage. This is not the key used to encrypt the source object in Amazon S3. Default: - Lambda uses an AWS owned key

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_lambda as lambda_
from aws_cdk.interfaces import aws_kms as interfaces_kms

# cfn_parameter: cdk.CfnParameter
# key_ref: interfaces_kms.IKeyRef

cfn_parameters_code_props = lambda.CfnParametersCodeProps(
    bucket_name_param=cfn_parameter,
    object_key_param=cfn_parameter,
    source_kms_key=key_ref
)

Attributes

bucket_name_param

The CloudFormation parameter that represents the name of the S3 Bucket where the Lambda code will be located in.

Must be of type ‘String’.

Default:

a new parameter will be created

object_key_param

The CloudFormation parameter that represents the path inside the S3 Bucket where the Lambda code will be located at.

Must be of type ‘String’.

Default:

a new parameter will be created

source_kms_key

The KMS key that Lambda uses to encrypt the deployment package in Lambda-managed storage.

This is not the key used to encrypt the source object in Amazon S3.

Default:
  • Lambda uses an AWS owned key