PolicyProps
Properties for defining a Policy.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-hbr-policy
Initializer
import com.aliyun.ros.cdk.hbr.PolicyProps;
PolicyProps.builder()
.policyName(java.lang.String)
.policyName(IResolvable)
.policyType(java.lang.String)
.policyType(IResolvable)
.rules(IResolvable)
.rules(java.util.List<IResolvable)
.rules(RulesProperty>)
// .policyDescription(java.lang.String)
// .policyDescription(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
policyName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property policyName: The name of the policy. |
policyType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property policyType: The type of the backup policy. |
rules | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property rules: The rules of the policy. |
policyDescription | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property policyDescription: The description of the policy. |
policyNameRequired
public java.lang.Object getPolicyName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property policyName: The name of the policy.
policyTypeRequired
public java.lang.Object getPolicyType();
- Type: java.lang.String OR com.aliyun.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
public java.lang.Object getRules();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
RulesProperty>
Property rules: The rules of the policy.
policyDescriptionOptional
public java.lang.Object getPolicyDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property policyDescription: The description of the policy.