pulumi-alicloud 3.68.0a1732771126__py3-none-any.whl → 3.69.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.
- pulumi_alicloud/__init__.py +96 -0
- pulumi_alicloud/adb/db_cluster.py +7 -0
- pulumi_alicloud/arms/__init__.py +2 -0
- pulumi_alicloud/arms/_inputs.py +42 -4
- pulumi_alicloud/arms/alert_robot.py +421 -0
- pulumi_alicloud/arms/dispatch_rule.py +4 -0
- pulumi_alicloud/arms/get_alert_robots.py +230 -0
- pulumi_alicloud/arms/get_dispatch_rules.py +99 -6
- pulumi_alicloud/arms/outputs.py +154 -13
- pulumi_alicloud/cdn/_inputs.py +3 -23
- pulumi_alicloud/cdn/domain_new.py +93 -51
- pulumi_alicloud/cdn/outputs.py +2 -16
- pulumi_alicloud/cdn/real_time_log_delivery.py +97 -46
- pulumi_alicloud/cen/get_flowlogs.py +250 -35
- pulumi_alicloud/cen/outputs.py +116 -17
- pulumi_alicloud/cfg/rule.py +4 -4
- pulumi_alicloud/cs/autoscaling_config.py +51 -0
- pulumi_alicloud/cs/node_pool.py +7 -0
- pulumi_alicloud/dataworks/__init__.py +4 -0
- pulumi_alicloud/dataworks/_inputs.py +95 -0
- pulumi_alicloud/dataworks/data_source.py +686 -0
- pulumi_alicloud/dataworks/data_source_shared_rule.py +378 -0
- pulumi_alicloud/dataworks/outputs.py +44 -0
- pulumi_alicloud/dataworks/project.py +294 -140
- pulumi_alicloud/dataworks/project_member.py +380 -0
- pulumi_alicloud/ecs/__init__.py +1 -0
- pulumi_alicloud/ecs/_inputs.py +126 -0
- pulumi_alicloud/ecs/auto_snapshot_policy.py +323 -129
- pulumi_alicloud/ecs/disk.py +156 -14
- pulumi_alicloud/ecs/ecs_disk.py +308 -97
- pulumi_alicloud/ecs/ecs_key_pair.py +77 -49
- pulumi_alicloud/ecs/image_pipeline_execution.py +245 -0
- pulumi_alicloud/ecs/instance.py +145 -0
- pulumi_alicloud/ecs/key_pair.py +27 -7
- pulumi_alicloud/ecs/outputs.py +125 -0
- pulumi_alicloud/ecs/snapshot_policy.py +154 -1
- pulumi_alicloud/emrv2/_inputs.py +875 -21
- pulumi_alicloud/emrv2/cluster.py +47 -0
- pulumi_alicloud/emrv2/outputs.py +580 -14
- pulumi_alicloud/gwlb/__init__.py +1 -0
- pulumi_alicloud/gwlb/_inputs.py +147 -126
- pulumi_alicloud/gwlb/get_zones.py +173 -0
- pulumi_alicloud/gwlb/listener.py +50 -50
- pulumi_alicloud/gwlb/load_balancer.py +78 -71
- pulumi_alicloud/gwlb/outputs.py +139 -84
- pulumi_alicloud/gwlb/server_group.py +162 -113
- 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 +9 -7
- pulumi_alicloud/kvstore/instance.py +21 -21
- pulumi_alicloud/kvstore/outputs.py +6 -6
- pulumi_alicloud/nas/_inputs.py +148 -0
- pulumi_alicloud/nas/file_system.py +482 -222
- pulumi_alicloud/nas/outputs.py +109 -0
- pulumi_alicloud/oss/__init__.py +1 -0
- pulumi_alicloud/oss/_inputs.py +1750 -0
- pulumi_alicloud/oss/bucket_website.py +416 -0
- pulumi_alicloud/oss/outputs.py +1338 -0
- pulumi_alicloud/pai/__init__.py +7 -0
- pulumi_alicloud/pai/_inputs.py +129 -0
- pulumi_alicloud/pai/outputs.py +83 -0
- pulumi_alicloud/pai/workspace_code_source.py +702 -0
- pulumi_alicloud/pai/workspace_dataset.py +1081 -0
- pulumi_alicloud/pai/workspace_datasetversion.py +818 -0
- pulumi_alicloud/pai/workspace_experiment.py +394 -0
- pulumi_alicloud/pai/workspace_run.py +344 -0
- pulumi_alicloud/pai/workspace_workspace.py +6 -6
- pulumi_alicloud/polardb/cluster.py +7 -7
- pulumi_alicloud/polardb/get_clusters.py +1 -1
- pulumi_alicloud/polardb/outputs.py +2 -2
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/redis/tair_instance.py +63 -30
- pulumi_alicloud/sae/application.py +1 -1
- pulumi_alicloud/slb/attachment.py +2 -6
- pulumi_alicloud/sls/__init__.py +1 -0
- pulumi_alicloud/sls/_inputs.py +484 -0
- pulumi_alicloud/sls/oss_export_sink.py +428 -0
- pulumi_alicloud/sls/outputs.py +346 -0
- pulumi_alicloud/vpc/network.py +7 -7
- {pulumi_alicloud-3.68.0a1732771126.dist-info → pulumi_alicloud-3.69.0.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.68.0a1732771126.dist-info → pulumi_alicloud-3.69.0.dist-info}/RECORD +84 -67
- {pulumi_alicloud-3.68.0a1732771126.dist-info → pulumi_alicloud-3.69.0.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.68.0a1732771126.dist-info → pulumi_alicloud-3.69.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
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
:param pulumi.Input[
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
:param pulumi.Input[
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
-
:param pulumi.Input[bool] enable_cross_region_copy: Specifies whether to enable
|
|
47
|
-
:param pulumi.Input[str] 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
|
|
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
|
|
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
|
|
84
|
-
-
|
|
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
|
|
99
|
-
|
|
100
|
-
|
|
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
|
|
113
|
-
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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[
|
|
187
|
-
|
|
188
|
-
-
|
|
189
|
-
|
|
190
|
-
:param pulumi.Input[
|
|
191
|
-
:param pulumi.Input[
|
|
192
|
-
:param pulumi.Input[
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
:param pulumi.Input[
|
|
196
|
-
|
|
197
|
-
-
|
|
198
|
-
|
|
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
|
|
202
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The
|
|
203
|
-
|
|
204
|
-
|
|
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
|
|
230
|
-
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
283
|
-
-
|
|
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
|
|
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
|
|
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
|
|
334
|
-
|
|
335
|
-
|
|
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
|
|
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="
|
|
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[
|
|
399
|
-
|
|
400
|
-
-
|
|
401
|
-
|
|
402
|
-
:param pulumi.Input[bool] enable_cross_region_copy: Specifies whether to enable
|
|
403
|
-
:param pulumi.Input[str] name:
|
|
404
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
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
|
|
413
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The
|
|
414
|
-
|
|
415
|
-
|
|
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
|
|
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="
|
|
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[
|
|
535
|
-
|
|
536
|
-
-
|
|
537
|
-
|
|
538
|
-
:param pulumi.Input[
|
|
539
|
-
:param pulumi.Input[
|
|
540
|
-
:param pulumi.Input[
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
:param pulumi.Input[
|
|
544
|
-
|
|
545
|
-
-
|
|
546
|
-
|
|
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
|
|
550
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] time_points: The
|
|
551
|
-
|
|
552
|
-
|
|
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[
|
|
734
|
+
def copied_snapshots_retention_days(self) -> pulumi.Output[int]:
|
|
572
735
|
"""
|
|
573
|
-
The retention period of the snapshot
|
|
574
|
-
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
611
|
-
-
|
|
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
|
|
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
|
|
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
|
|
646
|
-
|
|
647
|
-
|
|
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
|
|