Skip to content

IFunctionInvoker

Represents a FunctionInvoker.

Properties

Name Type Description
Node AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode The construct tree node for this construct.
Env AlibabaCloud.SDK.ROS.CDK.Core.IResourceEnvironment The environment this resource belongs to.
Stack AlibabaCloud.SDK.ROS.CDK.Core.Stack The stack in which this resource is defined.
AttrEvents object Attribute Events: Events for async invocation.
AttrResult object Attribute Result: Depends on result type: NoResult: Async invoke has no result.
AttrResultType object Attribute ResultType: Result type: NoResult: Async invoke has no result.
AttrTaskId object Attribute TaskId: Task id for async invocation.
Props FunctionInvokerProps No description.

NodeRequired

public ConstructNode Node { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode

The construct tree node for this construct.


EnvRequired

public IResourceEnvironment Env { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


StackRequired

public Stack Stack { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack

The stack in which this resource is defined.


AttrEventsRequired

public object AttrEvents { get; }
  • Type: object

Attribute Events: Events for async invocation.


AttrResultRequired

public object AttrResult { get; }
  • Type: object

Attribute Result: Depends on result type: NoResult: Async invoke has no result.

Success: The response of the function. The response should be utf-8 encoded string, otherwise ROS will report an error. If the response is binary, encode it via base64 before it is returned. Failure: Error Message.


AttrResultTypeRequired

public object AttrResultType { get; }
  • Type: object

Attribute ResultType: Result type: NoResult: Async invoke has no result.

Success: Sync invoke succeeds. Failure: Sync invoke fails.


AttrTaskIdRequired

public object AttrTaskId { get; }
  • Type: object

Attribute TaskId: Task id for async invocation.


PropsRequired

public FunctionInvokerProps Props { get; }