| Modifier and Type | Method and Description |
|---|---|
PythonFunction.Builder |
PythonFunction.Builder.adotInstrumentation(AdotInstrumentationConfig adotInstrumentation)
Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation.
|
PythonFunction.Builder |
PythonFunction.Builder.allowAllOutbound(Boolean allowAllOutbound)
Whether to allow the Lambda to send all network traffic.
|
PythonFunction.Builder |
PythonFunction.Builder.allowPublicSubnet(Boolean allowPublicSubnet)
Lambda Functions in a public subnet can NOT access the internet.
|
PythonFunction.Builder |
PythonFunction.Builder.architecture(Architecture architecture)
The system architectures compatible with this lambda function.
|
PythonFunction.Builder |
PythonFunction.Builder.bundling(BundlingOptions bundling)
(experimental) Bundling options to use for this function.
|
PythonFunction.Builder |
PythonFunction.Builder.codeSigningConfig(ICodeSigningConfig codeSigningConfig)
Code signing config associated with this function.
|
static PythonFunction.Builder |
PythonFunction.Builder.create(software.constructs.Construct scope,
String id) |
PythonFunction.Builder |
PythonFunction.Builder.currentVersionOptions(VersionOptions currentVersionOptions)
Options for the `lambda.Version` resource automatically created by the `fn.currentVersion` method.
|
PythonFunction.Builder |
PythonFunction.Builder.deadLetterQueue(IQueue deadLetterQueue)
The SQS queue to use if DLQ is enabled.
|
PythonFunction.Builder |
PythonFunction.Builder.deadLetterQueueEnabled(Boolean deadLetterQueueEnabled)
Enabled DLQ.
|
PythonFunction.Builder |
PythonFunction.Builder.deadLetterTopic(ITopic deadLetterTopic)
The SNS topic to use as a DLQ.
|
PythonFunction.Builder |
PythonFunction.Builder.description(String description)
A description of the function.
|
PythonFunction.Builder |
PythonFunction.Builder.entry(String entry)
(experimental) Path to the source of the function or the location for dependencies.
|
PythonFunction.Builder |
PythonFunction.Builder.environment(Map<String,String> environment)
Key-value pairs that Lambda caches and makes available for your Lambda functions.
|
PythonFunction.Builder |
PythonFunction.Builder.environmentEncryption(IKey environmentEncryption)
The AWS KMS key that's used to encrypt your function's environment variables.
|
PythonFunction.Builder |
PythonFunction.Builder.ephemeralStorageSize(Size ephemeralStorageSize)
The size of the function’s /tmp directory in MiB.
|
PythonFunction.Builder |
PythonFunction.Builder.events(List<? extends IEventSource> events)
Event sources for this function.
|
PythonFunction.Builder |
PythonFunction.Builder.filesystem(FileSystem filesystem)
The filesystem configuration for the lambda function.
|
PythonFunction.Builder |
PythonFunction.Builder.functionName(String functionName)
A name for the function.
|
PythonFunction.Builder |
PythonFunction.Builder.handler(String handler)
(experimental) The name of the exported handler in the index file.
|
PythonFunction.Builder |
PythonFunction.Builder.index(String index)
(experimental) The path (relative to entry) to the index file containing the exported handler.
|
PythonFunction.Builder |
PythonFunction.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy)
Initial policy statements to add to the created Lambda Role.
|
PythonFunction.Builder |
PythonFunction.Builder.insightsVersion(LambdaInsightsVersion insightsVersion)
Specify the version of CloudWatch Lambda insights to use for monitoring.
|
PythonFunction.Builder |
PythonFunction.Builder.layers(List<? extends ILayerVersion> layers)
A list of layers to add to the function's execution environment.
|
PythonFunction.Builder |
PythonFunction.Builder.logRetention(RetentionDays logRetention)
The number of days log events are kept in CloudWatch Logs.
|
PythonFunction.Builder |
PythonFunction.Builder.logRetentionRetryOptions(LogRetentionRetryOptions logRetentionRetryOptions)
When log retention is specified, a custom resource attempts to create the CloudWatch log group.
|
PythonFunction.Builder |
PythonFunction.Builder.logRetentionRole(IRole logRetentionRole)
The IAM role for the Lambda function associated with the custom resource that sets the retention policy.
|
PythonFunction.Builder |
PythonFunction.Builder.maxEventAge(Duration maxEventAge)
The maximum age of a request that Lambda sends to a function for processing.
|
PythonFunction.Builder |
PythonFunction.Builder.memorySize(Number memorySize)
The amount of memory, in MB, that is allocated to your Lambda function.
|
PythonFunction.Builder |
PythonFunction.Builder.onFailure(IDestination onFailure)
The destination for failed invocations.
|
PythonFunction.Builder |
PythonFunction.Builder.onSuccess(IDestination onSuccess)
The destination for successful invocations.
|
PythonFunction.Builder |
PythonFunction.Builder.profiling(Boolean profiling)
Enable profiling.
|
PythonFunction.Builder |
PythonFunction.Builder.profilingGroup(IProfilingGroup profilingGroup)
Profiling Group.
|
PythonFunction.Builder |
PythonFunction.Builder.reservedConcurrentExecutions(Number reservedConcurrentExecutions)
The maximum of concurrent executions you want to reserve for the function.
|
PythonFunction.Builder |
PythonFunction.Builder.retryAttempts(Number retryAttempts)
The maximum number of times to retry when the function returns an error.
|
PythonFunction.Builder |
PythonFunction.Builder.role(IRole role)
Lambda execution role.
|
PythonFunction.Builder |
PythonFunction.Builder.runtime(Runtime runtime)
(experimental) The runtime environment.
|
PythonFunction.Builder |
PythonFunction.Builder.securityGroups(List<? extends ISecurityGroup> securityGroups)
The list of security groups to associate with the Lambda's network interfaces.
|
PythonFunction.Builder |
PythonFunction.Builder.timeout(Duration timeout)
The function execution time (in seconds) after which Lambda terminates the function.
|
PythonFunction.Builder |
PythonFunction.Builder.tracing(Tracing tracing)
Enable AWS X-Ray Tracing for Lambda Function.
|
PythonFunction.Builder |
PythonFunction.Builder.vpc(IVpc vpc)
VPC network to place Lambda network interfaces.
|
PythonFunction.Builder |
PythonFunction.Builder.vpcSubnets(SubnetSelection vpcSubnets)
Where to place the network interfaces within the VPC.
|
Copyright © 2022. All rights reserved.