Interface PythonFunctionProps
- All Superinterfaces:
EventInvokeConfigOptions
,FunctionOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PythonFunctionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.180Z")
@Stability(Experimental)
public interface PythonFunctionProps
extends software.amazon.jsii.JsiiSerializable, FunctionOptions
(experimental) Properties for a PythonFunction.
Example:
String entry = "/path/to/function"; DockerImage image = DockerImage.fromBuild(entry); PythonFunction.Builder.create(this, "function") .entry(entry) .runtime(Runtime.PYTHON_3_8) .bundling(BundlingOptions.builder() .buildArgs(Map.of("PIP_INDEX_URL", "https://your.index.url/simple/", "PIP_EXTRA_INDEX_URL", "https://your.extra-index.url/simple/")) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forPythonFunctionProps
static final class
An implementation forPythonFunctionProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic PythonFunctionProps.Builder
builder()
default BundlingOptions
(experimental) Bundling options to use for this function.getEntry()
(experimental) Path to the source of the function or the location for dependencies.default String
(experimental) The name of the exported handler in the index file.default String
getIndex()
(experimental) The path (relative to entry) to the index file containing the exported handler.(experimental) The runtime environment.Methods inherited from interface software.amazon.awscdk.services.lambda.EventInvokeConfigOptions
getMaxEventAge, getOnFailure, getOnSuccess, getRetryAttempts
Methods inherited from interface software.amazon.awscdk.services.lambda.FunctionOptions
getAllowAllOutbound, getAllowPublicSubnet, getArchitecture, getArchitectures, getCodeSigningConfig, getCurrentVersionOptions, getDeadLetterQueue, getDeadLetterQueueEnabled, getDeadLetterTopic, getDescription, getEnvironment, getEnvironmentEncryption, getEphemeralStorageSize, getEvents, getFilesystem, getFunctionName, getInitialPolicy, getInsightsVersion, getLayers, getLogRetention, getLogRetentionRetryOptions, getLogRetentionRole, getMemorySize, getProfiling, getProfilingGroup, getReservedConcurrentExecutions, getRole, getSecurityGroup, getSecurityGroups, getTimeout, getTracing, getVpc, getVpcSubnets
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEntry
(experimental) Path to the source of the function or the location for dependencies. -
getRuntime
(experimental) The runtime environment.Only runtimes of the Python family are supported.
Default: Runtime.PYTHON_3_7
-
getBundling
(experimental) Bundling options to use for this function.Use this to specify custom bundling options like the bundling Docker image, asset hash type, custom hash, architecture, etc.
Default: - Use the default bundling Docker image, with x86_64 architecture.
-
getHandler
(experimental) The name of the exported handler in the index file.Default: handler
-
getIndex
(experimental) The path (relative to entry) to the index file containing the exported handler.Default: index.py
-
builder
- Returns:
- a
PythonFunctionProps.Builder
ofPythonFunctionProps
-