pulumi-alicloud 3.67.0a1731734345__py3-none-any.whl → 3.68.0__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.

Files changed (79) hide show
  1. pulumi_alicloud/__init__.py +56 -0
  2. pulumi_alicloud/cdn/_inputs.py +3 -23
  3. pulumi_alicloud/cdn/domain_new.py +93 -51
  4. pulumi_alicloud/cdn/outputs.py +2 -16
  5. pulumi_alicloud/cdn/real_time_log_delivery.py +97 -46
  6. pulumi_alicloud/cen/flow_log.py +373 -58
  7. pulumi_alicloud/cen/get_flowlogs.py +250 -35
  8. pulumi_alicloud/cen/outputs.py +116 -17
  9. pulumi_alicloud/cen/transit_router_ecr_attachment.py +4 -4
  10. pulumi_alicloud/cr/registry_enterprise_instance.py +474 -90
  11. pulumi_alicloud/cs/node_pool.py +7 -0
  12. pulumi_alicloud/ecs/_inputs.py +92 -0
  13. pulumi_alicloud/ecs/auto_snapshot_policy.py +323 -129
  14. pulumi_alicloud/ecs/ecs_image_component.py +221 -48
  15. pulumi_alicloud/ecs/outputs.py +88 -0
  16. pulumi_alicloud/ecs/snapshot_policy.py +154 -1
  17. pulumi_alicloud/emrv2/_inputs.py +875 -21
  18. pulumi_alicloud/emrv2/cluster.py +47 -0
  19. pulumi_alicloud/emrv2/outputs.py +580 -14
  20. pulumi_alicloud/ess/_inputs.py +94 -0
  21. pulumi_alicloud/ess/eci_scaling_configuration.py +42 -14
  22. pulumi_alicloud/ess/outputs.py +79 -0
  23. pulumi_alicloud/ess/scaling_configuration.py +47 -0
  24. pulumi_alicloud/expressconnect/router_vbr_child_instance.py +86 -25
  25. pulumi_alicloud/gwlb/__init__.py +1 -0
  26. pulumi_alicloud/gwlb/_inputs.py +147 -126
  27. pulumi_alicloud/gwlb/get_zones.py +173 -0
  28. pulumi_alicloud/gwlb/listener.py +50 -50
  29. pulumi_alicloud/gwlb/load_balancer.py +78 -71
  30. pulumi_alicloud/gwlb/outputs.py +139 -84
  31. pulumi_alicloud/gwlb/server_group.py +162 -113
  32. pulumi_alicloud/kms/key.py +1 -1
  33. pulumi_alicloud/kvstore/account.py +24 -24
  34. pulumi_alicloud/kvstore/audit_log_config.py +11 -11
  35. pulumi_alicloud/kvstore/backup_policy.py +11 -11
  36. pulumi_alicloud/kvstore/connection.py +8 -8
  37. pulumi_alicloud/kvstore/get_accounts.py +4 -4
  38. pulumi_alicloud/kvstore/get_connections.py +5 -5
  39. pulumi_alicloud/kvstore/get_instance_classes.py +20 -20
  40. pulumi_alicloud/kvstore/get_instance_engines.py +7 -7
  41. pulumi_alicloud/kvstore/get_instances.py +9 -7
  42. pulumi_alicloud/kvstore/get_permission.py +10 -10
  43. pulumi_alicloud/kvstore/get_zones.py +4 -4
  44. pulumi_alicloud/kvstore/instance.py +21 -21
  45. pulumi_alicloud/kvstore/outputs.py +8 -8
  46. pulumi_alicloud/mongodb/instance.py +47 -0
  47. pulumi_alicloud/mongodb/sharding_instance.py +47 -0
  48. pulumi_alicloud/nas/_inputs.py +148 -0
  49. pulumi_alicloud/nas/file_system.py +482 -222
  50. pulumi_alicloud/nas/outputs.py +109 -0
  51. pulumi_alicloud/pai/__init__.py +7 -0
  52. pulumi_alicloud/pai/_inputs.py +129 -0
  53. pulumi_alicloud/pai/outputs.py +83 -0
  54. pulumi_alicloud/pai/workspace_code_source.py +702 -0
  55. pulumi_alicloud/pai/workspace_dataset.py +1081 -0
  56. pulumi_alicloud/pai/workspace_datasetversion.py +818 -0
  57. pulumi_alicloud/pai/workspace_experiment.py +394 -0
  58. pulumi_alicloud/pai/workspace_run.py +344 -0
  59. pulumi_alicloud/pai/workspace_workspace.py +6 -6
  60. pulumi_alicloud/polardb/cluster.py +7 -7
  61. pulumi_alicloud/privatelink/vpc_endpoint_service.py +42 -91
  62. pulumi_alicloud/privatelink/vpc_endpoint_service_connection.py +27 -23
  63. pulumi_alicloud/privatelink/vpc_endpoint_service_resource.py +34 -37
  64. pulumi_alicloud/privatelink/vpc_endpoint_zone.py +28 -0
  65. pulumi_alicloud/pulumi-plugin.json +1 -1
  66. pulumi_alicloud/rds/__init__.py +2 -0
  67. pulumi_alicloud/rds/_inputs.py +146 -0
  68. pulumi_alicloud/rds/custom.py +1630 -0
  69. pulumi_alicloud/rds/custom_deployment_set.py +525 -0
  70. pulumi_alicloud/rds/outputs.py +105 -0
  71. pulumi_alicloud/redis/tair_instance.py +76 -1
  72. pulumi_alicloud/vpc/_inputs.py +54 -0
  73. pulumi_alicloud/vpc/nat_gateway.py +175 -14
  74. pulumi_alicloud/vpc/outputs.py +51 -0
  75. pulumi_alicloud/vpn/gateway_vco_route.py +68 -21
  76. {pulumi_alicloud-3.67.0a1731734345.dist-info → pulumi_alicloud-3.68.0.dist-info}/METADATA +5 -5
  77. {pulumi_alicloud-3.67.0a1731734345.dist-info → pulumi_alicloud-3.68.0.dist-info}/RECORD +79 -69
  78. {pulumi_alicloud-3.67.0a1731734345.dist-info → pulumi_alicloud-3.68.0.dist-info}/WHEEL +1 -1
  79. {pulumi_alicloud-3.67.0a1731734345.dist-info → pulumi_alicloud-3.68.0.dist-info}/top_level.txt +0 -0
