@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-07-02T00:23:29.727Z") @Stability(value=Experimental) public interface GoFunctionProps extends software.amazon.jsii.JsiiSerializable, FunctionOptions
| Modifier and Type | Interface and Description |
|---|---|
static class |
GoFunctionProps.Builder
A builder for
GoFunctionProps |
static class |
GoFunctionProps.Jsii$Proxy
An implementation for
GoFunctionProps |
| Modifier and Type | Method and Description |
|---|---|
static GoFunctionProps.Builder |
builder() |
default BundlingOptions |
getBundling()
(experimental) Bundling options.
|
String |
getEntry()
(experimental) The path to the folder or file that contains the main application entry point files for the project.
|
default String |
getModuleDir()
(experimental) Directory containing your go.mod file.
|
default Runtime |
getRuntime()
(experimental) The runtime environment.
|
getAllowAllOutbound, getAllowPublicSubnet, getCodeSigningConfig, getCurrentVersionOptions, getDeadLetterQueue, getDeadLetterQueueEnabled, getDescription, getEnvironment, getEnvironmentEncryption, getEvents, getFilesystem, getFunctionName, getInitialPolicy, getLayers, getLogRetention, getLogRetentionRetryOptions, getLogRetentionRole, getMemorySize, getProfiling, getProfilingGroup, getReservedConcurrentExecutions, getRole, getSecurityGroup, getSecurityGroups, getTimeout, getTracing, getVpc, getVpcSubnetsgetMaxEventAge, getOnFailure, getOnSuccess, getRetryAttempts@Stability(value=Experimental) @NotNull String getEntry()
This accepts either a path to a directory or file.
If a directory path is provided then it will assume there is a Go entry file (i.e. main.go) and
will construct the build command using the directory path.
For example, if you provide the entry as:
entry: 'my-lambda-app/cmd/api'
Then the go build command would be:
`go build ./cmd/api`
If a path to a file is provided then it will use the filepath in the build command.
For example, if you provide the entry as:
entry: 'my-lambda-app/cmd/api/main.go'
Then the go build command would be:
`go build ./cmd/api/main.go`
@Stability(value=Experimental) @Nullable default BundlingOptions getBundling()
Default: - use default bundling options
@Stability(value=Experimental) @Nullable default String getModuleDir()
This will accept either a directory path containing a go.mod file
or a filepath to your go.mod file (i.e. path/to/go.mod).
This will be used as the source of the volume mounted in the Docker
container and will be the directory where it will run go build from.
Default: - the path is found by walking up parent directories searching for a `go.mod` file from the location of `entry`
@Stability(value=Experimental) @Nullable default Runtime getRuntime()
Only runtimes of the Golang family and provided family are supported.
Default: lambda.Runtime.PROVIDED_AL2
@Stability(value=Experimental) static GoFunctionProps.Builder builder()
builder in interface EventInvokeConfigOptionsbuilder in interface FunctionOptionsGoFunctionProps.Builder of GoFunctionPropsCopyright © 2021. All rights reserved.