pulumi-alicloud 3.66.0__py3-none-any.whl → 3.66.0a1730783952__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-alicloud might be problematic. Click here for more details.

Files changed (73) hide show
  1. pulumi_alicloud/__init__.py +0 -94
  2. pulumi_alicloud/alb/load_balancer.py +1 -1
  3. pulumi_alicloud/alikafka/instance.py +0 -112
  4. pulumi_alicloud/arms/environment.py +7 -7
  5. pulumi_alicloud/arms/get_remote_writes.py +4 -4
  6. pulumi_alicloud/arms/prometheus_alert_rule.py +0 -58
  7. pulumi_alicloud/arms/remote_write.py +2 -2
  8. pulumi_alicloud/cen/transit_router_vbr_attachment.py +74 -96
  9. pulumi_alicloud/cloudsso/_inputs.py +9 -9
  10. pulumi_alicloud/cloudsso/access_configuration.py +34 -100
  11. pulumi_alicloud/cloudsso/outputs.py +6 -6
  12. pulumi_alicloud/cms/hybrid_monitor_fc_task.py +26 -28
  13. pulumi_alicloud/cr/chain.py +14 -22
  14. pulumi_alicloud/cr/chart_repository.py +6 -14
  15. pulumi_alicloud/cr/repo.py +8 -8
  16. pulumi_alicloud/cr/vpc_endpoint_linked_vpc.py +6 -14
  17. pulumi_alicloud/databasefilesystem/instance_attachment.py +63 -59
  18. pulumi_alicloud/databasefilesystem/snapshot.py +109 -53
  19. pulumi_alicloud/ecs/instance.py +7 -7
  20. pulumi_alicloud/ess/scaling_configuration.py +7 -7
  21. pulumi_alicloud/fc/_inputs.py +135 -243
  22. pulumi_alicloud/fc/outputs.py +90 -173
  23. pulumi_alicloud/fc/trigger.py +138 -202
  24. pulumi_alicloud/fc/v3_alias.py +0 -28
  25. pulumi_alicloud/fc/v3_async_invoke_config.py +0 -56
  26. pulumi_alicloud/fc/v3_concurrency_config.py +0 -28
  27. pulumi_alicloud/fc/v3_custom_domain.py +6 -118
  28. pulumi_alicloud/fc/v3_function.py +0 -308
  29. pulumi_alicloud/fc/v3_function_version.py +2 -30
  30. pulumi_alicloud/fc/v3_layer_version.py +1 -104
  31. pulumi_alicloud/fc/v3_provision_config.py +2 -86
  32. pulumi_alicloud/fc/v3_trigger.py +0 -114
  33. pulumi_alicloud/ga/custom_routing_endpoint_traffic_policy.py +44 -48
  34. pulumi_alicloud/governance/_inputs.py +0 -54
  35. pulumi_alicloud/governance/account.py +14 -49
  36. pulumi_alicloud/governance/outputs.py +0 -51
  37. pulumi_alicloud/gpdb/instance.py +15 -196
  38. pulumi_alicloud/kms/instance.py +0 -28
  39. pulumi_alicloud/nas/data_flow.py +6 -6
  40. pulumi_alicloud/nas/fileset.py +6 -6
  41. pulumi_alicloud/nas/lifecycle_policy.py +6 -6
  42. pulumi_alicloud/nas/recycle_bin.py +6 -6
  43. pulumi_alicloud/nas/snapshot.py +6 -6
  44. pulumi_alicloud/oss/__init__.py +0 -2
  45. pulumi_alicloud/oss/_inputs.py +0 -194
  46. pulumi_alicloud/oss/outputs.py +0 -141
  47. pulumi_alicloud/pulumi-plugin.json +1 -1
  48. pulumi_alicloud/quotas/_inputs.py +6 -6
  49. pulumi_alicloud/quotas/outputs.py +4 -4
  50. pulumi_alicloud/quotas/quota_application.py +28 -21
  51. pulumi_alicloud/redis/tair_instance.py +71 -1046
  52. pulumi_alicloud/threatdetection/honeypot_preset.py +0 -2
  53. pulumi_alicloud/vpc/__init__.py +0 -4
  54. pulumi_alicloud/vpn/gateway_vco_route.py +8 -28
  55. {pulumi_alicloud-3.66.0.dist-info → pulumi_alicloud-3.66.0a1730783952.dist-info}/METADATA +1 -1
  56. {pulumi_alicloud-3.66.0.dist-info → pulumi_alicloud-3.66.0a1730783952.dist-info}/RECORD +58 -73
  57. {pulumi_alicloud-3.66.0.dist-info → pulumi_alicloud-3.66.0a1730783952.dist-info}/WHEEL +1 -1
  58. pulumi_alicloud/esa/__init__.py +0 -9
  59. pulumi_alicloud/esa/rate_plan_instance.py +0 -626
  60. pulumi_alicloud/esa/site.py +0 -533
  61. pulumi_alicloud/gwlb/__init__.py +0 -12
  62. pulumi_alicloud/gwlb/_inputs.py +0 -673
  63. pulumi_alicloud/gwlb/listener.py +0 -434
  64. pulumi_alicloud/gwlb/load_balancer.py +0 -537
  65. pulumi_alicloud/gwlb/outputs.py +0 -533
  66. pulumi_alicloud/gwlb/server_group.py +0 -780
  67. pulumi_alicloud/oss/bucket_cname.py +0 -509
  68. pulumi_alicloud/oss/bucket_cname_token.py +0 -239
  69. pulumi_alicloud/vpc/ipam_ipam.py +0 -531
  70. pulumi_alicloud/vpc/ipam_ipam_pool.py +0 -850
  71. pulumi_alicloud/vpc/ipam_ipam_pool_cidr.py +0 -313
  72. pulumi_alicloud/vpc/ipam_ipam_scope.py +0 -537
  73. {pulumi_alicloud-3.66.0.dist-info → pulumi_alicloud-3.66.0a1730783952.dist-info}/top_level.txt +0 -0
@@ -237,21 +237,17 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
237
237
  ```python
238
238
  import pulumi
239
239
  import pulumi_alicloud as alicloud
240
- import pulumi_random as random
241
240
 
242
241
  config = pulumi.Config()
243
242
  name = config.get("name")
244
243
  if name is None:
245
244
  name = "tf-example"
246
- default_integer = random.index.Integer("default",
247
- min=100000,
248
- max=999999)
249
245
  default = alicloud.get_zones(available_resource_creation="VSwitch")
250
246
  default_network = alicloud.vpc.Network("default",
251
- vpc_name=f"{name}-{default_integer['result']}",
247
+ vpc_name=name,
252
248
  cidr_block="10.4.0.0/16")
253
249
  default_switch = alicloud.vpc.Switch("default",
254
- vswitch_name=f"{name}-{default_integer['result']}",
250
+ vswitch_name=name,
255
251
  cidr_block="10.4.0.0/24",
256
252
  vpc_id=default_network.id,
257
253
  zone_id=default.zones[0].id)
@@ -261,7 +257,7 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
261
257
  renew_period=0,
262
258
  renewal_status="ManualRenewal",
263
259
  instance_type="Advanced",
264
- instance_name=f"{name}-{default_integer['result']}")
260
+ instance_name=name)
265
261
  default_vpc_endpoint_linked_vpc = alicloud.cr.VpcEndpointLinkedVpc("default",
266
262
  instance_id=default_registry_enterprise_instance.id,
267
263
  vpc_id=default_network.id,
@@ -308,21 +304,17 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
308
304
  ```python
309
305
  import pulumi
310
306
  import pulumi_alicloud as alicloud
311
- import pulumi_random as random
312
307
 
313
308
  config = pulumi.Config()
314
309
  name = config.get("name")
315
310
  if name is None:
316
311
  name = "tf-example"
317
- default_integer = random.index.Integer("default",
318
- min=100000,
319
- max=999999)
320
312
  default = alicloud.get_zones(available_resource_creation="VSwitch")
321
313
  default_network = alicloud.vpc.Network("default",
322
- vpc_name=f"{name}-{default_integer['result']}",
314
+ vpc_name=name,
323
315
  cidr_block="10.4.0.0/16")
324
316
  default_switch = alicloud.vpc.Switch("default",
325
- vswitch_name=f"{name}-{default_integer['result']}",
317
+ vswitch_name=name,
326
318
  cidr_block="10.4.0.0/24",
327
319
  vpc_id=default_network.id,
328
320
  zone_id=default.zones[0].id)
@@ -332,7 +324,7 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
332
324
  renew_period=0,
333
325
  renewal_status="ManualRenewal",
334
326
  instance_type="Advanced",
335
- instance_name=f"{name}-{default_integer['result']}")
327
+ instance_name=name)
336
328
  default_vpc_endpoint_linked_vpc = alicloud.cr.VpcEndpointLinkedVpc("default",
337
329
  instance_id=default_registry_enterprise_instance.id,
338
330
  vpc_id=default_network.id,
@@ -24,7 +24,7 @@ class InstanceAttachmentArgs:
24
24
  """
25
25
  The set of arguments for constructing a InstanceAttachment resource.
26
26
  :param pulumi.Input[str] ecs_id: The ID of the ECS instance.
27
- :param pulumi.Input[str] instance_id: The ID of the Database File System.
27
+ :param pulumi.Input[str] instance_id: The ID of the database file system.
28
28
  """
29
29
  pulumi.set(__self__, "ecs_id", ecs_id)
30
30
  pulumi.set(__self__, "instance_id", instance_id)
@@ -45,7 +45,7 @@ class InstanceAttachmentArgs:
45
45
  @pulumi.getter(name="instanceId")
46
46
  def instance_id(self) -> pulumi.Input[str]:
47
47
  """
48
- The ID of the Database File System.
48
+ The ID of the database file system.
49
49
  """
50
50
  return pulumi.get(self, "instance_id")
51
51
 
@@ -63,8 +63,8 @@ class _InstanceAttachmentState:
63
63
  """
64
64
  Input properties used for looking up and filtering InstanceAttachment resources.
65
65
  :param pulumi.Input[str] ecs_id: The ID of the ECS instance.
66
- :param pulumi.Input[str] instance_id: The ID of the Database File System.
67
- :param pulumi.Input[str] status: The status of Instance Attachment.
66
+ :param pulumi.Input[str] instance_id: The ID of the database file system.
67
+ :param pulumi.Input[str] status: The status of Database file system. Valid values: `attached`, `attaching`, `unattached`, `detaching`.
68
68
  """
69
69
  if ecs_id is not None:
70
70
  pulumi.set(__self__, "ecs_id", ecs_id)
@@ -89,7 +89,7 @@ class _InstanceAttachmentState:
89
89
  @pulumi.getter(name="instanceId")
90
90
  def instance_id(self) -> Optional[pulumi.Input[str]]:
91
91
  """
92
- The ID of the Database File System.
92
+ The ID of the database file system.
93
93
  """
94
94
  return pulumi.get(self, "instance_id")
95
95
 
@@ -101,7 +101,7 @@ class _InstanceAttachmentState:
101
101
  @pulumi.getter
102
102
  def status(self) -> Optional[pulumi.Input[str]]:
103
103
  """
104
- The status of Instance Attachment.
104
+ The status of Database file system. Valid values: `attached`, `attaching`, `unattached`, `detaching`.
105
105
  """
106
106
  return pulumi.get(self, "status")
107
107
 
@@ -119,9 +119,9 @@ class InstanceAttachment(pulumi.CustomResource):
119
119
  instance_id: Optional[pulumi.Input[str]] = None,
120
120
  __props__=None):
