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