Ballerina API Documentation

Connectors of org.ballerinalang.connectors.amazonlambda package

connector ClientConnector (string accessKeyId, string secretAccessKey, string region)

Amazon Lambda client connector

Parameters:

Parameter NameData TypeDescription
accessKeyIdstringThe access key ID in amazon account security credentials
secretAccessKeystringThe secret access key in amazon account security credentials
regionstringThe region of the the amazon account server.

Actions:

action invokeFunction()

Invokes a amazon lambda function

Parameters:

Parameter NameData TypeDescription
amzClientConnectorarn: The amazon resource name of the function to invoke
arnstringThe amazon resource name of the function to invoke

Return Parameters:

Return VariableData TypeDescription
messageresponse message

action invokeFunction()

Invokes a amazon lambda function by sending parameters

Parameters:

Parameter NameData TypeDescription
amzClientConnectorarn: The amazon resource name of the function to invoke
arnstringThe amazon resource name of the function to invoke
payloadjsonThe json payload containing key values of parameters to amazon lambda function

Return Parameters:

Return VariableData TypeDescription
messageresponse message

action deleteFunction()

Deletes a lambda function

Parameters:

Parameter NameData TypeDescription
amzClientConnectorarn: The amazon resource name of the function to invoke
arnstringThe amazon resource name of the function to invoke

Return Parameters:

Return VariableData TypeDescription
messageresponse message

action getAccountDetails()

Returns the users' account information

Parameters:

Parameter NameData TypeDescription
amzClientConnector

Return Parameters:

Return VariableData TypeDescription
messageresponse message

action getFunction()

Gets the configuration information of a lambda function

Parameters:

Parameter NameData TypeDescription
amzClientConnectorarn: The amazon resource name of the function to invoke
arnstringThe amazon resource name of the function to invoke

Return Parameters:

Return VariableData TypeDescription
messageresponse message

action listFunctions()

Gets the list of functions and their configuration information

Parameters:

Parameter NameData TypeDescription
amzClientConnectorarn: The amazon resource name of the function to invoke

Return Parameters:

Return VariableData TypeDescription
messageresponse message

action getFunctionVersions()

Lists all versions of a amazon lambda function

Parameters:

Parameter NameData TypeDescription
amzClientConnector
arnstring

Return Parameters:

Return VariableData TypeDescription
messageresponse message


Menu

  • Connectors
    • ClientConnector (string accessKeyId, string secretAccessKey, string region)
      • invokeFunction(ClientConnector amz, string arn)
      • invokeFunction(ClientConnector amz, string arn, json payload)
      • deleteFunction(ClientConnector amz, string arn)
      • getAccountDetails(ClientConnector amz)
      • getFunction(ClientConnector amz, string arn)
      • listFunctions(ClientConnector amz)
      • getFunctionVersions(ClientConnector amz, string arn)

Copyright 2017 Ballerina API Documentation