121
121
  """
122
- Provides a Database File System (DBFS) Instance Attachment resource.
122
+ Provides a DBFS Instance Attachment resource.
123
123
 
124
- For information about Database File System (DBFS) Instance Attachment and how to use it, see [What is Snapshot](https://help.aliyun.com/zh/dbfs/developer-reference/api-dbfs-2020-04-18-attachdbfs).
124
+ For information about DBFS Instance Attachment and how to use it.
125
125
 
126
126
  > **NOTE:** Available since v1.156.0.
127
127
 
@@ -136,39 +136,41 @@ class InstanceAttachment(pulumi.CustomResource):
136
136
  config = pulumi.Config()
137
137
  name = config.get("name")
138
138
  if name is None:
139
- name = "terraform-example"
139
+ name = "tf-example"
140
140
  zone_id = "cn-hangzhou-i"
141
- default = alicloud.databasefilesystem.get_instances()
142
- default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=zone_id,
141
+ example = alicloud.ecs.get_instance_types(availability_zone=zone_id,
143
142
  instance_type_family="ecs.g7se")
144
- default_get_images = alicloud.ecs.get_images(instance_type=default_get_instance_types.instance_types[0].id,
145
- name_regex="^aliyun_2_19",
143
+ example_get_images = alicloud.ecs.get_images(instance_type=example.instance_types[len(example.instance_types) - 1].id,
144
+ name_regex="^aliyun_2_1903_x64_20G_alibase_20240628.vhd",
146
145
  owners="system")
147
- default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
148
- default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
146
+ default = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
147
+ default_get_switches = alicloud.vpc.get_switches(vpc_id=default.ids[0],
149
148
  zone_id=zone_id)
150
- default_security_group = alicloud.ecs.SecurityGroup("default",
149
+ example_security_group = alicloud.ecs.SecurityGroup("example",
151
150
  name=name,
152
- vpc_id=default_get_networks.ids[0])
151
+ vpc_id=default.ids[0])
153
152
  default_instance = alicloud.ecs.Instance("default",
154
- image_id=default_get_images.images[0].id,
155
- instance_type=default_get_instance_types.instance_types[0].id,
156
- security_groups=[__item.id for __item in [default_security_group]],
157
- internet_charge_type="PayByTraffic",
158
- internet_max_bandwidth_out=10,
159
- availability_zone=default_get_instance_types.instance_types[0].availability_zones[0],
160
- instance_charge_type="PostPaid",
161
- system_disk_category="cloud_essd",
153
+ availability_zone=zone_id,
154
+ instance_name=name,
155
+ image_id=example_get_images.images[0].id,
156
+ instance_type=example.instance_types[len(example.instance_types) - 1].id,
157
+ security_groups=[example_security_group.id],
162
158
  vswitch_id=default_get_switches.ids[0],
163
- instance_name=name)
164
- default_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("default",
165
- instance_id=default.instances[0].id,
166
- ecs_id=default_instance.id)
159
+ system_disk_category="cloud_essd")
160
+ default_instance2 = alicloud.databasefilesystem.Instance("default",
161
+ category="enterprise",
162
+ zone_id=default_instance.availability_zone,
163
+ performance_level="PL1",
164
+ fs_name=name,
165
+ size=100)
166
+ example_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("example",
167
+ ecs_id=default_instance.id,
168
+ instance_id=default_instance2.id)
167
169
  ```
168
170
 
169
171
  ## Import
170
172
 
171
- Database File System (DBFS) Instance Attachment can be imported using the id, e.g.
173
+ DBFS Instance Attachment can be imported using the id, e.g.
172
174
 
173
175
  ```sh
174
176
  $ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>
@@ -177,7 +179,7 @@ class InstanceAttachment(pulumi.CustomResource):
177
179
  :param str resource_name: The name of the resource.
178
180
  :param pulumi.ResourceOptions opts: Options for the resource.
179
181
  :param pulumi.Input[str] ecs_id: The ID of the ECS instance.
180
- :param pulumi.Input[str] instance_id: The ID of the Database File System.
182
+ :param pulumi.Input[str] instance_id: The ID of the database file system.
181
183
  """
182
184
  ...
183
185
  @overload
@@ -186,9 +188,9 @@ class InstanceAttachment(pulumi.CustomResource):
186
188
  args: InstanceAttachmentArgs,
187
189
  opts: Optional[pulumi.ResourceOptions] = None):
