FunctionRuntime
- class aws_cdk.aws_cloudfront.FunctionRuntime(*args: Any, **kwargs)
Bases:
object
The function’s runtime environment version.
- ExampleMetadata:
infused
Example:
store = cloudfront.KeyValueStore(self, "KeyValueStore") cloudfront.Function(self, "Function", code=cloudfront.FunctionCode.from_inline("function handler(event) { return event.request }"), # Note that JS_2_0 must be used for Key Value Store support runtime=cloudfront.FunctionRuntime.JS_2_0, key_value_store=store )
Attributes
- JS_1_0 = <aws_cdk.aws_cloudfront.FunctionRuntime object>
- JS_2_0 = <aws_cdk.aws_cloudfront.FunctionRuntime object>
- value
Static Methods
- classmethod custom(runtime_string)
A custom runtime string.
Gives full control over the runtime string fragment.
- Parameters:
runtime_string (
str
) –- Return type: