Invoke Lambda Function
Operation name
Invoke Lambda Function
Function overview
Invokes the Lambda function.
Data model
The data model of this component is XML type.
For more details on input/output schema, refer to Schemas.
Properties
For details on use of variables, refer to Variables.
Basic settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Name |
Required |
Not available |
Enter a name that is used on the script canvas. |
|
Input data |
Optional |
Not available |
Select a component on the script canvas. |
|
Required settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Connect To |
Required |
Not available |
Select a connection resource.
|
|
Function name |
Required |
Available |
Select or enter the function name to invoke. |
|
Qualifier |
Required |
Not available |
Select the qualifier for the Lambda function selected in Function name.
|
|
Versions |
Required |
Available |
Select or enter the version of the Lambda function selected in Function name. |
|
Aliases |
Required |
Available |
Select or enter the alias of the Lambda function selected in Function name. |
|
Invocation type |
Required |
Not available |
Select how the Lambda function selected in Function name is invoked.
|
|
Request settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Input source |
Required |
Not available |
Select the input source of the data to be passed as a parameter in the Lambda function.
|
|
File path |
Required |
Available |
Select or enter the JSON file path as the input source of the data to be passed as a parameter in the Lambda function. The Browse button launches a file chooser that allows you to select a file. |
Note
|
Property actions
Item name |
Description |
Remarks |
---|---|---|
Configure input schema from JSON file |
Specify a JSON file and set the input schema. |
Displayed when Data is selected in Input source. |
Response settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Output source |
Required |
Not available |
Select the output destination of the data returned from the Lambda function.
|
Note
|
File path |
Required |
Available |
Select or enter the file path where the data returned from the Lambda function is output. The Browse button launches a file chooser that allows you to select a file. |
Note
|
Delete Invalid XML Characters |
Optional |
Not available |
Select whether or not to remove invalid characters for XML automatically if they're found while parsing JSON format data.
|
|
Property actions
Item name |
Description |
Remarks |
---|---|---|
Configure output schema from JSON file |
Specify a JSON file and set the output schema. |
Displayed when Data is selected in Output source. |
Data processing method
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Data processing method |
Optional |
Not available |
Select a data processing method.
|
|
Comment
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Comment |
Optional |
Not available |
You can write a short description of this connector. |
|
Input schema
The input data is converted from the XML format to the JSON format and then processed.
The schema of XML format for converting to JSON format data is as follows:
<-- When the root attribute indicates string-type, numeric-type, boolean-type, or null-type JSON --> <?xml version="1.0"?> <root type="Attribute value that represents the JSON type"> <value>Value</value> </root> <-- When the root attribute indicates object-type JSON --> <?xml version="1.0"?> <root type="object"> <JSON member name type="Attribute value that represents the JSON type">Value</JSON member name> : </root> <-- When the root attribute indicates array-type JSON --> <?xml version="1.0"?> <root type="array"> <element type="Attribute value that represents the JSON type">Value</element> : </root> <-- When the JSON member name is invalid for XML element name --> <?xml version="1.0"?> <root type="object"> <member type="Attribute value that represents the JSON type" name="JSON member name">Value</member> : </root>
Element name |
Attribute name |
Description |
Remarks |
|||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
root |
- |
Root element wrapping JSON object. |
|
|||||||||||||
type |
Specify an attribute value that represents JSON type.
|
|
||||||||||||||
value |
- |
Element to specify the value when the root indicates the following JSON types:
|
|
|||||||||||||
JSON member name |
- |
Element that represents JSON member. |
|
|||||||||||||
type |
Specify an attribute value that represents JSON type.
|
|
||||||||||||||
element |
- |
Element that represents array element. |
|
|||||||||||||
type |
Specify a string that represents JSON type. Specify the same attribute value as the type attribute of the JSON member name. |
|
||||||||||||||
member |
- |
Element to specify instead when the JSON member name is invalid for XML element name. |
|
|||||||||||||
type |
A string that represents JSON type is output. Specify the same attribute value as the type attribute of the JSON member name. |
|
||||||||||||||
name |
Specify the JSON member name.
Example: XML data in which a member element is specified and the JSON member name is specified for the name attribute <member type="string" name="1name">Suzuki</member> The above XML data is converted to the following JSON member: {"1name":"Suzuki"} |
|
Output schema
The JSON formatted data returned from the Lambda function is converted to the XML format and output to the result data.
The schema converted from JSON to XML is as follows:
<-- When the root attribute indicates string-type, numeric-type, boolean-type, or null-type JSON --> <?xml version="1.0"?> <root type="Attribute value that represents the JSON type"> <value>Value</value> </root> <-- When the root attribute indicates object-type JSON --> <?xml version="1.0"?> <root type="object"> <JSON member name type="Attribute value that represents the JSON type">Value</JSON member name> : </root> <-- When the root attribute indicates array-type JSON --> <?xml version="1.0"?> <root type="array"> <element type="Attribute value that represents the JSON type">Value</element> : </root> <-- When the JSON member name is invalid for XML element name --> <?xml version="1.0"?> <root type="object"> <member type="Attribute value that represents the JSON type" name="JSON member name">Value</member> : </root>
Element name |
Attribute name |
Description |
Remarks |
|||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
root |
- |
Root element wrapping JSON object. |
|
|||||||||||||
type |
Attribute value that represents JSON type is set.
|
|
||||||||||||||
value |
- |
Element that is used for the value when the root indicates the following JSON types:
|
|
|||||||||||||
JSON member name |
- |
Element that represents JSON member. |
|
|||||||||||||
type |
Attribute value that represents JSON type is set.
|
|
||||||||||||||
element |
- |
Element name that represents array element. |
|
|||||||||||||
type |
A string that represents JSON type is output. The same attribute value as the type attribute of the JSON member name is set. |
|
||||||||||||||
member |
- |
Element name used when the JSON member name is invalid for XML element name. |
|
|||||||||||||
type |
A string that represents JSON type is output. The same attribute value as the type attribute of the JSON member name is set. |
|
||||||||||||||
name |
A JSON member name is output.
Example: A JSON member with an invalid name for XML element name. {"1name":"Suzuki"} The above JSON member is converted to the following XML data and output: <member type="string" name="1name">Suzuki</member> |
|
Loading schema in Mapper
When using Configure input schema from JSON file, the schema is loaded automatically.
-
You can edit the automatically loaded schema.
-
For details, refer to Edit Schema.
Loading output schema in Mapper
When using Configure output schema from JSON file, the schema is loaded automatically.
-
You can edit the automatically loaded schema.
-
For details, refer to Edit Schema.
Mass data processing
Mass data processing is supported.
Transaction
Transaction isn't supported.
Parallel Stream Processing
PSP isn't supported.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
status_code |
The HTTP status code during communication is stored. |
|
request_id |
The AWS request ID is stored. |
|
log_result |
The last 4KB of logs written by the Lambda function is stored. |
Note
If you select Asynchronous in Invocation type, the value isn't stored. |
message_category |
When an error occurs, the category of the message code corresponding to the error is stored. |
|
message_code |
When an error occurs, the code of the message code corresponding to the error is stored. |
|
message_level |
When an error occurs, the severity of the message code corresponding to the error is stored. |
|
error_type |
When an error occurs, the error type is stored. |
|
error_message |
When an error occurs, the error message is stored. |
|
error_trace |
When an error occurs, the trace information for the error is stored. |
Note
Depending on the client application you are running, the stored contents may change. |
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|
None |