188
190
  """
189
- Provides a Database File System (DBFS) Instance Attachment resource.
191
+ Provides a DBFS Instance Attachment resource.
190
192
 
191
- For information about Database File System (DBFS) Instance Attachment and how to use it, see [What is Snapshot](https://help.aliyun.com/zh/dbfs/developer-reference/api-dbfs-2020-04-18-attachdbfs).
193
+ For information about DBFS Instance Attachment and how to use it.
192
194
 
193
195
  > **NOTE:** Available since v1.156.0.
194
196
 
@@ -203,39 +205,41 @@ class InstanceAttachment(pulumi.CustomResource):
203
205
  config = pulumi.Config()
204
206
  name = config.get("name")
205
207
  if name is None:
206
- name = "terraform-example"
208
+ name = "tf-example"
207
209
  zone_id = "cn-hangzhou-i"
208
- default = alicloud.databasefilesystem.get_instances()
209
- default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=zone_id,
210
+ example = alicloud.ecs.get_instance_types(availability_zone=zone_id,
210
211
  instance_type_family="ecs.g7se")
211
- default_get_images = alicloud.ecs.get_images(instance_type=default_get_instance_types.instance_types[0].id,
212
- name_regex="^aliyun_2_19",
212
+ example_get_images = alicloud.ecs.get_images(instance_type=example.instance_types[len(example.instance_types) - 1].id,
213
+ name_regex="^aliyun_2_1903_x64_20G_alibase_20240628.vhd",
213
214
  owners="system")
214
- default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
215
- default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
215
+ default = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
216
+ default_get_switches = alicloud.vpc.get_switches(vpc_id=default.ids[0],
216
217
  zone_id=zone_id)
217
- default_security_group = alicloud.ecs.SecurityGroup("default",
218
+ example_security_group = alicloud.ecs.SecurityGroup("example",
218
219
  name=name,
219
- vpc_id=default_get_networks.ids[0])
220
+ vpc_id=default.ids[0])
220
221
  default_instance = alicloud.ecs.Instance("default",
221
- image_id=default_get_images.images[0].id,
222
- instance_type=default_get_instance_types.instance_types[0].id,
223
- security_groups=[__item.id for __item in [default_security_group]],
224
- internet_charge_type="PayByTraffic",
225
- internet_max_bandwidth_out=10,
226
- availability_zone=default_get_instance_types.instance_types[0].availability_zones[0],
227
- instance_charge_type="PostPaid",
228
- system_disk_category="cloud_essd",
222
+ availability_zone=zone_id,
223
+ instance_name=name,
224
+ image_id=example_get_images.images[0].id,
225
+ instance_type=example.instance_types[len(example.instance_types) - 1].id,
226
+ security_groups=[example_security_group.id],
229
227
  vswitch_id=default_get_switches.ids[0],
230
- instance_name=name)
231
- default_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("default",
232
- instance_id=default.instances[0].id,
233
- ecs_id=default_instance.id)
228
+ system_disk_category="cloud_essd")
229
+ default_instance2 = alicloud.databasefilesystem.Instance("default",
230
+ category="enterprise",
231
+ zone_id=default_instance.availability_zone,
232
+ performance_level="PL1",
233
+ fs_name=name,
234
+ size=100)
235
+ example_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("example",
236
+ ecs_id=default_instance.id,
237
+ instance_id=default_instance2.id)
234
238
  ```
235
239
 
236
240
  ## Import
237
241
 
238
- Database File System (DBFS) Instance Attachment can be imported using the id, e.g.
242
+ DBFS Instance Attachment can be imported using the id, e.g.
239
243
 
240
244
  ```sh
241
245
  $ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>
@@ -295,8 +299,8 @@ class InstanceAttachment(pulumi.CustomResource):
295
299
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
296
300
  :param pulumi.ResourceOptions opts: Options for the resource.
297
301
  :param pulumi.Input[str] ecs_id: The ID of the ECS instance.
298
- :param pulumi.Input[str] instance_id: The ID of the Database File System.
299
- :param pulumi.Input[str] status: The status of Instance Attachment.
302
+ :param pulumi.Input[str] instance_id: The ID of the database file system.
303
+ :param pulumi.Input[str] status: The status of Database file system. Valid values: `attached`, `attaching`, `unattached`, `detaching`.
300
304
  """
301
305
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
302
306
 
@@ -319,7 +323,7 @@ class InstanceAttachment(pulumi.CustomResource):
319
323
  @pulumi.getter(name="instanceId")
320
324
  def instance_id(self) -> pulumi.Output[str]:
321
325
  """
322
- The ID of the Database File System.
326
+ The ID of the database file system.
323
327
  """
324
328
  return pulumi.get(self, "instance_id")
325
329
 
@@ -327,7 +331,7 @@ class InstanceAttachment(pulumi.CustomResource):
327
331
  @pulumi.getter
328
332
  def status(self) -> pulumi.Output[str]:
329
333
  """
330
- The status of Instance Attachment.
334
+ The status of Database file system. Valid values: `attached`, `attaching`, `unattached`, `detaching`.
331
335
  """
332
336
  return pulumi.get(self, "status")
333
337
 
@@ -26,11 +26,11 @@ class SnapshotArgs:
26
26
  snapshot_name: Optional[pulumi.Input[str]] = None):