@@ -13,6 +13,8 @@ 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 *
16
18
 
17
19
  __all__ = ['AutoSnapshotPolicyArgs', 'AutoSnapshotPolicy']
18
20
 
@@ -22,41 +24,54 @@ class AutoSnapshotPolicyArgs:
22
24
  repeat_weekdays: pulumi.Input[Sequence[pulumi.Input[str]]],
23
25
  retention_days: pulumi.Input[int],
24
26
  time_points: pulumi.Input[Sequence[pulumi.Input[str]]],
27
+ auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
25
28
  copied_snapshots_retention_days: Optional[pulumi.Input[int]] = None,
29
+ copy_encryption_configuration: Optional[pulumi.Input['AutoSnapshotPolicyCopyEncryptionConfigurationArgs']] = None,
26
30
  enable_cross_region_copy: Optional[pulumi.Input[bool]] = None,
27
31
  name: Optional[pulumi.Input[str]] = None,
32
+ resource_group_id: Optional[pulumi.Input[str]] = None,
28
33
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
29
34
  target_copy_regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
30
35
  """
31
36
  The set of arguments for constructing a AutoSnapshotPolicy resource.
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.
37
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The days of the week on which to create automatic snapshots. Valid values: `1` to `7`, which correspond to the days of the week. For example, `1` indicates Monday. One or more days can be specified.
38
+ :param pulumi.Input[int] retention_days: The retention period of the automatic snapshots. Unit: days. Valid values:
39
+ - `-1`: Automatic snapshots are retained until they are deleted.
40
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The points in time of the day at which to create automatic snapshots.
41
+
42
+ The time is displayed in UTC+8. Unit: hours. Valid values: `0` to `23`, which correspond to the 24 points in time on the hour from 00:00:00 to 23:00:00. For example, 1 indicates 01:00:00. Multiple points in time can be specified.
43
+
44
+ The parameter value is a JSON array that contains up to 24 points in time separated by commas (,). Example: ["0", "1", ... "23"].
45
+
46
+ The following arguments will be discarded. Please use new fields as soon as possible:
47
+ :param pulumi.Input[str] auto_snapshot_policy_name: 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 (-).
48
+ :param pulumi.Input[int] copied_snapshots_retention_days: The retention period of the snapshot copy in the destination region. Unit: days. Valid values:
49
+ - `-1`: The snapshot copy is retained until it is deleted.
50
+ :param pulumi.Input['AutoSnapshotPolicyCopyEncryptionConfigurationArgs'] copy_encryption_configuration: The encryption parameters for cross-region snapshot replication. See `copy_encryption_configuration` below.
51
+ :param pulumi.Input[bool] enable_cross_region_copy: Specifies whether to enable cross-region replication for snapshots. Valid values: `true`, `false`.
52
+ :param pulumi.Input[str] name: . Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.
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.
48
54
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
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.
55
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] target_copy_regions: The destination region to which to copy the snapshot. You can specify only a single destination region.
50
56
  """
