-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09293a3
commit c175428
Showing
1 changed file
with
48 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
// { | ||
// // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | ||
// // Placeholders with the same ids are connected. | ||
// // Code Snippets for AWS Lambda | ||
// "Function": { | ||
// "prefix": "lambda-function", | ||
// "scope": "python", | ||
// "body": [ | ||
// "lambda_.Function(", | ||
// " self, \"${1:lambdaId}\",", | ||
// " runtime = lambda_.Runtime.${2|DOTNET_CORE_1,DOTNET_CORE_2,DOTNET_CORE_2_1,DOTNET_CORE_3_1,GO_1_X,JAVA_11,JAVA_8,JAVA_8_CORRETTO,NODEJS,NODEJS_10_X,NODEJS_12_X,NODEJS_4_3,NODEJS_6_10,NODEJS_8_10,PROVIDED,PROVIDED_AL2,PYTHON_2_7,PYTHON_3_6,PYTHON_3_7,PYTHON_3_8,RUBY_2_5,RUBY_2_7|},", | ||
// " code = ${3},", | ||
// " handler = \"${4:index.handler}\",", | ||
// ")" | ||
// ], | ||
// "description": "Generate a Lambda function" | ||
// }, | ||
// "Alias": { | ||
// "prefix": "lambda-alias", | ||
// "scope": "python", | ||
// "body": [ | ||
// "lambda_.Alias(", | ||
// " self, \"${1:aliasId}\",", | ||
// " alias_name=\"${2:alias}\",", | ||
// " version=${3:version}", | ||
// ")" | ||
// ], | ||
// "description": "Generate a Lambda alias" | ||
// }, | ||
// "CodeFromBucket": { | ||
// "prefix": "lambda-code-from-bucket", | ||
// "scope": "python", | ||
// "body": ["lambda_.Code.from_bucket(${1:bucket}, \"${2:key}\")"], | ||
// "description": "Import Lambda function code from S3" | ||
// }, | ||
// "CodeFromAsset": { | ||
// "prefix": "lambda-code-from-asset", | ||
// "scope": "python", | ||
// "body": ["lambda_.Code.from_asset(\"${1:path}\")"], | ||
// "description": "Import Lambda function code from local assets" | ||
// }, | ||
// "CodeFromInline": { | ||
// "prefix": "lambda-code-from-inline", | ||
// "scope": "python", | ||
// "body": ["lambda_.Code.from_inline(\"${1:code}\")"], | ||
// "description": "Import Lambda function code from inline" | ||
// } | ||
// } | ||
{ | ||
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | ||
// Placeholders with the same ids are connected. | ||
// Code Snippets for AWS Lambda | ||
"Function": { | ||
"prefix": "lambda-function", | ||
"scope": "python", | ||
"body": [ | ||
"lambda_.Function(", | ||
" self, \"${1:lambdaId}\",", | ||
" runtime = lambda_.Runtime.${2|DOTNET_CORE_1,DOTNET_CORE_2,DOTNET_CORE_2_1,DOTNET_CORE_3_1,GO_1_X,JAVA_11,JAVA_8,JAVA_8_CORRETTO,NODEJS,NODEJS_10_X,NODEJS_12_X,NODEJS_4_3,NODEJS_6_10,NODEJS_8_10,PROVIDED,PROVIDED_AL2,PYTHON_2_7,PYTHON_3_6,PYTHON_3_7,PYTHON_3_8,RUBY_2_5,RUBY_2_7|},", | ||
" code = ${3},", | ||
" handler = \"${4:index.handler}\",", | ||
")" | ||
], | ||
"description": "Generate a Lambda function" | ||
}, | ||
"Alias": { | ||
"prefix": "lambda-alias", | ||
"scope": "python", | ||
"body": [ | ||
"lambda_.Alias(", | ||
" self, \"${1:aliasId}\",", | ||
" alias_name=\"${2:alias}\",", | ||
" version=${3:version}", | ||
")" | ||
], | ||
"description": "Generate a Lambda alias" | ||
}, | ||
"CodeFromBucket": { | ||
"prefix": "lambda-code-from-bucket", | ||
"scope": "python", | ||
"body": ["lambda_.Code.from_bucket(${1:bucket}, \"${2:key}\")"], | ||
"description": "Import Lambda function code from S3" | ||
}, | ||
"CodeFromAsset": { | ||
"prefix": "lambda-code-from-asset", | ||
"scope": "python", | ||
"body": ["lambda_.Code.from_asset(\"${1:path}\")"], | ||
"description": "Import Lambda function code from local assets" | ||
}, | ||
"CodeFromInline": { | ||
"prefix": "lambda-code-from-inline", | ||
"scope": "python", | ||
"body": ["lambda_.Code.from_inline(\"${1:code}\")"], | ||
"description": "Import Lambda function code from inline" | ||
} | ||
} |