Uses of Class
software.amazon.awscdk.services.lambda.Function.Builder
-
Uses of Function.Builder in software.amazon.awscdk.services.lambda
Modifier and TypeMethodDescriptionFunction.Builder.allowAllOutbound
(Boolean allowAllOutbound) Whether to allow the Lambda to send all network traffic.Function.Builder.allowPublicSubnet
(Boolean allowPublicSubnet) Lambda Functions in a public subnet can NOT access the internet.Function.Builder.architecture
(Architecture architecture) The system architectures compatible with this lambda function.Function.Builder.architectures
(List<? extends Architecture> architectures) Deprecated.The source code of your Lambda function.Function.Builder.codeSigningConfig
(ICodeSigningConfig codeSigningConfig) Code signing config associated with this function.static Function.Builder
Function.Builder.currentVersionOptions
(VersionOptions currentVersionOptions) Options for thelambda.Version
resource automatically created by thefn.currentVersion
method.Function.Builder.deadLetterQueue
(IQueue deadLetterQueue) The SQS queue to use if DLQ is enabled.Function.Builder.deadLetterQueueEnabled
(Boolean deadLetterQueueEnabled) Enabled DLQ.Function.Builder.deadLetterTopic
(ITopic deadLetterTopic) The SNS topic to use as a DLQ.Function.Builder.description
(String description) A description of the function.Function.Builder.environment
(Map<String, String> environment) Key-value pairs that Lambda caches and makes available for your Lambda functions.Function.Builder.environmentEncryption
(IKey environmentEncryption) The AWS KMS key that's used to encrypt your function's environment variables.Function.Builder.ephemeralStorageSize
(Size ephemeralStorageSize) The size of the function’s /tmp directory in MiB.Function.Builder.events
(List<? extends IEventSource> events) Event sources for this function.Function.Builder.filesystem
(FileSystem filesystem) The filesystem configuration for the lambda function.Function.Builder.functionName
(String functionName) A name for the function.The name of the method within your code that Lambda calls to execute your function.Function.Builder.initialPolicy
(List<? extends PolicyStatement> initialPolicy) Initial policy statements to add to the created Lambda Role.Function.Builder.insightsVersion
(LambdaInsightsVersion insightsVersion) Specify the version of CloudWatch Lambda insights to use for monitoring.Function.Builder.layers
(List<? extends ILayerVersion> layers) A list of layers to add to the function's execution environment.Function.Builder.logRetention
(RetentionDays logRetention) The number of days log events are kept in CloudWatch Logs.Function.Builder.logRetentionRetryOptions
(LogRetentionRetryOptions logRetentionRetryOptions) When log retention is specified, a custom resource attempts to create the CloudWatch log group.Function.Builder.logRetentionRole
(IRole logRetentionRole) The IAM role for the Lambda function associated with the custom resource that sets the retention policy.Function.Builder.maxEventAge
(Duration maxEventAge) The maximum age of a request that Lambda sends to a function for processing.Function.Builder.memorySize
(Number memorySize) The amount of memory, in MB, that is allocated to your Lambda function.Function.Builder.onFailure
(IDestination onFailure) The destination for failed invocations.Function.Builder.onSuccess
(IDestination onSuccess) The destination for successful invocations.Enable profiling.Function.Builder.profilingGroup
(IProfilingGroup profilingGroup) Profiling Group.Function.Builder.reservedConcurrentExecutions
(Number reservedConcurrentExecutions) The maximum of concurrent executions you want to reserve for the function.Function.Builder.retryAttempts
(Number retryAttempts) The maximum number of times to retry when the function returns an error.Lambda execution role.The runtime environment for the Lambda function that you are uploading.Function.Builder.securityGroup
(ISecurityGroup securityGroup) Deprecated.This property is deprecated, use securityGroups insteadFunction.Builder.securityGroups
(List<? extends ISecurityGroup> securityGroups) The list of security groups to associate with the Lambda's network interfaces.The function execution time (in seconds) after which Lambda terminates the function.Enable AWS X-Ray Tracing for Lambda Function.VPC network to place Lambda network interfaces.Function.Builder.vpcSubnets
(SubnetSelection vpcSubnets) Where to place the network interfaces within the VPC.
architecture