PolicyProps
Properties for defining a Policy.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-hbr-policy
Initializer
import ros_cdk_hbr
ros_cdk_hbr.PolicyProps(
policy_name: typing.Union[str, IResolvable],
policy_type: typing.Union[str, IResolvable],
rules: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, RulesProperty]]],
policy_description: typing.Union[str, IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
policy_name | typing.Union[str, ros_cdk_core.IResolvable] | Property policyName: The name of the policy. |
policy_type | typing.Union[str, ros_cdk_core.IResolvable] | Property policyType: The type of the backup policy. |
rules | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, RulesProperty]]] | Property rules: The rules of the policy. |
policy_description | typing.Union[str, ros_cdk_core.IResolvable] | Property policyDescription: The description of the policy. |
policy_nameRequired
policy_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property policyName: The name of the policy.
policy_typeRequired
policy_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property policyType: The type of the backup policy.
Valid values:
- STANDARD: A standard backup policy. It supports data sources other than ECS instance backup.
- UDM_ECS_ONLY: A backup policy that supports only ECS instance backups. If you do not specify this parameter, Cloud Backup automatically sets the policy type based on whether a backup vault is specified in the policy rules:
- If a backup vault is specified in the rules, the policy type is set to STANDARD.
- If no backup vault is specified in the rules, the policy type is set to UDM_ECS_ONLY.
rulesRequired
rules: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, RulesProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, RulesProperty]]]
Property rules: The rules of the policy.
policy_descriptionOptional
policy_description: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property policyDescription: The description of the policy.