Class PythonFunction
(experimental) A Python Lambda function.
Implements
IConstruct
IDependable
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda.Python.Alpha
Assembly: Amazon.CDK.AWS.Lambda.Python.Alpha.dll
Syntax (csharp)
public class PythonFunction : Function, IFunction, IResource, IConstruct, IDependable, IConnectable, IGrantable, IClientVpnConnectionHandler
Syntax (vb)
Public Class PythonFunction Inherits Function Implements IFunction, IResource, IConstruct, IDependable, IConnectable, IGrantable, IClientVpnConnectionHandler
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var entry = "/path/to/function";
var image = DockerImage.FromBuild(entry);
new PythonFunction(this, "function", new PythonFunctionProps {
Entry = entry,
Runtime = Runtime.PYTHON_3_8,
Bundling = new BundlingOptions {
BuildArgs = new Dictionary<string, string> { { "PIP_INDEX_URL", "https://your.index.url/simple/" }, { "PIP_EXTRA_INDEX_URL", "https://your.extra-index.url/simple/" } }
}
});
Synopsis
Constructors
PythonFunction(Construct, string, IPythonFunctionProps) | (experimental) A Python Lambda function. |
Properties
PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
Constructors
PythonFunction(Construct, string, IPythonFunctionProps)
(experimental) A Python Lambda function.
public PythonFunction(Construct scope, string id, IPythonFunctionProps props)
Parameters
- scope Construct
- id string
- props IPythonFunctionProps
Remarks
Stability: Experimental
Properties
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
Implements
Constructs.IConstruct
Constructs.IDependable