CallbackProps
Properties for defining a Callback
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-aligreen-callback
Initializer
import { CallbackProps } from '@alicloud/ros-cdk-aligreen'
const callbackProps: CallbackProps = { ... }
Properties
Name | Type | Description |
---|---|---|
callbackName |
string | @alicloud/ros-cdk-core.IResolvable |
Property callbackName: The Callback name defined by the customer. |
callbackSuggestions |
@alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] |
Property callbackSuggestions: List of audit results supported by message notification. |
callbackTypes |
@alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] |
Property callbackTypes: A list of Callback types. |
callbackUrl |
string | @alicloud/ros-cdk-core.IResolvable |
Property callbackUrl: The detection result will be called back to the url. |
cryptType |
number | @alicloud/ros-cdk-core.IResolvable |
Property cryptType: The encryption algorithm is used to verify that the callback request is sent by the Aliyun Green Service to your business service. |
callbackName
Required
public readonly callbackName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property callbackName: The Callback name defined by the customer.
It can contain no more than 20 characters in Chinese, English, underscore (_), and digits.
callbackSuggestions
Required
public readonly callbackSuggestions: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]
Property callbackSuggestions: List of audit results supported by message notification.
Value: block: confirmed violation, review: Suspected violation, pass: normal.
callbackTypes
Required
public readonly callbackTypes: IResolvable | string | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]
Property callbackTypes: A list of Callback types.
Value: machineScan: Machine audit result notification, selfAudit: self-service audit notification.
callbackUrl
Required
public readonly callbackUrl: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property callbackUrl: The detection result will be called back to the url.
cryptType
Optional
public readonly cryptType: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property cryptType: The encryption algorithm is used to verify that the callback request is sent by the Aliyun Green Service to your business service.
Value: 0:SHA256,1: SM3.