forked from elasticio/aws-lambda-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent.json
83 lines (83 loc) · 3.95 KB
/
component.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"title": "AWS Lambda",
"description": "elastic.io integration component that calls out to AWS Lambda API",
"version": "1.0.2",
"credentials": {
"fields": {
"aws_access_key_id": {
"label": "AWS Access Key",
"required": true,
"viewClass": "TextFieldView"
},
"aws_secret_access_key": {
"label": "AWS Access Secret",
"required": true,
"viewClass": "TextFieldView"
}
}
},
"actions": {
"publish": {
"main": "./lib/actions/invoke.js",
"title": "Invoke",
"fields": {
"functionName": {
"label": "FunctionName",
"required": true,
"viewClass": "TextFieldView",
"note": "You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length."
},
"region": {
"label": "AWS Region",
"required": true,
"viewClass": "SelectView",
"prompt": "Please choose",
"model": {
"us-east-1": "US East (N. Virginia)",
"us-west-1": "US West (N. California)",
"us-west-2": "US West (Oregon)",
"eu-west-1": "EU (Ireland)",
"eu-central-1": "EU (Frankfurt)",
"ap-northeast-1": "Asia Pacific (Tokyo)",
"ap-northeast-2": "Asia Pacific (Seoul)",
"ap-southeast-1": "Asia Pacific (Singapore)",
"ap-southeast-2": "Asia Pacific (Sydney)",
"sa-east-1": "South America (Sao Paulo)"
}
},
"invocationType": {
"label": "Invocation Type",
"required": false,
"viewClass": "SelectView",
"note": "By default, the Invoke API assumes RequestResponse invocation type. You can optionally request asynchronous execution by specifying Event as the InvocationType.",
"model": {
"RequestResponse": "RequestResponse",
"Event": "Event"
}
},
"logType": {
"label": "Log Type",
"required": false,
"viewClass": "SelectView",
"note": "You can set this optional parameter to Tail in the request only if you specify the InvocationType parameter with value RequestResponse. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in the x-amz-log-result header.",
"model": {
"None": "None",
"Tail": "Tail"
}
},
"qualifier": {
"label": "Qualifier",
"required": false,
"viewClass": "TextFieldView",
"placeholder": "$LATEST",
"note": "You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points. If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the $LATEST version."
},
"expression": {
"label": "JSONata Expression",
"required": true,
"viewClass": "JSONataView"
}
}
}
}
}