| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614 |
- {
- "version": "1.0",
- "examples": {
- "AddPermission": [
- {
- "input": {
- "Action": "lambda:InvokeFunction",
- "FunctionName": "MyFunction",
- "Principal": "s3.amazonaws.com",
- "SourceAccount": "123456789012",
- "SourceArn": "arn:aws:s3:::examplebucket/*",
- "StatementId": "ID-1"
- },
- "output": {
- "Statement": "ID-1"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example adds a permission for an S3 bucket to invoke a Lambda function.",
- "id": "add-permission-1474651469455",
- "title": "add-permission"
- }
- ],
- "CreateFunction": [
- {
- "input": {
- "Code": {
- },
- "Description": "",
- "FunctionName": "MyFunction",
- "Handler": "souce_file.handler_name",
- "MemorySize": 128,
- "Publish": true,
- "Role": "arn:aws:iam::123456789012:role/service-role/role-name",
- "Runtime": "nodejs8.10",
- "Timeout": 15,
- "VpcConfig": {
- }
- },
- "output": {
- "CodeSha256": "",
- "CodeSize": 123,
- "Description": "",
- "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:MyFunction",
- "FunctionName": "MyFunction",
- "Handler": "source_file.handler_name",
- "LastModified": "2016-11-21T19:49:20.006+0000",
- "MemorySize": 128,
- "Role": "arn:aws:iam::123456789012:role/service-role/role-name",
- "Runtime": "nodejs8.10",
- "Timeout": 123,
- "Version": "1",
- "VpcConfig": {
- }
- },
- "comments": {
- "input": {
- "Handler": "is of the form of the name of your source file and then name of your function handler",
- "Role": "replace with the actual arn of the execution role you created"
- },
- "output": {
- }
- },
- "description": "This example creates a Lambda function.",
- "id": "create-function-1474653449931",
- "title": "create-function"
- }
- ],
- "DeleteAlias": [
- {
- "input": {
- "FunctionName": "myFunction",
- "Name": "alias"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation deletes a Lambda function alias",
- "id": "to-delete-a-lambda-function-alias-1481660370804",
- "title": "To delete a Lambda function alias"
- }
- ],
- "DeleteEventSourceMapping": [
- {
- "input": {
- "UUID": "12345kxodurf3443"
- },
- "output": {
- "BatchSize": 123,
- "EventSourceArn": "arn:aws:s3:::examplebucket/*",
- "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
- "LastModified": "2016-11-21T19:49:20.006+0000",
- "LastProcessingResult": "",
- "State": "",
- "StateTransitionReason": "",
- "UUID": "12345kxodurf3443"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation deletes a Lambda function event source mapping",
- "id": "to-delete-a-lambda-function-event-source-mapping-1481658973862",
- "title": "To delete a Lambda function event source mapping"
- }
- ],
- "DeleteFunction": [
- {
- "input": {
- "FunctionName": "myFunction",
- "Qualifier": "1"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation deletes a Lambda function",
- "id": "to-delete-a-lambda-function-1481648553696",
- "title": "To delete a Lambda function"
- }
- ],
- "GetAccountSettings": [
- {
- "input": {
- },
- "output": {
- "AccountLimit": {
- },
- "AccountUsage": {
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation retrieves a Lambda customer's account settings",
- "id": "to-retrieves-a-lambda-customers-account-settings-1481657495274",
- "title": "To retrieves a Lambda customer's account settings"
- }
- ],
- "GetAlias": [
- {
- "input": {
- "FunctionName": "myFunction",
- "Name": "myFunctionAlias"
- },
- "output": {
- "AliasArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunctionAlias",
- "Description": "",
- "FunctionVersion": "1",
- "Name": "myFunctionAlias"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation retrieves a Lambda function alias",
- "id": "to-retrieve-a-lambda-function-alias-1481648742254",
- "title": "To retrieve a Lambda function alias"
- }
- ],
- "GetEventSourceMapping": [
- {
- "input": {
- "UUID": "123489-xxxxx-kdla8d89d7"
- },
- "output": {
- "BatchSize": 123,
- "EventSourceArn": "arn:aws:iam::123456789012:eventsource",
- "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
- "LastModified": "2016-11-21T19:49:20.006+0000",
- "LastProcessingResult": "",
- "State": "",
- "StateTransitionReason": "",
- "UUID": "123489-xxxxx-kdla8d89d7"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation retrieves a Lambda function's event source mapping",
- "id": "to-retrieve-a-lambda-functions-event-source-mapping-1481661622799",
- "title": "To retrieve a Lambda function's event source mapping"
- }
- ],
- "GetFunction": [
- {
- "input": {
- "FunctionName": "myFunction",
- "Qualifier": "1"
- },
- "output": {
- "Code": {
- "Location": "somelocation",
- "RepositoryType": "S3"
- },
- "Configuration": {
- "CodeSha256": "LQT+0DHxxxxcfwLyQjzoEFKZtdqQjHXanlSdfXBlEW0VA=",
- "CodeSize": 262,
- "Description": "A starter AWS Lambda function.",
- "Environment": {
- "Variables": {
- "S3_BUCKET": "test"
- }
- },
- "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
- "FunctionName": "myFunction",
- "Handler": "index.handler",
- "LastModified": "2016-11-21T19:49:20.006+0000",
- "MemorySize": 128,
- "Role": "arn:aws:iam::123456789012:role/lambda_basic_execution",
- "Runtime": "nodejs8.10",
- "Timeout": 3,
- "Version": "$LATEST",
- "VpcConfig": {
- "SecurityGroupIds": [
- ],
- "SubnetIds": [
- ]
- }
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation retrieves a Lambda function's event source mapping",
- "id": "to-retrieve-a-lambda-functions-event-source-mapping-1481661622799",
- "title": "To retrieve a Lambda function's event source mapping"
- }
- ],
- "GetFunctionConfiguration": [
- {
- "input": {
- "FunctionName": "myFunction",
- "Qualifier": "1"
- },
- "output": {
- "CodeSha256": "LQT+0DHxxxxcfwLyQjzoEFKZtdqQjHXanlSdfXBlEW0VA=",
- "CodeSize": 123,
- "DeadLetterConfig": {
- },
- "Description": "",
- "Environment": {
- },
- "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
- "FunctionName": "myFunction",
- "Handler": "index.handler",
- "KMSKeyArn": "",
- "LastModified": "2016-11-21T19:49:20.006+0000",
- "MemorySize": 128,
- "Role": "arn:aws:iam::123456789012:role/lambda_basic_execution",
- "Runtime": "python2.7",
- "Timeout": 123,
- "Version": "1",
- "VpcConfig": {
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation retrieves a Lambda function's event source mapping",
- "id": "to-retrieve-a-lambda-functions-event-source-mapping-1481661622799",
- "title": "To retrieve a Lambda function's event source mapping"
- }
- ],
- "GetPolicy": [
- {
- "input": {
- "FunctionName": "myFunction",
- "Qualifier": "1"
- },
- "output": {
- "Policy": ""
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation retrieves a Lambda function policy",
- "id": "to-retrieve-a-lambda-function-policy-1481649319053",
- "title": "To retrieve a Lambda function policy"
- }
- ],
- "Invoke": [
- {
- "input": {
- "ClientContext": "MyApp",
- "FunctionName": "MyFunction",
- "InvocationType": "Event",
- "LogType": "Tail",
- "Payload": "fileb://file-path/input.json",
- "Qualifier": "1"
- },
- "output": {
- "FunctionError": "",
- "LogResult": "",
- "Payload": "?",
- "StatusCode": 123
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation invokes a Lambda function",
- "id": "to-invoke-a-lambda-function-1481659683915",
- "title": "To invoke a Lambda function"
- }
- ],
- "InvokeAsync": [
- {
- "input": {
- "FunctionName": "myFunction",
- "InvokeArgs": "fileb://file-path/input.json"
- },
- "output": {
- "Status": 123
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation invokes a Lambda function asynchronously",
- "id": "to-invoke-a-lambda-function-asynchronously-1481649694923",
- "title": "To invoke a Lambda function asynchronously"
- }
- ],
- "ListAliases": [
- {
- "input": {
- "FunctionName": "myFunction",
- "FunctionVersion": "1",
- "Marker": "",
- "MaxItems": 123
- },
- "output": {
- "Aliases": [
- ],
- "NextMarker": ""
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation retrieves a Lambda function's aliases",
- "id": "to-retrieve-a-lambda-function-aliases-1481650199732",
- "title": "To retrieve a Lambda function aliases"
- }
- ],
- "ListFunctions": [
- {
- "input": {
- "Marker": "",
- "MaxItems": 123
- },
- "output": {
- "Functions": [
- ],
- "NextMarker": ""
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation retrieves a Lambda functions",
- "id": "to-retrieve-a-list-of-lambda-functions-1481650507425",
- "title": "To retrieve a list of Lambda functions"
- }
- ],
- "ListVersionsByFunction": [
- {
- "input": {
- "FunctionName": "myFunction",
- "Marker": "",
- "MaxItems": 123
- },
- "output": {
- "NextMarker": "",
- "Versions": [
- ]
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation retrieves a Lambda function versions",
- "id": "to-retrieve-a-list-of-lambda-function-versions-1481650603750",
- "title": "To retrieve a list of Lambda function versions"
- }
- ],
- "PublishVersion": [
- {
- "input": {
- "CodeSha256": "",
- "Description": "",
- "FunctionName": "myFunction"
- },
- "output": {
- "CodeSha256": "",
- "CodeSize": 123,
- "Description": "",
- "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
- "FunctionName": "myFunction",
- "Handler": "index.handler",
- "LastModified": "2016-11-21T19:49:20.006+0000",
- "MemorySize": 128,
- "Role": "arn:aws:iam::123456789012:role/lambda_basic_execution",
- "Runtime": "python2.7",
- "Timeout": 123,
- "Version": "1",
- "VpcConfig": {
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation publishes a version of a Lambda function",
- "id": "to-publish-a-version-of-a-lambda-function-1481650704986",
- "title": "To publish a version of a Lambda function"
- }
- ],
- "RemovePermission": [
- {
- "input": {
- "FunctionName": "myFunction",
- "Qualifier": "1",
- "StatementId": "role-statement-id"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation removes a Lambda function's permissions",
- "id": "to-remove-a-lambda-functions-permissions-1481661337021",
- "title": "To remove a Lambda function's permissions"
- }
- ],
- "UpdateAlias": [
- {
- "input": {
- "Description": "",
- "FunctionName": "myFunction",
- "FunctionVersion": "1",
- "Name": "functionAlias"
- },
- "output": {
- "AliasArn": "arn:aws:lambda:us-west-2:123456789012:function:functionAlias",
- "Description": "",
- "FunctionVersion": "1",
- "Name": "functionAlias"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation updates a Lambda function alias",
- "id": "to-update-a-lambda-function-alias-1481650817950",
- "title": "To update a Lambda function alias"
- }
- ],
- "UpdateEventSourceMapping": [
- {
- "input": {
- "BatchSize": 123,
- "Enabled": true,
- "FunctionName": "myFunction",
- "UUID": "1234xCy789012"
- },
- "output": {
- "BatchSize": 123,
- "EventSourceArn": "arn:aws:s3:::examplebucket/*",
- "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
- "LastModified": "2016-11-21T19:49:20.006+0000",
- "LastProcessingResult": "",
- "State": "",
- "StateTransitionReason": "",
- "UUID": "1234xCy789012"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation updates a Lambda function event source mapping",
- "id": "to-update-a-lambda-function-event-source-mapping-1481650907413",
- "title": "To update a Lambda function event source mapping"
- }
- ],
- "UpdateFunctionCode": [
- {
- "input": {
- "FunctionName": "myFunction",
- "Publish": true,
- "S3Bucket": "myBucket",
- "S3Key": "myKey",
- "S3ObjectVersion": "1",
- "ZipFile": "fileb://file-path/file.zip"
- },
- "output": {
- "CodeSha256": "LQT+0DHxxxxcfwLyQjzoEFKZtdqQjHXanlSdfXBlEW0VA=",
- "CodeSize": 123,
- "Description": "",
- "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
- "FunctionName": "myFunction",
- "Handler": "index.handler",
- "LastModified": "2016-11-21T19:49:20.006+0000",
- "MemorySize": 128,
- "Role": "arn:aws:iam::123456789012:role/lambda_basic_execution",
- "Runtime": "python2.7",
- "Timeout": 123,
- "Version": "1",
- "VpcConfig": {
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation updates a Lambda function's code",
- "id": "to-update-a-lambda-functions-code-1481650992672",
- "title": "To update a Lambda function's code"
- }
- ],
- "UpdateFunctionConfiguration": [
- {
- "input": {
- "Description": "",
- "FunctionName": "myFunction",
- "Handler": "index.handler",
- "MemorySize": 128,
- "Role": "arn:aws:iam::123456789012:role/lambda_basic_execution",
- "Runtime": "python2.7",
- "Timeout": 123,
- "VpcConfig": {
- }
- },
- "output": {
- "CodeSha256": "LQT+0DHxxxxcfwLyQjzoEFKZtdqQjHXanlSdfXBlEW0VA=",
- "CodeSize": 123,
- "Description": "",
- "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
- "FunctionName": "myFunction",
- "Handler": "index.handler",
- "LastModified": "2016-11-21T19:49:20.006+0000",
- "MemorySize": 128,
- "Role": "arn:aws:iam::123456789012:role/lambda_basic_execution",
- "Runtime": "python2.7",
- "Timeout": 123,
- "Version": "1",
- "VpcConfig": {
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This operation updates a Lambda function's configuration",
- "id": "to-update-a-lambda-functions-configuration-1481651096447",
- "title": "To update a Lambda function's configuration"
- }
- ]
- }
- }
|