pulumi-alicloud 3.56.0a1715923185__py3-none-any.whl → 3.56.0a1716440817__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.
@@ -17,6 +17,7 @@ class AutoSnapshotPolicyArgs:
17
17
  repeat_weekdays: pulumi.Input[Sequence[pulumi.Input[str]]],
18
18
  time_points: pulumi.Input[Sequence[pulumi.Input[str]]],
19
19
  auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
20
+ file_system_type: Optional[pulumi.Input[str]] = None,
20
21
  retention_days: Optional[pulumi.Input[int]] = None):
21
22
  """
22
23
  The set of arguments for constructing a AutoSnapshotPolicy resource.
@@ -31,6 +32,7 @@ class AutoSnapshotPolicyArgs:
31
32
  - The name must start with a letter.
32
33
  - The name can contain digits, colons (:), underscores (_), and hyphens (-). The name cannot start with `http://` or `https://`.
33
34
  - The value of this parameter is empty by default.
35
+ :param pulumi.Input[str] file_system_type: The file system type.
34
36
  :param pulumi.Input[int] retention_days: The number of days for which you want to retain auto snapshots. Unit: days. Valid values:
35
37
  - `-1`: the default value. Auto snapshots are permanently retained. After the number of auto snapshots exceeds the upper limit, the earliest auto snapshot is automatically deleted.
36
38
  """
@@ -38,6 +40,8 @@ class AutoSnapshotPolicyArgs:
38
40
  pulumi.set(__self__, "time_points", time_points)
39
41
  if auto_snapshot_policy_name is not None:
40
42
  pulumi.set(__self__, "auto_snapshot_policy_name", auto_snapshot_policy_name)
43
+ if file_system_type is not None:
44
+ pulumi.set(__self__, "file_system_type", file_system_type)
41
45
  if retention_days is not None:
42
46
  pulumi.set(__self__, "retention_days", retention_days)
43
47
 
@@ -85,6 +89,18 @@ class AutoSnapshotPolicyArgs:
85
89
  def auto_snapshot_policy_name(self, value: Optional[pulumi.Input[str]]):
86
90
  pulumi.set(self, "auto_snapshot_policy_name", value)
87
91
 
92
+ @property
93
+ @pulumi.getter(name="fileSystemType")
94
+ def file_system_type(self) -> Optional[pulumi.Input[str]]:
95
+ """
96
+ The file system type.
97
+ """
98
+ return pulumi.get(self, "file_system_type")
99
+
100
+ @file_system_type.setter
101
+ def file_system_type(self, value: Optional[pulumi.Input[str]]):
102
+ pulumi.set(self, "file_system_type", value)
103
+
88
104
  @property
89
105
  @pulumi.getter(name="retentionDays")
90
106
  def retention_days(self) -> Optional[pulumi.Input[int]]:
@@ -103,6 +119,8 @@ class AutoSnapshotPolicyArgs:
103
119
  class _AutoSnapshotPolicyState:
