Skip to content

IAutoSnapshotPolicy

  • Extends: com.aliyun.ros.cdk.core.IResource

  • Implemented By: com.aliyun.ros.cdk.ecs.datasource.AutoSnapshotPolicy, com.aliyun.ros.cdk.ecs.datasource.IAutoSnapshotPolicy

Represents a AutoSnapshotPolicy.

Properties

Name Type Description
node com.aliyun.ros.cdk.core.ConstructNode The construct tree node for this construct.
env com.aliyun.ros.cdk.core.IResourceEnvironment The environment this resource belongs to.
stack com.aliyun.ros.cdk.core.Stack The stack in which this resource is defined.
attrAutoSnapshotPolicyName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute AutoSnapshotPolicyName: Name of the automatic snapshot policy.
attrCreateTime java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute CreateTime: The time when the automatic snapshot policy was created.
attrDiskNums java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute DiskNums: Number of cloud disks with this policy enabled.
attrRepeatWeekdays java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute RepeatWeekdays: The days of the week on which to create automatic snapshots.
attrResourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ResourceGroupId: The ID of the resource group.
attrRetentionDays java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute RetentionDays: The retention period of the automatic snapshot.
attrTags java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Tags: The tags of the automatic snapshot policy.
attrTimePoints java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute TimePoints: The time when the automatic snapshot policy was created.
attrVolumeNums java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute VolumeNums: The number of extended volumes to which the automatic snapshot policy is applied.
props AutoSnapshotPolicyProps No description.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node for this construct.


envRequired

public IResourceEnvironment getEnv();
  • Type: com.aliyun.ros.cdk.core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


stackRequired

public Stack getStack();
  • Type: com.aliyun.ros.cdk.core.Stack

The stack in which this resource is defined.


attrAutoSnapshotPolicyNameRequired

public java.lang.Object getAttrAutoSnapshotPolicyName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute AutoSnapshotPolicyName: Name of the automatic snapshot policy.


attrCreateTimeRequired

public java.lang.Object getAttrCreateTime();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute CreateTime: The time when the automatic snapshot policy was created.

The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.


attrDiskNumsRequired

public java.lang.Object getAttrDiskNums();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute DiskNums: Number of cloud disks with this policy enabled.


attrRepeatWeekdaysRequired

public java.lang.Object getAttrRepeatWeekdays();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute RepeatWeekdays: The days of the week on which to create automatic snapshots.

Valid values: 1 to 7, which correspond to the days of the week. 1 indicates Monday. One or more days can be specified.


attrResourceGroupIdRequired

public java.lang.Object getAttrResourceGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute ResourceGroupId: The ID of the resource group.


attrRetentionDaysRequired

public java.lang.Object getAttrRetentionDays();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute RetentionDays: The retention period of the automatic snapshot.

Unit: days. Valid values:

  • -1: The automatic snapshot is retained until it is deleted.
  • 1 to 65536: The automatic snapshot is retained for the specified number of days.

attrTagsRequired

public java.lang.Object getAttrTags();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute Tags: The tags of the automatic snapshot policy.


attrTimePointsRequired

public java.lang.Object getAttrTimePoints();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute TimePoints: The time when the automatic snapshot policy was created.

The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.


attrVolumeNumsRequired

public java.lang.Object getAttrVolumeNums();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute VolumeNums: The number of extended volumes to which the automatic snapshot policy is applied.


propsRequired

public AutoSnapshotPolicyProps getProps();