CreateTargetAlertPolicyAssociationDetails

class oci.data_safe.models.CreateTargetAlertPolicyAssociationDetails(**kwargs)

Bases: object

The 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_tags

Gets the defined_tags of this CreateTargetAlertPolicyAssociationDetails.

description

Gets the description of this CreateTargetAlertPolicyAssociationDetails.

display_name

Gets the display_name of this CreateTargetAlertPolicyAssociationDetails.

freeform_tags

Gets 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.

target_type

Gets the target_type 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.

  • target_type (str) – The value to assign to the target_type 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.

property 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

property defined_tags

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))

property description

Gets the description of this CreateTargetAlertPolicyAssociationDetails. Describes the target-alert policy association.

Returns

The description of this CreateTargetAlertPolicyAssociationDetails.

Return type

str

property 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

property freeform_tags

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)

property 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

property 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

property target_id

[Required] Gets the target_id of this CreateTargetAlertPolicyAssociationDetails. The OCID of the target or target database group.

Returns

The target_id of this CreateTargetAlertPolicyAssociationDetails.

Return type

str

property target_type

Gets the target_type of this CreateTargetAlertPolicyAssociationDetails. The resource type that is represented by the alert policy association. Default is considered as TARGET_DATABASE.

Returns

The target_type of this CreateTargetAlertPolicyAssociationDetails.

Return type

str