@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-26T12:56:28.233Z") @Stability(value=Experimental) public class PythonFunction extends Function
Example:
PythonFunction.Builder.create(this, "MyFunction")
.entry("/path/to/my/function") // required
.index("my_index.py") // optional, defaults to 'index.py'
.handler("my_exported_func") // optional, defaults to 'handler'
.runtime(Runtime.PYTHON_3_6)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
PythonFunction.Builder
(experimental) A fluent builder for
PythonFunction. |
software.amazon.jsii.JsiiObject.InitializationModeIFunction.Jsii$DefaultIClientVpnConnectionHandler.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
PythonFunction(software.constructs.Construct scope,
String id,
PythonFunctionProps props) |
protected |
PythonFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
PythonFunction(software.amazon.jsii.JsiiObjectRef objRef) |
addEnvironment, addEnvironment, addLayers, classifyVersionProperty, fromFunctionArn, fromFunctionAttributes, getArchitecture, getCanCreatePermissions, getCurrentVersion, getDeadLetterQueue, getFunctionArn, getFunctionName, getGrantPrincipal, getLogGroup, getPermissionsNode, getRole, getRuntime, metricAll, metricAll, metricAllConcurrentExecutions, metricAllConcurrentExecutions, metricAllDuration, metricAllDuration, metricAllErrors, metricAllErrors, metricAllInvocations, metricAllInvocations, metricAllThrottles, metricAllThrottles, metricAllUnreservedConcurrentExecutions, metricAllUnreservedConcurrentExecutionsaddEventSource, addEventSourceMapping, addPermission, addToRolePolicy, configureAsyncInvoke, getConnections, getIsBoundToVpc, getLatestVersion, grantInvoke, metric, metric, metricDuration, metricDuration, metricErrors, metricErrors, metricInvocations, metricInvocations, metricThrottles, metricThrottlesapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected PythonFunction(software.amazon.jsii.JsiiObjectRef objRef)
protected PythonFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public PythonFunction(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
PythonFunctionProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.Copyright © 2021. All rights reserved.