pulumi-alicloud 3.68.0__py3-none-any.whl → 3.68.0a1732598392__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +0 -40
- pulumi_alicloud/cdn/_inputs.py +23 -3
- pulumi_alicloud/cdn/domain_new.py +51 -93
- pulumi_alicloud/cdn/outputs.py +16 -2
- pulumi_alicloud/cdn/real_time_log_delivery.py +46 -97
- pulumi_alicloud/cen/get_flowlogs.py +35 -250
- pulumi_alicloud/cen/outputs.py +17 -116
- pulumi_alicloud/cs/node_pool.py +0 -7
- pulumi_alicloud/ecs/_inputs.py +0 -92
- pulumi_alicloud/ecs/auto_snapshot_policy.py +129 -323
- pulumi_alicloud/ecs/outputs.py +0 -88
- pulumi_alicloud/ecs/snapshot_policy.py +1 -154
- pulumi_alicloud/emrv2/_inputs.py +21 -875
- pulumi_alicloud/emrv2/cluster.py +0 -47
- pulumi_alicloud/emrv2/outputs.py +14 -580
- pulumi_alicloud/gwlb/__init__.py +0 -1
- pulumi_alicloud/gwlb/_inputs.py +126 -147
- pulumi_alicloud/gwlb/listener.py +50 -50
- pulumi_alicloud/gwlb/load_balancer.py +71 -78
- pulumi_alicloud/gwlb/outputs.py +84 -139
- pulumi_alicloud/gwlb/server_group.py +113 -162
- pulumi_alicloud/kvstore/audit_log_config.py +7 -7
- pulumi_alicloud/kvstore/backup_policy.py +9 -9
- pulumi_alicloud/kvstore/get_instance_classes.py +8 -8
- pulumi_alicloud/kvstore/get_instances.py +7 -9
- pulumi_alicloud/kvstore/instance.py +21 -21
- pulumi_alicloud/kvstore/outputs.py +6 -6
- pulumi_alicloud/nas/_inputs.py +0 -148
- pulumi_alicloud/nas/file_system.py +222 -482
- pulumi_alicloud/nas/outputs.py +0 -109
- pulumi_alicloud/pai/__init__.py +0 -7
- pulumi_alicloud/pai/workspace_workspace.py +6 -6
- pulumi_alicloud/pulumi-plugin.json +1 -1
- {pulumi_alicloud-3.68.0.dist-info → pulumi_alicloud-3.68.0a1732598392.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.68.0.dist-info → pulumi_alicloud-3.68.0a1732598392.dist-info}/RECORD +37 -45
- pulumi_alicloud/gwlb/get_zones.py +0 -173
- pulumi_alicloud/pai/_inputs.py +0 -129
- pulumi_alicloud/pai/outputs.py +0 -83
- pulumi_alicloud/pai/workspace_code_source.py +0 -702
- pulumi_alicloud/pai/workspace_dataset.py +0 -1081
- pulumi_alicloud/pai/workspace_datasetversion.py +0 -818
- pulumi_alicloud/pai/workspace_experiment.py +0 -394
- pulumi_alicloud/pai/workspace_run.py +0 -344
- {pulumi_alicloud-3.68.0.dist-info → pulumi_alicloud-3.68.0a1732598392.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.68.0.dist-info → pulumi_alicloud-3.68.0a1732598392.dist-info}/top_level.txt +0 -0
|
@@ -13,8 +13,6 @@ if sys.version_info >= (3, 11):
|
|
|
13
13
|
else:
|
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
15
|
from .. import _utilities
|
|
16
|
-
from . import outputs
|
|
17
|
-
from ._inputs import *
|
|
18
16
|
|
|
19
17
|
__all__ = ['AutoSnapshotPolicyArgs', 'AutoSnapshotPolicy']
|
|
20
18
|
|
|
@@ -24,54 +22,41 @@ class AutoSnapshotPolicyArgs:
|
|
|
24
22
|
repeat_weekdays: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
25
23
|
retention_days: pulumi.Input[int],
|
|
26
24
|
time_points: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
27
|
-
auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
|
|
28
25
|
copied_snapshots_retention_days: Optional[pulumi.Input[int]] = None,
|
|
29
|
-
copy_encryption_configuration: Optional[pulumi.Input['AutoSnapshotPolicyCopyEncryptionConfigurationArgs']] = None,
|
|
30
26
|
enable_cross_region_copy: Optional[pulumi.Input[bool]] = None,
|
|
31
27
|
name: Optional[pulumi.Input[str]] = None,
|
|
32
|
-
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
33
28
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
34
29
|
target_copy_regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
35
30
|
"""
|
|
36
31
|
The set of arguments for constructing a AutoSnapshotPolicy resource.
|
|
37
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
:param pulumi.Input[
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
The
|
|
47
|
-
:param pulumi.Input[
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
:param pulumi.Input[bool] enable_cross_region_copy: Specifies whether to enable
|
|
52
|
-
:param pulumi.Input[str] name:
|
|
53
|
-
:param pulumi.Input[str] resource_group_id: The ID of the resource group. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response.
|
|
32
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The automatic snapshot repetition dates. The unit of measurement is day and the repeating cycle is a week. Value range: [1, 7], which represents days starting from Monday to Sunday, for example 1 indicates Monday. When you want to schedule multiple automatic snapshot tasks for a disk in a week, you can set the RepeatWeekdays to an array.
|
|
33
|
+
- A maximum of seven time points can be selected.
|
|
34
|
+
- The format is an JSON array of ["1", "2", … "7"] and the time points are separated by commas (,).
|
|
35
|
+
:param pulumi.Input[int] retention_days: The snapshot retention time, and the unit of measurement is day. Optional values:
|
|
36
|
+
- -1: The automatic snapshots are retained permanently.
|
|
37
|
+
- [1, 65536]: The number of days retained.
|
|
38
|
+
Default value: -1.
|
|
39
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The automatic snapshot creation schedule, and the unit of measurement is hour. Value range: [0, 23], which represents from 00:00 to 24:00, for example 1 indicates 01:00. When you want to schedule multiple automatic snapshot tasks for a disk in a day, you can set the TimePoints to an array.
|
|
40
|
+
- A maximum of 24 time points can be selected.
|
|
41
|
+
- The format is an JSON array of ["0", "1", … "23"] and the time points are separated by commas (,).
|
|
42
|
+
:param pulumi.Input[int] copied_snapshots_retention_days: The retention period of the snapshot copied across regions.
|
|
43
|
+
- -1: The snapshot is permanently retained.
|
|
44
|
+
- [1, 65535]: The automatic snapshot is retained for the specified number of days.
|
|
45
|
+
Default value: -1.
|
|
46
|
+
:param pulumi.Input[bool] enable_cross_region_copy: Specifies whether to enable the system to automatically copy snapshots across regions.
|
|
47
|
+
:param pulumi.Input[str] name: The snapshot policy name.
|
|
54
48
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
55
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_copy_regions: The destination region to which
|
|
49
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_copy_regions: The destination region to which the snapshot is copied. You can set a destination region.
|
|
56
50
|
"""
|
|
57
51
|
pulumi.set(__self__, "repeat_weekdays", repeat_weekdays)
|
|
58
52
|
pulumi.set(__self__, "retention_days", retention_days)
|
|
59
53
|
pulumi.set(__self__, "time_points", time_points)
|
|
60
|
-
if auto_snapshot_policy_name is not None:
|
|
61
|
-
pulumi.set(__self__, "auto_snapshot_policy_name", auto_snapshot_policy_name)
|
|
62
54
|
if copied_snapshots_retention_days is not None:
|
|
63
55
|
pulumi.set(__self__, "copied_snapshots_retention_days", copied_snapshots_retention_days)
|
|
64
|
-
if copy_encryption_configuration is not None:
|
|
65
|
-
pulumi.set(__self__, "copy_encryption_configuration", copy_encryption_configuration)
|
|
66
56
|
if enable_cross_region_copy is not None:
|
|
67
57
|
pulumi.set(__self__, "enable_cross_region_copy", enable_cross_region_copy)
|
|
68
|
-
if name is not None:
|
|
69
|
-
warnings.warn("""Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.""", DeprecationWarning)
|
|
70
|
-
pulumi.log.warn("""name is deprecated: Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.""")
|
|
71
58
|
if name is not None:
|
|
72
59
|
pulumi.set(__self__, "name", name)
|
|
73
|
-
if resource_group_id is not None:
|
|
74
|
-
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
75
60
|
if tags is not None:
|
|
76
61
|
pulumi.set(__self__, "tags", tags)
|
|
77
62
|
if target_copy_regions is not None:
|
|
@@ -81,7 +66,9 @@ class AutoSnapshotPolicyArgs:
|
|
|
81
66
|
@pulumi.getter(name="repeatWeekdays")
|
|
82
67
|
def repeat_weekdays(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
83
68
|
"""
|
|
84
|
-
The
|
|
69
|
+
The automatic snapshot repetition dates. The unit of measurement is day and the repeating cycle is a week. Value range: [1, 7], which represents days starting from Monday to Sunday, for example 1 indicates Monday. When you want to schedule multiple automatic snapshot tasks for a disk in a week, you can set the RepeatWeekdays to an array.
|
|
70
|
+
- A maximum of seven time points can be selected.
|
|
71
|
+
- The format is an JSON array of ["1", "2", … "7"] and the time points are separated by commas (,).
|
|
85
72
|
"""
|
|
86
73
|
return pulumi.get(self, "repeat_weekdays")
|
|
87
74
|
|
|
@@ -93,8 +80,10 @@ class AutoSnapshotPolicyArgs:
|
|
|
93
80
|
@pulumi.getter(name="retentionDays")
|
|
94
81
|
def retention_days(self) -> pulumi.Input[int]:
|
|
95
82
|
"""
|
|
96
|
-
The retention
|
|
97
|
-
-
|
|
83
|
+
The snapshot retention time, and the unit of measurement is day. Optional values:
|
|
84
|
+
- -1: The automatic snapshots are retained permanently.
|
|
85
|
+
- [1, 65536]: The number of days retained.
|
|
86
|
+
Default value: -1.
|
|
98
87
|
"""
|
|
99
88
|
return pulumi.get(self, "retention_days")
|
|
100
89
|
|
|
@@ -106,13 +95,9 @@ class AutoSnapshotPolicyArgs:
|
|
|
106
95
|
@pulumi.getter(name="timePoints")
|
|
107
96
|
def time_points(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
108
97
|
"""
|
|
109
|
-
The
|
|
110
|
-
|
|
111
|
-
The
|
|
112
|
-
|
|
113
|
-
The parameter value is a JSON array that contains up to 24 points in time separated by commas (,). Example: ["0", "1", ... "23"].
|
|
114
|
-
|
|
115
|
-
The following arguments will be discarded. Please use new fields as soon as possible:
|
|
98
|
+
The automatic snapshot creation schedule, and the unit of measurement is hour. Value range: [0, 23], which represents from 00:00 to 24:00, for example 1 indicates 01:00. When you want to schedule multiple automatic snapshot tasks for a disk in a day, you can set the TimePoints to an array.
|
|
99
|
+
- A maximum of 24 time points can be selected.
|
|
100
|
+
- The format is an JSON array of ["0", "1", … "23"] and the time points are separated by commas (,).
|
|
116
101
|
"""
|
|
117
102
|
return pulumi.get(self, "time_points")
|
|
118
103
|
|
|
@@ -120,24 +105,14 @@ class AutoSnapshotPolicyArgs:
|
|
|
120
105
|
def time_points(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
|
121
106
|
pulumi.set(self, "time_points", value)
|
|
122
107
|
|
|
123
|
-
@property
|
|
124
|
-
@pulumi.getter(name="autoSnapshotPolicyName")
|
|
125
|
-
def auto_snapshot_policy_name(self) -> Optional[pulumi.Input[str]]:
|
|
126
|
-
"""
|
|
127
|
-
The name of the automatic snapshot policy. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
|
|
128
|
-
"""
|
|
129
|
-
return pulumi.get(self, "auto_snapshot_policy_name")
|
|
130
|
-
|
|
131
|
-
@auto_snapshot_policy_name.setter
|
|
132
|
-
def auto_snapshot_policy_name(self, value: Optional[pulumi.Input[str]]):
|
|
133
|
-
pulumi.set(self, "auto_snapshot_policy_name", value)
|
|
134
|
-
|
|
135
108
|
@property
|
|
136
109
|
@pulumi.getter(name="copiedSnapshotsRetentionDays")
|
|
137
110
|
def copied_snapshots_retention_days(self) -> Optional[pulumi.Input[int]]:
|
|
138
111
|
"""
|
|
139
|
-
The retention period of the snapshot
|
|
140
|
-
-
|
|
112
|
+
The retention period of the snapshot copied across regions.
|
|
113
|
+
- -1: The snapshot is permanently retained.
|
|
114
|
+
- [1, 65535]: The automatic snapshot is retained for the specified number of days.
|
|
115
|
+
Default value: -1.
|
|
141
116
|
"""
|
|
142
117
|
return pulumi.get(self, "copied_snapshots_retention_days")
|
|
143
118
|
|
|
@@ -145,23 +120,11 @@ class AutoSnapshotPolicyArgs:
|
|
|
145
120
|
def copied_snapshots_retention_days(self, value: Optional[pulumi.Input[int]]):
|
|
146
121
|
pulumi.set(self, "copied_snapshots_retention_days", value)
|
|
147
122
|
|
|
148
|
-
@property
|
|
149
|
-
@pulumi.getter(name="copyEncryptionConfiguration")
|
|
150
|
-
def copy_encryption_configuration(self) -> Optional[pulumi.Input['AutoSnapshotPolicyCopyEncryptionConfigurationArgs']]:
|
|
151
|
-
"""
|
|
152
|
-
The encryption parameters for cross-region snapshot replication. See `copy_encryption_configuration` below.
|
|
153
|
-
"""
|
|
154
|
-
return pulumi.get(self, "copy_encryption_configuration")
|
|
155
|
-
|
|
156
|
-
@copy_encryption_configuration.setter
|
|
157
|
-
def copy_encryption_configuration(self, value: Optional[pulumi.Input['AutoSnapshotPolicyCopyEncryptionConfigurationArgs']]):
|
|
158
|
-
pulumi.set(self, "copy_encryption_configuration", value)
|
|
159
|
-
|
|
160
123
|
@property
|
|
161
124
|
@pulumi.getter(name="enableCrossRegionCopy")
|
|
162
125
|
def enable_cross_region_copy(self) -> Optional[pulumi.Input[bool]]:
|
|
163
126
|
"""
|
|
164
|
-
Specifies whether to enable
|
|
127
|
+
Specifies whether to enable the system to automatically copy snapshots across regions.
|
|
165
128
|
"""
|
|
166
129
|
return pulumi.get(self, "enable_cross_region_copy")
|
|
167
130
|
|
|
@@ -171,10 +134,9 @@ class AutoSnapshotPolicyArgs:
|
|
|
171
134
|
|
|
172
135
|
@property
|
|
173
136
|
@pulumi.getter
|
|
174
|
-
@_utilities.deprecated("""Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.""")
|
|
175
137
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
176
138
|
"""
|
|
177
|
-
|
|
139
|
+
The snapshot policy name.
|
|
178
140
|
"""
|
|
179
141
|
return pulumi.get(self, "name")
|
|
180
142
|
|
|
@@ -182,18 +144,6 @@ class AutoSnapshotPolicyArgs:
|
|
|
182
144
|
def name(self, value: Optional[pulumi.Input[str]]):
|
|
183
145
|
pulumi.set(self, "name", value)
|
|
184
146
|
|
|
185
|
-
@property
|
|
186
|
-
@pulumi.getter(name="resourceGroupId")
|
|
187
|
-
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
188
|
-
"""
|
|
189
|
-
The ID of the resource group. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response.
|
|
190
|
-
"""
|
|
191
|
-
return pulumi.get(self, "resource_group_id")
|
|
192
|
-
|
|
193
|
-
@resource_group_id.setter
|
|
194
|
-
def resource_group_id(self, value: Optional[pulumi.Input[str]]):
|
|
195
|
-
pulumi.set(self, "resource_group_id", value)
|
|
196
|
-
|
|
197
147
|
@property
|
|
198
148
|
@pulumi.getter
|
|
199
149
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
@@ -210,7 +160,7 @@ class AutoSnapshotPolicyArgs:
|
|
|
210
160
|
@pulumi.getter(name="targetCopyRegions")
|
|
211
161
|
def target_copy_regions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
212
162
|
"""
|
|
213
|
-
The destination region to which
|
|
163
|
+
The destination region to which the snapshot is copied. You can set a destination region.
|
|
214
164
|
"""
|
|
215
165
|
return pulumi.get(self, "target_copy_regions")
|
|
216
166
|
|
|
@@ -222,15 +172,10 @@ class AutoSnapshotPolicyArgs:
|
|
|
222
172
|
@pulumi.input_type
|
|
223
173
|
class _AutoSnapshotPolicyState:
|
|
224
174
|
def __init__(__self__, *,
|
|
225
|
-
auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
|
|
226
175
|
copied_snapshots_retention_days: Optional[pulumi.Input[int]] = None,
|
|
227
|
-
copy_encryption_configuration: Optional[pulumi.Input['AutoSnapshotPolicyCopyEncryptionConfigurationArgs']] = None,
|
|
228
|
-
create_time: Optional[pulumi.Input[str]] = None,
|
|
229
176
|
enable_cross_region_copy: Optional[pulumi.Input[bool]] = None,
|
|
230
177
|
name: Optional[pulumi.Input[str]] = None,
|
|
231
|
-
region_id: Optional[pulumi.Input[str]] = None,
|
|
232
178
|
repeat_weekdays: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
233
|
-
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
234
179
|
retention_days: Optional[pulumi.Input[int]] = None,
|
|
235
180
|
status: Optional[pulumi.Input[str]] = None,
|
|
236
181
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
@@ -238,50 +183,34 @@ class _AutoSnapshotPolicyState:
|
|
|
238
183
|
time_points: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
239
184
|
"""
|
|
240
185
|
Input properties used for looking up and filtering AutoSnapshotPolicy resources.
|
|
241
|
-
:param pulumi.Input[
|
|
242
|
-
|
|
243
|
-
-
|
|
244
|
-
|
|
245
|
-
:param pulumi.Input[
|
|
246
|
-
:param pulumi.Input[
|
|
247
|
-
:param pulumi.Input[str]
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
:param pulumi.Input[
|
|
251
|
-
|
|
252
|
-
-
|
|
253
|
-
|
|
186
|
+
:param pulumi.Input[int] copied_snapshots_retention_days: The retention period of the snapshot copied across regions.
|
|
187
|
+
- -1: The snapshot is permanently retained.
|
|
188
|
+
- [1, 65535]: The automatic snapshot is retained for the specified number of days.
|
|
189
|
+
Default value: -1.
|
|
190
|
+
:param pulumi.Input[bool] enable_cross_region_copy: Specifies whether to enable the system to automatically copy snapshots across regions.
|
|
191
|
+
:param pulumi.Input[str] name: The snapshot policy name.
|
|
192
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The automatic snapshot repetition dates. The unit of measurement is day and the repeating cycle is a week. Value range: [1, 7], which represents days starting from Monday to Sunday, for example 1 indicates Monday. When you want to schedule multiple automatic snapshot tasks for a disk in a week, you can set the RepeatWeekdays to an array.
|
|
193
|
+
- A maximum of seven time points can be selected.
|
|
194
|
+
- The format is an JSON array of ["1", "2", … "7"] and the time points are separated by commas (,).
|
|
195
|
+
:param pulumi.Input[int] retention_days: The snapshot retention time, and the unit of measurement is day. Optional values:
|
|
196
|
+
- -1: The automatic snapshots are retained permanently.
|
|
197
|
+
- [1, 65536]: The number of days retained.
|
|
198
|
+
Default value: -1.
|
|
199
|
+
:param pulumi.Input[str] status: The status of Auto Snapshot Policy.
|
|
254
200
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
255
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_copy_regions: The destination region to which
|
|
256
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The
|
|
257
|
-
|
|
258
|
-
The
|
|
259
|
-
|
|
260
|
-
The parameter value is a JSON array that contains up to 24 points in time separated by commas (,). Example: ["0", "1", ... "23"].
|
|
261
|
-
|
|
262
|
-
The following arguments will be discarded. Please use new fields as soon as possible:
|
|
263
|
-
"""
|
|
264
|
-
if auto_snapshot_policy_name is not None:
|
|
265
|
-
pulumi.set(__self__, "auto_snapshot_policy_name", auto_snapshot_policy_name)
|
|
201
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_copy_regions: The destination region to which the snapshot is copied. You can set a destination region.
|
|
202
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The automatic snapshot creation schedule, and the unit of measurement is hour. Value range: [0, 23], which represents from 00:00 to 24:00, for example 1 indicates 01:00. When you want to schedule multiple automatic snapshot tasks for a disk in a day, you can set the TimePoints to an array.
|
|
203
|
+
- A maximum of 24 time points can be selected.
|
|
204
|
+
- The format is an JSON array of ["0", "1", … "23"] and the time points are separated by commas (,).
|
|
205
|
+
"""
|
|
266
206
|
if copied_snapshots_retention_days is not None:
|
|
267
207
|
pulumi.set(__self__, "copied_snapshots_retention_days", copied_snapshots_retention_days)
|
|
268
|
-
if copy_encryption_configuration is not None:
|
|
269
|
-
pulumi.set(__self__, "copy_encryption_configuration", copy_encryption_configuration)
|
|
270
|
-
if create_time is not None:
|
|
271
|
-
pulumi.set(__self__, "create_time", create_time)
|
|
272
208
|
if enable_cross_region_copy is not None:
|
|
273
209
|
pulumi.set(__self__, "enable_cross_region_copy", enable_cross_region_copy)
|
|
274
|
-
if name is not None:
|
|
275
|
-
warnings.warn("""Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.""", DeprecationWarning)
|
|
276
|
-
pulumi.log.warn("""name is deprecated: Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.""")
|
|
277
210
|
if name is not None:
|
|
278
211
|
pulumi.set(__self__, "name", name)
|
|
279
|
-
if region_id is not None:
|
|
280
|
-
pulumi.set(__self__, "region_id", region_id)
|
|
281
212
|
if repeat_weekdays is not None:
|
|
282
213
|
pulumi.set(__self__, "repeat_weekdays", repeat_weekdays)
|
|
283
|
-
if resource_group_id is not None:
|
|
284
|
-
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
285
214
|
if retention_days is not None:
|
|
286
215
|
pulumi.set(__self__, "retention_days", retention_days)
|
|
287
216
|
if status is not None:
|
|
@@ -293,24 +222,14 @@ class _AutoSnapshotPolicyState:
|
|
|
293
222
|
if time_points is not None:
|
|
294
223
|
pulumi.set(__self__, "time_points", time_points)
|
|
295
224
|
|
|
296
|
-
@property
|
|
297
|
-
@pulumi.getter(name="autoSnapshotPolicyName")
|
|
298
|
-
def auto_snapshot_policy_name(self) -> Optional[pulumi.Input[str]]:
|
|
299
|
-
"""
|
|
300
|
-
The name of the automatic snapshot policy. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
|
|
301
|
-
"""
|
|
302
|
-
return pulumi.get(self, "auto_snapshot_policy_name")
|
|
303
|
-
|
|
304
|
-
@auto_snapshot_policy_name.setter
|
|
305
|
-
def auto_snapshot_policy_name(self, value: Optional[pulumi.Input[str]]):
|
|
306
|
-
pulumi.set(self, "auto_snapshot_policy_name", value)
|
|
307
|
-
|
|
308
225
|
@property
|
|
309
226
|
@pulumi.getter(name="copiedSnapshotsRetentionDays")
|
|
310
227
|
def copied_snapshots_retention_days(self) -> Optional[pulumi.Input[int]]:
|
|
311
228
|
"""
|
|
312
|
-
The retention period of the snapshot
|
|
313
|
-
-
|
|
229
|
+
The retention period of the snapshot copied across regions.
|
|
230
|
+
- -1: The snapshot is permanently retained.
|
|
231
|
+
- [1, 65535]: The automatic snapshot is retained for the specified number of days.
|
|
232
|
+
Default value: -1.
|
|
314
233
|
"""
|
|
315
234
|
return pulumi.get(self, "copied_snapshots_retention_days")
|
|
316
235
|
|
|
@@ -318,35 +237,11 @@ class _AutoSnapshotPolicyState:
|
|
|
318
237
|
def copied_snapshots_retention_days(self, value: Optional[pulumi.Input[int]]):
|
|
319
238
|
pulumi.set(self, "copied_snapshots_retention_days", value)
|
|
320
239
|
|
|
321
|
-
@property
|
|
322
|
-
@pulumi.getter(name="copyEncryptionConfiguration")
|
|
323
|
-
def copy_encryption_configuration(self) -> Optional[pulumi.Input['AutoSnapshotPolicyCopyEncryptionConfigurationArgs']]:
|
|
324
|
-
"""
|
|
325
|
-
The encryption parameters for cross-region snapshot replication. See `copy_encryption_configuration` below.
|
|
326
|
-
"""
|
|
327
|
-
return pulumi.get(self, "copy_encryption_configuration")
|
|
328
|
-
|
|
329
|
-
@copy_encryption_configuration.setter
|
|
330
|
-
def copy_encryption_configuration(self, value: Optional[pulumi.Input['AutoSnapshotPolicyCopyEncryptionConfigurationArgs']]):
|
|
331
|
-
pulumi.set(self, "copy_encryption_configuration", value)
|
|
332
|
-
|
|
333
|
-
@property
|
|
334
|
-
@pulumi.getter(name="createTime")
|
|
335
|
-
def create_time(self) -> Optional[pulumi.Input[str]]:
|
|
336
|
-
"""
|
|
337
|
-
(Available since v1.236.0) 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.
|
|
338
|
-
"""
|
|
339
|
-
return pulumi.get(self, "create_time")
|
|
340
|
-
|
|
341
|
-
@create_time.setter
|
|
342
|
-
def create_time(self, value: Optional[pulumi.Input[str]]):
|
|
343
|
-
pulumi.set(self, "create_time", value)
|
|
344
|
-
|
|
345
240
|
@property
|
|
346
241
|
@pulumi.getter(name="enableCrossRegionCopy")
|
|
347
242
|
def enable_cross_region_copy(self) -> Optional[pulumi.Input[bool]]:
|
|
348
243
|
"""
|
|
349
|
-
Specifies whether to enable
|
|
244
|
+
Specifies whether to enable the system to automatically copy snapshots across regions.
|
|
350
245
|
"""
|
|
351
246
|
return pulumi.get(self, "enable_cross_region_copy")
|
|
352
247
|
|
|
@@ -356,10 +251,9 @@ class _AutoSnapshotPolicyState:
|
|
|
356
251
|
|
|
357
252
|
@property
|
|
358
253
|
@pulumi.getter
|
|
359
|
-
@_utilities.deprecated("""Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.""")
|
|
360
254
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
361
255
|
"""
|
|
362
|
-
|
|
256
|
+
The snapshot policy name.
|
|
363
257
|
"""
|
|
364
258
|
return pulumi.get(self, "name")
|
|
365
259
|
|
|
@@ -367,23 +261,13 @@ class _AutoSnapshotPolicyState:
|
|
|
367
261
|
def name(self, value: Optional[pulumi.Input[str]]):
|
|
368
262
|
pulumi.set(self, "name", value)
|
|
369
263
|
|
|
370
|
-
@property
|
|
371
|
-
@pulumi.getter(name="regionId")
|
|
372
|
-
def region_id(self) -> Optional[pulumi.Input[str]]:
|
|
373
|
-
"""
|
|
374
|
-
(Available since v1.236.0) The region ID of the automatic snapshot policy.
|
|
375
|
-
"""
|
|
376
|
-
return pulumi.get(self, "region_id")
|
|
377
|
-
|
|
378
|
-
@region_id.setter
|
|
379
|
-
def region_id(self, value: Optional[pulumi.Input[str]]):
|
|
380
|
-
pulumi.set(self, "region_id", value)
|
|
381
|
-
|
|
382
264
|
@property
|
|
383
265
|
@pulumi.getter(name="repeatWeekdays")
|
|
384
266
|
def repeat_weekdays(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
385
267
|
"""
|
|
386
|
-
The
|
|
268
|
+
The automatic snapshot repetition dates. The unit of measurement is day and the repeating cycle is a week. Value range: [1, 7], which represents days starting from Monday to Sunday, for example 1 indicates Monday. When you want to schedule multiple automatic snapshot tasks for a disk in a week, you can set the RepeatWeekdays to an array.
|
|
269
|
+
- A maximum of seven time points can be selected.
|
|
270
|
+
- The format is an JSON array of ["1", "2", … "7"] and the time points are separated by commas (,).
|
|
387
271
|
"""
|
|
388
272
|
return pulumi.get(self, "repeat_weekdays")
|
|
389
273
|
|
|
@@ -391,24 +275,14 @@ class _AutoSnapshotPolicyState:
|
|
|
391
275
|
def repeat_weekdays(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
392
276
|
pulumi.set(self, "repeat_weekdays", value)
|
|
393
277
|
|
|
394
|
-
@property
|
|
395
|
-
@pulumi.getter(name="resourceGroupId")
|
|
396
|
-
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
397
|
-
"""
|
|
398
|
-
The ID of the resource group. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response.
|
|
399
|
-
"""
|
|
400
|
-
return pulumi.get(self, "resource_group_id")
|
|
401
|
-
|
|
402
|
-
@resource_group_id.setter
|
|
403
|
-
def resource_group_id(self, value: Optional[pulumi.Input[str]]):
|
|
404
|
-
pulumi.set(self, "resource_group_id", value)
|
|
405
|
-
|
|
406
278
|
@property
|
|
407
279
|
@pulumi.getter(name="retentionDays")
|
|
408
280
|
def retention_days(self) -> Optional[pulumi.Input[int]]:
|
|
409
281
|
"""
|
|
410
|
-
The retention
|
|
411
|
-
-
|
|
282
|
+
The snapshot retention time, and the unit of measurement is day. Optional values:
|
|
283
|
+
- -1: The automatic snapshots are retained permanently.
|
|
284
|
+
- [1, 65536]: The number of days retained.
|
|
285
|
+
Default value: -1.
|
|
412
286
|
"""
|
|
413
287
|
return pulumi.get(self, "retention_days")
|
|
414
288
|
|
|
@@ -420,7 +294,7 @@ class _AutoSnapshotPolicyState:
|
|
|
420
294
|
@pulumi.getter
|
|
421
295
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
422
296
|
"""
|
|
423
|
-
The status of
|
|
297
|
+
The status of Auto Snapshot Policy.
|
|
424
298
|
"""
|
|
425
299
|
return pulumi.get(self, "status")
|
|
426
300
|
|
|
@@ -444,7 +318,7 @@ class _AutoSnapshotPolicyState:
|
|
|
444
318
|
@pulumi.getter(name="targetCopyRegions")
|
|
445
319
|
def target_copy_regions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
446
320
|
"""
|
|
447
|
-
The destination region to which
|
|
321
|
+
The destination region to which the snapshot is copied. You can set a destination region.
|
|
448
322
|
"""
|
|
449
323
|
return pulumi.get(self, "target_copy_regions")
|
|
450
324
|
|
|
@@ -456,13 +330,9 @@ class _AutoSnapshotPolicyState:
|
|
|
456
330
|
@pulumi.getter(name="timePoints")
|
|
457
331
|
def time_points(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
458
332
|
"""
|
|
459
|
-
The
|
|
460
|
-
|
|
461
|
-
The
|
|
462
|
-
|
|
463
|
-
The parameter value is a JSON array that contains up to 24 points in time separated by commas (,). Example: ["0", "1", ... "23"].
|
|
464
|
-
|
|
465
|
-
The following arguments will be discarded. Please use new fields as soon as possible:
|
|
333
|
+
The automatic snapshot creation schedule, and the unit of measurement is hour. Value range: [0, 23], which represents from 00:00 to 24:00, for example 1 indicates 01:00. When you want to schedule multiple automatic snapshot tasks for a disk in a day, you can set the TimePoints to an array.
|
|
334
|
+
- A maximum of 24 time points can be selected.
|
|
335
|
+
- The format is an JSON array of ["0", "1", … "23"] and the time points are separated by commas (,).
|
|
466
336
|
"""
|
|
467
337
|
return pulumi.get(self, "time_points")
|
|
468
338
|
|
|
@@ -476,13 +346,10 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
476
346
|
def __init__(__self__,
|
|
477
347
|
resource_name: str,
|
|
478
348
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
479
|
-
auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
|
|
480
349
|
copied_snapshots_retention_days: Optional[pulumi.Input[int]] = None,
|
|
481
|
-
copy_encryption_configuration: Optional[pulumi.Input[Union['AutoSnapshotPolicyCopyEncryptionConfigurationArgs', 'AutoSnapshotPolicyCopyEncryptionConfigurationArgsDict']]] = None,
|
|
482
350
|
enable_cross_region_copy: Optional[pulumi.Input[bool]] = None,
|
|
483
351
|
name: Optional[pulumi.Input[str]] = None,
|
|
484
352
|
repeat_weekdays: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
485
|
-
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
486
353
|
retention_days: Optional[pulumi.Input[int]] = None,
|
|
487
354
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
488
355
|
target_copy_regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
@@ -493,7 +360,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
493
360
|
|
|
494
361
|
For information about ECS Auto Snapshot Policy and how to use it, see [What is Auto Snapshot Policy](https://www.alibabacloud.com/help/en/doc-detail/25527.htm).
|
|
495
362
|
|
|
496
|
-
> **NOTE:** Available
|
|
363
|
+
> **NOTE:** Available in v1.117.0+.
|
|
497
364
|
|
|
498
365
|
## Example Usage
|
|
499
366
|
|
|
@@ -504,7 +371,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
504
371
|
import pulumi_alicloud as alicloud
|
|
505
372
|
|
|
506
373
|
example = alicloud.ecs.AutoSnapshotPolicy("example",
|
|
507
|
-
name="
|
|
374
|
+
name="tf-testAcc",
|
|
508
375
|
repeat_weekdays=[
|
|
509
376
|
"1",
|
|
510
377
|
"2",
|
|
@@ -528,25 +395,24 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
528
395
|
|
|
529
396
|
:param str resource_name: The name of the resource.
|
|
530
397
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
531
|
-
:param pulumi.Input[
|
|
532
|
-
|
|
533
|
-
-
|
|
534
|
-
|
|
535
|
-
:param pulumi.Input[bool] enable_cross_region_copy: Specifies whether to enable
|
|
536
|
-
:param pulumi.Input[str] name:
|
|
537
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
398
|
+
:param pulumi.Input[int] copied_snapshots_retention_days: The retention period of the snapshot copied across regions.
|
|
399
|
+
- -1: The snapshot is permanently retained.
|
|
400
|
+
- [1, 65535]: The automatic snapshot is retained for the specified number of days.
|
|
401
|
+
Default value: -1.
|
|
402
|
+
:param pulumi.Input[bool] enable_cross_region_copy: Specifies whether to enable the system to automatically copy snapshots across regions.
|
|
403
|
+
:param pulumi.Input[str] name: The snapshot policy name.
|
|
404
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The automatic snapshot repetition dates. The unit of measurement is day and the repeating cycle is a week. Value range: [1, 7], which represents days starting from Monday to Sunday, for example 1 indicates Monday. When you want to schedule multiple automatic snapshot tasks for a disk in a week, you can set the RepeatWeekdays to an array.
|
|
405
|
+
- A maximum of seven time points can be selected.
|
|
406
|
+
- The format is an JSON array of ["1", "2", … "7"] and the time points are separated by commas (,).
|
|
407
|
+
:param pulumi.Input[int] retention_days: The snapshot retention time, and the unit of measurement is day. Optional values:
|
|
408
|
+
- -1: The automatic snapshots are retained permanently.
|
|
409
|
+
- [1, 65536]: The number of days retained.
|
|
410
|
+
Default value: -1.
|
|
541
411
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
542
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_copy_regions: The destination region to which
|
|
543
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The
|
|
544
|
-
|
|
545
|
-
The
|
|
546
|
-
|
|
547
|
-
The parameter value is a JSON array that contains up to 24 points in time separated by commas (,). Example: ["0", "1", ... "23"].
|
|
548
|
-
|
|
549
|
-
The following arguments will be discarded. Please use new fields as soon as possible:
|
|
412
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_copy_regions: The destination region to which the snapshot is copied. You can set a destination region.
|
|
413
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The automatic snapshot creation schedule, and the unit of measurement is hour. Value range: [0, 23], which represents from 00:00 to 24:00, for example 1 indicates 01:00. When you want to schedule multiple automatic snapshot tasks for a disk in a day, you can set the TimePoints to an array.
|
|
414
|
+
- A maximum of 24 time points can be selected.
|
|
415
|
+
- The format is an JSON array of ["0", "1", … "23"] and the time points are separated by commas (,).
|
|
550
416
|
"""
|
|
551
417
|
...
|
|
552
418
|
@overload
|
|
@@ -559,7 +425,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
559
425
|
|
|
560
426
|
For information about ECS Auto Snapshot Policy and how to use it, see [What is Auto Snapshot Policy](https://www.alibabacloud.com/help/en/doc-detail/25527.htm).
|
|
561
427
|
|
|
562
|
-
> **NOTE:** Available
|
|
428
|
+
> **NOTE:** Available in v1.117.0+.
|
|
563
429
|
|
|
564
430
|
## Example Usage
|
|
565
431
|
|
|
@@ -570,7 +436,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
570
436
|
import pulumi_alicloud as alicloud
|
|
571
437
|
|
|
572
438
|
example = alicloud.ecs.AutoSnapshotPolicy("example",
|
|
573
|
-
name="
|
|
439
|
+
name="tf-testAcc",
|
|
574
440
|
repeat_weekdays=[
|
|
575
441
|
"1",
|
|
576
442
|
"2",
|
|
@@ -607,13 +473,10 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
607
473
|
def _internal_init(__self__,
|
|
608
474
|
resource_name: str,
|
|
609
475
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
610
|
-
auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
|
|
611
476
|
copied_snapshots_retention_days: Optional[pulumi.Input[int]] = None,
|
|
612
|
-
copy_encryption_configuration: Optional[pulumi.Input[Union['AutoSnapshotPolicyCopyEncryptionConfigurationArgs', 'AutoSnapshotPolicyCopyEncryptionConfigurationArgsDict']]] = None,
|
|
613
477
|
enable_cross_region_copy: Optional[pulumi.Input[bool]] = None,
|
|
614
478
|
name: Optional[pulumi.Input[str]] = None,
|
|
615
479
|
repeat_weekdays: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
616
|
-
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
617
480
|
retention_days: Optional[pulumi.Input[int]] = None,
|
|
618
481
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
619
482
|
target_copy_regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
@@ -627,15 +490,12 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
627
490
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
628
491
|
__props__ = AutoSnapshotPolicyArgs.__new__(AutoSnapshotPolicyArgs)
|
|
629
492
|
|
|
630
|
-
__props__.__dict__["auto_snapshot_policy_name"] = auto_snapshot_policy_name
|
|
631
493
|
__props__.__dict__["copied_snapshots_retention_days"] = copied_snapshots_retention_days
|
|
632
|
-
__props__.__dict__["copy_encryption_configuration"] = copy_encryption_configuration
|
|
633
494
|
__props__.__dict__["enable_cross_region_copy"] = enable_cross_region_copy
|
|
634
495
|
__props__.__dict__["name"] = name
|
|
635
496
|
if repeat_weekdays is None and not opts.urn:
|
|
636
497
|
raise TypeError("Missing required property 'repeat_weekdays'")
|
|
637
498
|
__props__.__dict__["repeat_weekdays"] = repeat_weekdays
|
|
638
|
-
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
639
499
|
if retention_days is None and not opts.urn:
|
|
640
500
|
raise TypeError("Missing required property 'retention_days'")
|
|
641
501
|
__props__.__dict__["retention_days"] = retention_days
|
|
@@ -644,8 +504,6 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
644
504
|
if time_points is None and not opts.urn:
|
|
645
505
|
raise TypeError("Missing required property 'time_points'")
|
|
646
506
|
__props__.__dict__["time_points"] = time_points
|
|
647
|
-
__props__.__dict__["create_time"] = None
|
|
648
|
-
__props__.__dict__["region_id"] = None
|
|
649
507
|
__props__.__dict__["status"] = None
|
|
650
508
|
super(AutoSnapshotPolicy, __self__).__init__(
|
|
651
509
|
'alicloud:ecs/autoSnapshotPolicy:AutoSnapshotPolicy',
|
|
@@ -657,15 +515,10 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
657
515
|
def get(resource_name: str,
|
|
658
516
|
id: pulumi.Input[str],
|
|
659
517
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
660
|
-
auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
|
|
661
518
|
copied_snapshots_retention_days: Optional[pulumi.Input[int]] = None,
|
|
662
|
-
copy_encryption_configuration: Optional[pulumi.Input[Union['AutoSnapshotPolicyCopyEncryptionConfigurationArgs', 'AutoSnapshotPolicyCopyEncryptionConfigurationArgsDict']]] = None,
|
|
663
|
-
create_time: Optional[pulumi.Input[str]] = None,
|
|
664
519
|
enable_cross_region_copy: Optional[pulumi.Input[bool]] = None,
|
|
665
520
|
name: Optional[pulumi.Input[str]] = None,
|
|
666
|
-
region_id: Optional[pulumi.Input[str]] = None,
|
|
667
521
|
repeat_weekdays: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
668
|
-
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
669
522
|
retention_days: Optional[pulumi.Input[int]] = None,
|
|
670
523
|
status: Optional[pulumi.Input[str]] = None,
|
|
671
524
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
@@ -678,42 +531,34 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
678
531
|
:param str resource_name: The unique name of the resulting resource.
|
|
679
532
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
680
533
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
681
|
-
:param pulumi.Input[
|
|
682
|
-
|
|
683
|
-
-
|
|
684
|
-
|
|
685
|
-
:param pulumi.Input[
|
|
686
|
-
:param pulumi.Input[
|
|
687
|
-
:param pulumi.Input[str]
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
:param pulumi.Input[
|
|
691
|
-
|
|
692
|
-
-
|
|
693
|
-
|
|
534
|
+
:param pulumi.Input[int] copied_snapshots_retention_days: The retention period of the snapshot copied across regions.
|
|
535
|
+
- -1: The snapshot is permanently retained.
|
|
536
|
+
- [1, 65535]: The automatic snapshot is retained for the specified number of days.
|
|
537
|
+
Default value: -1.
|
|
538
|
+
:param pulumi.Input[bool] enable_cross_region_copy: Specifies whether to enable the system to automatically copy snapshots across regions.
|
|
539
|
+
:param pulumi.Input[str] name: The snapshot policy name.
|
|
540
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The automatic snapshot repetition dates. The unit of measurement is day and the repeating cycle is a week. Value range: [1, 7], which represents days starting from Monday to Sunday, for example 1 indicates Monday. When you want to schedule multiple automatic snapshot tasks for a disk in a week, you can set the RepeatWeekdays to an array.
|
|
541
|
+
- A maximum of seven time points can be selected.
|
|
542
|
+
- The format is an JSON array of ["1", "2", … "7"] and the time points are separated by commas (,).
|
|
543
|
+
:param pulumi.Input[int] retention_days: The snapshot retention time, and the unit of measurement is day. Optional values:
|
|
544
|
+
- -1: The automatic snapshots are retained permanently.
|
|
545
|
+
- [1, 65536]: The number of days retained.
|
|
546
|
+
Default value: -1.
|
|
547
|
+
:param pulumi.Input[str] status: The status of Auto Snapshot Policy.
|
|
694
548
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
|
|
695
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_copy_regions: The destination region to which
|
|
696
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The
|
|
697
|
-
|
|
698
|
-
The
|
|
699
|
-
|
|
700
|
-
The parameter value is a JSON array that contains up to 24 points in time separated by commas (,). Example: ["0", "1", ... "23"].
|
|
701
|
-
|
|
702
|
-
The following arguments will be discarded. Please use new fields as soon as possible:
|
|
549
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_copy_regions: The destination region to which the snapshot is copied. You can set a destination region.
|
|
550
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The automatic snapshot creation schedule, and the unit of measurement is hour. Value range: [0, 23], which represents from 00:00 to 24:00, for example 1 indicates 01:00. When you want to schedule multiple automatic snapshot tasks for a disk in a day, you can set the TimePoints to an array.
|
|
551
|
+
- A maximum of 24 time points can be selected.
|
|
552
|
+
- The format is an JSON array of ["0", "1", … "23"] and the time points are separated by commas (,).
|
|
703
553
|
"""
|
|
704
554
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
705
555
|
|
|
706
556
|
__props__ = _AutoSnapshotPolicyState.__new__(_AutoSnapshotPolicyState)
|
|
707
557
|
|
|
708
|
-
__props__.__dict__["auto_snapshot_policy_name"] = auto_snapshot_policy_name
|
|
709
558
|
__props__.__dict__["copied_snapshots_retention_days"] = copied_snapshots_retention_days
|
|
710
|
-
__props__.__dict__["copy_encryption_configuration"] = copy_encryption_configuration
|
|
711
|
-
__props__.__dict__["create_time"] = create_time
|
|
712
559
|
__props__.__dict__["enable_cross_region_copy"] = enable_cross_region_copy
|
|
713
560
|
__props__.__dict__["name"] = name
|
|
714
|
-
__props__.__dict__["region_id"] = region_id
|
|
715
561
|
__props__.__dict__["repeat_weekdays"] = repeat_weekdays
|
|
716
|
-
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
717
562
|
__props__.__dict__["retention_days"] = retention_days
|
|
718
563
|
__props__.__dict__["status"] = status
|
|
719
564
|
__props__.__dict__["tags"] = tags
|
|
@@ -721,86 +566,51 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
721
566
|
__props__.__dict__["time_points"] = time_points
|
|
722
567
|
return AutoSnapshotPolicy(resource_name, opts=opts, __props__=__props__)
|
|
723
568
|
|
|
724
|
-
@property
|
|
725
|
-
@pulumi.getter(name="autoSnapshotPolicyName")
|
|
726
|
-
def auto_snapshot_policy_name(self) -> pulumi.Output[str]:
|
|
727
|
-
"""
|
|
728
|
-
The name of the automatic snapshot policy. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
|
|
729
|
-
"""
|
|
730
|
-
return pulumi.get(self, "auto_snapshot_policy_name")
|
|
731
|
-
|
|
732
569
|
@property
|
|
733
570
|
@pulumi.getter(name="copiedSnapshotsRetentionDays")
|
|
734
|
-
def copied_snapshots_retention_days(self) -> pulumi.Output[int]:
|
|
571
|
+
def copied_snapshots_retention_days(self) -> pulumi.Output[Optional[int]]:
|
|
735
572
|
"""
|
|
736
|
-
The retention period of the snapshot
|
|
737
|
-
-
|
|
573
|
+
The retention period of the snapshot copied across regions.
|
|
574
|
+
- -1: The snapshot is permanently retained.
|
|
575
|
+
- [1, 65535]: The automatic snapshot is retained for the specified number of days.
|
|
576
|
+
Default value: -1.
|
|
738
577
|
"""
|
|
739
578
|
return pulumi.get(self, "copied_snapshots_retention_days")
|
|
740
579
|
|
|
741
|
-
@property
|
|
742
|
-
@pulumi.getter(name="copyEncryptionConfiguration")
|
|
743
|
-
def copy_encryption_configuration(self) -> pulumi.Output[Optional['outputs.AutoSnapshotPolicyCopyEncryptionConfiguration']]:
|
|
744
|
-
"""
|
|
745
|
-
The encryption parameters for cross-region snapshot replication. See `copy_encryption_configuration` below.
|
|
746
|
-
"""
|
|
747
|
-
return pulumi.get(self, "copy_encryption_configuration")
|
|
748
|
-
|
|
749
|
-
@property
|
|
750
|
-
@pulumi.getter(name="createTime")
|
|
751
|
-
def create_time(self) -> pulumi.Output[str]:
|
|
752
|
-
"""
|
|
753
|
-
(Available since v1.236.0) 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.
|
|
754
|
-
"""
|
|
755
|
-
return pulumi.get(self, "create_time")
|
|
756
|
-
|
|
757
580
|
@property
|
|
758
581
|
@pulumi.getter(name="enableCrossRegionCopy")
|
|
759
582
|
def enable_cross_region_copy(self) -> pulumi.Output[Optional[bool]]:
|
|
760
583
|
"""
|
|
761
|
-
Specifies whether to enable
|
|
584
|
+
Specifies whether to enable the system to automatically copy snapshots across regions.
|
|
762
585
|
"""
|
|
763
586
|
return pulumi.get(self, "enable_cross_region_copy")
|
|
764
587
|
|
|
765
588
|
@property
|
|
766
589
|
@pulumi.getter
|
|
767
|
-
@_utilities.deprecated("""Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.""")
|
|
768
590
|
def name(self) -> pulumi.Output[str]:
|
|
769
591
|
"""
|
|
770
|
-
|
|
592
|
+
The snapshot policy name.
|
|
771
593
|
"""
|
|
772
594
|
return pulumi.get(self, "name")
|
|
773
595
|
|
|
774
|
-
@property
|
|
775
|
-
@pulumi.getter(name="regionId")
|
|
776
|
-
def region_id(self) -> pulumi.Output[str]:
|
|
777
|
-
"""
|
|
778
|
-
(Available since v1.236.0) The region ID of the automatic snapshot policy.
|
|
779
|
-
"""
|
|
780
|
-
return pulumi.get(self, "region_id")
|
|
781
|
-
|
|
782
596
|
@property
|
|
783
597
|
@pulumi.getter(name="repeatWeekdays")
|
|
784
598
|
def repeat_weekdays(self) -> pulumi.Output[Sequence[str]]:
|
|
785
599
|
"""
|
|
786
|
-
The
|
|
600
|
+
The automatic snapshot repetition dates. The unit of measurement is day and the repeating cycle is a week. Value range: [1, 7], which represents days starting from Monday to Sunday, for example 1 indicates Monday. When you want to schedule multiple automatic snapshot tasks for a disk in a week, you can set the RepeatWeekdays to an array.
|
|
601
|
+
- A maximum of seven time points can be selected.
|
|
602
|
+
- The format is an JSON array of ["1", "2", … "7"] and the time points are separated by commas (,).
|
|
787
603
|
"""
|
|
788
604
|
return pulumi.get(self, "repeat_weekdays")
|
|
789
605
|
|
|
790
|
-
@property
|
|
791
|
-
@pulumi.getter(name="resourceGroupId")
|
|
792
|
-
def resource_group_id(self) -> pulumi.Output[Optional[str]]:
|
|
793
|
-
"""
|
|
794
|
-
The ID of the resource group. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response.
|
|
795
|
-
"""
|
|
796
|
-
return pulumi.get(self, "resource_group_id")
|
|
797
|
-
|
|
798
606
|
@property
|
|
799
607
|
@pulumi.getter(name="retentionDays")
|
|
800
608
|
def retention_days(self) -> pulumi.Output[int]:
|
|
801
609
|
"""
|
|
802
|
-
The retention
|
|
803
|
-
-
|
|
610
|
+
The snapshot retention time, and the unit of measurement is day. Optional values:
|
|
611
|
+
- -1: The automatic snapshots are retained permanently.
|
|
612
|
+
- [1, 65536]: The number of days retained.
|
|
613
|
+
Default value: -1.
|
|
804
614
|
"""
|
|
805
615
|
return pulumi.get(self, "retention_days")
|
|
806
616
|
|
|
@@ -808,7 +618,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
808
618
|
@pulumi.getter
|
|
809
619
|
def status(self) -> pulumi.Output[str]:
|
|
810
620
|
"""
|
|
811
|
-
The status of
|
|
621
|
+
The status of Auto Snapshot Policy.
|
|
812
622
|
"""
|
|
813
623
|
return pulumi.get(self, "status")
|
|
814
624
|
|
|
@@ -824,7 +634,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
824
634
|
@pulumi.getter(name="targetCopyRegions")
|
|
825
635
|
def target_copy_regions(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
826
636
|
"""
|
|
827
|
-
The destination region to which
|
|
637
|
+
The destination region to which the snapshot is copied. You can set a destination region.
|
|
828
638
|
"""
|
|
829
639
|
return pulumi.get(self, "target_copy_regions")
|
|
830
640
|
|
|
@@ -832,13 +642,9 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
|
|
|
832
642
|
@pulumi.getter(name="timePoints")
|
|
833
643
|
def time_points(self) -> pulumi.Output[Sequence[str]]:
|
|
834
644
|
"""
|
|
835
|
-
The
|
|
836
|
-
|
|
837
|
-
The
|
|
838
|
-
|
|
839
|
-
The parameter value is a JSON array that contains up to 24 points in time separated by commas (,). Example: ["0", "1", ... "23"].
|
|
840
|
-
|
|
841
|
-
The following arguments will be discarded. Please use new fields as soon as possible:
|
|
645
|
+
The automatic snapshot creation schedule, and the unit of measurement is hour. Value range: [0, 23], which represents from 00:00 to 24:00, for example 1 indicates 01:00. When you want to schedule multiple automatic snapshot tasks for a disk in a day, you can set the TimePoints to an array.
|
|
646
|
+
- A maximum of 24 time points can be selected.
|
|
647
|
+
- The format is an JSON array of ["0", "1", … "23"] and the time points are separated by commas (,).
|
|
842
648
|
"""
|
|
843
649
|
return pulumi.get(self, "time_points")
|
|
844
650
|
|