Class FunctionRuntime
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.FunctionRuntime
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:12.610Z")
@Stability(Stable)
public class FunctionRuntime
extends software.amazon.jsii.JsiiObject
The function's runtime environment version.
Example:
KeyValueStore store = new KeyValueStore(this, "KeyValueStore"); Function.Builder.create(this, "Function") .code(FunctionCode.fromInline("function handler(event) { return event.request }")) // Note that JS_2_0 must be used for Key Value Store support .runtime(FunctionRuntime.JS_2_0) .keyValueStore(store) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FunctionRuntime
cloudfront-js-1.0.static final FunctionRuntime
cloudfront-js-2.0. -
Constructor Summary
ModifierConstructorDescriptionprotected
FunctionRuntime
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
FunctionRuntime
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
JS_1_0
cloudfront-js-1.0. -
JS_2_0
cloudfront-js-2.0.
-
-
Constructor Details
-
FunctionRuntime
protected FunctionRuntime(software.amazon.jsii.JsiiObjectRef objRef) -
FunctionRuntime
protected FunctionRuntime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
custom
A custom runtime string.Gives full control over the runtime string fragment.
- Parameters:
runtimeString
- This parameter is required.
-
getValue
-