CustomProtectionRuleSetting¶
- class oci.waas.models.CustomProtectionRuleSetting(**kwargs)¶
Bases:
objectThe OCID and action of a custom protection rule.
Attributes:
A constant which can be used with the action property of a CustomProtectionRuleSetting.
A constant which can be used with the action property of a CustomProtectionRuleSetting.
Gets the action of this CustomProtectionRuleSetting.
Gets the exclusions of this CustomProtectionRuleSetting.
Gets the id of this CustomProtectionRuleSetting.
Methods:
__init__(**kwargs)Initializes a new CustomProtectionRuleSetting object with values from keyword arguments.
- 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’.
exclusions (list[oci.waas.models.ProtectionRuleExclusion]) – The value to assign to the exclusions property of this CustomProtectionRuleSetting.
- property action¶
Gets the action of this CustomProtectionRuleSetting. The action to take when the custom protection rule is triggered. DETECT - Logs the request when the criteria of the custom protection rule are met. BLOCK - Blocks the request when the criteria of the custom protection rule are met.
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
- property exclusions¶
Gets the exclusions of this CustomProtectionRuleSetting.
- Returns
The exclusions of this CustomProtectionRuleSetting.
- Return type