Skip to content

PolicyProps

Properties for defining a Policy.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-hbr-policy

Initializer

import { PolicyProps } from '@alicloud/ros-cdk-hbr'
const policyProps: PolicyProps = { ... }

Properties

Name Type Description
policyName string | @alicloud/ros-cdk-core.IResolvable Property policyName: The name of the policy.
policyType string | @alicloud/ros-cdk-core.IResolvable Property policyType: The type of the backup policy.
rules @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | RulesProperty[] Property rules: The rules of the policy.
policyDescription string | @alicloud/ros-cdk-core.IResolvable Property policyDescription: The description of the policy.

policyNameRequired

public readonly policyName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property policyName: The name of the policy.


policyTypeRequired

public readonly policyType: string | IResolvable;
  • Type: string | @alicloud/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 readonly rules: IResolvable | IResolvable | RulesProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | RulesProperty[]

Property rules: The rules of the policy.


policyDescriptionOptional

public readonly policyDescription: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property policyDescription: The description of the policy.