{ "fingerprint": "cpXH7ysnzVj5tNayaJiGvLjkhnDtvARhkMWHzarVqRY=", "author": { "name": "Amazon Web Services", "organization": true, "roles": [ "author" ], "url": "https://aws.amazon.com" }, "dependencies": { "@aws-cdk/assets": { "dependencies": { "@aws-cdk/aws-iam": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "iam", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.iam" }, "js": { "npm": "@aws-cdk/aws-iam" } }, "version": "0.8.2" }, "@aws-cdk/aws-s3": { "dependencies": { "@aws-cdk/aws-iam": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "iam", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.iam" }, "js": { "npm": "@aws-cdk/aws-iam" } }, "version": "0.8.2" }, "@aws-cdk/aws-kms": { "dependencies": { "@aws-cdk/aws-iam": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "iam", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.iam" }, "js": { "npm": "@aws-cdk/aws-iam" } }, "version": "0.8.2" }, "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "kms", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.kms" }, "js": { "npm": "@aws-cdk/aws-kms" } }, "version": "0.8.2" }, "@aws-cdk/aws-s3-notifications": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "s3-notifications", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.s3.notifications" }, "js": { "npm": "@aws-cdk/aws-s3-notifications" } }, "version": "0.8.2" }, "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "s3", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.s3" }, "js": { "npm": "@aws-cdk/aws-s3" } }, "version": "0.8.2" }, "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" }, "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk-assets", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.assets" }, "js": { "npm": "@aws-cdk/assets" } }, "version": "0.8.2" }, "@aws-cdk/aws-cloudwatch": { "dependencies": { "@aws-cdk/aws-iam": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "iam", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.iam" }, "js": { "npm": "@aws-cdk/aws-iam" } }, "version": "0.8.2" }, "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cloudwatch", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.cloudwatch" }, "js": { "npm": "@aws-cdk/aws-cloudwatch" } }, "version": "0.8.2" }, "@aws-cdk/aws-codepipeline-api": { "dependencies": { "@aws-cdk/aws-events": { "dependencies": { "@aws-cdk/aws-iam": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "iam", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.iam" }, "js": { "npm": "@aws-cdk/aws-iam" } }, "version": "0.8.2" }, "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "events", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.events" }, "js": { "npm": "@aws-cdk/aws-events" } }, "version": "0.8.2" }, "@aws-cdk/aws-iam": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "iam", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.iam" }, "js": { "npm": "@aws-cdk/aws-iam" } }, "version": "0.8.2" }, "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "codepipeline-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.codepipeline.api" }, "js": { "npm": "@aws-cdk/aws-codepipeline-api" } }, "version": "0.8.2" }, "@aws-cdk/aws-events": { "dependencies": { "@aws-cdk/aws-iam": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "iam", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.iam" }, "js": { "npm": "@aws-cdk/aws-iam" } }, "version": "0.8.2" }, "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "events", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.events" }, "js": { "npm": "@aws-cdk/aws-events" } }, "version": "0.8.2" }, "@aws-cdk/aws-iam": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "iam", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.iam" }, "js": { "npm": "@aws-cdk/aws-iam" } }, "version": "0.8.2" }, "@aws-cdk/aws-logs": { "dependencies": { "@aws-cdk/aws-iam": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "iam", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.iam" }, "js": { "npm": "@aws-cdk/aws-iam" } }, "version": "0.8.2" }, "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "logs", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.logs" }, "js": { "npm": "@aws-cdk/aws-logs" } }, "version": "0.8.2" }, "@aws-cdk/aws-s3": { "dependencies": { "@aws-cdk/aws-iam": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "iam", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.iam" }, "js": { "npm": "@aws-cdk/aws-iam" } }, "version": "0.8.2" }, "@aws-cdk/aws-kms": { "dependencies": { "@aws-cdk/aws-iam": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "iam", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.iam" }, "js": { "npm": "@aws-cdk/aws-iam" } }, "version": "0.8.2" }, "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "kms", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.kms" }, "js": { "npm": "@aws-cdk/aws-kms" } }, "version": "0.8.2" }, "@aws-cdk/aws-s3-notifications": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "s3-notifications", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.s3.notifications" }, "js": { "npm": "@aws-cdk/aws-s3-notifications" } }, "version": "0.8.2" }, "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "s3", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.s3" }, "js": { "npm": "@aws-cdk/aws-s3" } }, "version": "0.8.2" }, "@aws-cdk/aws-s3-notifications": { "dependencies": { "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "s3-notifications", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.s3.notifications" }, "js": { "npm": "@aws-cdk/aws-s3-notifications" } }, "version": "0.8.2" }, "@aws-cdk/cdk": { "dependencies": { "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "targets": { "java": { "maven": { "artifactId": "cdk", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk" }, "js": { "npm": "@aws-cdk/cdk" } }, "version": "0.8.2" }, "@aws-cdk/cx-api": { "targets": { "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" } }, "version": "0.8.2" } }, "description": "CDK Constructs for AWS Lambda", "homepage": "https://github.com/awslabs/aws-cdk", "license": "Apache-2.0", "name": "@aws-cdk/aws-lambda", "readme": { "markdown": "## AWS Lambda Construct Library\n\nThis construct library allows you to define AWS Lambda Functions.\n\n```ts\nimport lambda = require('@aws-cdk/aws-lambda');\n\nconst fn = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NodeJS810,\n handler: 'index.handler'\n code: lambda.Code.inline('exports.handler = function(event, ctx, cb) { return cb(null, \"hi\"); }'),\n});\n```\n\n### Handler Code\n\nThe `lambda.Code` class includes static convenience methods for various types of\nruntime code.\n\n * `lambda.Code.bucket(bucket, key[, objectVersion])` - specify an S3 object that\n contains the archive of your runtime code.\n * `lambda.Code.inline(code)` - inline the handle code as a string. This is\n limited to 4KB. The class `InlineJavaScriptLambda` can be used to simplify\n inlining JavaScript functions.\n * `lambda.Code.directory(directory)` - specify a directory in the local filesystem\n which will be zipped and uploaded to S3 before deployment.\n * `lambda.Code.file(path)` - specify a file to be used for Lambda code. This can\n be, for example a JAR or a ZIP file, based on the runtime used.\n\nThe following example shows how to define a Python function and deploy the code from the\nlocal directory `my-lambda-handler` to it:\n\n```ts\nnew lambda.Function(this, 'MyLambda', {\n code: lambda.Code.directory(path.join(__dirname, 'my-lambda-handler')),\n handler: 'index.main',\n runtime: lambda.Runtime.Python36\n});\n```\n\nWhen deploying a stack that contains this code, the directory will be zip\narchived and then uploaded to an S3 bucket, then the exact location of the S3\nobjects will be passed when the stack is deployed.\n\n### Lambda in CodePipeline\n\nThis module also contains an Action that allows you to invoke a Lambda function from CodePipeline:\n\n```ts\nimport codepipeline = require('@aws-cdk/aws-codepipeline');\nimport lambda = require('@aws-cdk/aws-lambda');\n\nconst lambdaFun = new lambda.Function(this, 'MyLambda', {\n // some lambda parameters here...\n});\n\nconst pipeline = new codepipeline.Pipeline(this, 'MyPipeline');\nconst lambdaStage = new codepipeline.Stage(pipeline, 'Lambda');\nnew lambda.PipelineInvokeAction(this, 'Lambda', {\n stage: lambdaStage,\n lambda: lambdaFun,\n});\n```\n\nSee [the AWS documentation](https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html)\non how to write a Lambda function invoked from CodePipeline.\n" }, "repository": { "type": "git", "url": "https://github.com/awslabs/aws-cdk.git" }, "schema": "jsii/1.0", "targets": { "java": { "maven": { "artifactId": "lambda", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.lambda" }, "js": { "npm": "@aws-cdk/aws-lambda" } }, "types": { "@aws-cdk/aws-lambda.Alias": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/aws-lambda.FunctionRef" }, "docs": { "comment": "A new alias to a particular version of a Lambda function." }, "fqn": "@aws-cdk/aws-lambda.Alias", "initializer": { "initializer": true, "parameters": [ { "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "name": "name", "type": { "primitive": "string" } }, { "name": "props", "type": { "fqn": "@aws-cdk/aws-lambda.AliasProps" } } ] }, "kind": "class", "methods": [ { "docs": { "comment": "Adds a permission to the Lambda resource policy." }, "name": "addPermission", "parameters": [ { "name": "name", "type": { "primitive": "string" } }, { "name": "permission", "type": { "fqn": "@aws-cdk/aws-lambda.Permission" } } ] } ], "name": "Alias", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "ARN of this alias\n\nUsed to be able to use Alias in place of a regular Lambda. Lambda accepts\nARNs everywhere it accepts function names." }, "immutable": true, "name": "functionName", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionName" } }, { "docs": { "comment": "ARN of this alias\n\nUsed to be able to use Alias in place of a regular Lambda. Lambda accepts\nARNs everywhere it accepts function names." }, "immutable": true, "name": "functionArn", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionArn" } }, { "docs": { "comment": "Role associated with this alias" }, "immutable": true, "name": "role", "type": { "fqn": "@aws-cdk/aws-iam.Role", "optional": true } }, { "docs": { "comment": "Whether the addPermission() call adds any permissions\n\nTrue for new Lambdas, false for imported Lambdas (they might live in different accounts)." }, "immutable": true, "name": "canCreatePermissions", "protected": true, "type": { "primitive": "boolean" } } ] }, "@aws-cdk/aws-lambda.AliasProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "comment": "Properties for a new Lambda alias" }, "fqn": "@aws-cdk/aws-lambda.AliasProps", "kind": "interface", "name": "AliasProps", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "Description for the alias", "default": "No description" }, "name": "description", "type": { "optional": true, "primitive": "string" } }, { "docs": { "comment": "Function version this alias refers to\n\nUse lambda.addVersion() to obtain a new lambda version to refer to." }, "name": "version", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionVersion" } }, { "docs": { "comment": "Name of this alias" }, "name": "aliasName", "type": { "primitive": "string" } }, { "docs": { "comment": "Additional versions with individual weights this alias points to\n\nIndividual additional version weights specified here should add up to\n(less than) one. All remaining weight is routed to the default\nversion.\n\nFor example, the config is\n\n version: \"1\"\n additionalVersions: [{ version: \"2\", weight: 0.05 }]\n\nThen 5% of traffic will be routed to function version 2, while\nthe remaining 95% of traffic will be routed to function version 1.", "default": "No additional versions" }, "name": "additionalVersions", "type": { "collection": { "elementtype": { "fqn": "@aws-cdk/aws-lambda.VersionWeight" }, "kind": "array" }, "optional": true } } ] }, "@aws-cdk/aws-lambda.AssetCode": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/aws-lambda.Code" }, "docs": { "comment": "Lambda code from a local directory." }, "fqn": "@aws-cdk/aws-lambda.AssetCode", "initializer": { "initializer": true, "parameters": [ { "docs": { "comment": "The path to the asset file or directory." }, "name": "path", "type": { "primitive": "string" } }, { "docs": { "comment": "The asset packaging format" }, "name": "packaging", "type": { "fqn": "@aws-cdk/assets.AssetPackaging" } } ] }, "kind": "class", "methods": [ { "docs": { "comment": "Called when the lambda is initialized to allow this object to\nbind to the stack, add resources and have fun." }, "name": "bind", "parameters": [ { "name": "lambda", "type": { "fqn": "@aws-cdk/aws-lambda.Function" } } ] }, { "docs": { "comment": "Called during stack synthesis to render the CodePropery for the\nLambda function." }, "name": "toJSON", "returns": { "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.CodeProperty" } } ], "name": "AssetCode", "namespace": "@aws-cdk/aws-lambda" }, "@aws-cdk/aws-lambda.Code": { "abstract": true, "assembly": "@aws-cdk/aws-lambda", "fqn": "@aws-cdk/aws-lambda.Code", "initializer": { "initializer": true }, "kind": "class", "methods": [ { "docs": { "return": "`LambdaS3Code` associated with the specified S3 object." }, "name": "bucket", "parameters": [ { "docs": { "comment": "The S3 bucket" }, "name": "bucket", "type": { "fqn": "@aws-cdk/aws-s3.BucketRef" } }, { "docs": { "comment": "The object key" }, "name": "key", "type": { "primitive": "string" } }, { "docs": { "comment": "Optional S3 object version" }, "name": "objectVersion", "type": { "optional": true, "primitive": "string" } } ], "returns": { "fqn": "@aws-cdk/aws-lambda.S3Code" }, "static": true }, { "docs": { "return": "`LambdaInlineCode` with inline code." }, "name": "inline", "parameters": [ { "docs": { "comment": "The actual handler code (limited to 4KiB)" }, "name": "code", "type": { "primitive": "string" } } ], "returns": { "fqn": "@aws-cdk/aws-lambda.InlineCode" }, "static": true }, { "docs": { "return": "Zip archives the contents of a directory on disk and uses this\nas the lambda handler's code." }, "name": "directory", "parameters": [ { "docs": { "comment": "The directory to zip" }, "name": "directoryToZip", "type": { "primitive": "string" } } ], "returns": { "fqn": "@aws-cdk/aws-lambda.AssetCode" }, "static": true }, { "docs": { "return": "Uses a file on disk as a lambda handler's code." }, "name": "file", "parameters": [ { "docs": { "comment": "The file path" }, "name": "filePath", "type": { "primitive": "string" } } ], "returns": { "fqn": "@aws-cdk/aws-lambda.AssetCode" }, "static": true }, { "abstract": true, "docs": { "comment": "Called during stack synthesis to render the CodePropery for the\nLambda function." }, "name": "toJSON", "returns": { "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.CodeProperty" } }, { "docs": { "comment": "Called when the lambda is initialized to allow this object to\nbind to the stack, add resources and have fun." }, "name": "bind", "parameters": [ { "name": "_lambda", "type": { "fqn": "@aws-cdk/aws-lambda.Function" } } ] } ], "name": "Code", "namespace": "@aws-cdk/aws-lambda" }, "@aws-cdk/aws-lambda.Function": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/aws-lambda.FunctionRef" }, "docs": { "comment": "Deploys a file from from inside the construct library as a function.\n\nThe supplied file is subject to the 4096 bytes limit of being embedded in a\nCloudFormation template.\n\nThe construct includes an associated role with the lambda.\n\nThis construct does not yet reproduce all features from the underlying resource\nlibrary." }, "fqn": "@aws-cdk/aws-lambda.Function", "initializer": { "initializer": true, "parameters": [ { "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "name": "name", "type": { "primitive": "string" } }, { "name": "props", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionProps" } } ] }, "kind": "class", "methods": [ { "docs": { "comment": "Adds an environment variable to this Lambda function.\nIf this is a ref to a Lambda function, this operation results in a no-op." }, "name": "addEnvironment", "parameters": [ { "docs": { "comment": "The environment variable key." }, "name": "key", "type": { "primitive": "string" } }, { "docs": { "comment": "The environment variable's value." }, "name": "value", "type": { "primitive": "any" } } ] }, { "docs": { "comment": "Add a new version for this Lambda\n\nIf you want to deploy through CloudFormation and use aliases, you need to\nadd a new version (with a new name) to your Lambda every time you want\nto deploy an update. An alias can then refer to the newly created Version.\n\nAll versions should have distinct names, and you should not delete versions\nas long as your Alias needs to refer to them.", "return": "A new Version object." }, "name": "addVersion", "parameters": [ { "docs": { "comment": "A unique name for this version" }, "name": "name", "type": { "primitive": "string" } }, { "docs": { "comment": "The SHA-256 hash of the most recently deployed Lambda source code, or\nomit to skip validation." }, "name": "codeSha256", "type": { "optional": true, "primitive": "string" } }, { "docs": { "comment": "A description for this version." }, "name": "description", "type": { "optional": true, "primitive": "string" } } ], "returns": { "fqn": "@aws-cdk/aws-lambda.FunctionVersion" } } ], "name": "Function", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "Name of this function" }, "immutable": true, "name": "functionName", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionName" } }, { "docs": { "comment": "ARN of this function" }, "immutable": true, "name": "functionArn", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionArn" } }, { "docs": { "comment": "Execution role associated with this function" }, "immutable": true, "name": "role", "type": { "fqn": "@aws-cdk/aws-iam.Role", "optional": true } }, { "docs": { "comment": "The runtime configured for this lambda." }, "immutable": true, "name": "runtime", "type": { "fqn": "@aws-cdk/aws-lambda.Runtime" } }, { "docs": { "comment": "The name of the handler configured for this lambda." }, "immutable": true, "name": "handler", "type": { "primitive": "string" } }, { "docs": { "comment": "Whether the addPermission() call adds any permissions\n\nTrue for new Lambdas, false for imported Lambdas (they might live in different accounts)." }, "immutable": true, "name": "canCreatePermissions", "protected": true, "type": { "primitive": "boolean" } } ] }, "@aws-cdk/aws-lambda.FunctionArn": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/cdk.Arn" }, "fqn": "@aws-cdk/aws-lambda.FunctionArn", "initializer": { "docs": { "comment": "Creates a token that resolves to `value`.\n\nIf value is a function, the function is evaluated upon resolution and\nthe value it returns will be used as the token's value.\n\ndisplayName is used to represent the Token when it's embedded into a string; it\nwill look something like this:\n\n \"embedded in a larger string is ${Token[DISPLAY_NAME.123]}\"\n\nThis value is used as a hint to humans what the meaning of the Token is,\nand does not have any effect on the evaluation.\n\nMust contain only alphanumeric and simple separator characters (_.:-)." }, "initializer": true, "parameters": [ { "docs": { "comment": "What this token will evaluate to, literal or function." }, "name": "valueOrFunction", "type": { "optional": true, "primitive": "any" } }, { "docs": { "comment": "A human-readable display hint for this Token" }, "name": "displayName", "type": { "optional": true, "primitive": "string" } } ] }, "kind": "class", "name": "FunctionArn", "namespace": "@aws-cdk/aws-lambda" }, "@aws-cdk/aws-lambda.FunctionName": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/cdk.Token" }, "fqn": "@aws-cdk/aws-lambda.FunctionName", "initializer": { "docs": { "comment": "Creates a token that resolves to `value`.\n\nIf value is a function, the function is evaluated upon resolution and\nthe value it returns will be used as the token's value.\n\ndisplayName is used to represent the Token when it's embedded into a string; it\nwill look something like this:\n\n \"embedded in a larger string is ${Token[DISPLAY_NAME.123]}\"\n\nThis value is used as a hint to humans what the meaning of the Token is,\nand does not have any effect on the evaluation.\n\nMust contain only alphanumeric and simple separator characters (_.:-)." }, "initializer": true, "parameters": [ { "docs": { "comment": "What this token will evaluate to, literal or function." }, "name": "valueOrFunction", "type": { "optional": true, "primitive": "any" } }, { "docs": { "comment": "A human-readable display hint for this Token" }, "name": "displayName", "type": { "optional": true, "primitive": "string" } } ] }, "kind": "class", "name": "FunctionName", "namespace": "@aws-cdk/aws-lambda" }, "@aws-cdk/aws-lambda.FunctionProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "fqn": "@aws-cdk/aws-lambda.FunctionProps", "kind": "interface", "name": "FunctionProps", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "The source code of your Lambda function. You can point to a file in an\nAmazon Simple Storage Service (Amazon S3) bucket or specify your source\ncode as inline text." }, "name": "code", "type": { "fqn": "@aws-cdk/aws-lambda.Code" } }, { "docs": { "comment": "A description of the function." }, "name": "description", "type": { "optional": true, "primitive": "string" } }, { "docs": { "comment": "The name of the function (within your source code) that Lambda calls to\nstart running your code. For more information, see the Handler property\nin the AWS Lambda Developer Guide.\n\nNOTE: If you specify your source code as inline text by specifying the\nZipFile property within the Code property, specify index.function_name as\nthe handler." }, "name": "handler", "type": { "primitive": "string" } }, { "docs": { "comment": "The function execution time (in seconds) after which Lambda terminates\nthe function. Because the execution time affects cost, set this value\nbased on the function's expected execution time.", "default": "3 seconds." }, "name": "timeout", "type": { "optional": true, "primitive": "number" } }, { "docs": { "comment": "Key-value pairs that Lambda caches and makes available for your Lambda\nfunctions. Use environment variables to apply configuration changes, such\nas test and production environment configurations, without changing your\nLambda function source code." }, "name": "environment", "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" }, "optional": true } }, { "docs": { "comment": "The runtime environment for the Lambda function that you are uploading.\nFor valid values, see the Runtime property in the AWS Lambda Developer\nGuide." }, "name": "runtime", "type": { "fqn": "@aws-cdk/aws-lambda.Runtime" } }, { "docs": { "comment": "A name for the function. If you don't specify a name, AWS CloudFormation\ngenerates a unique physical ID and uses that ID for the function's name.\nFor more information, see Name Type." }, "name": "functionName", "type": { "optional": true, "primitive": "string" } }, { "docs": { "comment": "The amount of memory, in MB, that is allocated to your Lambda function.\nLambda uses this value to proportionally allocate the amount of CPU\npower. For more information, see Resource Model in the AWS Lambda\nDeveloper Guide.", "default": "The default value is 128 MB" }, "name": "memorySize", "type": { "optional": true, "primitive": "number" } }, { "docs": { "comment": "Initial policy statements to add to the created Lambda Role.\n\nYou can call `addToRolePolicy` to the created lambda to add statements post creation." }, "name": "initialPolicy", "type": { "collection": { "elementtype": { "fqn": "@aws-cdk/cdk.PolicyStatement" }, "kind": "array" }, "optional": true } }, { "docs": { "comment": "Lambda execution role.\n\nThis is the role that will be assumed by the function upon execution.\nIt controls the permissions that the function will have. The Role must\nbe assumable by the 'lambda.amazonaws.com' service principal.", "default": "a unique role will be generated for this lambda function.\nBoth supplied and generated roles can always be changed by calling `addToRolePolicy`." }, "name": "role", "type": { "fqn": "@aws-cdk/aws-iam.Role", "optional": true } } ] }, "@aws-cdk/aws-lambda.FunctionRef": { "abstract": true, "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/cdk.Construct" }, "fqn": "@aws-cdk/aws-lambda.FunctionRef", "initializer": { "docs": { "comment": "Creates a new construct node." }, "initializer": true, "parameters": [ { "docs": { "comment": "The parent construct" }, "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "name": "id", "type": { "primitive": "string" } } ] }, "interfaces": [ { "fqn": "@aws-cdk/aws-events.IEventRuleTarget" }, { "fqn": "@aws-cdk/aws-logs.ILogSubscriptionDestination" }, { "fqn": "@aws-cdk/aws-s3-notifications.IBucketNotificationDestination" } ], "kind": "class", "methods": [ { "docs": { "comment": "Creates a Lambda function object which represents a function not defined\nwithin this stack.\n\n Lambda.import(this, 'MyImportedFunction', { lambdaArn: new LambdaArn('arn:aws:...') });" }, "name": "import", "parameters": [ { "docs": { "comment": "The parent construct" }, "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "docs": { "comment": "The name of the lambda construct" }, "name": "name", "type": { "primitive": "string" } }, { "docs": { "comment": "A reference to a Lambda function. Can be created manually (see\nexample above) or obtained through a call to `lambda.export()`." }, "name": "ref", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionRefProps" } } ], "returns": { "fqn": "@aws-cdk/aws-lambda.FunctionRef" }, "static": true }, { "docs": { "comment": "Return the given named metric for this Lambda" }, "name": "metricAll", "parameters": [ { "name": "metricName", "type": { "primitive": "string" } }, { "name": "props", "type": { "fqn": "@aws-cdk/aws-cloudwatch.MetricCustomization", "optional": true } } ], "returns": { "fqn": "@aws-cdk/aws-cloudwatch.Metric" }, "static": true }, { "docs": { "comment": "Metric for the number of Errors executing all Lambdas", "default": "sum over 5 minutes" }, "name": "metricAllErrors", "parameters": [ { "name": "props", "type": { "fqn": "@aws-cdk/aws-cloudwatch.MetricCustomization", "optional": true } } ], "returns": { "fqn": "@aws-cdk/aws-cloudwatch.Metric" }, "static": true }, { "docs": { "comment": "Metric for the Duration executing all Lambdas", "default": "average over 5 minutes" }, "name": "metricAllDuration", "parameters": [ { "name": "props", "type": { "fqn": "@aws-cdk/aws-cloudwatch.MetricCustomization", "optional": true } } ], "returns": { "fqn": "@aws-cdk/aws-cloudwatch.Metric" }, "static": true }, { "docs": { "comment": "Metric for the number of invocations of all Lambdas", "default": "sum over 5 minutes" }, "name": "metricAllInvocations", "parameters": [ { "name": "props", "type": { "fqn": "@aws-cdk/aws-cloudwatch.MetricCustomization", "optional": true } } ], "returns": { "fqn": "@aws-cdk/aws-cloudwatch.Metric" }, "static": true }, { "docs": { "comment": "Metric for the number of throttled invocations of all Lambdas", "default": "sum over 5 minutes" }, "name": "metricAllThrottles", "parameters": [ { "name": "props", "type": { "fqn": "@aws-cdk/aws-cloudwatch.MetricCustomization", "optional": true } } ], "returns": { "fqn": "@aws-cdk/aws-cloudwatch.Metric" }, "static": true }, { "docs": { "comment": "Metric for the number of concurrent executions across all Lambdas", "default": "max over 5 minutes" }, "name": "metricAllConcurrentExecutions", "parameters": [ { "name": "props", "type": { "fqn": "@aws-cdk/aws-cloudwatch.MetricCustomization", "optional": true } } ], "returns": { "fqn": "@aws-cdk/aws-cloudwatch.Metric" }, "static": true }, { "docs": { "comment": "Metric for the number of unreserved concurrent executions across all Lambdas", "default": "max over 5 minutes" }, "name": "metricAllUnreservedConcurrentExecutions", "parameters": [ { "name": "props", "type": { "fqn": "@aws-cdk/aws-cloudwatch.MetricCustomization", "optional": true } } ], "returns": { "fqn": "@aws-cdk/aws-cloudwatch.Metric" }, "static": true }, { "docs": { "comment": "Adds a permission to the Lambda resource policy." }, "name": "addPermission", "parameters": [ { "docs": { "comment": "The id Æ’or the permission construct" }, "name": "id", "type": { "primitive": "string" } }, { "name": "permission", "type": { "fqn": "@aws-cdk/aws-lambda.Permission" } } ] }, { "name": "addToRolePolicy", "parameters": [ { "name": "statement", "type": { "fqn": "@aws-cdk/cdk.PolicyStatement" } } ] }, { "docs": { "comment": "Returns a RuleTarget that can be used to trigger this Lambda as a\nresult from a CloudWatch event." }, "name": "asEventRuleTarget", "parameters": [ { "name": "ruleArn", "type": { "fqn": "@aws-cdk/aws-events.RuleArn" } }, { "name": "ruleId", "type": { "primitive": "string" } } ], "returns": { "fqn": "@aws-cdk/aws-events.EventRuleTargetProps" } }, { "docs": { "comment": "Return the given named metric for this Lambda" }, "name": "metric", "parameters": [ { "name": "metricName", "type": { "primitive": "string" } }, { "name": "props", "type": { "fqn": "@aws-cdk/aws-cloudwatch.MetricCustomization", "optional": true } } ], "returns": { "fqn": "@aws-cdk/aws-cloudwatch.Metric" } }, { "docs": { "comment": "Metric for the Errors executing this Lambda", "default": "sum over 5 minutes" }, "name": "metricErrors", "parameters": [ { "name": "props", "type": { "fqn": "@aws-cdk/aws-cloudwatch.MetricCustomization", "optional": true } } ], "returns": { "fqn": "@aws-cdk/aws-cloudwatch.Metric" } }, { "docs": { "comment": "Metric for the Duration of this Lambda", "default": "average over 5 minutes" }, "name": "metricDuration", "parameters": [ { "name": "props", "type": { "fqn": "@aws-cdk/aws-cloudwatch.MetricCustomization", "optional": true } } ], "returns": { "fqn": "@aws-cdk/aws-cloudwatch.Metric" } }, { "docs": { "comment": "Metric for the number of invocations of this Lambda", "default": "sum over 5 minutes" }, "name": "metricInvocations", "parameters": [ { "name": "props", "type": { "fqn": "@aws-cdk/aws-cloudwatch.MetricCustomization", "optional": true } } ], "returns": { "fqn": "@aws-cdk/aws-cloudwatch.Metric" } }, { "docs": { "comment": "Metric for the number of throttled invocations of this Lambda", "default": "sum over 5 minutes" }, "name": "metricThrottles", "parameters": [ { "name": "props", "type": { "fqn": "@aws-cdk/aws-cloudwatch.MetricCustomization", "optional": true } } ], "returns": { "fqn": "@aws-cdk/aws-cloudwatch.Metric" } }, { "docs": { "comment": "Return the properties required to send subscription events to this destination.\n\nIf necessary, the destination can use the properties of the SubscriptionFilter\nobject itself to configure its permissions to allow the subscription to write\nto it.\n\nThe destination may reconfigure its own permissions in response to this\nfunction call." }, "name": "logSubscriptionDestination", "parameters": [ { "name": "sourceLogGroup", "type": { "fqn": "@aws-cdk/aws-logs.LogGroup" } } ], "returns": { "fqn": "@aws-cdk/aws-logs.LogSubscriptionDestination" } }, { "docs": { "comment": "Export this Function (without the role)" }, "name": "export", "returns": { "fqn": "@aws-cdk/aws-lambda.FunctionRefProps" } }, { "docs": { "comment": "Allows this Lambda to be used as a destination for bucket notifications.\nUse `bucket.onEvent(lambda)` to subscribe." }, "name": "asBucketNotificationDestination", "parameters": [ { "name": "bucketArn", "type": { "fqn": "@aws-cdk/cdk.Arn" } }, { "name": "bucketId", "type": { "primitive": "string" } } ], "returns": { "fqn": "@aws-cdk/aws-s3-notifications.BucketNotificationDestinationProps" } } ], "name": "FunctionRef", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "abstract": true, "docs": { "comment": "The name of the function." }, "immutable": true, "name": "functionName", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionName" } }, { "abstract": true, "docs": { "comment": "The ARN fo the function." }, "immutable": true, "name": "functionArn", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionArn" } }, { "abstract": true, "docs": { "comment": "The IAM role associated with this function." }, "immutable": true, "name": "role", "type": { "fqn": "@aws-cdk/aws-iam.Role", "optional": true } }, { "abstract": true, "docs": { "comment": "Whether the addPermission() call adds any permissions\n\nTrue for new Lambdas, false for imported Lambdas (they might live in different accounts)." }, "immutable": true, "name": "canCreatePermissions", "protected": true, "type": { "primitive": "boolean" } } ] }, "@aws-cdk/aws-lambda.FunctionRefProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "comment": "Represents a Lambda function defined outside of this stack." }, "fqn": "@aws-cdk/aws-lambda.FunctionRefProps", "kind": "interface", "name": "FunctionRefProps", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "The ARN of the Lambda function.\nFormat: arn::lambda:::function:" }, "name": "functionArn", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionArn" } }, { "docs": { "comment": "The IAM execution role associated with this function.\nIf the role is not specified, any role-related operations will no-op." }, "name": "role", "type": { "fqn": "@aws-cdk/aws-iam.Role", "optional": true } } ] }, "@aws-cdk/aws-lambda.FunctionVersion": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/cdk.Construct" }, "docs": { "comment": "A single newly-deployed version of a Lambda function.\n\nThis object exists to--at deploy time--query the \"then-current\" version of\nthe Lambda function that it refers to. This Version object can then be\nused in `Alias` to refer to a particular deployment of a Lambda.\n\nThis means that for every new update you deploy to your Lambda (using the\nCDK and Aliases), you must always create a new Version object. In\nparticular, it must have a different name, so that a new resource is\ncreated.\n\nIf you want to ensure that you're associating the right version with\nthe right deployment, specify the `codeSha256` property while\ncreating the `Version.\n *" }, "fqn": "@aws-cdk/aws-lambda.FunctionVersion", "initializer": { "initializer": true, "parameters": [ { "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "name": "name", "type": { "primitive": "string" } }, { "name": "props", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionVersionProps" } } ] }, "kind": "class", "name": "FunctionVersion", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "The most recently deployed version of this function." }, "immutable": true, "name": "functionVersion", "type": { "fqn": "@aws-cdk/aws-lambda.Version" } }, { "docs": { "comment": "Lambda object this version is associated with" }, "immutable": true, "name": "lambda", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionRef" } } ] }, "@aws-cdk/aws-lambda.FunctionVersionProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "comment": "Properties for a new Lambda version" }, "fqn": "@aws-cdk/aws-lambda.FunctionVersionProps", "kind": "interface", "name": "FunctionVersionProps", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "SHA256 of the version of the Lambda source code\n\nSpecify to validate that you're deploying the right version.", "default": "No validation is performed" }, "name": "codeSha256", "type": { "optional": true, "primitive": "string" } }, { "docs": { "comment": "Description of the version", "default": "Description of the Lambda" }, "name": "description", "type": { "optional": true, "primitive": "string" } }, { "docs": { "comment": "Function to get the value of" }, "name": "lambda", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionRef" } } ] }, "@aws-cdk/aws-lambda.IJavaScriptLambdaHandler": { "assembly": "@aws-cdk/aws-lambda", "docs": { "comment": "Defines the handler code for an inline JavaScript lambda function.\n\nAWS Lambda invokes your Lambda function via a handler object. A handler\nrepresents the name of your Lambda function (and serves as the entry point\nthat AWS Lambda uses to execute your function code. For example:" }, "fqn": "@aws-cdk/aws-lambda.IJavaScriptLambdaHandler", "kind": "interface", "methods": [ { "docs": { "comment": "The main Lambda entrypoint." }, "name": "fn", "parameters": [ { "docs": { "comment": "Event sources can range from a supported AWS service or\ncustom applications that invoke your Lambda function. For examples, see\n[Sample Events Published by Event\nSources](https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html)." }, "name": "event", "type": { "primitive": "any" } }, { "docs": { "comment": "AWS Lambda uses this parameter to provide details of your\nLambda function's execution. For more information, see [The Context\nObject](https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html)." }, "name": "context", "type": { "primitive": "any" } }, { "docs": { "comment": "The Node.js runtimes v6.10 and v8.10 support the optional\ncallback parameter. You can use it to explicitly return information back\nto the caller. Signature is `callback(err, response)`." }, "name": "callback", "type": { "primitive": "any" } } ] } ], "name": "IJavaScriptLambdaHandler", "namespace": "@aws-cdk/aws-lambda" }, "@aws-cdk/aws-lambda.InlinableJavaScriptRuntime": { "assembly": "@aws-cdk/aws-lambda", "docs": { "comment": "A ``LambdaRuntime`` that can be used for inlining JavaScript." }, "fqn": "@aws-cdk/aws-lambda.InlinableJavaScriptRuntime", "interfaces": [ { "fqn": "@aws-cdk/aws-lambda.InlinableRuntime" } ], "kind": "interface", "name": "InlinableJavaScriptRuntime", "namespace": "@aws-cdk/aws-lambda" }, "@aws-cdk/aws-lambda.InlinableRuntime": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "comment": "A ``LambdaRuntime`` that can be used in conjunction with the ``ZipFile``\nproperty of the ``AWS::Lambda::Function`` resource." }, "fqn": "@aws-cdk/aws-lambda.InlinableRuntime", "kind": "interface", "name": "InlinableRuntime", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "immutable": true, "name": "name", "type": { "primitive": "string" } }, { "immutable": true, "name": "supportsInlineCode", "type": { "primitive": "boolean" } } ] }, "@aws-cdk/aws-lambda.InlineCode": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/aws-lambda.Code" }, "docs": { "comment": "Lambda code from an inline string (limited to 4KiB)." }, "fqn": "@aws-cdk/aws-lambda.InlineCode", "initializer": { "initializer": true, "parameters": [ { "name": "code", "type": { "primitive": "string" } } ] }, "kind": "class", "methods": [ { "docs": { "comment": "Called when the lambda is initialized to allow this object to\nbind to the stack, add resources and have fun." }, "name": "bind", "parameters": [ { "name": "lambda", "type": { "fqn": "@aws-cdk/aws-lambda.Function" } } ] }, { "docs": { "comment": "Called during stack synthesis to render the CodePropery for the\nLambda function." }, "name": "toJSON", "returns": { "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.CodeProperty" } } ], "name": "InlineCode", "namespace": "@aws-cdk/aws-lambda" }, "@aws-cdk/aws-lambda.InlineJavaScriptFunction": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/aws-lambda.Function" }, "docs": { "comment": "A lambda function with inline node.js code.\n\nUsage:\n\n new InlineJavaScriptLambda(this, 'MyFunc', {\n handler: {\n fn: (event, context, callback) => {\n console.log('hello, world');\n callback();\n }\n }\n });\n\nThis will define a node.js 6.10 function with the provided function has\nthe handler code." }, "fqn": "@aws-cdk/aws-lambda.InlineJavaScriptFunction", "initializer": { "initializer": true, "parameters": [ { "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "name": "name", "type": { "primitive": "string" } }, { "name": "props", "type": { "fqn": "@aws-cdk/aws-lambda.InlineJavaScriptLambdaProps" } } ] }, "kind": "class", "name": "InlineJavaScriptFunction", "namespace": "@aws-cdk/aws-lambda" }, "@aws-cdk/aws-lambda.InlineJavaScriptLambdaProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "fqn": "@aws-cdk/aws-lambda.InlineJavaScriptLambdaProps", "kind": "interface", "name": "InlineJavaScriptLambdaProps", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "The lambda handler as a javascript function.\n\nThis must be a javascript function object. The reason it is `any` is due\nto limitations of the jsii compiler." }, "name": "handler", "type": { "fqn": "@aws-cdk/aws-lambda.IJavaScriptLambdaHandler" } }, { "docs": { "comment": "A description of the function." }, "name": "description", "type": { "optional": true, "primitive": "string" } }, { "docs": { "comment": "The function execution time (in seconds) after which Lambda terminates\nthe function. Because the execution time affects cost, set this value\nbased on the function's expected execution time.", "default": "30 seconds." }, "name": "timeout", "type": { "optional": true, "primitive": "number" } }, { "docs": { "comment": "Key-value pairs that Lambda caches and makes available for your Lambda\nfunctions. Use environment variables to apply configuration changes, such\nas test and production environment configurations, without changing your\nLambda function source code." }, "name": "environment", "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" }, "optional": true } }, { "docs": { "comment": "The runtime environment for the Lambda function that you are uploading.\nFor valid values, see the Runtime property in the AWS Lambda Developer\nGuide.", "default": "NodeJS810" }, "name": "runtime", "type": { "fqn": "@aws-cdk/aws-lambda.InlinableJavaScriptRuntime", "optional": true } }, { "docs": { "comment": "A name for the function. If you don't specify a name, AWS CloudFormation\ngenerates a unique physical ID and uses that ID for the function's name.\nFor more information, see Name Type." }, "name": "functionName", "type": { "optional": true, "primitive": "string" } }, { "docs": { "comment": "The amount of memory, in MB, that is allocated to your Lambda function.\nLambda uses this value to proportionally allocate the amount of CPU\npower. For more information, see Resource Model in the AWS Lambda\nDeveloper Guide.", "default": "The default value is 128 MB" }, "name": "memorySize", "type": { "optional": true, "primitive": "number" } } ] }, "@aws-cdk/aws-lambda.LambdaRuntimeProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "fqn": "@aws-cdk/aws-lambda.LambdaRuntimeProps", "kind": "interface", "name": "LambdaRuntimeProps", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "Whether the ``ZipFile`` (aka inline code) property can be used with this runtime.", "default": "false" }, "immutable": true, "name": "supportsInlineCode", "type": { "optional": true, "primitive": "boolean" } } ] }, "@aws-cdk/aws-lambda.Permission": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "comment": "Represents a permission statement that can be added to a Lambda's resource policy\nvia the `addToResourcePolicy` method." }, "fqn": "@aws-cdk/aws-lambda.Permission", "kind": "interface", "name": "Permission", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "The Lambda actions that you want to allow in this statement. For example,\nyou can specify lambda:CreateFunction to specify a certain action, or use\na wildcard (``lambda:*``) to grant permission to all Lambda actions. For a\nlist of actions, see Actions and Condition Context Keys for AWS Lambda in\nthe IAM User Guide.", "default": "'lambda:InvokeFunction'" }, "name": "action", "type": { "optional": true, "primitive": "string" } }, { "docs": { "comment": "A unique token that must be supplied by the principal invoking the\nfunction.", "default": "The caller would not need to present a token." }, "name": "eventSourceToken", "type": { "optional": true, "primitive": "string" } }, { "docs": { "comment": "The entity for which you are granting permission to invoke the Lambda\nfunction. This entity can be any valid AWS service principal, such as\ns3.amazonaws.com or sns.amazonaws.com, or, if you are granting\ncross-account permission, an AWS account ID. For example, you might want\nto allow a custom application in another AWS account to push events to\nLambda by invoking your function.\n\nThe principal can be either an AccountPrincipal or a ServicePrincipal." }, "name": "principal", "type": { "fqn": "@aws-cdk/cdk.PolicyPrincipal" } }, { "docs": { "comment": "The AWS account ID (without hyphens) of the source owner. For example, if\nyou specify an S3 bucket in the SourceArn property, this value is the\nbucket owner's account ID. You can use this property to ensure that all\nsource principals are owned by a specific account." }, "name": "sourceAccount", "type": { "optional": true, "primitive": "any" } }, { "docs": { "comment": "The ARN of a resource that is invoking your function. When granting\nAmazon Simple Storage Service (Amazon S3) permission to invoke your\nfunction, specify this property with the bucket ARN as its value. This\nensures that events generated only from the specified bucket, not just\nany bucket from any AWS account that creates a mapping to your function,\ncan invoke the function." }, "name": "sourceArn", "type": { "fqn": "@aws-cdk/cdk.Arn", "optional": true } } ] }, "@aws-cdk/aws-lambda.PipelineInvokeAction": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/aws-codepipeline-api.Action" }, "docs": { "comment": "CodePipeline invoke Action that is provided by an AWS Lambda function.", "see": "https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html" }, "fqn": "@aws-cdk/aws-lambda.PipelineInvokeAction", "initializer": { "initializer": true, "parameters": [ { "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "name": "name", "type": { "primitive": "string" } }, { "name": "props", "type": { "fqn": "@aws-cdk/aws-lambda.PipelineInvokeActionProps" } } ] }, "kind": "class", "methods": [ { "docs": { "comment": "Add an input artifact" }, "name": "addInputArtifact", "parameters": [ { "name": "artifact", "type": { "fqn": "@aws-cdk/aws-codepipeline-api.Artifact" } } ], "protected": true, "returns": { "fqn": "@aws-cdk/aws-codepipeline-api.Action" } } ], "name": "PipelineInvokeAction", "namespace": "@aws-cdk/aws-lambda" }, "@aws-cdk/aws-lambda.PipelineInvokeActionProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "comment": "Construction properties of the {@link PipelineInvokeAction Lambda invoke CodePipeline Action}." }, "fqn": "@aws-cdk/aws-lambda.PipelineInvokeActionProps", "interfaces": [ { "fqn": "@aws-cdk/aws-codepipeline-api.CommonActionProps" } ], "kind": "interface", "name": "PipelineInvokeActionProps", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "The lambda function to invoke." }, "name": "lambda", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionRef" } }, { "docs": { "comment": "String to be used in the event data parameter passed to the Lambda\nfunction\n\nSee an example JSON event in the CodePipeline documentation.\n\nhttps://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html#actions-invoke-lambda-function-json-event-example" }, "name": "userParameters", "type": { "optional": true, "primitive": "any" } }, { "docs": { "comment": "Adds the \"codepipeline:PutJobSuccessResult\" and\n\"codepipeline:PutJobFailureResult\" for '*' resource to the Lambda\nexecution role policy.\n\nNOTE: the reason we can't add the specific pipeline ARN as a resource is\nto avoid a cyclic dependency between the pipeline and the Lambda function\n(the pipeline references) the Lambda and the Lambda needs permissions on\nthe pipeline.", "default": "true", "see": "https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html#actions-invoke-lambda-function-create-function" }, "name": "addPutJobResultPolicy", "type": { "optional": true, "primitive": "boolean" } } ] }, "@aws-cdk/aws-lambda.Runtime": { "assembly": "@aws-cdk/aws-lambda", "docs": { "comment": "Lambda function runtime environment." }, "fqn": "@aws-cdk/aws-lambda.Runtime", "initializer": { "initializer": true, "parameters": [ { "name": "name", "type": { "primitive": "string" } }, { "name": "props", "type": { "fqn": "@aws-cdk/aws-lambda.LambdaRuntimeProps", "optional": true } } ] }, "interfaces": [ { "fqn": "@aws-cdk/aws-lambda.InlinableRuntime" }, { "fqn": "@aws-cdk/aws-lambda.InlinableJavaScriptRuntime" } ], "kind": "class", "methods": [ { "docs": { "comment": "Returns a string representation of an object. " }, "name": "toString", "returns": { "primitive": "string" } } ], "name": "Runtime", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "const": true, "immutable": true, "name": "NodeJS", "static": true, "type": { "fqn": "@aws-cdk/aws-lambda.InlinableJavaScriptRuntime" } }, { "const": true, "immutable": true, "name": "NodeJS43", "static": true, "type": { "fqn": "@aws-cdk/aws-lambda.InlinableJavaScriptRuntime" } }, { "const": true, "immutable": true, "name": "NodeJS43Edge", "static": true, "type": { "fqn": "@aws-cdk/aws-lambda.Runtime" } }, { "const": true, "immutable": true, "name": "NodeJS610", "static": true, "type": { "fqn": "@aws-cdk/aws-lambda.InlinableJavaScriptRuntime" } }, { "const": true, "immutable": true, "name": "NodeJS810", "static": true, "type": { "fqn": "@aws-cdk/aws-lambda.Runtime" } }, { "const": true, "immutable": true, "name": "Java8", "static": true, "type": { "fqn": "@aws-cdk/aws-lambda.Runtime" } }, { "const": true, "immutable": true, "name": "Python27", "static": true, "type": { "fqn": "@aws-cdk/aws-lambda.InlinableRuntime" } }, { "const": true, "immutable": true, "name": "Python36", "static": true, "type": { "fqn": "@aws-cdk/aws-lambda.InlinableRuntime" } }, { "const": true, "immutable": true, "name": "DotNetCore1", "static": true, "type": { "fqn": "@aws-cdk/aws-lambda.Runtime" } }, { "const": true, "immutable": true, "name": "DotNetCore2", "static": true, "type": { "fqn": "@aws-cdk/aws-lambda.Runtime" } }, { "const": true, "immutable": true, "name": "DotNetCore21", "static": true, "type": { "fqn": "@aws-cdk/aws-lambda.Runtime" } }, { "const": true, "immutable": true, "name": "Go1x", "static": true, "type": { "fqn": "@aws-cdk/aws-lambda.Runtime" } }, { "docs": { "comment": "The name of this runtime, as expected by the Lambda resource. " }, "immutable": true, "name": "name", "type": { "primitive": "string" } }, { "docs": { "comment": "Whether the ``ZipFile`` (aka inline code) property can be used with this runtime. " }, "immutable": true, "name": "supportsInlineCode", "type": { "primitive": "boolean" } } ] }, "@aws-cdk/aws-lambda.S3Code": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/aws-lambda.Code" }, "docs": { "comment": "Lambda code from an S3 archive." }, "fqn": "@aws-cdk/aws-lambda.S3Code", "initializer": { "initializer": true, "parameters": [ { "name": "bucket", "type": { "fqn": "@aws-cdk/aws-s3.BucketRef" } }, { "name": "key", "type": { "primitive": "string" } }, { "name": "objectVersion", "type": { "optional": true, "primitive": "string" } } ] }, "kind": "class", "methods": [ { "docs": { "comment": "Called during stack synthesis to render the CodePropery for the\nLambda function." }, "name": "toJSON", "returns": { "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.CodeProperty" } } ], "name": "S3Code", "namespace": "@aws-cdk/aws-lambda" }, "@aws-cdk/aws-lambda.SingletonFunction": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/aws-lambda.FunctionRef" }, "docs": { "comment": "A Lambda that will only ever be added to a stack once.\n\nThe lambda is identified using the value of 'uuid'. Run 'uuidgen'\nfor every SingletonLambda you create." }, "fqn": "@aws-cdk/aws-lambda.SingletonFunction", "initializer": { "initializer": true, "parameters": [ { "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "name": "name", "type": { "primitive": "string" } }, { "name": "props", "type": { "fqn": "@aws-cdk/aws-lambda.SingletonFunctionProps" } } ] }, "kind": "class", "methods": [ { "docs": { "comment": "Adds a permission to the Lambda resource policy." }, "name": "addPermission", "parameters": [ { "name": "name", "type": { "primitive": "string" } }, { "name": "permission", "type": { "fqn": "@aws-cdk/aws-lambda.Permission" } } ] } ], "name": "SingletonFunction", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "The name of the function." }, "immutable": true, "name": "functionName", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionName" } }, { "docs": { "comment": "The ARN fo the function." }, "immutable": true, "name": "functionArn", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionArn" } }, { "docs": { "comment": "The IAM role associated with this function." }, "immutable": true, "name": "role", "type": { "fqn": "@aws-cdk/aws-iam.Role", "optional": true } }, { "docs": { "comment": "Whether the addPermission() call adds any permissions\n\nTrue for new Lambdas, false for imported Lambdas (they might live in different accounts)." }, "immutable": true, "name": "canCreatePermissions", "protected": true, "type": { "primitive": "boolean" } } ] }, "@aws-cdk/aws-lambda.SingletonFunctionProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "comment": "Properties for a newly created singleton Lambda" }, "fqn": "@aws-cdk/aws-lambda.SingletonFunctionProps", "interfaces": [ { "fqn": "@aws-cdk/aws-lambda.FunctionProps" } ], "kind": "interface", "name": "SingletonFunctionProps", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "A unique identifier to identify this lambda\n\nThe identifier should be unique across all custom resource providers.\nWe recommend generating a UUID per provider." }, "name": "uuid", "type": { "primitive": "string" } }, { "docs": { "comment": "A descriptive name for the purpose of this Lambda.\n\nIf the Lambda does not have a physical name, this string will be\nreflected its generated name. The combination of lambdaPurpose\nand uuid must be unique.", "default": "SingletonLambda" }, "name": "lambdaPurpose", "type": { "optional": true, "primitive": "string" } } ] }, "@aws-cdk/aws-lambda.Version": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/cdk.Token" }, "fqn": "@aws-cdk/aws-lambda.Version", "initializer": { "docs": { "comment": "Creates a token that resolves to `value`.\n\nIf value is a function, the function is evaluated upon resolution and\nthe value it returns will be used as the token's value.\n\ndisplayName is used to represent the Token when it's embedded into a string; it\nwill look something like this:\n\n \"embedded in a larger string is ${Token[DISPLAY_NAME.123]}\"\n\nThis value is used as a hint to humans what the meaning of the Token is,\nand does not have any effect on the evaluation.\n\nMust contain only alphanumeric and simple separator characters (_.:-)." }, "initializer": true, "parameters": [ { "docs": { "comment": "What this token will evaluate to, literal or function." }, "name": "valueOrFunction", "type": { "optional": true, "primitive": "any" } }, { "docs": { "comment": "A human-readable display hint for this Token" }, "name": "displayName", "type": { "optional": true, "primitive": "string" } } ] }, "kind": "class", "name": "Version", "namespace": "@aws-cdk/aws-lambda" }, "@aws-cdk/aws-lambda.VersionWeight": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "comment": "A version/weight pair for routing traffic to Lambda functions" }, "fqn": "@aws-cdk/aws-lambda.VersionWeight", "kind": "interface", "name": "VersionWeight", "namespace": "@aws-cdk/aws-lambda", "properties": [ { "docs": { "comment": "The version to route traffic to" }, "immutable": true, "name": "version", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionVersion" } }, { "docs": { "comment": "How much weight to assign to this version (0..1)" }, "immutable": true, "name": "weight", "type": { "primitive": "number" } } ] }, "@aws-cdk/aws-lambda.cloudformation.AliasResource": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/cdk.Resource" }, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.AliasResource", "initializer": { "docs": { "comment": "Creates a new ``AWS::Lambda::Alias``." }, "initializer": true, "parameters": [ { "docs": { "comment": "the ``cdk.Construct`` this ``AliasResource`` is a part of" }, "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "docs": { "comment": "the name of the resource in the ``cdk.Construct`` tree" }, "name": "name", "type": { "primitive": "string" } }, { "docs": { "comment": "the properties of this ``AliasResource``" }, "name": "properties", "type": { "fqn": "@aws-cdk/aws-lambda.cloudformation.AliasResourceProps" } } ] }, "kind": "class", "methods": [ { "name": "renderProperties", "protected": true, "returns": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } ], "name": "AliasResource", "namespace": "@aws-cdk/aws-lambda.cloudformation", "properties": [ { "const": true, "docs": { "comment": "The CloudFormation resource type name for this resource class." }, "immutable": true, "name": "resourceTypeName", "static": true, "type": { "primitive": "string" } } ], "subtypes": [ "@aws-cdk/aws-lambda.cloudformation.AliasResource.AliasRoutingConfigurationProperty", "@aws-cdk/aws-lambda.cloudformation.AliasResource.VersionWeightProperty" ] }, "@aws-cdk/aws-lambda.cloudformation.AliasResource.AliasRoutingConfigurationProperty": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-aliasroutingconfiguration.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.AliasResource.AliasRoutingConfigurationProperty", "kind": "interface", "name": "AliasRoutingConfigurationProperty", "namespace": "@aws-cdk/aws-lambda.cloudformation.AliasResource", "parenttype": "@aws-cdk/aws-lambda.cloudformation.AliasResource", "properties": [ { "docs": { "comment": "``AliasResource.AliasRoutingConfigurationProperty.AdditionalVersionWeights``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-aliasroutingconfiguration.html#cfn-lambda-alias-aliasroutingconfiguration-additionalversionweights" }, "name": "additionalVersionWeights", "type": { "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "fqn": "@aws-cdk/aws-lambda.cloudformation.AliasResource.VersionWeightProperty" } ] } }, "kind": "array" } } ] } } } ] }, "@aws-cdk/aws-lambda.cloudformation.AliasResource.VersionWeightProperty": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-versionweight.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.AliasResource.VersionWeightProperty", "kind": "interface", "name": "VersionWeightProperty", "namespace": "@aws-cdk/aws-lambda.cloudformation.AliasResource", "parenttype": "@aws-cdk/aws-lambda.cloudformation.AliasResource", "properties": [ { "docs": { "comment": "``AliasResource.VersionWeightProperty.FunctionVersion``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-versionweight.html#cfn-lambda-alias-versionweight-functionversion" }, "name": "functionVersion", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AliasResource.VersionWeightProperty.FunctionWeight``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-versionweight.html#cfn-lambda-alias-versionweight-functionweight" }, "name": "functionWeight", "type": { "union": { "types": [ { "primitive": "number" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } } ] }, "@aws-cdk/aws-lambda.cloudformation.AliasResourceProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.AliasResourceProps", "kind": "interface", "name": "AliasResourceProps", "namespace": "@aws-cdk/aws-lambda.cloudformation", "properties": [ { "docs": { "comment": "``AWS::Lambda::Alias.FunctionName``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-functionname" }, "name": "functionName", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Alias.FunctionVersion``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-functionversion" }, "name": "functionVersion", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Alias.Name``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-name" }, "name": "aliasName", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Alias.Description``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-description" }, "name": "description", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Alias.RoutingConfig``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-routingconfig" }, "name": "routingConfig", "type": { "optional": true, "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "fqn": "@aws-cdk/aws-lambda.cloudformation.AliasResource.AliasRoutingConfigurationProperty" } ] } } } ] }, "@aws-cdk/aws-lambda.cloudformation.EventSourceMappingResource": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/cdk.Resource" }, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.EventSourceMappingResource", "initializer": { "docs": { "comment": "Creates a new ``AWS::Lambda::EventSourceMapping``." }, "initializer": true, "parameters": [ { "docs": { "comment": "the ``cdk.Construct`` this ``EventSourceMappingResource`` is a part of" }, "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "docs": { "comment": "the name of the resource in the ``cdk.Construct`` tree" }, "name": "name", "type": { "primitive": "string" } }, { "docs": { "comment": "the properties of this ``EventSourceMappingResource``" }, "name": "properties", "type": { "fqn": "@aws-cdk/aws-lambda.cloudformation.EventSourceMappingResourceProps" } } ] }, "kind": "class", "methods": [ { "name": "renderProperties", "protected": true, "returns": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } ], "name": "EventSourceMappingResource", "namespace": "@aws-cdk/aws-lambda.cloudformation", "properties": [ { "const": true, "docs": { "comment": "The CloudFormation resource type name for this resource class." }, "immutable": true, "name": "resourceTypeName", "static": true, "type": { "primitive": "string" } } ] }, "@aws-cdk/aws-lambda.cloudformation.EventSourceMappingResourceProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.EventSourceMappingResourceProps", "kind": "interface", "name": "EventSourceMappingResourceProps", "namespace": "@aws-cdk/aws-lambda.cloudformation", "properties": [ { "docs": { "comment": "``AWS::Lambda::EventSourceMapping.EventSourceArn``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-eventsourcearn" }, "name": "eventSourceArn", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::EventSourceMapping.FunctionName``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionname" }, "name": "functionName", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::EventSourceMapping.BatchSize``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-batchsize" }, "name": "batchSize", "type": { "optional": true, "union": { "types": [ { "primitive": "number" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::EventSourceMapping.Enabled``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled" }, "name": "enabled", "type": { "optional": true, "union": { "types": [ { "primitive": "boolean" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::EventSourceMapping.StartingPosition``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingposition" }, "name": "startingPosition", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } } ] }, "@aws-cdk/aws-lambda.cloudformation.FunctionResource": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/cdk.Resource" }, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource", "initializer": { "docs": { "comment": "Creates a new ``AWS::Lambda::Function``." }, "initializer": true, "parameters": [ { "docs": { "comment": "the ``cdk.Construct`` this ``FunctionResource`` is a part of" }, "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "docs": { "comment": "the name of the resource in the ``cdk.Construct`` tree" }, "name": "name", "type": { "primitive": "string" } }, { "docs": { "comment": "the properties of this ``FunctionResource``" }, "name": "properties", "type": { "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResourceProps" } } ] }, "kind": "class", "methods": [ { "name": "renderProperties", "protected": true, "returns": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } ], "name": "FunctionResource", "namespace": "@aws-cdk/aws-lambda.cloudformation", "properties": [ { "const": true, "docs": { "comment": "The CloudFormation resource type name for this resource class." }, "immutable": true, "name": "resourceTypeName", "static": true, "type": { "primitive": "string" } }, { "docs": { "cloudformation_attribute": "Arn" }, "immutable": true, "name": "functionArn", "type": { "fqn": "@aws-cdk/aws-lambda.FunctionArn" } } ], "subtypes": [ "@aws-cdk/aws-lambda.cloudformation.FunctionResource.CodeProperty", "@aws-cdk/aws-lambda.cloudformation.FunctionResource.DeadLetterConfigProperty", "@aws-cdk/aws-lambda.cloudformation.FunctionResource.EnvironmentProperty", "@aws-cdk/aws-lambda.cloudformation.FunctionResource.TracingConfigProperty", "@aws-cdk/aws-lambda.cloudformation.FunctionResource.VpcConfigProperty" ] }, "@aws-cdk/aws-lambda.cloudformation.FunctionResource.CodeProperty": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.CodeProperty", "kind": "interface", "name": "CodeProperty", "namespace": "@aws-cdk/aws-lambda.cloudformation.FunctionResource", "parenttype": "@aws-cdk/aws-lambda.cloudformation.FunctionResource", "properties": [ { "docs": { "comment": "``FunctionResource.CodeProperty.S3Bucket``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3bucket" }, "name": "s3Bucket", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``FunctionResource.CodeProperty.S3Key``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3key" }, "name": "s3Key", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``FunctionResource.CodeProperty.S3ObjectVersion``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3objectversion" }, "name": "s3ObjectVersion", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``FunctionResource.CodeProperty.ZipFile``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile" }, "name": "zipFile", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } } ] }, "@aws-cdk/aws-lambda.cloudformation.FunctionResource.DeadLetterConfigProperty": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-deadletterconfig.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.DeadLetterConfigProperty", "kind": "interface", "name": "DeadLetterConfigProperty", "namespace": "@aws-cdk/aws-lambda.cloudformation.FunctionResource", "parenttype": "@aws-cdk/aws-lambda.cloudformation.FunctionResource", "properties": [ { "docs": { "comment": "``FunctionResource.DeadLetterConfigProperty.TargetArn``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-deadletterconfig.html#cfn-lambda-function-deadletterconfig-targetarn" }, "name": "targetArn", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } } ] }, "@aws-cdk/aws-lambda.cloudformation.FunctionResource.EnvironmentProperty": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.EnvironmentProperty", "kind": "interface", "name": "EnvironmentProperty", "namespace": "@aws-cdk/aws-lambda.cloudformation.FunctionResource", "parenttype": "@aws-cdk/aws-lambda.cloudformation.FunctionResource", "properties": [ { "docs": { "comment": "``FunctionResource.EnvironmentProperty.Variables``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html#cfn-lambda-function-environment-variables" }, "name": "variables", "type": { "optional": true, "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "collection": { "elementtype": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } }, "kind": "map" } } ] } } } ] }, "@aws-cdk/aws-lambda.cloudformation.FunctionResource.TracingConfigProperty": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-tracingconfig.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.TracingConfigProperty", "kind": "interface", "name": "TracingConfigProperty", "namespace": "@aws-cdk/aws-lambda.cloudformation.FunctionResource", "parenttype": "@aws-cdk/aws-lambda.cloudformation.FunctionResource", "properties": [ { "docs": { "comment": "``FunctionResource.TracingConfigProperty.Mode``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-tracingconfig.html#cfn-lambda-function-tracingconfig-mode" }, "name": "mode", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } } ] }, "@aws-cdk/aws-lambda.cloudformation.FunctionResource.VpcConfigProperty": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.VpcConfigProperty", "kind": "interface", "name": "VpcConfigProperty", "namespace": "@aws-cdk/aws-lambda.cloudformation.FunctionResource", "parenttype": "@aws-cdk/aws-lambda.cloudformation.FunctionResource", "properties": [ { "docs": { "comment": "``FunctionResource.VpcConfigProperty.SecurityGroupIds``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-securitygroupids" }, "name": "securityGroupIds", "type": { "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "collection": { "elementtype": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } }, "kind": "array" } } ] } } }, { "docs": { "comment": "``FunctionResource.VpcConfigProperty.SubnetIds``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-subnetids" }, "name": "subnetIds", "type": { "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "collection": { "elementtype": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } }, "kind": "array" } } ] } } } ] }, "@aws-cdk/aws-lambda.cloudformation.FunctionResourceProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResourceProps", "kind": "interface", "name": "FunctionResourceProps", "namespace": "@aws-cdk/aws-lambda.cloudformation", "properties": [ { "docs": { "comment": "``AWS::Lambda::Function.Code``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code" }, "name": "code", "type": { "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.CodeProperty" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.Handler``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-handler" }, "name": "handler", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.Role``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-role" }, "name": "role", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.Runtime``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime" }, "name": "runtime", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.DeadLetterConfig``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig" }, "name": "deadLetterConfig", "type": { "optional": true, "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.DeadLetterConfigProperty" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.Description``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-description" }, "name": "description", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.Environment``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment" }, "name": "environment", "type": { "optional": true, "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.EnvironmentProperty" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.FunctionName``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-functionname" }, "name": "functionName", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.KmsKeyArn``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-kmskeyarn" }, "name": "kmsKeyArn", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.MemorySize``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-memorysize" }, "name": "memorySize", "type": { "optional": true, "union": { "types": [ { "primitive": "number" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.ReservedConcurrentExecutions``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-reservedconcurrentexecutions" }, "name": "reservedConcurrentExecutions", "type": { "optional": true, "union": { "types": [ { "primitive": "number" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.Tags``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tags" }, "name": "tags", "type": { "optional": true, "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "fqn": "@aws-cdk/cdk.Tag" } ] } }, "kind": "array" } } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.Timeout``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout" }, "name": "timeout", "type": { "optional": true, "union": { "types": [ { "primitive": "number" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.TracingConfig``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig" }, "name": "tracingConfig", "type": { "optional": true, "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.TracingConfigProperty" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Function.VpcConfig``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig" }, "name": "vpcConfig", "type": { "optional": true, "union": { "types": [ { "fqn": "@aws-cdk/cdk.Token" }, { "fqn": "@aws-cdk/aws-lambda.cloudformation.FunctionResource.VpcConfigProperty" } ] } } } ] }, "@aws-cdk/aws-lambda.cloudformation.PermissionResource": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/cdk.Resource" }, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.PermissionResource", "initializer": { "docs": { "comment": "Creates a new ``AWS::Lambda::Permission``." }, "initializer": true, "parameters": [ { "docs": { "comment": "the ``cdk.Construct`` this ``PermissionResource`` is a part of" }, "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "docs": { "comment": "the name of the resource in the ``cdk.Construct`` tree" }, "name": "name", "type": { "primitive": "string" } }, { "docs": { "comment": "the properties of this ``PermissionResource``" }, "name": "properties", "type": { "fqn": "@aws-cdk/aws-lambda.cloudformation.PermissionResourceProps" } } ] }, "kind": "class", "methods": [ { "name": "renderProperties", "protected": true, "returns": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } ], "name": "PermissionResource", "namespace": "@aws-cdk/aws-lambda.cloudformation", "properties": [ { "const": true, "docs": { "comment": "The CloudFormation resource type name for this resource class." }, "immutable": true, "name": "resourceTypeName", "static": true, "type": { "primitive": "string" } } ] }, "@aws-cdk/aws-lambda.cloudformation.PermissionResourceProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.PermissionResourceProps", "kind": "interface", "name": "PermissionResourceProps", "namespace": "@aws-cdk/aws-lambda.cloudformation", "properties": [ { "docs": { "comment": "``AWS::Lambda::Permission.Action``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-action" }, "name": "action", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Permission.FunctionName``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-functionname" }, "name": "functionName", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Permission.Principal``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-principal" }, "name": "principal", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Permission.EventSourceToken``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-eventsourcetoken" }, "name": "eventSourceToken", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Permission.SourceAccount``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourceaccount" }, "name": "sourceAccount", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Permission.SourceArn``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourcearn" }, "name": "sourceArn", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } } ] }, "@aws-cdk/aws-lambda.cloudformation.VersionResource": { "assembly": "@aws-cdk/aws-lambda", "base": { "fqn": "@aws-cdk/cdk.Resource" }, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.VersionResource", "initializer": { "docs": { "comment": "Creates a new ``AWS::Lambda::Version``." }, "initializer": true, "parameters": [ { "docs": { "comment": "the ``cdk.Construct`` this ``VersionResource`` is a part of" }, "name": "parent", "type": { "fqn": "@aws-cdk/cdk.Construct" } }, { "docs": { "comment": "the name of the resource in the ``cdk.Construct`` tree" }, "name": "name", "type": { "primitive": "string" } }, { "docs": { "comment": "the properties of this ``VersionResource``" }, "name": "properties", "type": { "fqn": "@aws-cdk/aws-lambda.cloudformation.VersionResourceProps" } } ] }, "kind": "class", "methods": [ { "name": "renderProperties", "protected": true, "returns": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } ], "name": "VersionResource", "namespace": "@aws-cdk/aws-lambda.cloudformation", "properties": [ { "const": true, "docs": { "comment": "The CloudFormation resource type name for this resource class." }, "immutable": true, "name": "resourceTypeName", "static": true, "type": { "primitive": "string" } }, { "docs": { "cloudformation_attribute": "Version" }, "immutable": true, "name": "version", "type": { "fqn": "@aws-cdk/aws-lambda.Version" } } ] }, "@aws-cdk/aws-lambda.cloudformation.VersionResourceProps": { "assembly": "@aws-cdk/aws-lambda", "datatype": true, "docs": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html" }, "fqn": "@aws-cdk/aws-lambda.cloudformation.VersionResourceProps", "kind": "interface", "name": "VersionResourceProps", "namespace": "@aws-cdk/aws-lambda.cloudformation", "properties": [ { "docs": { "comment": "``AWS::Lambda::Version.FunctionName``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-functionname" }, "name": "functionName", "type": { "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Version.CodeSha256``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-codesha256" }, "name": "codeSha256", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } }, { "docs": { "comment": "``AWS::Lambda::Version.Description``", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-description" }, "name": "description", "type": { "optional": true, "union": { "types": [ { "primitive": "string" }, { "fqn": "@aws-cdk/cdk.Token" } ] } } } ] } }, "version": "0.8.2" }