27
27
  """
28
28
  The set of arguments for constructing a Snapshot resource.
29
- :param pulumi.Input[str] instance_id: The ID of the Database File System.
30
- :param pulumi.Input[str] description: The description of the snapshot. The `description` must be `2` to `256` characters in length. It cannot start with `http://` or `https://`. **NOTE:** From version 1.233.1, `description` can be modified.
31
- :param pulumi.Input[bool] force: Specifies whether to force delete the snapshot. Valid values:
32
- :param pulumi.Input[int] retention_days: The retention period of the snapshot. Valid values: `1` to `65536`.
33
- :param pulumi.Input[str] snapshot_name: The name of the snapshot. The `snapshot_name` must be `2` to `128` characters in length. It must start with a large or small letter or Chinese, and cannot start with `http://`, `https://`, `auto` or `dbfs-auto`. It can contain numbers, colons (:), underscores (_), or hyphens (-). **NOTE:** From version 1.233.1, `snapshot_name` can be modified.
29
+ :param pulumi.Input[str] instance_id: The ID of the database file system.
30
+ :param pulumi.Input[str] description: Description of the snapshot. The description must be `2` to `256` characters in length. It must start with a letter, and cannot start with `http://` or `https://`.
31
+ :param pulumi.Input[bool] force: Whether to force deletion of snapshots.
32
+ :param pulumi.Input[int] retention_days: The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values: `1` to `65536`.
33
+ :param pulumi.Input[str] snapshot_name: The display name of the snapshot. The length is `2` to `128` characters. It must start with a large or small letter or Chinese, and cannot start with `http://` and `https://`. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start with `auto`.
34
34
  """
35
35
  pulumi.set(__self__, "instance_id", instance_id)
36
36
  if description is not None:
@@ -46,7 +46,7 @@ class SnapshotArgs:
46
46
  @pulumi.getter(name="instanceId")
47
47
  def instance_id(self) -> pulumi.Input[str]:
48
48
  """
49
- The ID of the Database File System.
49
+ The ID of the database file system.
50
50
  """
51
51
  return pulumi.get(self, "instance_id")
52
52
 
@@ -58,7 +58,7 @@ class SnapshotArgs:
58
58
  @pulumi.getter
59
59
  def description(self) -> Optional[pulumi.Input[str]]:
60
60
  """
61
- The description of the snapshot. The `description` must be `2` to `256` characters in length. It cannot start with `http://` or `https://`. **NOTE:** From version 1.233.1, `description` can be modified.
61
+ Description of the snapshot. The description must be `2` to `256` characters in length. It must start with a letter, and cannot start with `http://` or `https://`.
62
62
  """
63
63
  return pulumi.get(self, "description")
64
64
 
@@ -70,7 +70,7 @@ class SnapshotArgs:
70
70
  @pulumi.getter
71
71
  def force(self) -> Optional[pulumi.Input[bool]]:
72
72
  """
73
- Specifies whether to force delete the snapshot. Valid values:
73
+ Whether to force deletion of snapshots.
74
74
  """
75
75
  return pulumi.get(self, "force")
76
76
 
@@ -82,7 +82,7 @@ class SnapshotArgs:
82
82
  @pulumi.getter(name="retentionDays")
83
83
  def retention_days(self) -> Optional[pulumi.Input[int]]:
84
84
  """
85
- The retention period of the snapshot. Valid values: `1` to `65536`.
85
+ The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values: `1` to `65536`.
86
86
  """
87
87
  return pulumi.get(self, "retention_days")
88
88
 
@@ -94,7 +94,7 @@ class SnapshotArgs:
94
94
  @pulumi.getter(name="snapshotName")
95
95
  def snapshot_name(self) -> Optional[pulumi.Input[str]]:
96
96
  """
97
- The name of the snapshot. The `snapshot_name` must be `2` to `128` characters in length. It must start with a large or small letter or Chinese, and cannot start with `http://`, `https://`, `auto` or `dbfs-auto`. It can contain numbers, colons (:), underscores (_), or hyphens (-). **NOTE:** From version 1.233.1, `snapshot_name` can be modified.
97
+ The display name of the snapshot. The length is `2` to `128` characters. It must start with a large or small letter or Chinese, and cannot start with `http://` and `https://`. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start with `auto`.
98
98
  """
99
99
  return pulumi.get(self, "snapshot_name")
100
100
 
@@ -114,11 +114,11 @@ class _SnapshotState:
114
114
  status: Optional[pulumi.Input[str]] = None):
115
115
  """
116
116
  Input properties used for looking up and filtering Snapshot resources.
117
- :param pulumi.Input[str] description: The description of the snapshot. The `description` must be `2` to `256` characters in length. It cannot start with `http://` or `https://`. **NOTE:** From version 1.233.1, `description` can be modified.
118
- :param pulumi.Input[bool] force: Specifies whether to force delete the snapshot. Valid values:
119
- :param pulumi.Input[str] instance_id: The ID of the Database File System.
120
- :param pulumi.Input[int] retention_days: The retention period of the snapshot. Valid values: `1` to `65536`.
121
- :param pulumi.Input[str] snapshot_name: The name of the snapshot. The `snapshot_name` must be `2` to `128` characters in length. It must start with a large or small letter or Chinese, and cannot start with `http://`, `https://`, `auto` or `dbfs-auto`. It can contain numbers, colons (:), underscores (_), or hyphens (-). **NOTE:** From version 1.233.1, `snapshot_name` can be modified.
117
+ :param pulumi.Input[str] description: Description of the snapshot. The description must be `2` to `256` characters in length. It must start with a letter, and cannot start with `http://` or `https://`.
118
+ :param pulumi.Input[bool] force: Whether to force deletion of snapshots.
119
+ :param pulumi.Input[str] instance_id: The ID of the database file system.
120
+ :param pulumi.Input[int] retention_days: The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values: `1` to `65536`.
121
+ :param pulumi.Input[str] snapshot_name: The display name of the snapshot. The length is `2` to `128` characters. It must start with a large or small letter or Chinese, and cannot start with `http://` and `https://`. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start with `auto`.
122
122
  :param pulumi.Input[str] status: The status of the Snapshot.
123
123
  """