51
57
  pulumi.set(__self__, "repeat_weekdays", repeat_weekdays)
52
58
  pulumi.set(__self__, "retention_days", retention_days)
53
59
  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)
54
62
  if copied_snapshots_retention_days is not None:
55
63
  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)
56
66
  if enable_cross_region_copy is not None:
57
67
  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.""")
58
71
  if name is not None:
59
72
  pulumi.set(__self__, "name", name)
73
+ if resource_group_id is not None:
74
+ pulumi.set(__self__, "resource_group_id", resource_group_id)
60
75
  if tags is not None:
61
76
  pulumi.set(__self__, "tags", tags)
62
77
  if target_copy_regions is not None:
@@ -66,9 +81,7 @@ class AutoSnapshotPolicyArgs:
66
81
  @pulumi.getter(name="repeatWeekdays")
67
82
  def repeat_weekdays(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
68
83
  """
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 (,).
84
+ The days of the week on which to create automatic snapshots. Valid values: `1` to `7`, which correspond to the days of the week. For example, `1` indicates Monday. One or more days can be specified.
72
85
  """
73
86
  return pulumi.get(self, "repeat_weekdays")
74
87
 
@@ -80,10 +93,8 @@ class AutoSnapshotPolicyArgs:
80
93
  @pulumi.getter(name="retentionDays")
81
94
  def retention_days(self) -> pulumi.Input[int]:
82
95
  """
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.
96
+ The retention period of the automatic snapshots. Unit: days. Valid values:
97
+ - `-1`: Automatic snapshots are retained until they are deleted.
87
98
  """
88
99
  return pulumi.get(self, "retention_days")
89
100
 
@@ -95,9 +106,13 @@ class AutoSnapshotPolicyArgs:
95
106
  @pulumi.getter(name="timePoints")
96
107
  def time_points(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
97
108
  """
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 (,).
109
+ The points in time of the day at which to create automatic snapshots.
110
+
111
+ The time is displayed in UTC+8. Unit: hours. Valid values: `0` to `23`, which correspond to the 24 points in time on the hour from 00:00:00 to 23:00:00. For example, 1 indicates 01:00:00. Multiple points in time can be specified.
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:
101
116
  """
102
117
  return pulumi.get(self, "time_points")
103
118
 
@@ -105,14 +120,24 @@ class AutoSnapshotPolicyArgs:
105
120
  def time_points(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
106
121
  pulumi.set(self, "time_points", value)
107
122
 
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
+
108
135
  @property
109
136
  @pulumi.getter(name="copiedSnapshotsRetentionDays")
110
137
  def copied_snapshots_retention_days(self) -> Optional[pulumi.Input[int]]:
111
138
  """
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.
139
+ The retention period of the snapshot copy in the destination region. Unit: days. Valid values:
140
+ - `-1`: The snapshot copy is retained until it is deleted.
116
141
  """
117
142
  return pulumi.get(self, "copied_snapshots_retention_days")
118
143
 
@@ -120,11 +145,23 @@ class AutoSnapshotPolicyArgs:
120
145
  def copied_snapshots_retention_days(self, value: Optional[pulumi.Input[int]]):
121
146
  pulumi.set(self, "copied_snapshots_retention_days", value)
122
147
 
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
+
123
160
  @property
124
161
  @pulumi.getter(name="enableCrossRegionCopy")
125
162
  def enable_cross_region_copy(self) -> Optional[pulumi.Input[bool]]:
126
163
  """
127
- Specifies whether to enable the system to automatically copy snapshots across regions.
164
+ Specifies whether to enable cross-region replication for snapshots. Valid values: `true`, `false`.
128
165
  """
129
166
  return pulumi.get(self, "enable_cross_region_copy")
130
167
 
@@ -134,9 +171,10 @@ class AutoSnapshotPolicyArgs:
134
171
 
135
172
  @property
136
173
  @pulumi.getter
174
+ @_utilities.deprecated("""Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.""")
137
175
  def name(self) -> Optional[pulumi.Input[str]]:
138
176
  """
