@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-23T18:57:19.213Z") @Stability(value=Experimental) public interface PythonFunctionProps extends software.amazon.jsii.JsiiSerializable, FunctionOptions
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
PythonFunctionProps.Builder
A builder for
PythonFunctionProps |
static class |
PythonFunctionProps.Jsii$Proxy
An implementation for
PythonFunctionProps |
| Modifier and Type | Method and Description |
|---|---|
static PythonFunctionProps.Builder |
builder() |
default BundlingOptions |
getBundling()
(experimental) Bundling options to use for this function.
|
String |
getEntry()
(experimental) Path to the source of the function or the location for dependencies.
|
default String |
getHandler()
(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.
|
Runtime |
getRuntime()
(experimental) The runtime environment.
|
getAllowAllOutbound, getAllowPublicSubnet, getArchitecture, getCodeSigningConfig, getCurrentVersionOptions, getDeadLetterQueue, getDeadLetterQueueEnabled, getDeadLetterTopic, getDescription, getEnvironment, getEnvironmentEncryption, getEphemeralStorageSize, getEvents, getFilesystem, getFunctionName, getInitialPolicy, getInsightsVersion, getLayers, getLogRetention, getLogRetentionRetryOptions, getLogRetentionRole, getMemorySize, getProfiling, getProfilingGroup, getReservedConcurrentExecutions, getRole, getSecurityGroups, getTimeout, getTracing, getVpc, getVpcSubnetsgetMaxEventAge, getOnFailure, getOnSuccess, getRetryAttempts@Stability(value=Experimental) @NotNull String getEntry()
@Stability(value=Experimental) @NotNull Runtime getRuntime()
Only runtimes of the Python family are supported.
Default: Runtime.PYTHON_3_7
@Stability(value=Experimental) @Nullable default BundlingOptions getBundling()
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.
@Stability(value=Experimental) @Nullable default String getHandler()
Default: handler
@Stability(value=Experimental) @Nullable default String getIndex()
Default: index.py
@Stability(value=Experimental) static PythonFunctionProps.Builder builder()
builder in interface EventInvokeConfigOptionsbuilder in interface FunctionOptionsPythonFunctionProps.Builder of PythonFunctionPropsCopyright © 2022. All rights reserved.