CustomProtectionRuleSetting

class oci.waas.models.CustomProtectionRuleSetting(**kwargs)

Bases: object

The OCID and action of a Custom Protection rule.

ACTION_BLOCK = 'BLOCK'

A constant which can be used with the action property of a CustomProtectionRuleSetting. This constant has a value of "BLOCK"

ACTION_DETECT = 'DETECT'

A constant which can be used with the action property of a CustomProtectionRuleSetting. This constant has a value of "DETECT"

__init__(**kwargs)

Initializes a new CustomProtectionRuleSetting object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) -- The value to assign to the id property of this CustomProtectionRuleSetting.
  • action (str) -- The value to assign to the action property of this CustomProtectionRuleSetting. Allowed values for this property are: "DETECT", "BLOCK", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
action

Gets the action of this CustomProtectionRuleSetting. The action to take when the Custom Protection rule is triggered.

Allowed values for this property are: "DETECT", "BLOCK", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The action of this CustomProtectionRuleSetting.
Return type:str
id

Gets the id of this CustomProtectionRuleSetting. The OCID of the Custom Protecion rule.

Returns:The id of this CustomProtectionRuleSetting.
Return type:str