124
124
  if description is not None:
@@ -138,7 +138,7 @@ class _SnapshotState:
138
138
  @pulumi.getter
139
139
  def description(self) -> Optional[pulumi.Input[str]]:
140
140
  """
141
- The description of the snapshot. The `description` must be `2` to `256` characters in length. It cannot start with `http://` or `https://`. **NOTE:** From version 1.233.1, `description` can be modified.
141
+ Description of the snapshot. The description must be `2` to `256` characters in length. It must start with a letter, and cannot start with `http://` or `https://`.
142
142
  """
143
143
  return pulumi.get(self, "description")
144
144
 
@@ -150,7 +150,7 @@ class _SnapshotState:
150
150
  @pulumi.getter
151
151
  def force(self) -> Optional[pulumi.Input[bool]]:
152
152
  """
153
- Specifies whether to force delete the snapshot. Valid values:
153
+ Whether to force deletion of snapshots.
154
154
  """
155
155
  return pulumi.get(self, "force")
156
156
 
@@ -162,7 +162,7 @@ class _SnapshotState:
162
162
  @pulumi.getter(name="instanceId")
163
163
  def instance_id(self) -> Optional[pulumi.Input[str]]:
164
164
  """
165
- The ID of the Database File System.
165
+ The ID of the database file system.
166
166
  """
167
167
  return pulumi.get(self, "instance_id")
168
168
 
@@ -174,7 +174,7 @@ class _SnapshotState:
174
174
  @pulumi.getter(name="retentionDays")
175
175
  def retention_days(self) -> Optional[pulumi.Input[int]]:
176
176
  """
177
- The retention period of the snapshot. Valid values: `1` to `65536`.
177
+ The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values: `1` to `65536`.
178
178
  """
179
179
  return pulumi.get(self, "retention_days")
180
180
 
@@ -186,7 +186,7 @@ class _SnapshotState:
186
186
  @pulumi.getter(name="snapshotName")
187
187
  def snapshot_name(self) -> Optional[pulumi.Input[str]]:
188
188
  """
189
- The name of the snapshot. The `snapshot_name` must be `2` to `128` characters in length. It must start with a large or small letter or Chinese, and cannot start with `http://`, `https://`, `auto` or `dbfs-auto`. It can contain numbers, colons (:), underscores (_), or hyphens (-). **NOTE:** From version 1.233.1, `snapshot_name` can be modified.
189
+ The display name of the snapshot. The length is `2` to `128` characters. It must start with a large or small letter or Chinese, and cannot start with `http://` and `https://`. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start with `auto`.
190
190
  """
191
191
  return pulumi.get(self, "snapshot_name")
192
192
 
@@ -219,9 +219,9 @@ class Snapshot(pulumi.CustomResource):
219
219
  snapshot_name: Optional[pulumi.Input[str]] = None,
220
220
  __props__=None):
