CreateTargetAlertPolicyAssociationDetails¶
-
class
oci.data_safe.models.CreateTargetAlertPolicyAssociationDetails(**kwargs)¶ Bases:
objectThe details used to create a new target-alert policy association.
Methods
__init__(**kwargs)Initializes a new CreateTargetAlertPolicyAssociationDetails object with values from keyword arguments. Attributes
compartment_id[Required] Gets the compartment_id of this CreateTargetAlertPolicyAssociationDetails. defined_tagsGets the defined_tags of this CreateTargetAlertPolicyAssociationDetails. descriptionGets the description of this CreateTargetAlertPolicyAssociationDetails. display_nameGets the display_name of this CreateTargetAlertPolicyAssociationDetails. freeform_tagsGets the freeform_tags of this CreateTargetAlertPolicyAssociationDetails. is_enabled[Required] Gets the is_enabled of this CreateTargetAlertPolicyAssociationDetails. policy_id[Required] Gets the policy_id of this CreateTargetAlertPolicyAssociationDetails. target_id[Required] Gets the target_id of this CreateTargetAlertPolicyAssociationDetails. -
__init__(**kwargs)¶ Initializes a new CreateTargetAlertPolicyAssociationDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - policy_id (str) – The value to assign to the policy_id property of this CreateTargetAlertPolicyAssociationDetails.
- target_id (str) – The value to assign to the target_id property of this CreateTargetAlertPolicyAssociationDetails.
- display_name (str) – The value to assign to the display_name property of this CreateTargetAlertPolicyAssociationDetails.
- description (str) – The value to assign to the description property of this CreateTargetAlertPolicyAssociationDetails.
- compartment_id (str) – The value to assign to the compartment_id property of this CreateTargetAlertPolicyAssociationDetails.
- is_enabled (bool) – The value to assign to the is_enabled property of this CreateTargetAlertPolicyAssociationDetails.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateTargetAlertPolicyAssociationDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateTargetAlertPolicyAssociationDetails.
-
compartment_id¶ [Required] Gets the compartment_id of this CreateTargetAlertPolicyAssociationDetails. The OCID of the compartment where the target-alert policy association is created.
Returns: The compartment_id of this CreateTargetAlertPolicyAssociationDetails. Return type: str
Gets the defined_tags of this CreateTargetAlertPolicyAssociationDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {“Operations”: {“CostCenter”: “42”}}
Returns: The defined_tags of this CreateTargetAlertPolicyAssociationDetails. Return type: dict(str, dict(str, object))
-
description¶ Gets the description of this CreateTargetAlertPolicyAssociationDetails. Describes the target-alert policy association.
Returns: The description of this CreateTargetAlertPolicyAssociationDetails. Return type: str
-
display_name¶ Gets the display_name of this CreateTargetAlertPolicyAssociationDetails. The display name of the target-alert policy association.
Returns: The display_name of this CreateTargetAlertPolicyAssociationDetails. Return type: str
Gets the freeform_tags of this CreateTargetAlertPolicyAssociationDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags
Example: {“Department”: “Finance”}
Returns: The freeform_tags of this CreateTargetAlertPolicyAssociationDetails. Return type: dict(str, str)
-
is_enabled¶ [Required] Gets the is_enabled of this CreateTargetAlertPolicyAssociationDetails. Indicates if the target-alert policy association is enabled or disabled by user.
Returns: The is_enabled of this CreateTargetAlertPolicyAssociationDetails. Return type: bool
-
policy_id¶ [Required] Gets the policy_id of this CreateTargetAlertPolicyAssociationDetails. The OCID of the alert policy.
Returns: The policy_id of this CreateTargetAlertPolicyAssociationDetails. Return type: str
-
target_id¶ [Required] Gets the target_id of this CreateTargetAlertPolicyAssociationDetails. The OCID of the target.
Returns: The target_id of this CreateTargetAlertPolicyAssociationDetails. Return type: str
-