Interface PythonFunctionProps
- All Superinterfaces:
EventInvokeConfigOptions
,FunctionOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PythonFunctionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:25.993Z")
@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
getAdotInstrumentation, getAllowAllIpv6Outbound, getAllowAllOutbound, getAllowPublicSubnet, getApplicationLogLevel, getApplicationLogLevelV2, getArchitecture, getCodeSigningConfig, getCurrentVersionOptions, getDeadLetterQueue, getDeadLetterQueueEnabled, getDeadLetterTopic, getDescription, getEnvironment, getEnvironmentEncryption, getEphemeralStorageSize, getEvents, getFilesystem, getFunctionName, getInitialPolicy, getInsightsVersion, getIpv6AllowedForDualStack, getLayers, getLogFormat, getLoggingFormat, getLogGroup, getLogRetention, getLogRetentionRetryOptions, getLogRetentionRole, getMemorySize, getParamsAndSecrets, getProfiling, getProfilingGroup, getRecursiveLoop, getReservedConcurrentExecutions, getRole, getRuntimeManagementMode, getSecurityGroups, getSnapStart, getSystemLogLevel, getSystemLogLevelV2, 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.
-
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
-