Package Exports
- @aws-lite/lambda
- @aws-lite/lambda/src/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aws-lite/lambda) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@aws-lite/lambda
Official
aws-liteplugin for Lambda
Maintained by: @architect
Install
npm i @aws-lite/lambdaOptionally install types:
npm i -D @aws-lite/lambda-typesDocs
CreateFunction
Properties:
Code(object) [required]- Code payload to be run in Lambda; object can contain:
ImageUri(ECR image),S3Bucket+S3Key+S3ObjectVersion(S3 bucket in the same region, key, and optional version), orZipFile(base64-encoded zip); see AWS docs
- Code payload to be run in Lambda; object can contain:
FunctionName(string) [required]- The name of the Lambda function, version, or alias
Role(string) [required]- ARN of the function's execution role
Architectures(array)- System architecture, array can contain either
x86_64(default) orarm64
- System architecture, array can contain either
CodeSigningConfigArn(string)- ARN of a code-signing configuration used to enable code signing for this function
DeadLetterConfig(object)- Dead-letter queue configuration; see AWS docs
Description(string)- Description of the function
Environment(object)- Environment variable configuration; [see AWS docs](https://docs.aws.amazon.com/lambda/latest/dg/API_Environment.html
EphemeralStorage(object)- Size of the function
/tmpdirectory (in MB), from 512 (default) to 10240; [see AWS docs](https://docs.aws.amazon.com/lambda/latest/dg/API_EphemeralStorage.html
- Size of the function
FileSystemConfigs(array)- EFS file system connection settings; see AWS docs
Handler(string)- The name of the handler file and method method within your code that Lambda calls to run your function (e.g.
index.handler); see AWS docs
- The name of the handler file and method method within your code that Lambda calls to run your function (e.g.
ImageConfig(object)- Container image configuration (overrides Docker file); see AWS docs
KMSKeyArn(string)- ARN of the Key Management Service (KMS) customer managed key used to encrypt your function environment variables
Layers(array)- List of function layer ARNs (including version) to add to the function execution environment
MemorySize(number)- Amount of memory available (in MB) at runtime from 128 to 10240; increasing memory also increases CPU allocation
PackageType(string)- Deployment package type, either
Image(container image) orZip(zip archive)
- Deployment package type, either
Publish(boolean)- Set to
trueto publish the first version of the function during creation
- Set to
Runtime(string)- Runtime identifier; see AWS docs
SnapStart(object)- SnapStart settings; see AWS docs
Tags(array)- List of tags to apply to the function
Timeout(number)- Time (in seconds) a function is allowed to run before being stopped, from 3 (default) to 900
TracingConfig(object)- Sample and trace a subset of incoming requests with X-Ray; see AWS docs
VpcConfig(object)- VPC networking configuration; see AWS docs
GetFunctionConfiguration
Properties:
FunctionName(string) [required]- The name of the Lambda function, version, or alias
Qualifier(string)- Specify a version or alias to invoke a published version of the function
Invoke
Properties:
FunctionName(string) [required]- The name of the Lambda function, version, or alias
InvocationType(string)- Set invocation type to one of:
RequestResponse(default, synchronous),Event(asynchronous),DryRun(validate invoke request only)
- Set invocation type to one of:
Payload(array, object) [required]- Event payload to invoke function with
LogType(string)- Set to
Tailto include the execution log in theX-Amz-Log-Resultresponse header of synchronously invoked functions
- Set to
ClientContext(string)- Up to 3,583 bytes of base64-encoded data to pass to the function in the context object
Qualifier(string)- Specify a version or alias to invoke a published version of the function
UpdateFunctionConfiguration
Properties:
FunctionName(string) [required]- The name of the Lambda function, version, or alias
DeadLetterConfig(object)- Dead-letter queue configuration; see AWS docs
Description(string)- Description of the function
Environment(object)- Environment variable configuration; [see AWS docs](https://docs.aws.amazon.com/lambda/latest/dg/API_Environment.html
EphemeralStorage(object)- Size of the function
/tmpdirectory (in MB), from 512 (default) to 10240; [see AWS docs](https://docs.aws.amazon.com/lambda/latest/dg/API_EphemeralStorage.html
- Size of the function
FileSystemConfigs(array)- EFS file system connection settings; see AWS docs
Handler(string)- The name of the handler file and method method within your code that Lambda calls to run your function (e.g.
index.handler); see AWS docs
- The name of the handler file and method method within your code that Lambda calls to run your function (e.g.
ImageConfig(object)- Container image configuration (overrides Docker file); see AWS docs
KMSKeyArn(string)- ARN of the Key Management Service (KMS) customer managed key used to encrypt your function environment variables
Layers(array)- List of function layer ARNs (including version) to add to the function execution environment
MemorySize(number)- Amount of memory available (in MB) at runtime from 128 to 10240; increasing memory also increases CPU allocation
RevisionId(string)- Update the function config only if the current revision ID matches the specified
RevisionId; used to avoid modifying a function that has changed since you last read it
- Update the function config only if the current revision ID matches the specified
Role(string)- ARN of the function's execution role
Runtime(string)- Runtime identifier; see AWS docs
SnapStart(object)- SnapStart settings; see AWS docs
Timeout(number)- Time (in seconds) a function is allowed to run before being stopped, from 3 (default) to 900
TracingConfig(object)- Sample and trace a subset of incoming requests with X-Ray; see AWS docs
VpcConfig(object)- VPC networking configuration; see AWS docs
Methods yet to be implemented
Please help out by opening a PR!
AddLayerVersionPermissionAddPermissionCreateAliasCreateCodeSigningConfigCreateEventSourceMappingCreateFunctionUrlConfigDeleteAliasDeleteCodeSigningConfigDeleteEventSourceMappingDeleteFunctionDeleteFunctionCodeSigningConfigDeleteFunctionConcurrencyDeleteFunctionEventInvokeConfigDeleteFunctionUrlConfigDeleteLayerVersionDeleteProvisionedConcurrencyConfigGetAccountSettingsGetAliasGetCodeSigningConfigGetEventSourceMappingGetFunctionGetFunctionCodeSigningConfigGetFunctionConcurrencyGetFunctionEventInvokeConfigGetFunctionUrlConfigGetLayerVersionGetLayerVersionByArnGetLayerVersionPolicyGetPolicyGetProvisionedConcurrencyConfigGetRuntimeManagementConfigInvokeAsyncInvokeWithResponseStreamListAliasesListCodeSigningConfigsListEventSourceMappingsListFunctionEventInvokeConfigsListFunctionsListFunctionsByCodeSigningConfigListFunctionUrlConfigsListLayersListLayerVersionsListProvisionedConcurrencyConfigsListTagsListVersionsByFunctionPublishLayerVersionPublishVersionPutFunctionCodeSigningConfigPutFunctionConcurrencyPutFunctionEventInvokeConfigPutProvisionedConcurrencyConfigPutRuntimeManagementConfigRemoveLayerVersionPermissionRemovePermissionTagResourceUntagResourceUpdateAliasUpdateCodeSigningConfigUpdateEventSourceMappingUpdateFunctionCodeUpdateFunctionEventInvokeConfigUpdateFunctionUrlConfig
Learn more
Please see the main aws-lite readme for more information about aws-lite plugins.