pulumi-alicloud 3.63.0__py3-none-any.whl → 3.63.0a1726205090__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +0 -24
- pulumi_alicloud/alb/acl.py +19 -18
- pulumi_alicloud/alb/health_check_template.py +88 -96
- pulumi_alicloud/amqp/binding.py +36 -30
- pulumi_alicloud/cen/_inputs.py +14 -180
- pulumi_alicloud/cen/outputs.py +12 -173
- pulumi_alicloud/cen/traffic_marking_policy.py +53 -116
- pulumi_alicloud/cen/transit_router_vpc_attachment.py +119 -338
- pulumi_alicloud/cms/_inputs.py +6 -6
- pulumi_alicloud/cms/outputs.py +6 -6
- pulumi_alicloud/cr/chart_namespace.py +6 -14
- pulumi_alicloud/cr/endpoint_acl_policy.py +2 -10
- pulumi_alicloud/cr/namespace.py +2 -10
- pulumi_alicloud/cs/registry_enterprise_sync_rule.py +10 -10
- pulumi_alicloud/ddos/_inputs.py +9 -8
- pulumi_alicloud/ddos/bgp_ip.py +1 -1
- pulumi_alicloud/ddos/domain_resource.py +90 -446
- pulumi_alicloud/ddos/outputs.py +8 -7
- pulumi_alicloud/eci/container_group.py +0 -47
- pulumi_alicloud/ecs/_inputs.py +0 -28
- pulumi_alicloud/ecs/ecs_snapshot.py +77 -199
- pulumi_alicloud/ecs/outputs.py +0 -20
- pulumi_alicloud/ecs/snapshot.py +8 -26
- pulumi_alicloud/emrv2/_inputs.py +12 -12
- pulumi_alicloud/emrv2/outputs.py +12 -12
- pulumi_alicloud/ens/_inputs.py +2 -50
- pulumi_alicloud/ens/instance.py +184 -428
- pulumi_alicloud/ens/outputs.py +2 -57
- pulumi_alicloud/ess/__init__.py +0 -1
- pulumi_alicloud/ess/alarm.py +0 -47
- pulumi_alicloud/expressconnect/physical_connection.py +185 -321
- pulumi_alicloud/fc/trigger.py +24 -22
- pulumi_alicloud/ga/_inputs.py +5 -23
- pulumi_alicloud/ga/endpoint_group.py +14 -68
- pulumi_alicloud/ga/outputs.py +5 -21
- pulumi_alicloud/governance/account.py +0 -61
- pulumi_alicloud/gpdb/__init__.py +0 -4
- pulumi_alicloud/gpdb/_inputs.py +3 -361
- pulumi_alicloud/gpdb/instance.py +0 -47
- pulumi_alicloud/gpdb/outputs.py +4 -597
- pulumi_alicloud/mongodb/instance.py +0 -94
- pulumi_alicloud/nlb/_inputs.py +64 -120
- pulumi_alicloud/nlb/get_listeners.py +2 -32
- pulumi_alicloud/nlb/get_server_group_server_attachments.py +2 -8
- pulumi_alicloud/nlb/listener.py +245 -315
- pulumi_alicloud/nlb/listener_additional_certificate_attachment.py +25 -25
- pulumi_alicloud/nlb/load_balancer.py +212 -297
- pulumi_alicloud/nlb/load_balancer_security_group_attachment.py +39 -29
- pulumi_alicloud/nlb/loadbalancer_common_bandwidth_package_attachment.py +18 -22
- pulumi_alicloud/nlb/outputs.py +66 -122
- pulumi_alicloud/nlb/security_policy.py +25 -53
- pulumi_alicloud/nlb/server_group.py +133 -196
- pulumi_alicloud/ocean/base_instance.py +163 -498
- pulumi_alicloud/oos/get_secret_parameters.py +9 -111
- pulumi_alicloud/oos/outputs.py +11 -22
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/ram/get_account_alias.py +2 -35
- pulumi_alicloud/rds/instance.py +21 -21
- pulumi_alicloud/rocketmq/_inputs.py +22 -79
- pulumi_alicloud/rocketmq/outputs.py +21 -85
- pulumi_alicloud/rocketmq/rocket_mq_instance.py +113 -307
- pulumi_alicloud/servicemesh/extension_provider.py +2 -2
- pulumi_alicloud/vpc/common_bandwith_package_attachment.py +2 -2
- pulumi_alicloud/vpc/peer_connection.py +59 -127
- pulumi_alicloud/vpc/peer_connection_accepter.py +42 -263
- pulumi_alicloud/vpc/route_entry.py +210 -232
- {pulumi_alicloud-3.63.0.dist-info → pulumi_alicloud-3.63.0a1726205090.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.63.0.dist-info → pulumi_alicloud-3.63.0a1726205090.dist-info}/RECORD +70 -75
- {pulumi_alicloud-3.63.0.dist-info → pulumi_alicloud-3.63.0a1726205090.dist-info}/WHEEL +1 -1
- pulumi_alicloud/ess/server_group_attachment.py +0 -552
- pulumi_alicloud/gpdb/db_instance_ip_array.py +0 -533
- pulumi_alicloud/gpdb/get_data_backups.py +0 -288
- pulumi_alicloud/gpdb/get_log_backups.py +0 -225
- pulumi_alicloud/gpdb/streaming_job.py +0 -1568
- {pulumi_alicloud-3.63.0.dist-info → pulumi_alicloud-3.63.0a1726205090.dist-info}/top_level.txt +0 -0
|
@@ -28,16 +28,18 @@ class EcsSnapshotArgs:
|
|
|
28
28
|
"""
|
|
29
29
|
The set of arguments for constructing a EcsSnapshot resource.
|
|
30
30
|
:param pulumi.Input[str] disk_id: The ID of the disk.
|
|
31
|
-
:param pulumi.Input[str] category: The category of the snapshot. Valid
|
|
31
|
+
:param pulumi.Input[str] category: The category of the snapshot. Valid Values: `standard` and `flash`.
|
|
32
32
|
:param pulumi.Input[str] description: The description of the snapshot.
|
|
33
|
-
:param pulumi.Input[bool] force: Specifies whether to
|
|
34
|
-
:param pulumi.Input[bool] instant_access:
|
|
35
|
-
:param pulumi.Input[int] instant_access_retention_days:
|
|
33
|
+
:param pulumi.Input[bool] force: Specifies whether to forcibly delete the snapshot that has been used to create disks.
|
|
34
|
+
:param pulumi.Input[bool] instant_access: Specifies whether to enable the instant access feature.
|
|
35
|
+
:param pulumi.Input[int] instant_access_retention_days: Specifies the retention period of the instant access feature. After the retention period ends, the snapshot is automatically released.
|
|
36
36
|
:param pulumi.Input[str] name: Field `name` has been deprecated from provider version 1.120.0. New field `snapshot_name` instead.
|
|
37
|
-
:param pulumi.Input[str] resource_group_id: The
|
|
38
|
-
:param pulumi.Input[int] retention_days: The retention period of the snapshot.
|
|
37
|
+
:param pulumi.Input[str] resource_group_id: The resource group id.
|
|
38
|
+
:param pulumi.Input[int] retention_days: The retention period of the snapshot.
|
|
39
39
|
:param pulumi.Input[str] snapshot_name: The name of the snapshot.
|
|
40
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the
|
|
40
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the snapshot.
|
|
41
|
+
|
|
42
|
+
> **NOTE:** If `force` is true, After an snapshot is deleted, the disks created from this snapshot cannot be re-initialized.
|
|
41
43
|
"""
|
|
42
44
|
pulumi.set(__self__, "disk_id", disk_id)
|
|
43
45
|
if category is not None:
|
|
@@ -46,19 +48,13 @@ class EcsSnapshotArgs:
|
|
|
46
48
|
pulumi.set(__self__, "description", description)
|
|
47
49
|
if force is not None:
|
|
48
50
|
pulumi.set(__self__, "force", force)
|
|
49
|
-
if instant_access is not None:
|
|
50
|
-
warnings.warn("""Field `instant_access` has been deprecated from provider version 1.231.0.""", DeprecationWarning)
|
|
51
|
-
pulumi.log.warn("""instant_access is deprecated: Field `instant_access` has been deprecated from provider version 1.231.0.""")
|
|
52
51
|
if instant_access is not None:
|
|
53
52
|
pulumi.set(__self__, "instant_access", instant_access)
|
|
54
|
-
if instant_access_retention_days is not None:
|
|
55
|
-
warnings.warn("""Field `instant_access_retention_days` has been deprecated from provider version 1.231.0.""", DeprecationWarning)
|
|
56
|
-
pulumi.log.warn("""instant_access_retention_days is deprecated: Field `instant_access_retention_days` has been deprecated from provider version 1.231.0.""")
|
|
57
53
|
if instant_access_retention_days is not None:
|
|
58
54
|
pulumi.set(__self__, "instant_access_retention_days", instant_access_retention_days)
|
|
59
55
|
if name is not None:
|
|
60
|
-
warnings.warn("""Field
|
|
61
|
-
pulumi.log.warn("""name is deprecated: Field
|
|
56
|
+
warnings.warn("""Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead.""", DeprecationWarning)
|
|
57
|
+
pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead.""")
|
|
62
58
|
if name is not None:
|
|
63
59
|
pulumi.set(__self__, "name", name)
|
|
64
60
|
if resource_group_id is not None:
|
|
@@ -86,7 +82,7 @@ class EcsSnapshotArgs:
|
|
|
86
82
|
@pulumi.getter
|
|
87
83
|
def category(self) -> Optional[pulumi.Input[str]]:
|
|
88
84
|
"""
|
|
89
|
-
The category of the snapshot. Valid
|
|
85
|
+
The category of the snapshot. Valid Values: `standard` and `flash`.
|
|
90
86
|
"""
|
|
91
87
|
return pulumi.get(self, "category")
|
|
92
88
|
|
|
@@ -110,7 +106,7 @@ class EcsSnapshotArgs:
|
|
|
110
106
|
@pulumi.getter
|
|
111
107
|
def force(self) -> Optional[pulumi.Input[bool]]:
|
|
112
108
|
"""
|
|
113
|
-
Specifies whether to
|
|
109
|
+
Specifies whether to forcibly delete the snapshot that has been used to create disks.
|
|
114
110
|
"""
|
|
115
111
|
return pulumi.get(self, "force")
|
|
116
112
|
|
|
@@ -120,10 +116,9 @@ class EcsSnapshotArgs:
|
|
|
120
116
|
|
|
121
117
|
@property
|
|
122
118
|
@pulumi.getter(name="instantAccess")
|
|
123
|
-
@_utilities.deprecated("""Field `instant_access` has been deprecated from provider version 1.231.0.""")
|
|
124
119
|
def instant_access(self) -> Optional[pulumi.Input[bool]]:
|
|
125
120
|
"""
|
|
126
|
-
|
|
121
|
+
Specifies whether to enable the instant access feature.
|
|
127
122
|
"""
|
|
128
123
|
return pulumi.get(self, "instant_access")
|
|
129
124
|
|
|
@@ -133,10 +128,9 @@ class EcsSnapshotArgs:
|
|
|
133
128
|
|
|
134
129
|
@property
|
|
135
130
|
@pulumi.getter(name="instantAccessRetentionDays")
|
|
136
|
-
@_utilities.deprecated("""Field `instant_access_retention_days` has been deprecated from provider version 1.231.0.""")
|
|
137
131
|
def instant_access_retention_days(self) -> Optional[pulumi.Input[int]]:
|
|
138
132
|
"""
|
|
139
|
-
|
|
133
|
+
Specifies the retention period of the instant access feature. After the retention period ends, the snapshot is automatically released.
|
|
140
134
|
"""
|
|
141
135
|
return pulumi.get(self, "instant_access_retention_days")
|
|
142
136
|
|
|
@@ -146,7 +140,7 @@ class EcsSnapshotArgs:
|
|
|
146
140
|
|
|
147
141
|
@property
|
|
148
142
|
@pulumi.getter
|
|
149
|
-
@_utilities.deprecated("""Field
|
|
143
|
+
@_utilities.deprecated("""Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead.""")
|
|
150
144
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
151
145
|
"""
|
|
152
146
|
Field `name` has been deprecated from provider version 1.120.0. New field `snapshot_name` instead.
|
|
@@ -161,7 +155,7 @@ class EcsSnapshotArgs:
|
|
|
161
155
|
@pulumi.getter(name="resourceGroupId")
|
|
162
156
|
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
163
157
|
"""
|
|
164
|
-
The
|
|
158
|
+
The resource group id.
|
|
165
159
|
"""
|
|
166
160
|
return pulumi.get(self, "resource_group_id")
|
|
167
161
|
|
|
@@ -173,7 +167,7 @@ class EcsSnapshotArgs:
|
|
|
173
167
|
@pulumi.getter(name="retentionDays")
|
|
174
168
|
def retention_days(self) -> Optional[pulumi.Input[int]]:
|
|
175
169
|
"""
|
|
176
|
-
The retention period of the snapshot.
|
|
170
|
+
The retention period of the snapshot.
|
|
177
171
|
"""
|
|
178
172
|
return pulumi.get(self, "retention_days")
|
|
179
173
|
|
|
@@ -197,7 +191,9 @@ class EcsSnapshotArgs:
|
|
|
197
191
|
@pulumi.getter
|
|
198
192
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
199
193
|
"""
|
|
200
|
-
A mapping of tags to assign to the
|
|
194
|
+
A mapping of tags to assign to the snapshot.
|
|
195
|
+
|
|
196
|
+
> **NOTE:** If `force` is true, After an snapshot is deleted, the disks created from this snapshot cannot be re-initialized.
|
|
201
197
|
"""
|
|
202
198
|
return pulumi.get(self, "tags")
|
|
203
199
|
|
|
@@ -223,18 +219,20 @@ class _EcsSnapshotState:
|
|
|
223
219
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
|
|
224
220
|
"""
|
|
225
221
|
Input properties used for looking up and filtering EcsSnapshot resources.
|
|
226
|
-
:param pulumi.Input[str] category: The category of the snapshot. Valid
|
|
222
|
+
:param pulumi.Input[str] category: The category of the snapshot. Valid Values: `standard` and `flash`.
|
|
227
223
|
:param pulumi.Input[str] description: The description of the snapshot.
|
|
228
224
|
:param pulumi.Input[str] disk_id: The ID of the disk.
|
|
229
|
-
:param pulumi.Input[bool] force: Specifies whether to
|
|
230
|
-
:param pulumi.Input[bool] instant_access:
|
|
231
|
-
:param pulumi.Input[int] instant_access_retention_days:
|
|
225
|
+
:param pulumi.Input[bool] force: Specifies whether to forcibly delete the snapshot that has been used to create disks.
|
|
226
|
+
:param pulumi.Input[bool] instant_access: Specifies whether to enable the instant access feature.
|
|
227
|
+
:param pulumi.Input[int] instant_access_retention_days: Specifies the retention period of the instant access feature. After the retention period ends, the snapshot is automatically released.
|
|
232
228
|
:param pulumi.Input[str] name: Field `name` has been deprecated from provider version 1.120.0. New field `snapshot_name` instead.
|
|
233
|
-
:param pulumi.Input[str] resource_group_id: The
|
|
234
|
-
:param pulumi.Input[int] retention_days: The retention period of the snapshot.
|
|
229
|
+
:param pulumi.Input[str] resource_group_id: The resource group id.
|
|
230
|
+
:param pulumi.Input[int] retention_days: The retention period of the snapshot.
|
|
235
231
|
:param pulumi.Input[str] snapshot_name: The name of the snapshot.
|
|
236
|
-
:param pulumi.Input[str] status: The status of
|
|
237
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the
|
|
232
|
+
:param pulumi.Input[str] status: The status of snapshot.
|
|
233
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the snapshot.
|
|
234
|
+
|
|
235
|
+
> **NOTE:** If `force` is true, After an snapshot is deleted, the disks created from this snapshot cannot be re-initialized.
|
|
238
236
|
"""
|
|
239
237
|
if category is not None:
|
|
240
238
|
pulumi.set(__self__, "category", category)
|
|
@@ -244,19 +242,13 @@ class _EcsSnapshotState:
|
|
|
244
242
|
pulumi.set(__self__, "disk_id", disk_id)
|
|
245
243
|
if force is not None:
|
|
246
244
|
pulumi.set(__self__, "force", force)
|
|
247
|
-
if instant_access is not None:
|
|
248
|
-
warnings.warn("""Field `instant_access` has been deprecated from provider version 1.231.0.""", DeprecationWarning)
|
|
249
|
-
pulumi.log.warn("""instant_access is deprecated: Field `instant_access` has been deprecated from provider version 1.231.0.""")
|
|
250
245
|
if instant_access is not None:
|
|
251
246
|
pulumi.set(__self__, "instant_access", instant_access)
|
|
252
|
-
if instant_access_retention_days is not None:
|
|
253
|
-
warnings.warn("""Field `instant_access_retention_days` has been deprecated from provider version 1.231.0.""", DeprecationWarning)
|
|
254
|
-
pulumi.log.warn("""instant_access_retention_days is deprecated: Field `instant_access_retention_days` has been deprecated from provider version 1.231.0.""")
|
|
255
247
|
if instant_access_retention_days is not None:
|
|
256
248
|
pulumi.set(__self__, "instant_access_retention_days", instant_access_retention_days)
|
|
257
249
|
if name is not None:
|
|
258
|
-
warnings.warn("""Field
|
|
259
|
-
pulumi.log.warn("""name is deprecated: Field
|
|
250
|
+
warnings.warn("""Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead.""", DeprecationWarning)
|
|
251
|
+
pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead.""")
|
|
260
252
|
if name is not None:
|
|
261
253
|
pulumi.set(__self__, "name", name)
|
|
262
254
|
if resource_group_id is not None:
|
|
@@ -274,7 +266,7 @@ class _EcsSnapshotState:
|
|
|
274
266
|
@pulumi.getter
|
|
275
267
|
def category(self) -> Optional[pulumi.Input[str]]:
|
|
276
268
|
"""
|
|
277
|
-
The category of the snapshot. Valid
|
|
269
|
+
The category of the snapshot. Valid Values: `standard` and `flash`.
|
|
278
270
|
"""
|
|
279
271
|
return pulumi.get(self, "category")
|
|
280
272
|
|
|
@@ -310,7 +302,7 @@ class _EcsSnapshotState:
|
|
|
310
302
|
@pulumi.getter
|
|
311
303
|
def force(self) -> Optional[pulumi.Input[bool]]:
|
|
312
304
|
"""
|
|
313
|
-
Specifies whether to
|
|
305
|
+
Specifies whether to forcibly delete the snapshot that has been used to create disks.
|
|
314
306
|
"""
|
|
315
307
|
return pulumi.get(self, "force")
|
|
316
308
|
|
|
@@ -320,10 +312,9 @@ class _EcsSnapshotState:
|
|
|
320
312
|
|
|
321
313
|
@property
|
|
322
314
|
@pulumi.getter(name="instantAccess")
|
|
323
|
-
@_utilities.deprecated("""Field `instant_access` has been deprecated from provider version 1.231.0.""")
|
|
324
315
|
def instant_access(self) -> Optional[pulumi.Input[bool]]:
|
|
325
316
|
"""
|
|
326
|
-
|
|
317
|
+
Specifies whether to enable the instant access feature.
|
|
327
318
|
"""
|
|
328
319
|
return pulumi.get(self, "instant_access")
|
|
329
320
|
|
|
@@ -333,10 +324,9 @@ class _EcsSnapshotState:
|
|
|
333
324
|
|
|
334
325
|
@property
|
|
335
326
|
@pulumi.getter(name="instantAccessRetentionDays")
|
|
336
|
-
@_utilities.deprecated("""Field `instant_access_retention_days` has been deprecated from provider version 1.231.0.""")
|
|
337
327
|
def instant_access_retention_days(self) -> Optional[pulumi.Input[int]]:
|
|
338
328
|
"""
|
|
339
|
-
|
|
329
|
+
Specifies the retention period of the instant access feature. After the retention period ends, the snapshot is automatically released.
|
|
340
330
|
"""
|
|
341
331
|
return pulumi.get(self, "instant_access_retention_days")
|
|
342
332
|
|
|
@@ -346,7 +336,7 @@ class _EcsSnapshotState:
|
|
|
346
336
|
|
|
347
337
|
@property
|
|
348
338
|
@pulumi.getter
|
|
349
|
-
@_utilities.deprecated("""Field
|
|
339
|
+
@_utilities.deprecated("""Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead.""")
|
|
350
340
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
351
341
|
"""
|
|
352
342
|
Field `name` has been deprecated from provider version 1.120.0. New field `snapshot_name` instead.
|
|
@@ -361,7 +351,7 @@ class _EcsSnapshotState:
|
|
|
361
351
|
@pulumi.getter(name="resourceGroupId")
|
|
362
352
|
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
363
353
|
"""
|
|
364
|
-
The
|
|
354
|
+
The resource group id.
|
|
365
355
|
"""
|
|
366
356
|
return pulumi.get(self, "resource_group_id")
|
|
367
357
|
|
|
@@ -373,7 +363,7 @@ class _EcsSnapshotState:
|
|
|
373
363
|
@pulumi.getter(name="retentionDays")
|
|
374
364
|
def retention_days(self) -> Optional[pulumi.Input[int]]:
|
|
375
365
|
"""
|
|
376
|
-
The retention period of the snapshot.
|
|
366
|
+
The retention period of the snapshot.
|
|
377
367
|
"""
|
|
378
368
|
return pulumi.get(self, "retention_days")
|
|
379
369
|
|
|
@@ -397,7 +387,7 @@ class _EcsSnapshotState:
|
|
|
397
387
|
@pulumi.getter
|
|
398
388
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
399
389
|
"""
|
|
400
|
-
The status of
|
|
390
|
+
The status of snapshot.
|
|
401
391
|
"""
|
|
402
392
|
return pulumi.get(self, "status")
|
|
403
393
|
|
|
@@ -409,7 +399,9 @@ class _EcsSnapshotState:
|
|
|
409
399
|
@pulumi.getter
|
|
410
400
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
411
401
|
"""
|
|
412
|
-
A mapping of tags to assign to the
|
|
402
|
+
A mapping of tags to assign to the snapshot.
|
|
403
|
+
|
|
404
|
+
> **NOTE:** If `force` is true, After an snapshot is deleted, the disks created from this snapshot cannot be re-initialized.
|
|
413
405
|
"""
|
|
414
406
|
return pulumi.get(self, "tags")
|
|
415
407
|
|
|
@@ -440,66 +432,7 @@ class EcsSnapshot(pulumi.CustomResource):
|
|
|
440
432
|
|
|
441
433
|
For information about ECS Snapshot and how to use it, see [What is Snapshot](https://www.alibabacloud.com/help/en/doc-detail/25524.htm).
|
|
442
434
|
|
|
443
|
-
> **NOTE:** Available
|
|
444
|
-
|
|
445
|
-
## Example Usage
|
|
446
|
-
|
|
447
|
-
Basic Usage
|
|
448
|
-
|
|
449
|
-
```python
|
|
450
|
-
import pulumi
|
|
451
|
-
import pulumi_alicloud as alicloud
|
|
452
|
-
|
|
453
|
-
config = pulumi.Config()
|
|
454
|
-
name = config.get("name")
|
|
455
|
-
if name is None:
|
|
456
|
-
name = "terraform-example"
|
|
457
|
-
default = alicloud.get_zones(available_disk_category="cloud_essd",
|
|
458
|
-
available_resource_creation="VSwitch")
|
|
459
|
-
default_get_images = alicloud.ecs.get_images(most_recent=True,
|
|
460
|
-
owners="system")
|
|
461
|
-
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=default.zones[0].id,
|
|
462
|
-
image_id=default_get_images.images[0].id,
|
|
463
|
-
system_disk_category="cloud_essd")
|
|
464
|
-
default_network = alicloud.vpc.Network("default",
|
|
465
|
-
vpc_name=name,
|
|
466
|
-
cidr_block="192.168.0.0/16")
|
|
467
|
-
default_switch = alicloud.vpc.Switch("default",
|
|
468
|
-
vswitch_name=name,
|
|
469
|
-
vpc_id=default_network.id,
|
|
470
|
-
cidr_block="192.168.192.0/24",
|
|
471
|
-
zone_id=default.zones[0].id)
|
|
472
|
-
default_security_group = alicloud.ecs.SecurityGroup("default",
|
|
473
|
-
name=name,
|
|
474
|
-
vpc_id=default_network.id)
|
|
475
|
-
default_instance = alicloud.ecs.Instance("default",
|
|
476
|
-
image_id=default_get_images.images[0].id,
|
|
477
|
-
instance_type=default_get_instance_types.instance_types[0].id,
|
|
478
|
-
security_groups=[__item.id for __item in [default_security_group]],
|
|
479
|
-
internet_charge_type="PayByTraffic",
|
|
480
|
-
internet_max_bandwidth_out=10,
|
|
481
|
-
availability_zone=default_get_instance_types.instance_types[0].availability_zones[0],
|
|
482
|
-
instance_charge_type="PostPaid",
|
|
483
|
-
system_disk_category="cloud_essd",
|
|
484
|
-
vswitch_id=default_switch.id,
|
|
485
|
-
instance_name=name,
|
|
486
|
-
data_disks=[{
|
|
487
|
-
"category": "cloud_essd",
|
|
488
|
-
"size": 20,
|
|
489
|
-
}])
|
|
490
|
-
default_ecs_disk = alicloud.ecs.EcsDisk("default",
|
|
491
|
-
disk_name=name,
|
|
492
|
-
zone_id=default_get_instance_types.instance_types[0].availability_zones[0],
|
|
493
|
-
category="cloud_essd",
|
|
494
|
-
size=500)
|
|
495
|
-
default_ecs_disk_attachment = alicloud.ecs.EcsDiskAttachment("default",
|
|
496
|
-
disk_id=default_ecs_disk.id,
|
|
497
|
-
instance_id=default_instance.id)
|
|
498
|
-
default_ecs_snapshot = alicloud.ecs.EcsSnapshot("default",
|
|
499
|
-
disk_id=default_ecs_disk_attachment.disk_id,
|
|
500
|
-
category="standard",
|
|
501
|
-
retention_days=20)
|
|
502
|
-
```
|
|
435
|
+
> **NOTE:** Available in v1.120.0+.
|
|
503
436
|
|
|
504
437
|
## Import
|
|
505
438
|
|
|
@@ -511,17 +444,19 @@ class EcsSnapshot(pulumi.CustomResource):
|
|
|
511
444
|
|
|
512
445
|
:param str resource_name: The name of the resource.
|
|
513
446
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
514
|
-
:param pulumi.Input[str] category: The category of the snapshot. Valid
|
|
447
|
+
:param pulumi.Input[str] category: The category of the snapshot. Valid Values: `standard` and `flash`.
|
|
515
448
|
:param pulumi.Input[str] description: The description of the snapshot.
|
|
516
449
|
:param pulumi.Input[str] disk_id: The ID of the disk.
|
|
517
|
-
:param pulumi.Input[bool] force: Specifies whether to
|
|
518
|
-
:param pulumi.Input[bool] instant_access:
|
|
519
|
-
:param pulumi.Input[int] instant_access_retention_days:
|
|
450
|
+
:param pulumi.Input[bool] force: Specifies whether to forcibly delete the snapshot that has been used to create disks.
|
|
451
|
+
:param pulumi.Input[bool] instant_access: Specifies whether to enable the instant access feature.
|
|
452
|
+
:param pulumi.Input[int] instant_access_retention_days: Specifies the retention period of the instant access feature. After the retention period ends, the snapshot is automatically released.
|
|
520
453
|
:param pulumi.Input[str] name: Field `name` has been deprecated from provider version 1.120.0. New field `snapshot_name` instead.
|
|
521
|
-
:param pulumi.Input[str] resource_group_id: The
|
|
522
|
-
:param pulumi.Input[int] retention_days: The retention period of the snapshot.
|
|
454
|
+
:param pulumi.Input[str] resource_group_id: The resource group id.
|
|
455
|
+
:param pulumi.Input[int] retention_days: The retention period of the snapshot.
|
|
523
456
|
:param pulumi.Input[str] snapshot_name: The name of the snapshot.
|
|
524
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the
|
|
457
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the snapshot.
|
|
458
|
+
|
|
459
|
+
> **NOTE:** If `force` is true, After an snapshot is deleted, the disks created from this snapshot cannot be re-initialized.
|
|
525
460
|
"""
|
|
526
461
|
...
|
|
527
462
|
@overload
|
|
@@ -534,66 +469,7 @@ class EcsSnapshot(pulumi.CustomResource):
|
|
|
534
469
|
|
|
535
470
|
For information about ECS Snapshot and how to use it, see [What is Snapshot](https://www.alibabacloud.com/help/en/doc-detail/25524.htm).
|
|
536
471
|
|
|
537
|
-
> **NOTE:** Available
|
|
538
|
-
|
|
539
|
-
## Example Usage
|
|
540
|
-
|
|
541
|
-
Basic Usage
|
|
542
|
-
|
|
543
|
-
```python
|
|
544
|
-
import pulumi
|
|
545
|
-
import pulumi_alicloud as alicloud
|
|
546
|
-
|
|
547
|
-
config = pulumi.Config()
|
|
548
|
-
name = config.get("name")
|
|
549
|
-
if name is None:
|
|
550
|
-
name = "terraform-example"
|
|
551
|
-
default = alicloud.get_zones(available_disk_category="cloud_essd",
|
|
552
|
-
available_resource_creation="VSwitch")
|
|
553
|
-
default_get_images = alicloud.ecs.get_images(most_recent=True,
|
|
554
|
-
owners="system")
|
|
555
|
-
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=default.zones[0].id,
|
|
556
|
-
image_id=default_get_images.images[0].id,
|
|
557
|
-
system_disk_category="cloud_essd")
|
|
558
|
-
default_network = alicloud.vpc.Network("default",
|
|
559
|
-
vpc_name=name,
|
|
560
|
-
cidr_block="192.168.0.0/16")
|
|
561
|
-
default_switch = alicloud.vpc.Switch("default",
|
|
562
|
-
vswitch_name=name,
|
|
563
|
-
vpc_id=default_network.id,
|
|
564
|
-
cidr_block="192.168.192.0/24",
|
|
565
|
-
zone_id=default.zones[0].id)
|
|
566
|
-
default_security_group = alicloud.ecs.SecurityGroup("default",
|
|
567
|
-
name=name,
|
|
568
|
-
vpc_id=default_network.id)
|
|
569
|
-
default_instance = alicloud.ecs.Instance("default",
|
|
570
|
-
image_id=default_get_images.images[0].id,
|
|
571
|
-
instance_type=default_get_instance_types.instance_types[0].id,
|
|
572
|
-
security_groups=[__item.id for __item in [default_security_group]],
|
|
573
|
-
internet_charge_type="PayByTraffic",
|
|
574
|
-
internet_max_bandwidth_out=10,
|
|
575
|
-
availability_zone=default_get_instance_types.instance_types[0].availability_zones[0],
|
|
576
|
-
instance_charge_type="PostPaid",
|
|
577
|
-
system_disk_category="cloud_essd",
|
|
578
|
-
vswitch_id=default_switch.id,
|
|
579
|
-
instance_name=name,
|
|
580
|
-
data_disks=[{
|
|
581
|
-
"category": "cloud_essd",
|
|
582
|
-
"size": 20,
|
|
583
|
-
}])
|
|
584
|
-
default_ecs_disk = alicloud.ecs.EcsDisk("default",
|
|
585
|
-
disk_name=name,
|
|
586
|
-
zone_id=default_get_instance_types.instance_types[0].availability_zones[0],
|
|
587
|
-
category="cloud_essd",
|
|
588
|
-
size=500)
|
|
589
|
-
default_ecs_disk_attachment = alicloud.ecs.EcsDiskAttachment("default",
|
|
590
|
-
disk_id=default_ecs_disk.id,
|
|
591
|
-
instance_id=default_instance.id)
|
|
592
|
-
default_ecs_snapshot = alicloud.ecs.EcsSnapshot("default",
|
|
593
|
-
disk_id=default_ecs_disk_attachment.disk_id,
|
|
594
|
-
category="standard",
|
|
595
|
-
retention_days=20)
|
|
596
|
-
```
|
|
472
|
+
> **NOTE:** Available in v1.120.0+.
|
|
597
473
|
|
|
598
474
|
## Import
|
|
599
475
|
|
|
@@ -681,18 +557,20 @@ class EcsSnapshot(pulumi.CustomResource):
|
|
|
681
557
|
:param str resource_name: The unique name of the resulting resource.
|
|
682
558
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
683
559
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
684
|
-
:param pulumi.Input[str] category: The category of the snapshot. Valid
|
|
560
|
+
:param pulumi.Input[str] category: The category of the snapshot. Valid Values: `standard` and `flash`.
|
|
685
561
|
:param pulumi.Input[str] description: The description of the snapshot.
|
|
686
562
|
:param pulumi.Input[str] disk_id: The ID of the disk.
|
|
687
|
-
:param pulumi.Input[bool] force: Specifies whether to
|
|
688
|
-
:param pulumi.Input[bool] instant_access:
|
|
689
|
-
:param pulumi.Input[int] instant_access_retention_days:
|
|
563
|
+
:param pulumi.Input[bool] force: Specifies whether to forcibly delete the snapshot that has been used to create disks.
|
|
564
|
+
:param pulumi.Input[bool] instant_access: Specifies whether to enable the instant access feature.
|
|
565
|
+
:param pulumi.Input[int] instant_access_retention_days: Specifies the retention period of the instant access feature. After the retention period ends, the snapshot is automatically released.
|
|
690
566
|
:param pulumi.Input[str] name: Field `name` has been deprecated from provider version 1.120.0. New field `snapshot_name` instead.
|
|
691
|
-
:param pulumi.Input[str] resource_group_id: The
|
|
692
|
-
:param pulumi.Input[int] retention_days: The retention period of the snapshot.
|
|
567
|
+
:param pulumi.Input[str] resource_group_id: The resource group id.
|
|
568
|
+
:param pulumi.Input[int] retention_days: The retention period of the snapshot.
|
|
693
569
|
:param pulumi.Input[str] snapshot_name: The name of the snapshot.
|
|
694
|
-
:param pulumi.Input[str] status: The status of
|
|
695
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the
|
|
570
|
+
:param pulumi.Input[str] status: The status of snapshot.
|
|
571
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the snapshot.
|
|
572
|
+
|
|
573
|
+
> **NOTE:** If `force` is true, After an snapshot is deleted, the disks created from this snapshot cannot be re-initialized.
|
|
696
574
|
"""
|
|
697
575
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
698
576
|
|
|
@@ -714,9 +592,9 @@ class EcsSnapshot(pulumi.CustomResource):
|
|
|
714
592
|
|
|
715
593
|
@property
|
|
716
594
|
@pulumi.getter
|
|
717
|
-
def category(self) -> pulumi.Output[str]:
|
|
595
|
+
def category(self) -> pulumi.Output[Optional[str]]:
|
|
718
596
|
"""
|
|
719
|
-
The category of the snapshot. Valid
|
|
597
|
+
The category of the snapshot. Valid Values: `standard` and `flash`.
|
|
720
598
|
"""
|
|
721
599
|
return pulumi.get(self, "category")
|
|
722
600
|
|
|
@@ -740,31 +618,29 @@ class EcsSnapshot(pulumi.CustomResource):
|
|
|
740
618
|
@pulumi.getter
|
|
741
619
|
def force(self) -> pulumi.Output[Optional[bool]]:
|
|
742
620
|
"""
|
|
743
|
-
Specifies whether to
|
|
621
|
+
Specifies whether to forcibly delete the snapshot that has been used to create disks.
|
|
744
622
|
"""
|
|
745
623
|
return pulumi.get(self, "force")
|
|
746
624
|
|
|
747
625
|
@property
|
|
748
626
|
@pulumi.getter(name="instantAccess")
|
|
749
|
-
@_utilities.deprecated("""Field `instant_access` has been deprecated from provider version 1.231.0.""")
|
|
750
627
|
def instant_access(self) -> pulumi.Output[Optional[bool]]:
|
|
751
628
|
"""
|
|
752
|
-
|
|
629
|
+
Specifies whether to enable the instant access feature.
|
|
753
630
|
"""
|
|
754
631
|
return pulumi.get(self, "instant_access")
|
|
755
632
|
|
|
756
633
|
@property
|
|
757
634
|
@pulumi.getter(name="instantAccessRetentionDays")
|
|
758
|
-
@_utilities.deprecated("""Field `instant_access_retention_days` has been deprecated from provider version 1.231.0.""")
|
|
759
635
|
def instant_access_retention_days(self) -> pulumi.Output[Optional[int]]:
|
|
760
636
|
"""
|
|
761
|
-
|
|
637
|
+
Specifies the retention period of the instant access feature. After the retention period ends, the snapshot is automatically released.
|
|
762
638
|
"""
|
|
763
639
|
return pulumi.get(self, "instant_access_retention_days")
|
|
764
640
|
|
|
765
641
|
@property
|
|
766
642
|
@pulumi.getter
|
|
767
|
-
@_utilities.deprecated("""Field
|
|
643
|
+
@_utilities.deprecated("""Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead.""")
|
|
768
644
|
def name(self) -> pulumi.Output[str]:
|
|
769
645
|
"""
|
|
770
646
|
Field `name` has been deprecated from provider version 1.120.0. New field `snapshot_name` instead.
|
|
@@ -775,7 +651,7 @@ class EcsSnapshot(pulumi.CustomResource):
|
|
|
775
651
|
@pulumi.getter(name="resourceGroupId")
|
|
776
652
|
def resource_group_id(self) -> pulumi.Output[Optional[str]]:
|
|
777
653
|
"""
|
|
778
|
-
The
|
|
654
|
+
The resource group id.
|
|
779
655
|
"""
|
|
780
656
|
return pulumi.get(self, "resource_group_id")
|
|
781
657
|
|
|
@@ -783,7 +659,7 @@ class EcsSnapshot(pulumi.CustomResource):
|
|
|
783
659
|
@pulumi.getter(name="retentionDays")
|
|
784
660
|
def retention_days(self) -> pulumi.Output[Optional[int]]:
|
|
785
661
|
"""
|
|
786
|
-
The retention period of the snapshot.
|
|
662
|
+
The retention period of the snapshot.
|
|
787
663
|
"""
|
|
788
664
|
return pulumi.get(self, "retention_days")
|
|
789
665
|
|
|
@@ -799,7 +675,7 @@ class EcsSnapshot(pulumi.CustomResource):
|
|
|
799
675
|
@pulumi.getter
|
|
800
676
|
def status(self) -> pulumi.Output[str]:
|
|
801
677
|
"""
|
|
802
|
-
The status of
|
|
678
|
+
The status of snapshot.
|
|
803
679
|
"""
|
|
804
680
|
return pulumi.get(self, "status")
|
|
805
681
|
|
|
@@ -807,7 +683,9 @@ class EcsSnapshot(pulumi.CustomResource):
|
|
|
807
683
|
@pulumi.getter
|
|
808
684
|
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
809
685
|
"""
|
|
810
|
-
A mapping of tags to assign to the
|
|
686
|
+
A mapping of tags to assign to the snapshot.
|
|
687
|
+
|
|
688
|
+
> **NOTE:** If `force` is true, After an snapshot is deleted, the disks created from this snapshot cannot be re-initialized.
|
|
811
689
|
"""
|
|
812
690
|
return pulumi.get(self, "tags")
|
|
813
691
|
|
pulumi_alicloud/ecs/outputs.py
CHANGED
|
@@ -533,7 +533,6 @@ class EcsLaunchTemplateDataDisk(dict):
|
|
|
533
533
|
category: Optional[str] = None,
|
|
534
534
|
delete_with_instance: Optional[bool] = None,
|
|
535
535
|
description: Optional[str] = None,
|
|
536
|
-
device: Optional[str] = None,
|
|
537
536
|
encrypted: Optional[bool] = None,
|
|
538
537
|
name: Optional[str] = None,
|
|
539
538
|
performance_level: Optional[str] = None,
|
|
@@ -543,7 +542,6 @@ class EcsLaunchTemplateDataDisk(dict):
|
|
|
543
542
|
:param str category: The category of the disk.
|
|
544
543
|
:param bool delete_with_instance: Indicates whether the data disk is released with the instance.
|
|
545
544
|
:param str description: The description of the data disk.
|
|
546
|
-
:param str device: The mount point of the data disk.
|
|
547
545
|
:param bool encrypted: Encrypted the data in this disk.
|
|
548
546
|
:param str name: The name of the data disk.
|
|
549
547
|
:param str performance_level: The performance level of the ESSD used as the data disk.
|
|
@@ -556,8 +554,6 @@ class EcsLaunchTemplateDataDisk(dict):
|
|
|
556
554
|
pulumi.set(__self__, "delete_with_instance", delete_with_instance)
|
|
557
555
|
if description is not None:
|
|
558
556
|
pulumi.set(__self__, "description", description)
|
|
559
|
-
if device is not None:
|
|
560
|
-
pulumi.set(__self__, "device", device)
|
|
561
557
|
if encrypted is not None:
|
|
562
558
|
pulumi.set(__self__, "encrypted", encrypted)
|
|
563
559
|
if name is not None:
|
|
@@ -593,14 +589,6 @@ class EcsLaunchTemplateDataDisk(dict):
|
|
|
593
589
|
"""
|
|
594
590
|
return pulumi.get(self, "description")
|
|
595
591
|
|
|
596
|
-
@property
|
|
597
|
-
@pulumi.getter
|
|
598
|
-
def device(self) -> Optional[str]:
|
|
599
|
-
"""
|
|
600
|
-
The mount point of the data disk.
|
|
601
|
-
"""
|
|
602
|
-
return pulumi.get(self, "device")
|
|
603
|
-
|
|
604
592
|
@property
|
|
605
593
|
@pulumi.getter
|
|
606
594
|
def encrypted(self) -> Optional[bool]:
|
|
@@ -1549,7 +1537,6 @@ class LaunchTemplateDataDisk(dict):
|
|
|
1549
1537
|
category: Optional[str] = None,
|
|
1550
1538
|
delete_with_instance: Optional[bool] = None,
|
|
1551
1539
|
description: Optional[str] = None,
|
|
1552
|
-
device: Optional[str] = None,
|
|
1553
1540
|
encrypted: Optional[bool] = None,
|
|
1554
1541
|
name: Optional[str] = None,
|
|
1555
1542
|
performance_level: Optional[str] = None,
|
|
@@ -1586,8 +1573,6 @@ class LaunchTemplateDataDisk(dict):
|
|
|
1586
1573
|
pulumi.set(__self__, "delete_with_instance", delete_with_instance)
|
|
1587
1574
|
if description is not None:
|
|
1588
1575
|
pulumi.set(__self__, "description", description)
|
|
1589
|
-
if device is not None:
|
|
1590
|
-
pulumi.set(__self__, "device", device)
|
|
1591
1576
|
if encrypted is not None:
|
|
1592
1577
|
pulumi.set(__self__, "encrypted", encrypted)
|
|
1593
1578
|
if name is not None:
|
|
@@ -1632,11 +1617,6 @@ class LaunchTemplateDataDisk(dict):
|
|
|
1632
1617
|
"""
|
|
1633
1618
|
return pulumi.get(self, "description")
|
|
1634
1619
|
|
|
1635
|
-
@property
|
|
1636
|
-
@pulumi.getter
|
|
1637
|
-
def device(self) -> Optional[str]:
|
|
1638
|
-
return pulumi.get(self, "device")
|
|
1639
|
-
|
|
1640
1620
|
@property
|
|
1641
1621
|
@pulumi.getter
|
|
1642
1622
|
def encrypted(self) -> Optional[bool]:
|