104
120
  def __init__(__self__, *,
105
121
  auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
122
+ create_time: Optional[pulumi.Input[str]] = None,
123
+ file_system_type: Optional[pulumi.Input[str]] = None,
106
124
  repeat_weekdays: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
107
125
  retention_days: Optional[pulumi.Input[int]] = None,
108
126
  status: Optional[pulumi.Input[str]] = None,
@@ -114,6 +132,8 @@ class _AutoSnapshotPolicyState:
114
132
  - The name must start with a letter.
115
133
  - The name can contain digits, colons (:), underscores (_), and hyphens (-). The name cannot start with `http://` or `https://`.
116
134
  - The value of this parameter is empty by default.
135
+ :param pulumi.Input[str] create_time: Creation time.
136
+ :param pulumi.Input[str] file_system_type: The file system type.
117
137
  :param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The day on which an auto snapshot is created.
118
138
  - A maximum of 7 time points can be selected.
119
139
  - The format is an JSON array of ["1", "2", … "7"] and the time points are separated by commas (,).
@@ -126,6 +146,10 @@ class _AutoSnapshotPolicyState:
126
146
  """
127
147
  if auto_snapshot_policy_name is not None:
128
148
  pulumi.set(__self__, "auto_snapshot_policy_name", auto_snapshot_policy_name)
149
+ if create_time is not None:
150
+ pulumi.set(__self__, "create_time", create_time)
151
+ if file_system_type is not None:
152
+ pulumi.set(__self__, "file_system_type", file_system_type)
129
153
  if repeat_weekdays is not None:
130
154
  pulumi.set(__self__, "repeat_weekdays", repeat_weekdays)
131
155
  if retention_days is not None:
@@ -151,6 +175,30 @@ class _AutoSnapshotPolicyState:
151
175
  def auto_snapshot_policy_name(self, value: Optional[pulumi.Input[str]]):
152
176
  pulumi.set(self, "auto_snapshot_policy_name", value)
153
177
 
178
+ @property
179
+ @pulumi.getter(name="createTime")
180
+ def create_time(self) -> Optional[pulumi.Input[str]]:
181
+ """
182
+ Creation time.
183
+ """
184
+ return pulumi.get(self, "create_time")
185
+
186
+ @create_time.setter
187
+ def create_time(self, value: Optional[pulumi.Input[str]]):
188
+ pulumi.set(self, "create_time", value)
189
+
190
+ @property
191
+ @pulumi.getter(name="fileSystemType")
192
+ def file_system_type(self) -> Optional[pulumi.Input[str]]:
193
+ """
194
+ The file system type.
195
+ """
196
+ return pulumi.get(self, "file_system_type")
197
+
198
+ @file_system_type.setter
199
+ def file_system_type(self, value: Optional[pulumi.Input[str]]):
200
+ pulumi.set(self, "file_system_type", value)
201
+
154
202
  @property
155
203
  @pulumi.getter(name="repeatWeekdays")
156
204
  def repeat_weekdays(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
@@ -211,16 +259,17 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
211
259
  resource_name: str,
212
260
  opts: Optional[pulumi.ResourceOptions] = None,
213
261
  auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
262
+ file_system_type: Optional[pulumi.Input[str]] = None,
214
263
  repeat_weekdays: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
215
264
  retention_days: Optional[pulumi.Input[int]] = None,
216
265
  time_points: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
217
266
  __props__=None):
218
267
  """
219
- Provides a Network Attached Storage (NAS) Auto Snapshot Policy resource.
268
+ Provides a NAS Auto Snapshot Policy resource. Automatic snapshot policy.
220
269
 
221
- For information about Network Attached Storage (NAS) Auto Snapshot Policy and how to use it, see [What is Auto Snapshot Policy](https://www.alibabacloud.com/help/en/doc-detail/135662.html).
270
+ For information about NAS Auto Snapshot Policy and how to use it, see [What is Auto Snapshot Policy](https://www.alibabacloud.com/help/en/doc-detail/135662.html)).
222
271
 
223
- > **NOTE:** Available in v1.153.0+.
272
+ > **NOTE:** Available since v1.153.0.
224
273
 
225
274
  ## Example Usage
226
275
 
@@ -230,24 +279,29 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
230
279
  import pulumi
231
280
  import pulumi_alicloud as alicloud
232
281
 
233
- example = alicloud.nas.AutoSnapshotPolicy("example",
234
- auto_snapshot_policy_name="example_value",
282
+ config = pulumi.Config()
283
+ name = config.get("name")
284
+ if name is None:
285
+ name = "terraform-example"
286
+ default = alicloud.nas.AutoSnapshotPolicy("default",
287
+ time_points=[
288
+ "0",
289
+ "1",
290
+ "2",
291
+ ],
292
+ retention_days=1,
235
293
  repeat_weekdays=[
294
+ "2",
236
295
  "3",
237
296
  "4",
238
- "5",
239
297
  ],
240
- retention_days=30,
241
- time_points=[
242
- "3",
243
- "4",
244
- "5",
245
- ])
298
+ auto_snapshot_policy_name=name,
299
+ file_system_type="extreme")
246
300
  ```
247
301
 
248
302
  ## Import
249
303
 
250
- Network Attached Storage (NAS) Auto Snapshot Policy can be imported using the id, e.g.
304
+ NAS Auto Snapshot Policy can be imported using the id, e.g.
251
305
 
252
306
  ```sh
253
307
  $ pulumi import alicloud:nas/autoSnapshotPolicy:AutoSnapshotPolicy example <id>
@@ -260,6 +314,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
260
314
  - The name must start with a letter.
261
315
  - The name can contain digits, colons (:), underscores (_), and hyphens (-). The name cannot start with `http://` or `https://`.
262
316
  - The value of this parameter is empty by default.
317
+ :param pulumi.Input[str] file_system_type: The file system type.
263
318
  :param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The day on which an auto snapshot is created.
264
319
  - A maximum of 7 time points can be selected.
265
320
  - The format is an JSON array of ["1", "2", … "7"] and the time points are separated by commas (,).
@@ -276,11 +331,11 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
276
331
  args: AutoSnapshotPolicyArgs,
277
332
  opts: Optional[pulumi.ResourceOptions] = None):
278
333
  """
279
- Provides a Network Attached Storage (NAS) Auto Snapshot Policy resource.
334
+ Provides a NAS Auto Snapshot Policy resource. Automatic snapshot policy.
280
335
 
281
- For information about Network Attached Storage (NAS) Auto Snapshot Policy and how to use it, see [What is Auto Snapshot Policy](https://www.alibabacloud.com/help/en/doc-detail/135662.html).
336
+ For information about NAS Auto Snapshot Policy and how to use it, see [What is Auto Snapshot Policy](https://www.alibabacloud.com/help/en/doc-detail/135662.html)).
282
337
 
283
- > **NOTE:** Available in v1.153.0+.
338
+ > **NOTE:** Available since v1.153.0.
284
339
 
285
340
  ## Example Usage
286
341
 
@@ -290,24 +345,29 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
290
345
  import pulumi
291
346
  import pulumi_alicloud as alicloud
292
347
 
293
- example = alicloud.nas.AutoSnapshotPolicy("example",
294
- auto_snapshot_policy_name="example_value",
348
+ config = pulumi.Config()
349
+ name = config.get("name")
350
+ if name is None:
351
+ name = "terraform-example"
352
+ default = alicloud.nas.AutoSnapshotPolicy("default",
353
+ time_points=[
354
+ "0",
355
+ "1",
356
+ "2",
357
+ ],
358
+ retention_days=1,
295
359
  repeat_weekdays=[
360
+ "2",
296
361
  "3",
297
362
  "4",
298
- "5",
299
363
  ],
300
- retention_days=30,
301
- time_points=[
302
- "3",
303
- "4",
304
- "5",
305
- ])
364
+ auto_snapshot_policy_name=name,
365
+ file_system_type="extreme")
306
366
  ```
307
367
 
308
368
  ## Import
309
369
 
310
- Network Attached Storage (NAS) Auto Snapshot Policy can be imported using the id, e.g.
370
+ NAS Auto Snapshot Policy can be imported using the id, e.g.
311
371
 
312
372
  ```sh
313
373
  $ pulumi import alicloud:nas/autoSnapshotPolicy:AutoSnapshotPolicy example <id>
@@ -329,6 +389,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
329
389
  resource_name: str,
330
390
  opts: Optional[pulumi.ResourceOptions] = None,
331
391
  auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
392
+ file_system_type: Optional[pulumi.Input[str]] = None,
332
393
  repeat_weekdays: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
333
394
  retention_days: Optional[pulumi.Input[int]] = None,
334
395
  time_points: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -342,6 +403,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
342
403
  __props__ = AutoSnapshotPolicyArgs.__new__(AutoSnapshotPolicyArgs)
343
404
 
344
405
  __props__.__dict__["auto_snapshot_policy_name"] = auto_snapshot_policy_name
406
+ __props__.__dict__["file_system_type"] = file_system_type
345
407
  if repeat_weekdays is None and not opts.urn:
346
408
  raise TypeError("Missing required property 'repeat_weekdays'")
347
409
  __props__.__dict__["repeat_weekdays"] = repeat_weekdays
@@ -349,6 +411,7 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
349
411
  if time_points is None and not opts.urn:
350
412
  raise TypeError("Missing required property 'time_points'")
351
413
  __props__.__dict__["time_points"] = time_points
414
+ __props__.__dict__["create_time"] = None
352
415
  __props__.__dict__["status"] = None
353
416
  super(AutoSnapshotPolicy, __self__).__init__(
354
417
  'alicloud:nas/autoSnapshotPolicy:AutoSnapshotPolicy',
@@ -361,6 +424,8 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
361
424
  id: pulumi.Input[str],
362
425
  opts: Optional[pulumi.ResourceOptions] = None,
363
426
  auto_snapshot_policy_name: Optional[pulumi.Input[str]] = None,
427
+ create_time: Optional[pulumi.Input[str]] = None,
428
+ file_system_type: Optional[pulumi.Input[str]] = None,
364
429
  repeat_weekdays: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
365
430
  retention_days: Optional[pulumi.Input[int]] = None,
366
431
  status: Optional[pulumi.Input[str]] = None,
@@ -377,6 +442,8 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
377
442
  - The name must start with a letter.
378
443
  - The name can contain digits, colons (:), underscores (_), and hyphens (-). The name cannot start with `http://` or `https://`.
379
444
  - The value of this parameter is empty by default.
445
+ :param pulumi.Input[str] create_time: Creation time.
446
+ :param pulumi.Input[str] file_system_type: The file system type.
380
447
  :param pulumi.Input[Sequence[pulumi.Input[str]]] repeat_weekdays: The day on which an auto snapshot is created.
381
448
  - A maximum of 7 time points can be selected.
382
449
  - The format is an JSON array of ["1", "2", … "7"] and the time points are separated by commas (,).
@@ -392,6 +459,8 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
392
459
  __props__ = _AutoSnapshotPolicyState.__new__(_AutoSnapshotPolicyState)
393
460
 
394
461
  __props__.__dict__["auto_snapshot_policy_name"] = auto_snapshot_policy_name
462
+ __props__.__dict__["create_time"] = create_time
463
+ __props__.__dict__["file_system_type"] = file_system_type
395
464
  __props__.__dict__["repeat_weekdays"] = repeat_weekdays
396
465
  __props__.__dict__["retention_days"] = retention_days
397
466
  __props__.__dict__["status"] = status
@@ -410,6 +479,22 @@ class AutoSnapshotPolicy(pulumi.CustomResource):
410
479
  """
411
480
  return pulumi.get(self, "auto_snapshot_policy_name")
412
481
 
482
+ @property
483
+ @pulumi.getter(name="createTime")
484
+ def create_time(self) -> pulumi.Output[str]:
485
+ """
486
+ Creation time.
487
+ """
488
+ return pulumi.get(self, "create_time")
489
+
490
+ @property
491
+ @pulumi.getter(name="fileSystemType")
492
+ def file_system_type(self) -> pulumi.Output[str]:
493
+ """
494
+ The file system type.
495
+ """
496
+ return pulumi.get(self, "file_system_type")
497
+
413
498
  @property
414
499
  @pulumi.getter(name="repeatWeekdays")
415
500
  def repeat_weekdays(self) -> pulumi.Output[Sequence[str]]:
@@ -19,6 +19,7 @@ class VpcEndpointArgs:
19
19
  dry_run: Optional[pulumi.Input[bool]] = None,
20
20
  endpoint_description: Optional[pulumi.Input[str]] = None,
21
21
  endpoint_type: Optional[pulumi.Input[str]] = None,
22
+ policy_document: Optional[pulumi.Input[str]] = None,
22
23
  protected_enabled: Optional[pulumi.Input[bool]] = None,
23
24
  resource_group_id: Optional[pulumi.Input[str]] = None,
24
25
  service_id: Optional[pulumi.Input[str]] = None,
@@ -34,7 +35,8 @@ class VpcEndpointArgs:
34
35
  - **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
35
36
  - **false (default)**: performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
36
37
  :param pulumi.Input[str] endpoint_description: The description of the endpoint.
37
- :param pulumi.Input[str] endpoint_type: The endpoint type.Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
38
+ :param pulumi.Input[str] endpoint_type: The endpoint type. Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
39
+ :param pulumi.Input[str] policy_document: RAM access policies.
38
40
  :param pulumi.Input[bool] protected_enabled: Specifies whether to enable user authentication. This parameter is available in Security Token Service (STS) mode. Valid values:
39
41
  - **true**: enables user authentication. After user authentication is enabled, only the user who creates the endpoint can modify or delete the endpoint in STS mode.
40
42
  - **false (default)**: disables user authentication.
@@ -53,6 +55,8 @@ class VpcEndpointArgs:
53
55
  pulumi.set(__self__, "endpoint_description", endpoint_description)
54
56
  if endpoint_type is not None:
55
57
  pulumi.set(__self__, "endpoint_type", endpoint_type)
58
+ if policy_document is not None:
59
+ pulumi.set(__self__, "policy_document", policy_document)
56
60
  if protected_enabled is not None:
57
61
  pulumi.set(__self__, "protected_enabled", protected_enabled)
58
62
  if resource_group_id is not None:
@@ -122,7 +126,7 @@ class VpcEndpointArgs:
122
126
  @pulumi.getter(name="endpointType")
123
127
  def endpoint_type(self) -> Optional[pulumi.Input[str]]:
124
128
  """
125
- The endpoint type.Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
129
+ The endpoint type. Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
126
130
  """
127
131
  return pulumi.get(self, "endpoint_type")
128
132
 
@@ -130,6 +134,18 @@ class VpcEndpointArgs:
130
134
  def endpoint_type(self, value: Optional[pulumi.Input[str]]):
131
135
  pulumi.set(self, "endpoint_type", value)
132
136
 
137
+ @property
138
+ @pulumi.getter(name="policyDocument")
139
+ def policy_document(self) -> Optional[pulumi.Input[str]]:
140
+ """
141
+ RAM access policies.
142
+ """
143
+ return pulumi.get(self, "policy_document")
144
+
145
+ @policy_document.setter
146
+ def policy_document(self, value: Optional[pulumi.Input[str]]):
147
+ pulumi.set(self, "policy_document", value)
148
+
133
149
  @property
134
150
  @pulumi.getter(name="protectedEnabled")
135
151
  def protected_enabled(self) -> Optional[pulumi.Input[bool]]:
@@ -228,6 +244,7 @@ class _VpcEndpointState:
228
244
  endpoint_description: Optional[pulumi.Input[str]] = None,
229
245
  endpoint_domain: Optional[pulumi.Input[str]] = None,
230
246
  endpoint_type: Optional[pulumi.Input[str]] = None,
247
+ policy_document: Optional[pulumi.Input[str]] = None,
231
248
  protected_enabled: Optional[pulumi.Input[bool]] = None,
232
249
  resource_group_id: Optional[pulumi.Input[str]] = None,
233
250
  security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -240,7 +257,7 @@ class _VpcEndpointState:
240
257
  zone_private_ip_address_count: Optional[pulumi.Input[int]] = None):
241
258
  """
242
259
  Input properties used for looking up and filtering VpcEndpoint resources.
243
- :param pulumi.Input[int] bandwidth: The bandwidth of the endpoint connection. 1024 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
260
+ :param pulumi.Input[int] bandwidth: The bandwidth of the endpoint connection. 1024 to 10240. Unit: Mbit/s. Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
244
261
  :param pulumi.Input[str] connection_status: The state of the endpoint connection.
245
262
  :param pulumi.Input[str] create_time: The time when the endpoint was created.
246
263
  :param pulumi.Input[bool] dry_run: Specifies whether to perform only a dry run, without performing the actual request. Valid values:
@@ -249,7 +266,8 @@ class _VpcEndpointState:
249
266
  :param pulumi.Input[str] endpoint_business_status: The service state of the endpoint.
250
267
  :param pulumi.Input[str] endpoint_description: The description of the endpoint.
251
268
  :param pulumi.Input[str] endpoint_domain: The domain name of the endpoint.
252
- :param pulumi.Input[str] endpoint_type: The endpoint type.Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
269
+ :param pulumi.Input[str] endpoint_type: The endpoint type. Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
270
+ :param pulumi.Input[str] policy_document: RAM access policies.
253
271
  :param pulumi.Input[bool] protected_enabled: Specifies whether to enable user authentication. This parameter is available in Security Token Service (STS) mode. Valid values:
254
272
  - **true**: enables user authentication. After user authentication is enabled, only the user who creates the endpoint can modify or delete the endpoint in STS mode.
255
273
  - **false (default)**: disables user authentication.
@@ -279,6 +297,8 @@ class _VpcEndpointState:
279
297
  pulumi.set(__self__, "endpoint_domain", endpoint_domain)
280
298
  if endpoint_type is not None:
281
299
  pulumi.set(__self__, "endpoint_type", endpoint_type)
300
+ if policy_document is not None:
301
+ pulumi.set(__self__, "policy_document", policy_document)
282
302
  if protected_enabled is not None:
283
303
  pulumi.set(__self__, "protected_enabled", protected_enabled)
284
304
  if resource_group_id is not None:
@@ -304,7 +324,7 @@ class _VpcEndpointState:
304
324
  @pulumi.getter
305
325
  def bandwidth(self) -> Optional[pulumi.Input[int]]:
306
326
  """
307
- The bandwidth of the endpoint connection. 1024 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
327
+ The bandwidth of the endpoint connection. 1024 to 10240. Unit: Mbit/s. Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
308
328
  """
309
329
  return pulumi.get(self, "bandwidth")
310
330
 
@@ -390,7 +410,7 @@ class _VpcEndpointState:
390
410
  @pulumi.getter(name="endpointType")
391
411
  def endpoint_type(self) -> Optional[pulumi.Input[str]]:
392
412
  """
393
- The endpoint type.Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
413
+ The endpoint type. Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
394
414
  """
395
415
  return pulumi.get(self, "endpoint_type")
396
416
 
@@ -398,6 +418,18 @@ class _VpcEndpointState:
398
418
  def endpoint_type(self, value: Optional[pulumi.Input[str]]):
399
419
  pulumi.set(self, "endpoint_type", value)
400
420
 
421
+ @property
422
+ @pulumi.getter(name="policyDocument")
423
+ def policy_document(self) -> Optional[pulumi.Input[str]]:
424
+ """
425
+ RAM access policies.
426
+ """
427
+ return pulumi.get(self, "policy_document")
428
+
429
+ @policy_document.setter
430
+ def policy_document(self, value: Optional[pulumi.Input[str]]):
431
+ pulumi.set(self, "policy_document", value)
432
+
401
433
  @property
402
434
  @pulumi.getter(name="protectedEnabled")
403
435
  def protected_enabled(self) -> Optional[pulumi.Input[bool]]:
@@ -529,6 +561,7 @@ class VpcEndpoint(pulumi.CustomResource):
529
561
  dry_run: Optional[pulumi.Input[bool]] = None,
530
562
  endpoint_description: Optional[pulumi.Input[str]] = None,
531
563
  endpoint_type: Optional[pulumi.Input[str]] = None,
564
+ policy_document: Optional[pulumi.Input[str]] = None,
532
565
  protected_enabled: Optional[pulumi.Input[bool]] = None,
533
566
  resource_group_id: Optional[pulumi.Input[str]] = None,
534
567
  security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -552,27 +585,45 @@ class VpcEndpoint(pulumi.CustomResource):
552
585
 
553
586
  ```python
554
587
  import pulumi
588
+ import json
555
589
  import pulumi_alicloud as alicloud
556
590
 
557
591
  config = pulumi.Config()
558
592
  name = config.get("name")
559
593
  if name is None:
560
- name = "tf-example"
561
- example = alicloud.privatelink.VpcEndpointService("example",
562
- service_description=name,
563
- connect_bandwidth=103,
564
- auto_accept_connection=False)
565
- example_network = alicloud.vpc.Network("example",
566
- vpc_name=name,
567
- cidr_block="10.0.0.0/8")
568
- example_security_group = alicloud.ecs.SecurityGroup("example",
594
+ name = "terraform-example"
595
+ default = alicloud.resourcemanager.get_resource_groups()
596
+ defaultb_fz_a4a = alicloud.vpc.Network("defaultbFzA4a",
597
+ description="example-terraform",
598
+ cidr_block="172.16.0.0/12",
599
+ vpc_name=name)
600
+ default1_ft_fr_p = alicloud.ecs.SecurityGroup("default1FTFrP",
569
601
  name=name,
570
- vpc_id=example_network.id)
571
- example_vpc_endpoint = alicloud.privatelink.VpcEndpoint("example",
572
- service_id=example.id,
573
- security_group_ids=[example_security_group.id],
574
- vpc_id=example_network.id,
575
- vpc_endpoint_name=name)
602
+ vpc_id=defaultb_fz_a4a.id)
603
+ defaultjlj_y5_s = alicloud.ecs.SecurityGroup("defaultjljY5S",
604
+ name=name,
605
+ vpc_id=defaultb_fz_a4a.id)
606
+ default_vpc_endpoint = alicloud.privatelink.VpcEndpoint("default",
607
+ endpoint_description=name,
608
+ vpc_endpoint_name=name,
609
+ resource_group_id=default.ids[0],
610
+ endpoint_type="Interface",
611
+ vpc_id=defaultb_fz_a4a.id,
612
+ service_name="com.aliyuncs.privatelink.ap-southeast-5.oss",
613
+ dry_run=False,
614
+ zone_private_ip_address_count=1,
615
+ policy_document=json.dumps({
616
+ "Version": "1",
617
+ "Statement": [{
618
+ "Effect": "Allow",
619
+ "Action": ["*"],
620
+ "Resource": ["*"],
621
+ "Principal": "*",
622
+ }],
623
+ }),
624
+ security_group_ids=[default1_ft_fr_p.id],
625
+ service_id="epsrv-k1apjysze8u1l9t6uyg9",
626
+ protected_enabled=False)
576
627
  ```
577
628
 
578
629
  ## Import
@@ -589,7 +640,8 @@ class VpcEndpoint(pulumi.CustomResource):
589
640
  - **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
590
641
  - **false (default)**: performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
591
642
  :param pulumi.Input[str] endpoint_description: The description of the endpoint.
592
- :param pulumi.Input[str] endpoint_type: The endpoint type.Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
643
+ :param pulumi.Input[str] endpoint_type: The endpoint type. Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
644
+ :param pulumi.Input[str] policy_document: RAM access policies.
593
645
  :param pulumi.Input[bool] protected_enabled: Specifies whether to enable user authentication. This parameter is available in Security Token Service (STS) mode. Valid values:
594
646
  - **true**: enables user authentication. After user authentication is enabled, only the user who creates the endpoint can modify or delete the endpoint in STS mode.
595
647
  - **false (default)**: disables user authentication.
@@ -621,27 +673,45 @@ class VpcEndpoint(pulumi.CustomResource):
621
673
 
622
674
  ```python
623
675
  import pulumi
676
+ import json
624
677
  import pulumi_alicloud as alicloud
625
678
 
626
679
  config = pulumi.Config()
627
680
  name = config.get("name")
628
681
  if name is None:
629
- name = "tf-example"
630
- example = alicloud.privatelink.VpcEndpointService("example",
631
- service_description=name,
632
- connect_bandwidth=103,
633
- auto_accept_connection=False)
634
- example_network = alicloud.vpc.Network("example",
635
- vpc_name=name,
636
- cidr_block="10.0.0.0/8")
637
- example_security_group = alicloud.ecs.SecurityGroup("example",
682
+ name = "terraform-example"
683
+ default = alicloud.resourcemanager.get_resource_groups()
684
+ defaultb_fz_a4a = alicloud.vpc.Network("defaultbFzA4a",
685
+ description="example-terraform",
686
+ cidr_block="172.16.0.0/12",
687
+ vpc_name=name)
688
+ default1_ft_fr_p = alicloud.ecs.SecurityGroup("default1FTFrP",
689
+ name=name,
690
+ vpc_id=defaultb_fz_a4a.id)
691
+ defaultjlj_y5_s = alicloud.ecs.SecurityGroup("defaultjljY5S",
638
692
  name=name,
639
- vpc_id=example_network.id)
640
- example_vpc_endpoint = alicloud.privatelink.VpcEndpoint("example",
641
- service_id=example.id,
642
- security_group_ids=[example_security_group.id],
643
- vpc_id=example_network.id,
644
- vpc_endpoint_name=name)
693
+ vpc_id=defaultb_fz_a4a.id)
694
+ default_vpc_endpoint = alicloud.privatelink.VpcEndpoint("default",
695
+ endpoint_description=name,
696
+ vpc_endpoint_name=name,
697
+ resource_group_id=default.ids[0],
698
+ endpoint_type="Interface",
699
+ vpc_id=defaultb_fz_a4a.id,
700
+ service_name="com.aliyuncs.privatelink.ap-southeast-5.oss",
701
+ dry_run=False,
702
+ zone_private_ip_address_count=1,
703
+ policy_document=json.dumps({
704
+ "Version": "1",
705
+ "Statement": [{
706
+ "Effect": "Allow",
707
+ "Action": ["*"],
708
+ "Resource": ["*"],
709
+ "Principal": "*",
710
+ }],
711
+ }),
712
+ security_group_ids=[default1_ft_fr_p.id],
713
+ service_id="epsrv-k1apjysze8u1l9t6uyg9",
714
+ protected_enabled=False)
645
715
  ```
646
716
 
647
717
  ## Import
@@ -670,6 +740,7 @@ class VpcEndpoint(pulumi.CustomResource):
670
740
  dry_run: Optional[pulumi.Input[bool]] = None,
671
741
  endpoint_description: Optional[pulumi.Input[str]] = None,
672
742
  endpoint_type: Optional[pulumi.Input[str]] = None,
743
+ policy_document: Optional[pulumi.Input[str]] = None,
673
744
  protected_enabled: Optional[pulumi.Input[bool]] = None,
674
745
  resource_group_id: Optional[pulumi.Input[str]] = None,
675
746
  security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -691,6 +762,7 @@ class VpcEndpoint(pulumi.CustomResource):
691
762
  __props__.__dict__["dry_run"] = dry_run
692
763
  __props__.__dict__["endpoint_description"] = endpoint_description
693
764
  __props__.__dict__["endpoint_type"] = endpoint_type
765
+ __props__.__dict__["policy_document"] = policy_document
694
766
  __props__.__dict__["protected_enabled"] = protected_enabled
695
767
  __props__.__dict__["resource_group_id"] = resource_group_id
696
768
  if security_group_ids is None and not opts.urn:
@@ -728,6 +800,7 @@ class VpcEndpoint(pulumi.CustomResource):
728
800
  endpoint_description: Optional[pulumi.Input[str]] = None,
729
801
  endpoint_domain: Optional[pulumi.Input[str]] = None,
730
802
  endpoint_type: Optional[pulumi.Input[str]] = None,
803
+ policy_document: Optional[pulumi.Input[str]] = None,
731
804
  protected_enabled: Optional[pulumi.Input[bool]] = None,
732
805
  resource_group_id: Optional[pulumi.Input[str]] = None,
733
806
  security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -745,7 +818,7 @@ class VpcEndpoint(pulumi.CustomResource):
745
818
  :param str resource_name: The unique name of the resulting resource.
746
819
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
747
820
  :param pulumi.ResourceOptions opts: Options for the resource.
748
- :param pulumi.Input[int] bandwidth: The bandwidth of the endpoint connection. 1024 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
821
+ :param pulumi.Input[int] bandwidth: The bandwidth of the endpoint connection. 1024 to 10240. Unit: Mbit/s. Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
749
822
  :param pulumi.Input[str] connection_status: The state of the endpoint connection.
750
823
  :param pulumi.Input[str] create_time: The time when the endpoint was created.
751
824
  :param pulumi.Input[bool] dry_run: Specifies whether to perform only a dry run, without performing the actual request. Valid values:
@@ -754,7 +827,8 @@ class VpcEndpoint(pulumi.CustomResource):
754
827
  :param pulumi.Input[str] endpoint_business_status: The service state of the endpoint.
755
828
  :param pulumi.Input[str] endpoint_description: The description of the endpoint.
756
829
  :param pulumi.Input[str] endpoint_domain: The domain name of the endpoint.
757
- :param pulumi.Input[str] endpoint_type: The endpoint type.Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
830
+ :param pulumi.Input[str] endpoint_type: The endpoint type. Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
831
+ :param pulumi.Input[str] policy_document: RAM access policies.
758
832
  :param pulumi.Input[bool] protected_enabled: Specifies whether to enable user authentication. This parameter is available in Security Token Service (STS) mode. Valid values:
759
833
  - **true**: enables user authentication. After user authentication is enabled, only the user who creates the endpoint can modify or delete the endpoint in STS mode.
760
834
  - **false (default)**: disables user authentication.
@@ -780,6 +854,7 @@ class VpcEndpoint(pulumi.CustomResource):
780
854
  __props__.__dict__["endpoint_description"] = endpoint_description
781
855
  __props__.__dict__["endpoint_domain"] = endpoint_domain
782
856
  __props__.__dict__["endpoint_type"] = endpoint_type
857
+ __props__.__dict__["policy_document"] = policy_document
783
858
  __props__.__dict__["protected_enabled"] = protected_enabled
784
859
  __props__.__dict__["resource_group_id"] = resource_group_id
785
860
  __props__.__dict__["security_group_ids"] = security_group_ids
@@ -796,7 +871,7 @@ class VpcEndpoint(pulumi.CustomResource):
796
871
  @pulumi.getter
797
872
  def bandwidth(self) -> pulumi.Output[int]:
798
873
  """
799
- The bandwidth of the endpoint connection. 1024 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
874
+ The bandwidth of the endpoint connection. 1024 to 10240. Unit: Mbit/s. Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
800
875
  """
801
876
  return pulumi.get(self, "bandwidth")
802
877
 
@@ -854,10 +929,18 @@ class VpcEndpoint(pulumi.CustomResource):
854
929
  @pulumi.getter(name="endpointType")
855
930
  def endpoint_type(self) -> pulumi.Output[str]:
856
931
  """
857
- The endpoint type.Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
932
+ The endpoint type. Only the value: Interface, indicating the Interface endpoint. You can add the service resource types of Application Load Balancer (ALB), Classic Load Balancer (CLB), and Network Load Balancer (NLB).
858
933
  """
859
934
  return pulumi.get(self, "endpoint_type")
860
935
 
936
+ @property
937
+ @pulumi.getter(name="policyDocument")
938
+ def policy_document(self) -> pulumi.Output[str]:
939
+ """
940
+ RAM access policies.
941
+ """
942
+ return pulumi.get(self, "policy_document")
943
+
861
944
  @property
862
945
  @pulumi.getter(name="protectedEnabled")
863
946
  def protected_enabled(self) -> pulumi.Output[Optional[bool]]:
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "alicloud",
4
- "version": "3.56.0-alpha.1715923185"
4
+ "version": "3.56.0-alpha.1716440817"
5
5
  }