FunctionCode

class aws_cdk.aws_cloudfront.FunctionCode

Bases: object

Represents the function’s source code.

Methods

abstract render()

renders the function code.

Return type

str

Static Methods

classmethod from_file(*, file_path)

Code from external file for function.

Parameters

file_path (str) – The path of the file to read the code from.

Return type

FunctionCode

Returns

code object with contents from file.

classmethod from_inline(code)

Inline code for function.

Parameters

code (str) – The actual function code.

Return type

FunctionCode

Returns

code object with inline code.