FunctionProps

class aws_cdk.aws_cloudfront.FunctionProps(*, code, comment=None, function_name=None)

Bases: object

Properties for creating a CloudFront Function.

Parameters
  • code (FunctionCode) – The source code of the function.

  • comment (Optional[str]) – A comment to describe the function. Default: - same as functionName

  • function_name (Optional[str]) – A name to identify the function. Default: - generated from the id

Attributes

code

The source code of the function.

Return type

FunctionCode

comment

A comment to describe the function.

Default
  • same as functionName

Return type

Optional[str]

function_name

A name to identify the function.

Default
  • generated from the id

Return type

Optional[str]