FunctionInvokerProps
Properties for defining a FunctionInvoker
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-fc-functioninvoker
Initializer
import com.aliyun.ros.cdk.fc.FunctionInvokerProps;
FunctionInvokerProps.builder()
.functionName(java.lang.String)
.functionName(IResolvable)
.serviceName(java.lang.String)
.serviceName(IResolvable)
// .async(java.lang.Boolean)
// .async(IResolvable)
// .checkError(java.lang.Boolean)
// .checkError(IResolvable)
// .event(java.lang.String)
// .event(IResolvable)
// .executeVersion(java.lang.Number)
// .executeVersion(IResolvable)
// .qualifier(java.lang.String)
// .qualifier(IResolvable)
// .serviceRegionId(java.lang.String)
// .serviceRegionId(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
functionName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property functionName: Function name. |
serviceName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property serviceName: Service name. |
async |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property async: Invocation type, Sync or Async. |
checkError |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property checkError: Whether check error for function invocation result. |
event |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property event: This value is passed to function as utf-8 encoded string.It’s function’s responsibility to interpret the value. If the value needs to be binary, encode it via base64 before passing to this property. |
executeVersion |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property executeVersion: If the property is not specified for creation and update, the function will not be invoked. |
qualifier |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property qualifier: service version, can be versionId or aliasName. |
serviceRegionId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property serviceRegionId: Which region service belongs to. |
functionName
Required
public java.lang.Object getFunctionName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property functionName: Function name.
serviceName
Required
public java.lang.Object getServiceName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property serviceName: Service name.
async
Optional
public java.lang.Object getAsync();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property async: Invocation type, Sync or Async.
Defaults to Sync.
checkError
Optional
public java.lang.Object getCheckError();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property checkError: Whether check error for function invocation result.
If set true and function invocation result has error, the resource creation will be regard as failed. Default is false
event
Optional
public java.lang.Object getEvent();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property event: This value is passed to function as utf-8 encoded string.It’s function’s responsibility to interpret the value. If the value needs to be binary, encode it via base64 before passing to this property.
executeVersion
Optional
public java.lang.Object getExecuteVersion();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property executeVersion: If the property is not specified for creation and update, the function will not be invoked.
The change of the property leads to the invoke of the function.
qualifier
Optional
public java.lang.Object getQualifier();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property qualifier: service version, can be versionId or aliasName.
serviceRegionId
Optional
public java.lang.Object getServiceRegionId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property serviceRegionId: Which region service belongs to.