Amazon Lambda Connector Reference¶ The following operations allow you to work with the Amazon Lambda Connector. Click an operation name to see parameter details and samples on how to use it. Accounts¶ getAccountSettingsThe getAccountSettings operation retrieves details about your account's limits and usage in an AWS Region. See the related API documentation. Parameter Name Description Required apiVersionGetAccountSettings API version for GetAccountSettings method. Yes Sample configuration <amazonlambda.getAccountSettings> <apiVersionGetAccountSettings>{$ctx:apiVersionGetAccountSettings}</apiVersionGetAccountSettings> </amazonlambda.getAccountSettings> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-2", "blocking":"false", "apiVersionGetAccountSettings": "2016-08-19" } Sample response { "AccountLimit": { "CodeSizeUnzipped": 262144000, "CodeSizeZipped": 52428800, "ConcurrentExecutions": 1000, "TotalCodeSize": 80530636800, "UnreservedConcurrentExecutions": 1000, "UnreservedConcurrentExecutionsMinimum": null }, "AccountUsage": { "FunctionCount": 1, "TotalCodeSize": 176268666 }, "DeprecatedFeaturesAccess": null, "HasFunctionWithDeprecatedRuntime": false, "PreviewFeatures": null } Aliases¶ createAliasThe createAlias implementation of the POST operation creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version. You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives. See the related API documentation. Parameter Name Description Required apiVersionCreateAlias API version for CreateAlias method. Yes functionName The name of the Lambda function that the alias invokes. Yes createAliasDescription The description of the alias. Yes functionVersion The function version that the alias invokes. Yes aliasName The name of the alias. Yes aliasAdditionalVersionWeights The name of second alias, and the percentage of traffic that's routed to it. Yes Sample configuration <amazonlambda.createAlias> <functionName>{$ctx:functionName}</functionName> <createAliasDescription>{$ctx:createAliasDescription}</createAliasDescription> <functionVersion>{$ctx:functionVersion}</functionVersion> <aliasName>{$ctx:aliasName}</aliasName> <aliasAdditionalVersionWeights>{$ctx:aliasAdditionalVersionWeights}</aliasAdditionalVersionWeights> <apiVersionCreateAlias>{$ctx:apiVersionCreateAlias}</apiVersionCreateAlias> </amazonlambda.createAlias> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-2", "blocking":"false", "functionName":"test", "functionVersion":"$LATEST", "aliasName":"alias2", "apiVersionCreateAlias":"2015-03-31" } Sample response { "AliasArn": "arn:aws:lambda:us-east-2:********:function:test:alias2", "Description": "", "FunctionVersion": "$LATEST", "Name": "alias2", "RevisionId": "be8925ae-a634-4303-92e2-5364d0724406", "RoutingConfig": null } deleteAliasThe deleteAlias implementation deletes a Lambda function alias. See the related API documentation. Parameter Name Description Required apiVersionDeleteAlias API version for DeleteAlias method. Yes functionName The name of the Lambda function that the alias invokes. Yes aliasName The name of the alias. Yes Sample configuration <amazonlambda.deleteAlias> <functionName>{$ctx:functionName}</functionName> <aliasName>{$ctx:aliasName}</aliasName> <apiVersionDeleteAlias>{$ctx:apiVersionDeleteAlias}</apiVersionDeleteAlias> </amazonlambda.deleteAlias> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-2", "blocking":"false", "functionName":"test", "aliasName":"alias2", "apiVersionDeleteAlias":"2015-03-31" } Sample response Status: 204 No Content getAliasThe getAlias implementation of the GET operation returns details about a Lambda function alias. See the related API documentation. Parameter Name Description Required apiVersionGetAlias API version for getAlias method. Yes functionName The name of the Lambda function that the alias invokes. Yes aliasName The name of the alias. Yes Sample configuration <amazonlambda.getAlias> <functionName>{$ctx:functionName}</functionName> <aliasName>{$ctx:aliasName}</aliasName> <apiVersionGetAlias>{$ctx:apiVersionGetAlias}</apiVersionGetAlias> </amazonlambda.getAlias> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-2", "blocking":"false", "functionName":"test", "aliasName":"alias2", "apiVersionGetAlias":"2015-03-31" } Sample response Status: 204 No Content { "AliasArn": "arn:aws:lambda:us-east-2:********:function:test:alias2", "Description": "", "FunctionVersion": "$LATEST", "Name": "alias2", "RevisionId": "be8925ae-a634-4303-92e2-5364d0724406", "RoutingConfig": null } updateAliasThe updateAlias method implementation updates the configuration of a Lambda function alias. See the related API documentation. Parameter Name Description Required apiVersionUpdateAlias API version for updateAlias method. Yes functionName The name of the Lambda function that the alias invokes. Yes aliasName The name of the alias. Yes updatedAliasDescription The description of the alias. Yes updatedAliasAdditionalVersionWeight The name of second alias, and the percentage of traffic that's routed to it. Yes functionVersion The function version that the alias invokes. Yes Sample configuration <amazonlambda.updateAlias> <functionName>{$ctx:functionName}</functionName> <updatedAliasDescription>{$ctx:updatedAliasDescription}</updatedAliasDescription> <functionVersion>{$ctx:functionVersion}</functionVersion> <aliasName>{$ctx:aliasName}</aliasName> <updatedAliasAdditionalVersionWeight>{$ctx:updatedAliasAdditionalVersionWeight}</updatedAliasAdditionalVersionWeight> <apiVersionUpdateAlias>{$ctx:apiVersionUpdateAlias}</apiVersionUpdateAlias> </amazonlambda.updateAlias> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-1", "blocking":"false", "functionName":"test", "aliasName":"alias2", "functionVersion":"$LATEST", "apiVersionUpdateAlias":"2015-03-31" } Sample response Status: 200 OK { "AliasArn": "arn:aws:lambda:us-east-2:*********:function:test:alias2", "Description": "", "FunctionVersion": "$LATEST", "Name": "alias2", "RevisionId": "6d8d089b-c632-4a4b-91ba-ee1ce706c50a", "RoutingConfig": null } functions¶ addPermissionThe addPermission method implementation grants an AWS service or another account permission to use a function. See the related API documentation. Parameter Name Description Required apiVersionAddPermission API version for AddPermission method. Yes functionName Name of the Lambda function, version, or alias. Yes permissionAction The action that the principal can use on the function.For example, lambda:InvokeFunction or lambda:GetFunction. Yes permissionStatementId A statement identifier that differentiates the statement from others in the same policy. Yes permissionPrincipal The AWS service or account that invokes the function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service. Yes permissionQualifier Specify a version or alias. Yes Sample configuration <amazonlambda.addPermission> <functionName>{$ctx:functionName}</functionName> <permissionAction>{$ctx:permissionAction}</permissionAction> <permissionStatementId>{$ctx:permissionStatementId}</permissionStatementId> <permissionPrincipal>{$ctx:permissionPrincipal}</permissionPrincipal> <permissionQualifier>{$ctx:permissionQualifier}</permissionQualifier> <apiVersionAddPermission>{$ctx:apiVersionAddPermission}</apiVersionAddPermission> </amazonlambda.addPermission> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-2", "blocking":"false", "functionName":"testFunction", "permissionAction":"lambda:addPermission", "permissionPrincipal":"s3.amazonaws.com", "permissionStatementId":"Permisssion_Added182p", "apiVersionAddPermission":"2015-03-31" } Sample response Status: 201 Created { "Statement": "{\"Sid\":\"Permisssion_Added182p\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"lambda:addPermission\",\"Resource\":\"arn:aws:lambda:us-east-2:*******:function:testFunction\"}" } createFunctionThe createFunction method implementation creates a new function. See the related API documentation. Parameter Name Description Required apiVersionCreateFunction The API version for the CreateFunction method. Yes functionName The name of the Lambda function. Yes functionDescription Contains description of the function. Yes s3Bucket An Amazon S3 bucket name in the same region as your function. Yes s3Key The Amazon S3 key of the deployment package. Yes s3ObjectVersion For versioned objects, the version of the deployment package object to use. Yes zipFile The base64-encoded contents of zip file containing your deployment package. AWS SDK and AWS CLI clients handle the encoding for you. Yes targetArn The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic. Yes environmentVariables Environment variable key-value pairs. Yes kmsKeyArn The ARN of the KMS key used to encrypt your function's environment variables. If not provided, AWS Lambda will use a default service key. Yes layers A list of function layers to add to the function's execution environment. Yes memorySize The amount of memory that your function has access to. Increasing the function's memory also increases it's CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB. Yes publish Set to true to publish the first version of the function during creation. Yes role The Amazon Resource Name (ARN) of the function’s execution role. Yes runtime The runtime version for the function.Valid Values: nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | java8 | python2.7 | python3.6 | python3.7 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | nodejs4.3-edge | go1.x | ruby2.5 |. Yes tags The list of tags (key-value-pairs) assigned to the new function. For more information see Tagging Lambda Functions in the AWS Lambda Developer Guide. Yes timeout The amount of time that Lambda allows a function to run before terminating it. The default is 3 seconds. The maximum allowed value is 900 seconds. Yes mode Set Mode to Activate to sample and trace a subset of incoming requests with AWS X-Ray. The tracing mode to Activate to sample and trace a subset of incoming requests with AWS X-Ray. Yes securityGroupIds A list of VPC security groups IDs. Yes subnetIds A list of VPC subnet IDs. Yes Sample configuration <amazonlambda.addPermission> <functionName>{$ctx:functionName}</functionName> <permissionAction>{$ctx:permissionAction}</permissionAction> <permissionStatementId>{$ctx:permissionStatementId}</permissionStatementId> <permissionPrincipal>{$ctx:permissionPrincipal}</permissionPrincipal> <permissionQualifier>{$ctx:permissionQualifier}</permissionQualifier> <apiVersionAddPermission>{$ctx:apiVersionAddPermission}</apiVersionAddPermission> </amazonlambda.addPermission> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-2", "blocking":"false", "s3Bucket":"ajbuck8", "s3Key":"fnc.zip", "s3ObjectVersion":"null", "functionName":"createdFunc", "handler":"mdhandler", "role":"arn:aws:iam::14*****:role/service-role/yfuj", "runtime":"python3.7", "apiVersionCreateFunction":"2015-03-31" } Sample response { "CodeSha256": "tp34ACQUVOU5YVe84VQUQHsHWdfixrnP/mkMdtt6gEc=", "CodeSize": 338, "DeadLetterConfig": null, "Description": "", "Environment": null, "FunctionArn": "arn:aws:lambda:us-east-2:*********:function:createdFunc", "FunctionName": "createdFunc", "Handler": "mdhandler", "KMSKeyArn": null, "LastModified": "2019-03-05T09:36:27.074+0000", "Layers": null, "MasterArn": null, "MemorySize": 128, "RevisionId": "acdf452b-5bf0-4203-9e22-728c200aa42a", "Role": "arn:aws:iam::**********:role/service-role/yfuj", "Runtime": "python3.7", "Timeout": 3, "TracingConfig": { "Mode": "PassThrough" }, "Version": "$LATEST", "VpcConfig": null } deleteFunctionThe deleteFunction method implementation deletes a Lambda function. See the related API documentation. Parameter Name Description Required apiVersionDeleteFunction API version for DeleteFunction method. Yes functionName The name of the Lambda function. Yes deleteFunctionQualifier Specify a version to delete. You can't delete a version that's referenced by an alias. Yes Sample configuration <amazonlambda.deleteFunction> <functionName>{$ctx:functionName}</functionName> <deleteFunctionQualifier>{$ctx:deleteFunctionQualifier}</deleteFunctionQualifier> <apiVersionDeleteFunction>{$ctx:apiVersionDeleteFunction}</apiVersionDeleteFunction> </amazonlambda.deleteFunction> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-1", "blocking":"false", "functionName":"func", "apiVersionDeleteFunction":"2015-03-31" } Sample response Status: 201 Created getFunctionThe getFunction method implementation returns information about the function or function version. See the related API documentation. Parameter Name Description Required apiVersionGetFunction API version for GetFunction method. Yes functionName The name of the Lambda function. Yes qualifier Specify a version or alias. Yes Sample configuration <amazonlambda.getFunction> <functionName>{$ctx:functionName}</functionName> <qualifier>{$ctx:qualifier}</qualifier> <apiVersionGetFunction>{$ctx:apiVersionGetFunction}</apiVersionGetFunction> </amazonlambda.getFunction> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-2", "blocking":"false", "functionName":"Fn", "qualifier":"$LATEST", "apiVersionGetFunction":"2015-03-31" } Sample response { "Code": { "Location": "https://awslambda-us-east-2-tasks.s3.us-east-2.amazonaws.com/snapshots/1*****6/test-9f25e193-f604-4d9e-83f1-1254f57e92bc?versionId=wGTdzzK2xtmCGZdt_kgFyy4dlBV8qr1N&X-Amz-Security-Token=FQoGZXIvYXdzEFoaDGu12sbFFNlw0JI6rCK3A6sbM%2FoxC7a2gKuwHXuKoacmpYJa0L%2FtR%2B52PUf9Pbxh2K4OOg5iffmAhfRV%2BpdhyLs32zWlkiYXRpZseDeZPAbofXMZSoLDWhtLVB0EmLTwz33gX8EQfrsvAJa2xWyM9bsebmNwHe9jTa56DvfaQzPEEa4QXpzWEKH8i5%2FSz9iNCrQhbRP%2B5dvclV%2FULql2gMPlxbwPIZNIYdF1xZuddIGcZInkrEHL3956%2B0kHag%2FL%2FoWzN81IGkySbjKNgRFeLxlDEn9ZpDiC%2FdrnNqJ%2FuBdgben7T1ZV3ck5ra0aT7XKaZhDtEN4jHv0sw3O9rORxvlne50TZ56aVePW%2FpUekHjTUiMgrwG%2B2J4uXl2ht2lTJQW3heAFFCoo1DawPlSG%2Fszht8Mt%2BhkHOrE7Re2GRTlnj0jEzEtqgp3JjuaYZU7dtbU4PhbvavF2LtxWFin9p0hWGkcMjKWuWDTaHLdj%2FzTSkS3qifkD9k34B6P%2BaQE1liduGSwK4CgNGNIP5PISt%2Fyoq2Gii1A3yIKyFgeL1W3cJ%2FuhVL9iC%2FsAN6AMkGMsNNjO%2BxvlclQ0YNK10sGhsc7A0z0Cvsgo0O344wU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20190305T090047Z&X-Amz-SignedHeaders=host&X-Amz-Expires=599&X-Amz-Credential=ASIARQRML75E7CY33SUO%2F20190305%2Fus-east-2%2Fs3%2Faws4_request&X-Amz-Signature=e82c9ea475e1ba363b6e061c2eebeded0dfd8f275ad8313e16f42430a4f4819b", "RepositoryType": "S3" }, "Concurrency": null, "Configuration": { "CodeSha256": "pETr5sslHxypYmc5mm3M8j3RFMB2G5f5y8lQM/7ZVIs=", "CodeSize": 262, "DeadLetterConfig": null, "Description": "", "Environment": null, "FunctionArn": "arn:aws:lambda:us-east-2:********:function:test:$LATEST", "FunctionName": "test", "Handler": "index.handler", "KMSKeyArn": null, "LastModified": "2019-03-05T08:43:52.123+0000", "Layers": [ { "Arn": "arn:aws:lambda:us-east-2:*******:layer:ballerina-09903:1", "CodeSize": 177304793, "UncompressedCodeSize": 207173983 } ], "MasterArn": null, "MemorySize": 128, "RevisionId": "1da07f2e-469d-4981-a350-38bb01f19167", "Role": "arn:aws:iam::**********:role/test-role", "Runtime": "nodejs8.10", "Timeout": 3, "TracingConfig": { "Mode": "PassThrough" }, "Version": "$LATEST", "VpcConfig": { "SecurityGroupIds": [], "SubnetIds": [], "VpcId": "", "VpcSetupStatus": null, "VpcSetupStatusReason": null } }, "Tags": null } getFunctionConfigurationThe getFunctionConfiguration method implementation returns the version-specific settings of a Lambda function or version. See the related API documentation. Parameter Name Description Required apiVersionGetFunctionConfiguration API version for GetFunctionConfiguration method. Yes functionName The name of the Lambda function. Yes qualifier Specify a version or alias. Yes Sample configuration <amazonlambda.getFunctionConfiguration> <functionName>{$ctx:functionName}</functionName> <qualifier>{$ctx:qualifier}</qualifier> <apiVersionGetFunctionConfiguration>{$ctx:apiVersionGetFunctionConfiguration}</apiVersionGetFunctionConfiguration> </amazonlambda.getFunctionConfiguration> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-2", "blocking":"false", "functionName":"test", "qualifier":"$LATEST", "apiVersionGetFunctionConfiguration":"2015-03-31" } Sample response Status: 200 OK { "CodeSha256": "pETr5sslHxypYmc5mm3M8j3RFMB2G5f5y8lQM/7ZVIs=", "CodeSize": 262, "DeadLetterConfig": null, "Description": "", "Environment": null, "FunctionArn": "arn:aws:lambda:us-east-2:*********:function:test:$LATEST", "FunctionName": "test", "Handler": "index.handler", "KMSKeyArn": null, "LastModified": "2019-03-05T08:43:52.123+0000", "Layers": [ { "Arn": "arn:aws:lambda:us-east-2:***********:layer:ballerina-09903:1", "CodeSize": 177304793, "UncompressedCodeSize": 207173983 } ], "MasterArn": null, "MemorySize": 128, "RevisionId": "1da07f2e-469d-4981-a350-38bb01f19167", "Role": "arn:aws:iam::*********:role/test-role", "Runtime": "nodejs8.10", "Timeout": 3, "TracingConfig": { "Mode": "PassThrough" }, "Version": "$LATEST", "VpcConfig": { "SecurityGroupIds": [], "SubnetIds": [], "VpcId": "", "VpcSetupStatus": null, "VpcSetupStatusReason": null } } invoke The invoke method implementation invokes a Lambda function. See the related API documentation. Parameter Name Description Required apiVersionInvoke API version for Invoke method. Yes functionName The name of the Lambda function. Yes qualifier Specify a version or alias. Yes x-amz-invocation-type It specifies the way you want to invoke the function. Choose from the following options. Yes x-amz-log-type It specifies whether to include the execution log in the response. Set to Tail to include it in the response. Valid values are: None and Tail. Yes x-amz-client-context It's the base64-encoded data about the invoking client to pass to the function in the context object. It can be up to 3583 bytes. RequestResponse (default) - Invoke the function synchronously. Keep the connection open until the function returns a response or times out. The API response includes the function response and additional data. Event - Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if it's configured). The API response only includes a status code. DryRun - Validate parameter values and verify that the user or role has permission to invoke the function. Yes payload The JSON that you want to provide to your Lambda function as input. Yes Sample configuration <amazonlambda.invoke> <functionName>{$ctx:functionName}</functionName> <apiVersionInvoke>{$ctx:apiVersionInvoke}</apiVersionInvoke> <qualifier>{$ctx:qualifier}</qualifier> <x-amz-invocation-type>{$ctx:x-amz-invocation-type}</x-amz-invocation-type> <x-amz-log-type>{$ctx:x-amz-log-type}</x-amz-log-type> <x-amz-client-context>{$ctx:x-amz-client-context}</x-amz-client-context> <payload>{$ctx:payload}</payload> </amazonlambda.invoke> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-1", "blocking":"false", "functionName":"LambdawithLayer", "apiVersionInvoke":"2015-03-31" } Sample response Status: 200 OK { "body": "Hello from Lambda Layers!", "statusCode": 200 } listFunctionsThe listFunctions method implementation returns a list of Lambda functions, with the version-specific configuration of each. See the related API documentation. Parameter Name Description Required apiVersionListFunction API version for ListFunctions method. Yes functionVersion Version name which specifies the version to include in entries for each function. Set to ALL to include entries for all published versions of each function. Yes marker It specifies the pagination token that is returned by a previous request to retrieve the next page of results. Yes masterRegion For Lambda@Edge functions, the AWS Region of the master function. For example, us-east-2 or ALL. If specified, you must set FunctionVersion to ALL. Yes maxItems It specifies the value, ranging from 1 to 10000, to limit the number of functions in the response. Yes Sample configuration <amazonlambda.listFunctions> <functionVersion>{$ctx:functionVersion}</functionVersion> <apiVersionListFunctions>{$ctx:apiVersionListFunctions}</apiVersionListFunctions> <marker>{$ctx:marker}</marker> <masterRegion>{$ctx:masterRegion}</masterRegion> <maxItems>{$ctx:maxItems}</maxItems> </amazonlambda.listFunctions> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-1", "blocking":"false", "functionVersion":"ALL", "marker":"1", "masterRegion":"us-east-1", "maxItems":"3", "apiVersionListFunctions":"2015-03-31" } removePermission The removePermission method implementation revokes function-use permission from an AWS service or another account. See the related API documentation. Parameter Name Description Required apiVersionRemovePermission API version for RemovePermission method. Yes functionName Name of the Lambda function. Yes permissionStatementId Statement ID of the permission to remove. Yes permissionQualifier It specifies a version or alias to remove permission from a published version of the function. Yes permissionRevisionId It's a Id which allow to update the policy only if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it. Yes Sample configuration <amazonlambda.removePermission> <functionName>{$ctx:functionName}</functionName> <apiVersionRemovePermission>{$ctx:apiVersionRemovePermission}</apiVersionRemovePermission> <permissionStatementId>{$ctx:permissionStatementId}</permissionStatementId> <permissionQualifier>{$ctx:permissionQualifier}</permissionQualifier> <permissionRevisionId>{$ctx:permissionRevisionId}</permissionRevisionId> </amazonlambda.removePermission> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-1", "blocking":"false", "functionName":"Fn", "permissionStatementId":"Permisssion_Added1443p", "apiVersionRemovePermission":"2015-03-31" } Sample response Status: 204 No Content Layers¶ addLayerVersionPermissionThe addLayerVersionPermission method implementation adds permission to the resource-based policy of a version of an AWS Lambda layer. See the related API documentation. Parameter Name Description Required apiVersionAddLayerVersionPermission API version for AddLayerVersionPermission method. Yes layerName The name or Amazon Resource Name (ARN) of the layer. Yes layerVersionNumber The version number. Yes layerRevisionId Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it. Yes layerAction The API action that grants access to the layer. For example, lambda:GetLayerVersion. Yes layerOrganizationId With the principal set to *, grant permission to all accounts in the specified organization. Yes layerPrincipal An account ID, or * to grant permission to all AWS accounts. Yes layerStatementId An identifier that distinguishes the policy from others on the same layer version. Yes Sample configuration <amazonlambda.addLayerVersionPermission> <layerName>{$ctx:layerName}</layerName> <layerVersionNumber>{$ctx:layerVersionNumber}</layerVersionNumber> <layerRevisionId>{$ctx:layerRevisionId}</layerRevisionId> <layerAction>{$ctx:layerAction}</layerAction> <layerOrganizationId>{$ctx:layerOrganizationId}</layerOrganizationId> <layerPrincipal>{$ctx:layerPrincipal}</layerPrincipal> <layerStatementId>{$ctx:layerStatementId}</layerStatementId> <apiVersionAddLayerVersionPermission>{$ctx:apiVersionAddLayerVersionPermission}</apiVersionAddLayerVersionPermission> </amazonlambda.addLayerVersionPermission> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-2", "blocking":"false", "layerVersionNumber":"1", "layerPrincipal":"*", "layerStatementId":"Permisssion_Added", "layerAction":"lambda:GetLayerVersion", "layerName":"CustomFunction", "apiVersionAddLayerVersionPermission":"2018-10-31" } Sample response { "RevisionId": "632d9fdb-a063-4309-99f5-023762923216", "Statement": "{\"Sid\":\"Layer_Version_Permisssion_Added\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"lambda:GetLayerVersion\",\"Resource\":\"arn:aws:lambda:us-east-2:**********:layer:CustomFunction:1\"}" } removeLayerVersionPermissionThe removeLayerVersionPermission method implementation revokes permission to the resource-based policy of a version of an AWS Lambda layer. See the related API documentation. Parameter Name Description Required apiVersionRemoveLayerVersionPermission API version for RemoveLayerVersionPermission method. Yes layerName The name or Amazon Resource Name (ARN) of the layer. Yes layerVersionNumber The version number of layer. Yes layerRevisionId Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it. Yes layerStatementId An identifier that distinguishes the policy from others on the same layer version. Yes Sample configuration <amazonlambda.removeLayerVersionPermission> <layerName>{$ctx:layerName}</layerName> <layerVersionNumber>{$ctx:layerVersionNumber}</layerVersionNumber> <layerStatementId>{$ctx:layerStatementId}</layerStatementId> <layerRevisionId>{$ctx:layerRevisionId}</layerRevisionId> <apiVersionRemoveLayerVersionPermission>{$ctx:apiVersionRemoveLayerVersionPermission}</apiVersionRemoveLayerVersionPermission> </amazonlambda.removeLayerVersionPermission> Sample request { "secretAccessKey":"secret access key here", "accessKeyId":"access key id here", "region":"us-east-2", "blocking":"false", "layerVersionNumber":"1", "layerStatementId":"Layer_Version_Permisssion_Added", "layerName":"CustomFunction", "apiVersionRemoveLayerVersionPermission":"2018-10-31" } Sample response Status: 204 No Content