Show / Hide Table of Contents

Interface IPythonFunctionProps

(experimental) Properties for a PythonFunction.

Inherited Members
IFunctionOptions.AdotInstrumentation
IFunctionOptions.AllowAllIpv6Outbound
IFunctionOptions.AllowAllOutbound
IFunctionOptions.AllowPublicSubnet
IFunctionOptions.ApplicationLogLevel
IFunctionOptions.ApplicationLogLevelV2
IFunctionOptions.Architecture
IFunctionOptions.CodeSigningConfig
IFunctionOptions.CurrentVersionOptions
IFunctionOptions.DeadLetterQueue
IFunctionOptions.DeadLetterQueueEnabled
IFunctionOptions.DeadLetterTopic
IFunctionOptions.Description
IFunctionOptions.Environment
IFunctionOptions.EnvironmentEncryption
IFunctionOptions.EphemeralStorageSize
IFunctionOptions.Events
IFunctionOptions.Filesystem
IFunctionOptions.FunctionName
IFunctionOptions.InitialPolicy
IFunctionOptions.InsightsVersion
IFunctionOptions.Ipv6AllowedForDualStack
IFunctionOptions.Layers
IFunctionOptions.LogFormat
IFunctionOptions.LoggingFormat
IFunctionOptions.LogGroup
IFunctionOptions.LogRemovalPolicy
IFunctionOptions.LogRetention
IFunctionOptions.LogRetentionRetryOptions
IFunctionOptions.LogRetentionRole
IFunctionOptions.MemorySize
IFunctionOptions.ParamsAndSecrets
IFunctionOptions.Profiling
IFunctionOptions.ProfilingGroup
IFunctionOptions.RecursiveLoop
IFunctionOptions.ReservedConcurrentExecutions
IFunctionOptions.Role
IFunctionOptions.RuntimeManagementMode
IFunctionOptions.SecurityGroups
IFunctionOptions.SnapStart
IFunctionOptions.SystemLogLevel
IFunctionOptions.SystemLogLevelV2
IFunctionOptions.Timeout
IFunctionOptions.Tracing
IFunctionOptions.Vpc
IFunctionOptions.VpcSubnets
IEventInvokeConfigOptions.MaxEventAge
IEventInvokeConfigOptions.OnFailure
IEventInvokeConfigOptions.OnSuccess
IEventInvokeConfigOptions.RetryAttempts
Namespace: Amazon.CDK.AWS.Lambda.Python.Alpha
Assembly: Amazon.CDK.AWS.Lambda.Python.Alpha.dll
Syntax (csharp)
public interface IPythonFunctionProps : IFunctionOptions, IEventInvokeConfigOptions
Syntax (vb)
Public Interface IPythonFunctionProps Inherits IFunctionOptions, IEventInvokeConfigOptions
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

Properties

Bundling

(experimental) Bundling options to use for this function.

Entry

(experimental) Path to the source of the function or the location for dependencies.

Handler

(experimental) The name of the exported handler in the index file.

Index

(experimental) The path (relative to entry) to the index file containing the exported handler.

Runtime

(experimental) The runtime environment.

Properties

Bundling

(experimental) Bundling options to use for this function.

IBundlingOptions? Bundling { get; }
Property Value

IBundlingOptions

Remarks

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: Experimental

Entry

(experimental) Path to the source of the function or the location for dependencies.

string Entry { get; }
Property Value

string

Remarks

Stability: Experimental

Handler

(experimental) The name of the exported handler in the index file.

string? Handler { get; }
Property Value

string

Remarks

Default: handler

Stability: Experimental

Index

(experimental) The path (relative to entry) to the index file containing the exported handler.

string? Index { get; }
Property Value

string

Remarks

Default: index.py

Stability: Experimental

Runtime

(experimental) The runtime environment.

Runtime Runtime { get; }
Property Value

Runtime

Remarks

Only runtimes of the Python family are supported.

Stability: Experimental

Back to top Generated by DocFX