139
- The snapshot policy name.
177
+ . Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.
140
178
  """
141
179
  return pulumi.get(self, "name")
142
180
 
@@ -144,6 +182,18 @@ class AutoSnapshotPolicyArgs:
144
182
  def name(self, value: Optional[pulumi.Input[str]]):
145
183
  pulumi.set(self, "name", value)
146
184
 
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
+
147
197
  @property
148
198
  @pulumi.getter
149
199
  def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
@@ -160,7 +210,7 @@ class AutoSnapshotPolicyArgs:
160
210
  @pulumi.getter(name="targetCopyRegions")
161
211
  def target_copy_regions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
162
212
  """
163
- The destination region to which the snapshot is copied. You can set a destination region.
213
+ The destination region to which to copy the snapshot. You can specify only a single destination region.
164
214
  """
165
215
  return pulumi.get(self, "target_copy_regions")
166
216
 
@@ -172,10 +222,15 @@ class AutoSnapshotPolicyArgs:
172
222
  @pulumi.input_type
173
223
  class _AutoSnapshotPolicyState:
174
224
  def __init__(__self__, *,
225
+ auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
175
226
  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,
176
229
  enable_cross_region_copy: Optional[pulumi.Input[bool]] = None,
177
230
  name: Optional[pulumi.Input[str]] = None,
231
+ region_id: Optional[pulumi.Input[str]] = None,
178
232
  repeat_weekdays: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
233
+ resource_group_id: Optional[pulumi.Input[str]] = None,
179
234
  retention_days: Optional[pulumi.Input[int]] = None,
180
235
  status: Optional[pulumi.Input[str]] = None,
181
236
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
@@ -183,34 +238,50 @@ class _AutoSnapshotPolicyState:
183
238
  time_points: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
184
239
  """
185
240
  Input properties used for looking up and filtering AutoSnapshotPolicy resources.
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.
241
+ :param pulumi.Input[str] auto_snapshot_policy_name: 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 (-).
242
+ :param pulumi.Input[int] copied_snapshots_retention_days: The retention period of the snapshot copy in the destination region. Unit: days. Valid values:
243
+ - `-1`: The snapshot copy is retained until it is deleted.
244
+ :param pulumi.Input['AutoSnapshotPolicyCopyEncryptionConfigurationArgs'] copy_encryption_configuration: The encryption parameters for cross-region snapshot replication. See `copy_encryption_configuration` below.
245
+ :param pulumi.Input[str] create_time: (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.
246
+ :param pulumi.Input[bool] enable_cross_region_copy: Specifies whether to enable cross-region replication for snapshots. Valid values: `true`, `false`.
247
+ :param pulumi.Input[str] name: . Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.
248
+ :param pulumi.Input[str] region_id: (Available since v1.236.0) The region ID of the automatic snapshot policy.
249
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The days of the week on which to create automatic snapshots. Valid values: `1` to `7`, which correspond to the days of the week. For example, `1` indicates Monday. One or more days can be specified.
250
+ :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.
251
+ :param pulumi.Input[int] retention_days: The retention period of the automatic snapshots. Unit: days. Valid values:
252
+ - `-1`: Automatic snapshots are retained until they are deleted.
253
+ :param pulumi.Input[str] status: The status of the automatic snapshot policy.
200
254
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
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
- """
255
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] target_copy_regions: The destination region to which to copy the snapshot. You can specify only a single destination region.
256
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The points in time of the day at which to create automatic snapshots.
257
+
258
+ The time is displayed in UTC+8. Unit: hours. Valid values: `0` to `23`, which correspond to the 24 points in time on the hour from 00:00:00 to 23:00:00. For example, 1 indicates 01:00:00. Multiple points in time can be specified.
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)
206
266
  if copied_snapshots_retention_days is not None:
207
267
  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)
208
272
  if enable_cross_region_copy is not None:
209
273
  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.""")
210
277
  if name is not None:
211
278
  pulumi.set(__self__, "name", name)
279
+ if region_id is not None:
280
+ pulumi.set(__self__, "region_id", region_id)
212
281
  if repeat_weekdays is not None:
213
282
  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)
214
285
  if retention_days is not None:
215
286
  pulumi.set(__self__, "retention_days", retention_days)
216
287
  if status is not None:
@@ -222,14 +293,24 @@ class _AutoSnapshotPolicyState:
222
293
  if time_points is not None:
223
294
  pulumi.set(__self__, "time_points", time_points)
224
295
 
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
+
225
308
  @property
226
309
  @pulumi.getter(name="copiedSnapshotsRetentionDays")
227
310
  def copied_snapshots_retention_days(self) -> Optional[pulumi.Input[int]]:
228
311
  """
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.
312
+ The retention period of the snapshot copy in the destination region. Unit: days. Valid values:
313
+ - `-1`: The snapshot copy is retained until it is deleted.
233
314
  """