221
221
  """
222
- Provides a Database File System (DBFS) Snapshot resource.
222
+ Provides a DBFS Snapshot resource.
223
223
 
224
- For information about Database File System (DBFS) Snapshot and how to use it, see [What is Snapshot](https://help.aliyun.com/zh/dbfs/developer-reference/api-dbfs-2020-04-18-createsnapshot).
224
+ For information about DBFS Snapshot and how to use it.
225
225
 
226
226
  > **NOTE:** Available since v1.156.0.
227
227
 
@@ -236,18 +236,46 @@ class Snapshot(pulumi.CustomResource):
236
236
  config = pulumi.Config()
237
237
  name = config.get("name")
238
238
  if name is None:
239
- name = "terraform-example"
240
- default = alicloud.databasefilesystem.get_instances()
241
- example = alicloud.databasefilesystem.Snapshot("example",
242
- instance_id=default.instances[0].id,
243
- retention_days=50,
239
+ name = "tf-example"
240
+ zone_id = "cn-hangzhou-i"
241
+ example = alicloud.ecs.get_instance_types(availability_zone=zone_id,
242
+ instance_type_family="ecs.g7se")
243
+ example_get_images = alicloud.ecs.get_images(instance_type=example.instance_types[len(example.instance_types) - 1].id,
244
+ name_regex="^aliyun_2_1903_x64_20G_alibase_20240628.vhd",
245
+ owners="system")
246
+ default = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
247
+ default_get_switches = alicloud.vpc.get_switches(vpc_id=default.ids[0],
248
+ zone_id=zone_id)
249
+ example_security_group = alicloud.ecs.SecurityGroup("example",
250
+ name=name,
251
+ vpc_id=default.ids[0])
252
+ default_instance = alicloud.ecs.Instance("default",
253
+ availability_zone=zone_id,
254
+ instance_name=name,
255
+ image_id=example_get_images.images[0].id,
256
+ instance_type=example.instance_types[len(example.instance_types) - 1].id,
257
+ security_groups=[example_security_group.id],
258
+ vswitch_id=default_get_switches.ids[0],
259
+ system_disk_category="cloud_essd")
260
+ default_instance2 = alicloud.databasefilesystem.Instance("default",
261
+ category="enterprise",
262
+ zone_id=default_instance.availability_zone,
263
+ performance_level="PL1",
264
+ fs_name=name,
265
+ size=100)
266
+ default_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("default",
267
+ ecs_id=default_instance.id,
268
+ instance_id=default_instance2.id)
269
+ example_snapshot = alicloud.databasefilesystem.Snapshot("example",
270
+ instance_id=default_instance_attachment.instance_id,
244
271
  snapshot_name=name,
245
- description="DbfsSnapshot")
272
+ description=name,
273
+ retention_days=30)
246
274
  ```
247
275
 
248
276
  ## Import
249
277
 
250
- Database File System (DBFS) Snapshot can be imported using the id, e.g.
278
+ DBFS Snapshot can be imported using the id, e.g.
251
279
 
252
280
  ```sh
253
281
  $ pulumi import alicloud:databasefilesystem/snapshot:Snapshot example <id>
@@ -255,11 +283,11 @@ class Snapshot(pulumi.CustomResource):
255
283
 
256
284
  :param str resource_name: The name of the resource.
257
285
  :param pulumi.ResourceOptions opts: Options for the resource.
258
- :param pulumi.Input[str] description: The description of the snapshot. The `description` must be `2` to `256` characters in length. It cannot start with `http://` or `https://`. **NOTE:** From version 1.233.1, `description` can be modified.
259
- :param pulumi.Input[bool] force: Specifies whether to force delete the snapshot. Valid values:
260
- :param pulumi.Input[str] instance_id: The ID of the Database File System.
261
- :param pulumi.Input[int] retention_days: The retention period of the snapshot. Valid values: `1` to `65536`.
262
- :param pulumi.Input[str] snapshot_name: The name of the snapshot. The `snapshot_name` must be `2` to `128` characters in length. It must start with a large or small letter or Chinese, and cannot start with `http://`, `https://`, `auto` or `dbfs-auto`. It can contain numbers, colons (:), underscores (_), or hyphens (-). **NOTE:** From version 1.233.1, `snapshot_name` can be modified.
286
+ :param pulumi.Input[str] description: Description of the snapshot. The description must be `2` to `256` characters in length. It must start with a letter, and cannot start with `http://` or `https://`.
287
+ :param pulumi.Input[bool] force: Whether to force deletion of snapshots.
288
+ :param pulumi.Input[str] instance_id: The ID of the database file system.
289
+ :param pulumi.Input[int] retention_days: The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values: `1` to `65536`.
290
+ :param pulumi.Input[str] snapshot_name: The display name of the snapshot. The length is `2` to `128` characters. It must start with a large or small letter or Chinese, and cannot start with `http://` and `https://`. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start with `auto`.
263
291
  """
264
292
  ...
265
293
  @overload
@@ -268,9 +296,9 @@ class Snapshot(pulumi.CustomResource):
268
296
  args: SnapshotArgs,
269
297
  opts: Optional[pulumi.ResourceOptions] = None):
