pulumi-alicloud 3.66.0a1731501166__py3-none-any.whl → 3.66.0a1731672315__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 +94 -0
- pulumi_alicloud/alb/load_balancer.py +1 -1
- pulumi_alicloud/alikafka/instance.py +112 -0
- pulumi_alicloud/arms/environment.py +7 -7
- pulumi_alicloud/arms/get_remote_writes.py +4 -4
- pulumi_alicloud/arms/prometheus_alert_rule.py +58 -0
- pulumi_alicloud/arms/remote_write.py +2 -2
- pulumi_alicloud/cen/transit_router_vbr_attachment.py +96 -74
- pulumi_alicloud/cloudsso/_inputs.py +9 -9
- pulumi_alicloud/cloudsso/access_configuration.py +100 -34
- pulumi_alicloud/cloudsso/outputs.py +6 -6
- pulumi_alicloud/cms/hybrid_monitor_fc_task.py +28 -26
- pulumi_alicloud/cr/chain.py +22 -14
- pulumi_alicloud/cr/chart_repository.py +14 -6
- pulumi_alicloud/cr/repo.py +8 -8
- pulumi_alicloud/cr/vpc_endpoint_linked_vpc.py +14 -6
- pulumi_alicloud/databasefilesystem/instance_attachment.py +59 -63
- pulumi_alicloud/databasefilesystem/snapshot.py +53 -109
- pulumi_alicloud/ecs/instance.py +7 -7
- pulumi_alicloud/esa/__init__.py +9 -0
- pulumi_alicloud/esa/rate_plan_instance.py +626 -0
- pulumi_alicloud/esa/site.py +533 -0
- pulumi_alicloud/ess/scaling_configuration.py +7 -7
- pulumi_alicloud/fc/_inputs.py +243 -135
- pulumi_alicloud/fc/outputs.py +173 -90
- pulumi_alicloud/fc/trigger.py +202 -138
- pulumi_alicloud/fc/v3_alias.py +28 -0
- pulumi_alicloud/fc/v3_async_invoke_config.py +56 -0
- pulumi_alicloud/fc/v3_concurrency_config.py +28 -0
- pulumi_alicloud/fc/v3_custom_domain.py +118 -6
- pulumi_alicloud/fc/v3_function.py +308 -0
- pulumi_alicloud/fc/v3_function_version.py +30 -2
- pulumi_alicloud/fc/v3_layer_version.py +104 -1
- pulumi_alicloud/fc/v3_provision_config.py +86 -2
- pulumi_alicloud/fc/v3_trigger.py +114 -0
- pulumi_alicloud/ga/custom_routing_endpoint_traffic_policy.py +48 -44
- pulumi_alicloud/governance/_inputs.py +54 -0
- pulumi_alicloud/governance/account.py +49 -14
- pulumi_alicloud/governance/outputs.py +51 -0
- pulumi_alicloud/gpdb/instance.py +196 -15
- pulumi_alicloud/gwlb/__init__.py +12 -0
- pulumi_alicloud/gwlb/_inputs.py +673 -0
- pulumi_alicloud/gwlb/listener.py +434 -0
- pulumi_alicloud/gwlb/load_balancer.py +537 -0
- pulumi_alicloud/gwlb/outputs.py +533 -0
- pulumi_alicloud/gwlb/server_group.py +780 -0
- pulumi_alicloud/kms/instance.py +28 -0
- pulumi_alicloud/nas/data_flow.py +6 -6
- pulumi_alicloud/nas/fileset.py +6 -6
- pulumi_alicloud/nas/lifecycle_policy.py +6 -6
- pulumi_alicloud/nas/recycle_bin.py +6 -6
- pulumi_alicloud/nas/snapshot.py +6 -6
- pulumi_alicloud/oss/__init__.py +2 -0
- pulumi_alicloud/oss/_inputs.py +194 -0
- pulumi_alicloud/oss/bucket_cname.py +509 -0
- pulumi_alicloud/oss/bucket_cname_token.py +239 -0
- pulumi_alicloud/oss/outputs.py +141 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/quotas/_inputs.py +6 -6
- pulumi_alicloud/quotas/outputs.py +4 -4
- pulumi_alicloud/quotas/quota_application.py +21 -28
- pulumi_alicloud/redis/tair_instance.py +1046 -71
- pulumi_alicloud/threatdetection/honeypot_preset.py +2 -0
- pulumi_alicloud/vpc/__init__.py +4 -0
- pulumi_alicloud/vpc/ipam_ipam.py +531 -0
- pulumi_alicloud/vpc/ipam_ipam_pool.py +850 -0
- pulumi_alicloud/vpc/ipam_ipam_pool_cidr.py +313 -0
- pulumi_alicloud/vpc/ipam_ipam_scope.py +537 -0
- pulumi_alicloud/vpn/gateway_vco_route.py +28 -8
- {pulumi_alicloud-3.66.0a1731501166.dist-info → pulumi_alicloud-3.66.0a1731672315.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.66.0a1731501166.dist-info → pulumi_alicloud-3.66.0a1731672315.dist-info}/RECORD +73 -58
- {pulumi_alicloud-3.66.0a1731501166.dist-info → pulumi_alicloud-3.66.0a1731672315.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.66.0a1731501166.dist-info → pulumi_alicloud-3.66.0a1731672315.dist-info}/top_level.txt +0 -0
|
@@ -237,17 +237,21 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
237
237
|
```python
|
|
238
238
|
import pulumi
|
|
239
239
|
import pulumi_alicloud as alicloud
|
|
240
|
+
import pulumi_random as random
|
|
240
241
|
|
|
241
242
|
config = pulumi.Config()
|
|
242
243
|
name = config.get("name")
|
|
243
244
|
if name is None:
|
|
244
245
|
name = "tf-example"
|
|
246
|
+
default_integer = random.index.Integer("default",
|
|
247
|
+
min=100000,
|
|
248
|
+
max=999999)
|
|
245
249
|
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
246
250
|
default_network = alicloud.vpc.Network("default",
|
|
247
|
-
vpc_name=name,
|
|
251
|
+
vpc_name=f"{name}-{default_integer['result']}",
|
|
248
252
|
cidr_block="10.4.0.0/16")
|
|
249
253
|
default_switch = alicloud.vpc.Switch("default",
|
|
250
|
-
vswitch_name=name,
|
|
254
|
+
vswitch_name=f"{name}-{default_integer['result']}",
|
|
251
255
|
cidr_block="10.4.0.0/24",
|
|
252
256
|
vpc_id=default_network.id,
|
|
253
257
|
zone_id=default.zones[0].id)
|
|
@@ -257,7 +261,7 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
257
261
|
renew_period=0,
|
|
258
262
|
renewal_status="ManualRenewal",
|
|
259
263
|
instance_type="Advanced",
|
|
260
|
-
instance_name=name)
|
|
264
|
+
instance_name=f"{name}-{default_integer['result']}")
|
|
261
265
|
default_vpc_endpoint_linked_vpc = alicloud.cr.VpcEndpointLinkedVpc("default",
|
|
262
266
|
instance_id=default_registry_enterprise_instance.id,
|
|
263
267
|
vpc_id=default_network.id,
|
|
@@ -304,17 +308,21 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
304
308
|
```python
|
|
305
309
|
import pulumi
|
|
306
310
|
import pulumi_alicloud as alicloud
|
|
311
|
+
import pulumi_random as random
|
|
307
312
|
|
|
308
313
|
config = pulumi.Config()
|
|
309
314
|
name = config.get("name")
|
|
310
315
|
if name is None:
|
|
311
316
|
name = "tf-example"
|
|
317
|
+
default_integer = random.index.Integer("default",
|
|
318
|
+
min=100000,
|
|
319
|
+
max=999999)
|
|
312
320
|
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
313
321
|
default_network = alicloud.vpc.Network("default",
|
|
314
|
-
vpc_name=name,
|
|
322
|
+
vpc_name=f"{name}-{default_integer['result']}",
|
|
315
323
|
cidr_block="10.4.0.0/16")
|
|
316
324
|
default_switch = alicloud.vpc.Switch("default",
|
|
317
|
-
vswitch_name=name,
|
|
325
|
+
vswitch_name=f"{name}-{default_integer['result']}",
|
|
318
326
|
cidr_block="10.4.0.0/24",
|
|
319
327
|
vpc_id=default_network.id,
|
|
320
328
|
zone_id=default.zones[0].id)
|
|
@@ -324,7 +332,7 @@ class VpcEndpointLinkedVpc(pulumi.CustomResource):
|
|
|
324
332
|
renew_period=0,
|
|
325
333
|
renewal_status="ManualRenewal",
|
|
326
334
|
instance_type="Advanced",
|
|
327
|
-
instance_name=name)
|
|
335
|
+
instance_name=f"{name}-{default_integer['result']}")
|
|
328
336
|
default_vpc_endpoint_linked_vpc = alicloud.cr.VpcEndpointLinkedVpc("default",
|
|
329
337
|
instance_id=default_registry_enterprise_instance.id,
|
|
330
338
|
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
|
|
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
|
|
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
|
|
67
|
-
:param pulumi.Input[str] status: The status of
|
|
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.
|
|
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
|
|
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
|
|
104
|
+
The status of Instance Attachment.
|
|
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 DBFS Instance Attachment resource.
|
|
122
|
+
Provides a Database File System (DBFS) Instance Attachment resource.
|
|
123
123
|
|
|
124
|
-
For information about DBFS Instance Attachment and how to use it.
|
|
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).
|
|
125
125
|
|
|
126
126
|
> **NOTE:** Available since v1.156.0.
|
|
127
127
|
|
|
@@ -136,41 +136,39 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
136
136
|
config = pulumi.Config()
|
|
137
137
|
name = config.get("name")
|
|
138
138
|
if name is None:
|
|
139
|
-
name = "
|
|
139
|
+
name = "terraform-example"
|
|
140
140
|
zone_id = "cn-hangzhou-i"
|
|
141
|
-
|
|
141
|
+
default = alicloud.databasefilesystem.get_instances()
|
|
142
|
+
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=zone_id,
|
|
142
143
|
instance_type_family="ecs.g7se")
|
|
143
|
-
|
|
144
|
-
name_regex="^
|
|
144
|
+
default_get_images = alicloud.ecs.get_images(instance_type=default_get_instance_types.instance_types[0].id,
|
|
145
|
+
name_regex="^aliyun_2_19",
|
|
145
146
|
owners="system")
|
|
146
|
-
|
|
147
|
-
default_get_switches = alicloud.vpc.get_switches(vpc_id=
|
|
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],
|
|
148
149
|
zone_id=zone_id)
|
|
149
|
-
|
|
150
|
+
default_security_group = alicloud.ecs.SecurityGroup("default",
|
|
150
151
|
name=name,
|
|
151
|
-
vpc_id=
|
|
152
|
+
vpc_id=default_get_networks.ids[0])
|
|
152
153
|
default_instance = alicloud.ecs.Instance("default",
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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",
|
|
158
162
|
vswitch_id=default_get_switches.ids[0],
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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)
|
|
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)
|
|
169
167
|
```
|
|
170
168
|
|
|
171
169
|
## Import
|
|
172
170
|
|
|
173
|
-
DBFS Instance Attachment can be imported using the id, e.g.
|
|
171
|
+
Database File System (DBFS) Instance Attachment can be imported using the id, e.g.
|
|
174
172
|
|
|
175
173
|
```sh
|
|
176
174
|
$ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>
|
|
@@ -179,7 +177,7 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
179
177
|
:param str resource_name: The name of the resource.
|
|
180
178
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
181
179
|
:param pulumi.Input[str] ecs_id: The ID of the ECS instance.
|
|
182
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
180
|
+
:param pulumi.Input[str] instance_id: The ID of the Database File System.
|
|
183
181
|
"""
|
|
184
182
|
...
|
|
185
183
|
@overload
|
|
@@ -188,9 +186,9 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
188
186
|
args: InstanceAttachmentArgs,
|
|
189
187
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
190
188
|
"""
|
|
191
|
-
Provides a DBFS Instance Attachment resource.
|
|
189
|
+
Provides a Database File System (DBFS) Instance Attachment resource.
|
|
192
190
|
|
|
193
|
-
For information about DBFS Instance Attachment and how to use it.
|
|
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).
|
|
194
192
|
|
|
195
193
|
> **NOTE:** Available since v1.156.0.
|
|
196
194
|
|
|
@@ -205,41 +203,39 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
205
203
|
config = pulumi.Config()
|
|
206
204
|
name = config.get("name")
|
|
207
205
|
if name is None:
|
|
208
|
-
name = "
|
|
206
|
+
name = "terraform-example"
|
|
209
207
|
zone_id = "cn-hangzhou-i"
|
|
210
|
-
|
|
208
|
+
default = alicloud.databasefilesystem.get_instances()
|
|
209
|
+
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=zone_id,
|
|
211
210
|
instance_type_family="ecs.g7se")
|
|
212
|
-
|
|
213
|
-
name_regex="^
|
|
211
|
+
default_get_images = alicloud.ecs.get_images(instance_type=default_get_instance_types.instance_types[0].id,
|
|
212
|
+
name_regex="^aliyun_2_19",
|
|
214
213
|
owners="system")
|
|
215
|
-
|
|
216
|
-
default_get_switches = alicloud.vpc.get_switches(vpc_id=
|
|
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],
|
|
217
216
|
zone_id=zone_id)
|
|
218
|
-
|
|
217
|
+
default_security_group = alicloud.ecs.SecurityGroup("default",
|
|
219
218
|
name=name,
|
|
220
|
-
vpc_id=
|
|
219
|
+
vpc_id=default_get_networks.ids[0])
|
|
221
220
|
default_instance = alicloud.ecs.Instance("default",
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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",
|
|
227
229
|
vswitch_id=default_get_switches.ids[0],
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
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)
|
|
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)
|
|
238
234
|
```
|
|
239
235
|
|
|
240
236
|
## Import
|
|
241
237
|
|
|
242
|
-
DBFS Instance Attachment can be imported using the id, e.g.
|
|
238
|
+
Database File System (DBFS) Instance Attachment can be imported using the id, e.g.
|
|
243
239
|
|
|
244
240
|
```sh
|
|
245
241
|
$ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>
|
|
@@ -299,8 +295,8 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
299
295
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
300
296
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
301
297
|
:param pulumi.Input[str] ecs_id: The ID of the ECS instance.
|
|
302
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
303
|
-
:param pulumi.Input[str] status: The status of
|
|
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.
|
|
304
300
|
"""
|
|
305
301
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
306
302
|
|
|
@@ -323,7 +319,7 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
323
319
|
@pulumi.getter(name="instanceId")
|
|
324
320
|
def instance_id(self) -> pulumi.Output[str]:
|
|
325
321
|
"""
|
|
326
|
-
The ID of the
|
|
322
|
+
The ID of the Database File System.
|
|
327
323
|
"""
|
|
328
324
|
return pulumi.get(self, "instance_id")
|
|
329
325
|
|
|
@@ -331,7 +327,7 @@ class InstanceAttachment(pulumi.CustomResource):
|
|
|
331
327
|
@pulumi.getter
|
|
332
328
|
def status(self) -> pulumi.Output[str]:
|
|
333
329
|
"""
|
|
334
|
-
The status of
|
|
330
|
+
The status of Instance Attachment.
|
|
335
331
|
"""
|
|
336
332
|
return pulumi.get(self, "status")
|
|
337
333
|
|
|
@@ -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
|
|
30
|
-
:param pulumi.Input[str] description:
|
|
31
|
-
:param pulumi.Input[bool] force:
|
|
32
|
-
:param pulumi.Input[int] retention_days: The retention
|
|
33
|
-
:param pulumi.Input[str] snapshot_name: The
|
|
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.
|
|
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
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
73
|
+
Specifies whether to force delete the snapshot. Valid values:
|
|
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
|
|
85
|
+
The retention period of the snapshot. 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
|
|
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.
|
|
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:
|
|
118
|
-
:param pulumi.Input[bool] force:
|
|
119
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
120
|
-
:param pulumi.Input[int] retention_days: The retention
|
|
121
|
-
:param pulumi.Input[str] snapshot_name: The
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
153
|
+
Specifies whether to force delete the snapshot. Valid values:
|
|
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
|
|
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
|
|
177
|
+
The retention period of the snapshot. 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
|
|
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.
|
|
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 DBFS Snapshot resource.
|
|
222
|
+
Provides a Database File System (DBFS) Snapshot resource.
|
|
223
223
|
|
|
224
|
-
For information about DBFS Snapshot and how to use it.
|
|
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).
|
|
225
225
|
|
|
226
226
|
> **NOTE:** Available since v1.156.0.
|
|
227
227
|
|
|
@@ -236,46 +236,18 @@ class Snapshot(pulumi.CustomResource):
|
|
|
236
236
|
config = pulumi.Config()
|
|
237
237
|
name = config.get("name")
|
|
238
238
|
if name is None:
|
|
239
|
-
name = "
|
|
240
|
-
|
|
241
|
-
example = alicloud.
|
|
242
|
-
|
|
243
|
-
|
|
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,
|
|
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,
|
|
271
244
|
snapshot_name=name,
|
|
272
|
-
description=
|
|
273
|
-
retention_days=30)
|
|
245
|
+
description="DbfsSnapshot")
|
|
274
246
|
```
|
|
275
247
|
|
|
276
248
|
## Import
|
|
277
249
|
|
|
278
|
-
DBFS Snapshot can be imported using the id, e.g.
|
|
250
|
+
Database File System (DBFS) Snapshot can be imported using the id, e.g.
|
|
279
251
|
|
|
280
252
|
```sh
|
|
281
253
|
$ pulumi import alicloud:databasefilesystem/snapshot:Snapshot example <id>
|
|
@@ -283,11 +255,11 @@ class Snapshot(pulumi.CustomResource):
|
|
|
283
255
|
|
|
284
256
|
:param str resource_name: The name of the resource.
|
|
285
257
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
286
|
-
:param pulumi.Input[str] description:
|
|
287
|
-
:param pulumi.Input[bool] force:
|
|
288
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
289
|
-
:param pulumi.Input[int] retention_days: The retention
|
|
290
|
-
:param pulumi.Input[str] snapshot_name: The
|
|
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.
|
|
291
263
|
"""
|
|
292
264
|
...
|
|
293
265
|
@overload
|
|
@@ -296,9 +268,9 @@ class Snapshot(pulumi.CustomResource):
|
|
|
296
268
|
args: SnapshotArgs,
|
|
297
269
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
298
270
|
"""
|
|
299
|
-
Provides a DBFS Snapshot resource.
|
|
271
|
+
Provides a Database File System (DBFS) Snapshot resource.
|
|
300
272
|
|
|
301
|
-
For information about DBFS Snapshot and how to use it.
|
|
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).
|
|
302
274
|
|
|
303
275
|
> **NOTE:** Available since v1.156.0.
|
|
304
276
|
|
|
@@ -313,46 +285,18 @@ class Snapshot(pulumi.CustomResource):
|
|
|
313
285
|
config = pulumi.Config()
|
|
314
286
|
name = config.get("name")
|
|
315
287
|
if name is None:
|
|
316
|
-
name = "
|
|
317
|
-
|
|
318
|
-
example = alicloud.
|
|
319
|
-
|
|
320
|
-
|
|
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,
|
|
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,
|
|
348
293
|
snapshot_name=name,
|
|
349
|
-
description=
|
|
350
|
-
retention_days=30)
|
|
294
|
+
description="DbfsSnapshot")
|
|
351
295
|
```
|
|
352
296
|
|
|
353
297
|
## Import
|
|
354
298
|
|
|
355
|
-
DBFS Snapshot can be imported using the id, e.g.
|
|
299
|
+
Database File System (DBFS) Snapshot can be imported using the id, e.g.
|
|
356
300
|
|
|
357
301
|
```sh
|
|
358
302
|
$ pulumi import alicloud:databasefilesystem/snapshot:Snapshot example <id>
|
|
@@ -418,11 +362,11 @@ class Snapshot(pulumi.CustomResource):
|
|
|
418
362
|
:param str resource_name: The unique name of the resulting resource.
|
|
419
363
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
420
364
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
421
|
-
:param pulumi.Input[str] description:
|
|
422
|
-
:param pulumi.Input[bool] force:
|
|
423
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
424
|
-
:param pulumi.Input[int] retention_days: The retention
|
|
425
|
-
:param pulumi.Input[str] snapshot_name: The
|
|
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.
|
|
426
370
|
:param pulumi.Input[str] status: The status of the Snapshot.
|
|
427
371
|
"""
|
|
428
372
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -441,7 +385,7 @@ class Snapshot(pulumi.CustomResource):
|
|
|
441
385
|
@pulumi.getter
|
|
442
386
|
def description(self) -> pulumi.Output[Optional[str]]:
|
|
443
387
|
"""
|
|
444
|
-
|
|
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.
|
|
445
389
|
"""
|
|
446
390
|
return pulumi.get(self, "description")
|
|
447
391
|
|
|
@@ -449,7 +393,7 @@ class Snapshot(pulumi.CustomResource):
|
|
|
449
393
|
@pulumi.getter
|
|
450
394
|
def force(self) -> pulumi.Output[Optional[bool]]:
|
|
451
395
|
"""
|
|
452
|
-
|
|
396
|
+
Specifies whether to force delete the snapshot. Valid values:
|
|
453
397
|
"""
|
|
454
398
|
return pulumi.get(self, "force")
|
|
455
399
|
|
|
@@ -457,7 +401,7 @@ class Snapshot(pulumi.CustomResource):
|
|
|
457
401
|
@pulumi.getter(name="instanceId")
|
|
458
402
|
def instance_id(self) -> pulumi.Output[str]:
|
|
459
403
|
"""
|
|
460
|
-
The ID of the
|
|
404
|
+
The ID of the Database File System.
|
|
461
405
|
"""
|
|
462
406
|
return pulumi.get(self, "instance_id")
|
|
463
407
|
|
|
@@ -465,7 +409,7 @@ class Snapshot(pulumi.CustomResource):
|
|
|
465
409
|
@pulumi.getter(name="retentionDays")
|
|
466
410
|
def retention_days(self) -> pulumi.Output[Optional[int]]:
|
|
467
411
|
"""
|
|
468
|
-
The retention
|
|
412
|
+
The retention period of the snapshot. Valid values: `1` to `65536`.
|
|
469
413
|
"""
|
|
470
414
|
return pulumi.get(self, "retention_days")
|
|
471
415
|
|
|
@@ -473,7 +417,7 @@ class Snapshot(pulumi.CustomResource):
|
|
|
473
417
|
@pulumi.getter(name="snapshotName")
|
|
474
418
|
def snapshot_name(self) -> pulumi.Output[Optional[str]]:
|
|
475
419
|
"""
|
|
476
|
-
The
|
|
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.
|
|
477
421
|
"""
|
|
478
422
|
return pulumi.get(self, "snapshot_name")
|
|
479
423
|
|