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 createdobject_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 createdsource_kms_key (
Optional
[IKey
]) – The ARN of the KMS key used to encrypt the handler code. Default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.
- 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_kms as kms from aws_cdk import aws_lambda as lambda_ # cfn_parameter: cdk.CfnParameter # key: kms.Key cfn_parameters_code_props = lambda.CfnParametersCodeProps( bucket_name_param=cfn_parameter, object_key_param=cfn_parameter, source_kMSKey=key )
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 ARN of the KMS key used to encrypt the handler code.
- Default:
the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.