跳到主要内容

AWS Lambda with YAML

"AWS Lambda" action YAML parameters and examples

YAML parameters for AWS Lambda

名称类型描述
action
必填
String操作名称
type
必填
StringThe type of the action. Should be set to LAMBDA.
function_name
必填
StringThe name of the Lambda function.
integration_hash
必填
StringThe ID of the integration.
region
必填
StringThe Amazon region.
type
必填
StringThe type of the action. Should be set to LAMBDA.
qualifierStringThe Lambda function version or the alias name. More info here.
invocation_typeStringThe way in which the Lambda function will be invoked. More info here.
log_typeStringLogging type. Can be one of TAIL or NONE.
client_contextStringThe type of log data produced by the Lambda function. More info here.
payloadStringThe JSON that will be provided as input to the Lambda function. More info here.

YAML example for AWS Lambda

actions:
- action: "Invoke function hello-world"
type: "LAMBDA"
region: "us-east-1"
function_name: "hello-world"
invocation_type: "RequestResponse"
log_type: "Tail"
payload: "{\r\n \"revision\": \"${BUDDY_EXECUTION_REVISION}\"\r\n}"
integration_hash: "5ddb7c180fb38be67bd78a88a"