CDK Constructs for AWS Lambda to AWS DynamoDB integration.
Project description
aws-lambda-dynamodb module
---This is a developer preview (public beta) module.
All classes are under active development and subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
API Reference: | http://docs.awssolutionsbuilder.com/aws-solutions-konstruk/latest/api/aws-lambda-dynamodb/ |
---|
Language | Package |
---|---|
aws_solutions_konstruk.aws_lambda_dynamodb |
|
@aws-solutions-konstruk/aws-lambda-dynamodb |
This AWS Solutions Konstruk implements the AWS Lambda function and Amazon DynamoDB table with the least privileged permissions.
Here is a minimal deployable pattern definition:
const { LambdaToDynamoDBProps, LambdaToDynamoDB } = require('@aws-solutions-konstruk/aws-lambda-dynamodb');
const props: LambdaToDynamoDBProps = {
deployLambda: true,
lambdaFunctionProps: {
code: lambda.Code.asset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
handler: 'index.handler'
},
};
new LambdaToDynamoDB(stack, 'test-lambda-dynamodb-stack', props);
Initializer
new LambdaToDynamoDB(scope: Construct, id: string, props: LambdaToDynamoDBProps);
Parameters
- scope
Construct
- id
string
- props
LambdaToDynamoDBProps
Pattern Construct Props
Name | Type | Description |
---|---|---|
deployLambda | boolean |
Whether to create a new Lambda function or use an existing Lambda function |
existingLambdaObj? | lambda.Function |
Existing instance of Lambda Function object |
lambdaFunctionProps? | lambda.FunctionProps |
Optional user provided props to override the default props for Lambda function |
dynamoTableProps | dynamodb.TableProps |
Optional user provided props to override the default props for DynamoDB Table |
Pattern Properties
Name | Type | Description |
---|---|---|
lambdaFunction() | lambda.Function |
Retruns an instance of lambda.Function created by the construct |
dynamoTable() | dynamodb.Table |
Retruns an instance of dynamodb.Table created by the construct |
Architecture
© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for aws-solutions-konstruk.aws-lambda-dynamodb-0.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73846de1c1268240ba6bd7f46360445a076eefd7e1589f44c33c91a05d41c69e |
|
MD5 | bb9b3d017d1603e2058a4f206c3453c2 |
|
BLAKE2b-256 | a887aa04e2471f72c6a90e860b4cdbbf7fa3352455340359875da1ab572b5973 |
Hashes for aws_solutions_konstruk.aws_lambda_dynamodb-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9788d8fb54c45ff77d928fd390d1afe31a940040146bdb35c11d3bc4779155f |
|
MD5 | 3693028c06dcbf25181b8db1a087a7ee |
|
BLAKE2b-256 | 95f85e8d7c73d3a3e21a8d7ad7c38ced611046cb306e99ea6e2393769acceaa3 |