Skip to content

Commit

Permalink
[release] Released initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeramin committed May 16, 2022
1 parent 09293a3 commit c175428
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions snippets/lambda.code-snippets
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"
}
}

0 comments on commit c175428

Please sign in to comment.