234
315
  return pulumi.get(self, "copied_snapshots_retention_days")
235
316
 
@@ -237,11 +318,35 @@ class _AutoSnapshotPolicyState:
237
318
  def copied_snapshots_retention_days(self, value: Optional[pulumi.Input[int]]):
238
319
  pulumi.set(self, "copied_snapshots_retention_days", value)
239
320
 
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
+
240
345
  @property
241
346
  @pulumi.getter(name="enableCrossRegionCopy")
242
347
  def enable_cross_region_copy(self) -> Optional[pulumi.Input[bool]]:
243
348
  """
244
- Specifies whether to enable the system to automatically copy snapshots across regions.
349
+ Specifies whether to enable cross-region replication for snapshots. Valid values: `true`, `false`.
245
350
  """
246
351
  return pulumi.get(self, "enable_cross_region_copy")
247
352
 
@@ -251,9 +356,10 @@ class _AutoSnapshotPolicyState:
251
356
 
252
357
  @property
253
358
  @pulumi.getter
359
+ @_utilities.deprecated("""Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.""")
254
360
  def name(self) -> Optional[pulumi.Input[str]]:
255
361
  """
256
- The snapshot policy name.
362
+ . Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.
257
363
  """
258
364
  return pulumi.get(self, "name")
259
365
 
@@ -261,13 +367,23 @@ class _AutoSnapshotPolicyState:
261
367
  def name(self, value: Optional[pulumi.Input[str]]):
262
368
  pulumi.set(self, "name", value)
263
369
 
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
+
264
382
  @property
265
383
  @pulumi.getter(name="repeatWeekdays")
