Skip to content

CallbackProps

Properties for defining a Callback.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-aligreen-callback

Initializer

import ros_cdk_aligreen
ros_cdk_aligreen.CallbackProps(
  callback_name: typing.Union[str, IResolvable],
  callback_suggestions: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]],
  callback_types: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]],
  callback_url: typing.Union[str, IResolvable],
  crypt_type: typing.Union[typing.Union[int, float], IResolvable] = None
)

Properties

Name Type Description
callback_name typing.Union[str, ros_cdk_core.IResolvable] Property callbackName: The Callback name defined by the customer.
callback_suggestions typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property callbackSuggestions: List of audit results supported by message notification.
callback_types typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property callbackTypes: A list of Callback types.
callback_url typing.Union[str, ros_cdk_core.IResolvable] Property callbackUrl: The detection result will be called back to the url.
crypt_type typing.Union[typing.Union[int, float], 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.

callback_nameRequired

callback_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


callback_suggestionsRequired

callback_suggestions: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

Property callbackSuggestions: List of audit results supported by message notification.

Value: block: confirmed violation, review: Suspected violation, pass: normal.


callback_typesRequired

callback_types: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

Property callbackTypes: A list of Callback types.

Value: machineScan: Machine audit result notification, selfAudit: self-service audit notification.


callback_urlRequired

callback_url: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property callbackUrl: The detection result will be called back to the url.


crypt_typeOptional

crypt_type: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.