270
298
  """
271
- Provides a Database File System (DBFS) Snapshot resource.
299
+ Provides a DBFS Snapshot resource.
272
300
 
273
- For information about Database File System (DBFS) Snapshot and how to use it, see [What is Snapshot](https://help.aliyun.com/zh/dbfs/developer-reference/api-dbfs-2020-04-18-createsnapshot).
301
+ For information about DBFS Snapshot and how to use it.
274
302
 
275
303
  > **NOTE:** Available since v1.156.0.
276
304
 
@@ -285,18 +313,46 @@ class Snapshot(pulumi.CustomResource):
285
313
  config = pulumi.Config()
286
314
  name = config.get("name")
287
315
  if name is None:
288
- name = "terraform-example"
289
- default = alicloud.databasefilesystem.get_instances()
290
- example = alicloud.databasefilesystem.Snapshot("example",
291
- instance_id=default.instances[0].id,
292
- retention_days=50,
316
+ name = "tf-example"
317
+ zone_id = "cn-hangzhou-i"
318
+ example = alicloud.ecs.get_instance_types(availability_zone=zone_id,
319
+ instance_type_family="ecs.g7se")
320
+ example_get_images = alicloud.ecs.get_images(instance_type=example.instance_types[len(example.instance_types) - 1].id,
321
+ name_regex="^aliyun_2_1903_x64_20G_alibase_20240628.vhd",
322
+ owners="system")
323
+ default = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
324
+ default_get_switches = alicloud.vpc.get_switches(vpc_id=default.ids[0],
325
+ zone_id=zone_id)
326
+ example_security_group = alicloud.ecs.SecurityGroup("example",
327
+ name=name,
328
+ vpc_id=default.ids[0])
329
+ default_instance = alicloud.ecs.Instance("default",
330
+ availability_zone=zone_id,
331
+ instance_name=name,
332
+ image_id=example_get_images.images[0].id,
333
+ instance_type=example.instance_types[len(example.instance_types) - 1].id,
334
+ security_groups=[example_security_group.id],
335
+ vswitch_id=default_get_switches.ids[0],
336
+ system_disk_category="cloud_essd")
337
+ default_instance2 = alicloud.databasefilesystem.Instance("default",
338
+ category="enterprise",
339
+ zone_id=default_instance.availability_zone,
340
+ performance_level="PL1",
341
+ fs_name=name,
342
+ size=100)
343
+ default_instance_attachment = alicloud.databasefilesystem.InstanceAttachment("default",
344
+ ecs_id=default_instance.id,
345
+ instance_id=default_instance2.id)
346
+ example_snapshot = alicloud.databasefilesystem.Snapshot("example",
347
+ instance_id=default_instance_attachment.instance_id,
293
348
  snapshot_name=name,
294
- description="DbfsSnapshot")
349
+ description=name,
350
+ retention_days=30)
295
351
  ```
296
352
 
297
353
  ## Import
298
354
 
299
- Database File System (DBFS) Snapshot can be imported using the id, e.g.
355
+ DBFS Snapshot can be imported using the id, e.g.
300
356
 
301
357
  ```sh
302
358
  $ pulumi import alicloud:databasefilesystem/snapshot:Snapshot example <id>
@@ -362,11 +418,11 @@ class Snapshot(pulumi.CustomResource):
362
418
  :param str resource_name: The unique name of the resulting resource.
363
419
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
364
420
  :param pulumi.ResourceOptions opts: Options for the resource.
365
- :param pulumi.Input[str] description: The description of the snapshot. The `description` must be `2` to `256` characters in length. It cannot start with `http://` or `https://`. **NOTE:** From version 1.233.1, `description` can be modified.
366
- :param pulumi.Input[bool] force: Specifies whether to force delete the snapshot. Valid values:
367
- :param pulumi.Input[str] instance_id: The ID of the Database File System.
368
- :param pulumi.Input[int] retention_days: The retention period of the snapshot. Valid values: `1` to `65536`.
369
- :param pulumi.Input[str] snapshot_name: The name of the snapshot. The `snapshot_name` must be `2` to `128` characters in length. It must start with a large or small letter or Chinese, and cannot start with `http://`, `https://`, `auto` or `dbfs-auto`. It can contain numbers, colons (:), underscores (_), or hyphens (-). **NOTE:** From version 1.233.1, `snapshot_name` can be modified.
421
+ :param pulumi.Input[str] description: Description of the snapshot. The description must be `2` to `256` characters in length. It must start with a letter, and cannot start with `http://` or `https://`.
422
+ :param pulumi.Input[bool] force: Whether to force deletion of snapshots.
423
+ :param pulumi.Input[str] instance_id: The ID of the database file system.
424
+ :param pulumi.Input[int] retention_days: The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values: `1` to `65536`.
425
+ :param pulumi.Input[str] snapshot_name: The display name of the snapshot. The length is `2` to `128` characters. It must start with a large or small letter or Chinese, and cannot start with `http://` and `https://`. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start with `auto`.
370
426
  :param pulumi.Input[str] status: The status of the Snapshot.
371
427
  """
372
428
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -385,7 +441,7 @@ class Snapshot(pulumi.CustomResource):
385
441
  @pulumi.getter
386
442
  def description(self) -> pulumi.Output[Optional[str]]:
387
443
  """
388
- The description of the snapshot. The `description` must be `2` to `256` characters in length. It cannot start with `http://` or `https://`. **NOTE:** From version 1.233.1, `description` can be modified.
444
+ Description of the snapshot. The description must be `2` to `256` characters in length. It must start with a letter, and cannot start with `http://` or `https://`.
389
445
  """
390
446
  return pulumi.get(self, "description")
391
447
 
@@ -393,7 +449,7 @@ class Snapshot(pulumi.CustomResource):
393
449
  @pulumi.getter
394
450
  def force(self) -> pulumi.Output[Optional[bool]]:
395
451
  """
396
- Specifies whether to force delete the snapshot. Valid values:
452
+ Whether to force deletion of snapshots.
397
453
  """
398
454
  return pulumi.get(self, "force")
399
455
 
@@ -401,7 +457,7 @@ class Snapshot(pulumi.CustomResource):
401
457
  @pulumi.getter(name="instanceId")
402
458
  def instance_id(self) -> pulumi.Output[str]:
403
459
  """
404
- The ID of the Database File System.
460
+ The ID of the database file system.
405
461
  """
406
462
  return pulumi.get(self, "instance_id")
407
463
 
@@ -409,7 +465,7 @@ class Snapshot(pulumi.CustomResource):
409
465
  @pulumi.getter(name="retentionDays")
410
466
  def retention_days(self) -> pulumi.Output[Optional[int]]:
411
467
  """
412
- The retention period of the snapshot. Valid values: `1` to `65536`.
468
+ The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values: `1` to `65536`.
413
469
  """
414
470
  return pulumi.get(self, "retention_days")
415
471
 
@@ -417,7 +473,7 @@ class Snapshot(pulumi.CustomResource):
417
473
  @pulumi.getter(name="snapshotName")
418
474
  def snapshot_name(self) -> pulumi.Output[Optional[str]]:
419
475
  """
420
- The name of the snapshot. The `snapshot_name` must be `2` to `128` characters in length. It must start with a large or small letter or Chinese, and cannot start with `http://`, `https://`, `auto` or `dbfs-auto`. It can contain numbers, colons (:), underscores (_), or hyphens (-). **NOTE:** From version 1.233.1, `snapshot_name` can be modified.
476
+ The display name of the snapshot. The length is `2` to `128` characters. It must start with a large or small letter or Chinese, and cannot start with `http://` and `https://`. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start with `auto`.
421
477
  """
422
478
  return pulumi.get(self, "snapshot_name")
423
479