266
384
  def repeat_weekdays(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
267
385
  """
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 (,).
386
+ The days of the week on which to create automatic snapshots. Valid values: `1` to `7`, which correspond to the days of the week. For example, `1` indicates Monday. One or more days can be specified.
271
387
  """
272
388
  return pulumi.get(self, "repeat_weekdays")
273
389
 
@@ -275,14 +391,24 @@ class _AutoSnapshotPolicyState:
275
391
  def repeat_weekdays(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
276
392
  pulumi.set(self, "repeat_weekdays", value)
277
393
 
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
+
278
406
  @property
279
407
  @pulumi.getter(name="retentionDays")
280
408
  def retention_days(self) -> Optional[pulumi.Input[int]]:
281
409
  """
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.
410
+ The retention period of the automatic snapshots. Unit: days. Valid values:
411
+ - `-1`: Automatic snapshots are retained until they are deleted.
286
412
  """
287
413
  return pulumi.get(self, "retention_days")
288
414
 
@@ -294,7 +420,7 @@ class _AutoSnapshotPolicyState:
294
420
  @pulumi.getter
295
421
  def status(self) -> Optional[pulumi.Input[str]]:
296
422
  """
297
- The status of Auto Snapshot Policy.
423
+ The status of the automatic snapshot policy.
298
424
  """
299
425
  return pulumi.get(self, "status")
300
426
 
@@ -318,7 +444,7 @@ class _AutoSnapshotPolicyState:
318
444
  @pulumi.getter(name="targetCopyRegions")
319
445
  def target_copy_regions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
320
446
  """
321
- The destination region to which the snapshot is copied. You can set a destination region.
447
+ The destination region to which to copy the snapshot. You can specify only a single destination region.
322
448
  """
323
449
  return pulumi.get(self, "target_copy_regions")
324
450
 
@@ -330,9 +456,13 @@ class _AutoSnapshotPolicyState:
330
456
  @pulumi.getter(name="timePoints")
331
457
  def time_points(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
332
458
  """
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 (,).
459
+ The points in time of the day at which to create automatic snapshots.
460
+
461
+ The time is displayed in UTC+8. Unit: hours. Valid values: `0` to `23`, which correspond to the 24 points in time on the hour from 00:00:00 to 23:00:00. For example, 1 indicates 01:00:00. Multiple points in time can be specified.
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:
336
466
  """
337
467
  return pulumi.get(self, "time_points")
338
468
 
@@ -346,10 +476,13 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
346
476
  def __init__(__self__,
347
477
  resource_name: str,
348
478
  opts: Optional[pulumi.ResourceOptions] = None,
479
+ auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
349
480
  copied_snapshots_retention_days: Optional[pulumi.Input[int]] = None,
481
+ copy_encryption_configuration: Optional[pulumi.Input[Union['AutoSnapshotPolicyCopyEncryptionConfigurationArgs', 'AutoSnapshotPolicyCopyEncryptionConfigurationArgsDict']]] = None,
350
482
  enable_cross_region_copy: Optional[pulumi.Input[bool]] = None,
351
483
  name: Optional[pulumi.Input[str]] = None,
352
484
  repeat_weekdays: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
485
+ resource_group_id: Optional[pulumi.Input[str]] = None,
353
486
  retention_days: Optional[pulumi.Input[int]] = None,
354
487
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
355
488
  target_copy_regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -360,7 +493,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
360
493
 
361
494
  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).
362
495
 
363
- > **NOTE:** Available in v1.117.0+.
496
+ > **NOTE:** Available since v1.117.0.
364
497
 
365
498
  ## Example Usage
366
499
 
@@ -371,7 +504,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
371
504
  import pulumi_alicloud as alicloud
372
505
 
373
506
  example = alicloud.ecs.AutoSnapshotPolicy("example",
374
- name="tf-testAcc",
507
+ name="terraform-example",
375
508
  repeat_weekdays=[
376
509
  "1",
377
510
  "2",
@@ -395,24 +528,25 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
395
528
 
396
529
  :param str resource_name: The name of the resource.
397
530
  :param pulumi.ResourceOptions opts: Options for the resource.
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.
531
+ :param pulumi.Input[str] auto_snapshot_policy_name: 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 (-).
532
+ :param pulumi.Input[int] copied_snapshots_retention_days: The retention period of the snapshot copy in the destination region. Unit: days. Valid values:
533
+ - `-1`: The snapshot copy is retained until it is deleted.
534
+ :param pulumi.Input[Union['AutoSnapshotPolicyCopyEncryptionConfigurationArgs', 'AutoSnapshotPolicyCopyEncryptionConfigurationArgsDict']] copy_encryption_configuration: The encryption parameters for cross-region snapshot replication. See `copy_encryption_configuration` below.
535
+ :param pulumi.Input[bool] enable_cross_region_copy: Specifies whether to enable cross-region replication for snapshots. Valid values: `true`, `false`.
536
+ :param pulumi.Input[str] name: . Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.
537
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The days of the week on which to create automatic snapshots. Valid values: `1` to `7`, which correspond to the days of the week. For example, `1` indicates Monday. One or more days can be specified.
538
+ :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.
539
+ :param pulumi.Input[int] retention_days: The retention period of the automatic snapshots. Unit: days. Valid values:
540
+ - `-1`: Automatic snapshots are retained until they are deleted.
411
541
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
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 (,).
542
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] target_copy_regions: The destination region to which to copy the snapshot. You can specify only a single destination region.
543
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The points in time of the day at which to create automatic snapshots.
544
+
545
+ The time is displayed in UTC+8. Unit: hours. Valid values: `0` to `23`, which correspond to the 24 points in time on the hour from 00:00:00 to 23:00:00. For example, 1 indicates 01:00:00. Multiple points in time can be specified.
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:
416
550
  """
417
551
  ...
418
552
  @overload
@@ -425,7 +559,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
425
559
 
426
560
  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).
427
561
 
428
- > **NOTE:** Available in v1.117.0+.
562
+ > **NOTE:** Available since v1.117.0.
429
563
 
430
564
  ## Example Usage
431
565
 
@@ -436,7 +570,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
436
570
  import pulumi_alicloud as alicloud
437
571
 
438
572
  example = alicloud.ecs.AutoSnapshotPolicy("example",
439
- name="tf-testAcc",
573
+ name="terraform-example",
440
574
  repeat_weekdays=[
441
575
  "1",
442
576
  "2",
@@ -473,10 +607,13 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
473
607
  def _internal_init(__self__,
474
608
  resource_name: str,
475
609
  opts: Optional[pulumi.ResourceOptions] = None,
610
+ auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
476
611
  copied_snapshots_retention_days: Optional[pulumi.Input[int]] = None,
612
+ copy_encryption_configuration: Optional[pulumi.Input[Union['AutoSnapshotPolicyCopyEncryptionConfigurationArgs', 'AutoSnapshotPolicyCopyEncryptionConfigurationArgsDict']]] = None,
477
613
  enable_cross_region_copy: Optional[pulumi.Input[bool]] = None,
478
614
  name: Optional[pulumi.Input[str]] = None,
479
615
  repeat_weekdays: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
616
+ resource_group_id: Optional[pulumi.Input[str]] = None,
480
617
  retention_days: Optional[pulumi.Input[int]] = None,
481
618
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
482
619
  target_copy_regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -490,12 +627,15 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
490
627
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
491
628
  __props__ = AutoSnapshotPolicyArgs.__new__(AutoSnapshotPolicyArgs)
492
629
 
630
+ __props__.__dict__["auto_snapshot_policy_name"] = auto_snapshot_policy_name
493
631
  __props__.__dict__["copied_snapshots_retention_days"] = copied_snapshots_retention_days
632
+ __props__.__dict__["copy_encryption_configuration"] = copy_encryption_configuration
494
633
  __props__.__dict__["enable_cross_region_copy"] = enable_cross_region_copy
495
634
  __props__.__dict__["name"] = name
496
635
  if repeat_weekdays is None and not opts.urn:
497
636
  raise TypeError("Missing required property 'repeat_weekdays'")
498
637
  __props__.__dict__["repeat_weekdays"] = repeat_weekdays
638
+ __props__.__dict__["resource_group_id"] = resource_group_id
499
639
  if retention_days is None and not opts.urn:
500
640
  raise TypeError("Missing required property 'retention_days'")
501
641
  __props__.__dict__["retention_days"] = retention_days
@@ -504,6 +644,8 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
504
644
  if time_points is None and not opts.urn:
505
645
  raise TypeError("Missing required property 'time_points'")
506
646
  __props__.__dict__["time_points"] = time_points
647
+ __props__.__dict__["create_time"] = None
648
+ __props__.__dict__["region_id"] = None
507
649
  __props__.__dict__["status"] = None
508
650
  super(AutoSnapshotPolicy, __self__).__init__(
509
651
  'alicloud:ecs/autoSnapshotPolicy:AutoSnapshotPolicy',
@@ -515,10 +657,15 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
515
657
  def get(resource_name: str,
516
658
  id: pulumi.Input[str],
517
659
  opts: Optional[pulumi.ResourceOptions] = None,
660
+ auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
518
661
  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,
519
664
  enable_cross_region_copy: Optional[pulumi.Input[bool]] = None,
520
665
  name: Optional[pulumi.Input[str]] = None,
666
+ region_id: Optional[pulumi.Input[str]] = None,
521
667
  repeat_weekdays: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
668
+ resource_group_id: Optional[pulumi.Input[str]] = None,
522
669
  retention_days: Optional[pulumi.Input[int]] = None,
523
670
  status: Optional[pulumi.Input[str]] = None,
524
671
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
@@ -531,34 +678,42 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
531
678
  :param str resource_name: The unique name of the resulting resource.
532
679
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
533
680
  :param pulumi.ResourceOptions opts: Options for the resource.
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.
681
+ :param pulumi.Input[str] auto_snapshot_policy_name: 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 (-).
682
+ :param pulumi.Input[int] copied_snapshots_retention_days: The retention period of the snapshot copy in the destination region. Unit: days. Valid values:
683
+ - `-1`: The snapshot copy is retained until it is deleted.
684
+ :param pulumi.Input[Union['AutoSnapshotPolicyCopyEncryptionConfigurationArgs', 'AutoSnapshotPolicyCopyEncryptionConfigurationArgsDict']] copy_encryption_configuration: The encryption parameters for cross-region snapshot replication. See `copy_encryption_configuration` below.
685
+ :param pulumi.Input[str] create_time: (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.
686
+ :param pulumi.Input[bool] enable_cross_region_copy: Specifies whether to enable cross-region replication for snapshots. Valid values: `true`, `false`.
687
+ :param pulumi.Input[str] name: . Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.
688
+ :param pulumi.Input[str] region_id: (Available since v1.236.0) The region ID of the automatic snapshot policy.
689
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The days of the week on which to create automatic snapshots. Valid values: `1` to `7`, which correspond to the days of the week. For example, `1` indicates Monday. One or more days can be specified.
690
+ :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.
691
+ :param pulumi.Input[int] retention_days: The retention period of the automatic snapshots. Unit: days. Valid values:
692
+ - `-1`: Automatic snapshots are retained until they are deleted.
693
+ :param pulumi.Input[str] status: The status of the automatic snapshot policy.
548
694
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
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 (,).
695
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] target_copy_regions: The destination region to which to copy the snapshot. You can specify only a single destination region.
696
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The points in time of the day at which to create automatic snapshots.
697
+
698
+ The time is displayed in UTC+8. Unit: hours. Valid values: `0` to `23`, which correspond to the 24 points in time on the hour from 00:00:00 to 23:00:00. For example, 1 indicates 01:00:00. Multiple points in time can be specified.
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:
553
703
  """
554
704
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
555
705
 
556
706
  __props__ = _AutoSnapshotPolicyState.__new__(_AutoSnapshotPolicyState)
557
707
 
708
+ __props__.__dict__["auto_snapshot_policy_name"] = auto_snapshot_policy_name
558
709
  __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
559
712
  __props__.__dict__["enable_cross_region_copy"] = enable_cross_region_copy
560
713
  __props__.__dict__["name"] = name
714
+ __props__.__dict__["region_id"] = region_id
561
715
  __props__.__dict__["repeat_weekdays"] = repeat_weekdays
716
+ __props__.__dict__["resource_group_id"] = resource_group_id
562
717
  __props__.__dict__["retention_days"] = retention_days
563
718
  __props__.__dict__["status"] = status
564
719
  __props__.__dict__["tags"] = tags
@@ -566,51 +721,86 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
566
721
  __props__.__dict__["time_points"] = time_points
567
722
  return AutoSnapshotPolicy(resource_name, opts=opts, __props__=__props__)
568
723
 
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
+
569
732
  @property
570
733
  @pulumi.getter(name="copiedSnapshotsRetentionDays")
571
- def copied_snapshots_retention_days(self) -> pulumi.Output[Optional[int]]:
734
+ def copied_snapshots_retention_days(self) -> pulumi.Output[int]:
572
735
  """
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.
736
+ The retention period of the snapshot copy in the destination region. Unit: days. Valid values:
737
+ - `-1`: The snapshot copy is retained until it is deleted.
577
738
  """
578
739
  return pulumi.get(self, "copied_snapshots_retention_days")
579
740
 
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
+
580
757
  @property
581
758
  @pulumi.getter(name="enableCrossRegionCopy")
582
759
  def enable_cross_region_copy(self) -> pulumi.Output[Optional[bool]]:
583
760
  """
584
- Specifies whether to enable the system to automatically copy snapshots across regions.
761
+ Specifies whether to enable cross-region replication for snapshots. Valid values: `true`, `false`.
585
762
  """
586
763
  return pulumi.get(self, "enable_cross_region_copy")
587
764
 
588
765
  @property
589
766
  @pulumi.getter
767
+ @_utilities.deprecated("""Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.""")
590
768
  def name(self) -> pulumi.Output[str]:
591
769
  """
592
- The snapshot policy name.
770
+ . Field `name` has been deprecated from provider version 1.236.0. New field `auto_snapshot_policy_name` instead.
593
771
  """
594
772
  return pulumi.get(self, "name")
595
773
 
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
+
596
782
  @property
597
783
  @pulumi.getter(name="repeatWeekdays")
598
784
  def repeat_weekdays(self) -> pulumi.Output[Sequence[str]]:
599
785
  """
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 (,).
786
+ The days of the week on which to create automatic snapshots. Valid values: `1` to `7`, which correspond to the days of the week. For example, `1` indicates Monday. One or more days can be specified.
603
787
  """
604
788
  return pulumi.get(self, "repeat_weekdays")
605
789
 
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
+
606
798
  @property
607
799
  @pulumi.getter(name="retentionDays")
608
800
  def retention_days(self) -> pulumi.Output[int]:
609
801
  """
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.
802
+ The retention period of the automatic snapshots. Unit: days. Valid values:
803
+ - `-1`: Automatic snapshots are retained until they are deleted.
614
804
  """
615
805
  return pulumi.get(self, "retention_days")
616
806
 
@@ -618,7 +808,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
618
808
  @pulumi.getter
619
809
  def status(self) -> pulumi.Output[str]:
620
810
  """
621
- The status of Auto Snapshot Policy.
811
+ The status of the automatic snapshot policy.
622
812
  """
623
813
  return pulumi.get(self, "status")
624
814
 
@@ -634,7 +824,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
634
824
  @pulumi.getter(name="targetCopyRegions")
635
825
  def target_copy_regions(self) -> pulumi.Output[Optional[Sequence[str]]]:
636
826
  """
637
- The destination region to which the snapshot is copied. You can set a destination region.
827
+ The destination region to which to copy the snapshot. You can specify only a single destination region.
638
828
  """
639
829
  return pulumi.get(self, "target_copy_regions")
640
830
 
@@ -642,9 +832,13 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
642
832
  @pulumi.getter(name="timePoints")
643
833
  def time_points(self) -> pulumi.Output[Sequence[str]]:
644
834
  """
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 (,).
835
+ The points in time of the day at which to create automatic snapshots.
836
+
837
+ The time is displayed in UTC+8. Unit: hours. Valid values: `0` to `23`, which correspond to the 24 points in time on the hour from 00:00:00 to 23:00:00. For example, 1 indicates 01:00:00. Multiple points in time can be specified.
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:
648
842
  """
649
843
  return pulumi.get(self, "time_points")
650
844