CfnParametersCodeProps

class aws_cdk.aws_lambda.CfnParametersCodeProps(*, bucket_name_param=None, object_key_param=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

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_

# cfn_parameter: cdk.CfnParameter

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

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