Slack Command Source
For Slack commands, the LambdaSharp CLI deploys an asynchronous API Gateway endpoint that avoids timeout errors due to slow Lambda functions. See Slack Command sample for an example of how to use the Slack Command source.
Syntax
SlackCommand: String
OperationName: String
Properties
OperationName
-
The
OperationName
attribute holds a friendly operation name for the method.Required: No
Type: String
SlackCommand
-
The
SlackCommand
attribute specifies the resource path that is mapped to the Lambda function. The notation is/resource/subresource
. Similarly to the API Gateway source, the API Gateway instance, the API Gateway resources, and the API Gateway methods are automatically created for the module when a Slack Command source is used.Required: Yes
Type: String
Examples
Sources:
- SlackCommand: /slack