pulumi-alicloud 3.62.0a1724995491__py3-none-any.whl → 3.62.0a1725645501__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 (77) hide show
  1. pulumi_alicloud/brain/get_industrial_pid_loops.py +18 -2
  2. pulumi_alicloud/brain/get_industrial_pid_organizations.py +12 -2
  3. pulumi_alicloud/brain/get_industrial_pid_projects.py +18 -2
  4. pulumi_alicloud/brain/get_industrial_serice.py +6 -2
  5. pulumi_alicloud/brain/industrial_pid_loop.py +6 -2
  6. pulumi_alicloud/brain/industrial_pid_organization.py +4 -4
  7. pulumi_alicloud/brain/industrial_pid_project.py +4 -4
  8. pulumi_alicloud/cas/certificate.py +155 -13
  9. pulumi_alicloud/cas/service_certificate.py +9 -30
  10. pulumi_alicloud/cdn/real_time_log_delivery.py +2 -2
  11. pulumi_alicloud/cen/get_transit_router_route_tables.py +81 -14
  12. pulumi_alicloud/cen/outputs.py +6 -2
  13. pulumi_alicloud/cfg/remediation.py +6 -2
  14. pulumi_alicloud/clickhouse/account.py +2 -2
  15. pulumi_alicloud/clickhouse/backup_policy.py +2 -2
  16. pulumi_alicloud/cloudfirewall/instance.py +2 -0
  17. pulumi_alicloud/cs/_inputs.py +141 -21
  18. pulumi_alicloud/cs/kubernetes.py +7 -7
  19. pulumi_alicloud/cs/kubernetes_addon.py +4 -8
  20. pulumi_alicloud/cs/managed_kubernetes.py +506 -45
  21. pulumi_alicloud/cs/outputs.py +148 -21
  22. pulumi_alicloud/cs/registry_enterprise_namespace.py +92 -72
  23. pulumi_alicloud/cs/registry_enterprise_repo.py +96 -74
  24. pulumi_alicloud/cs/registry_enterprise_sync_rule.py +105 -101
  25. pulumi_alicloud/cs/serverless_kubernetes.py +174 -206
  26. pulumi_alicloud/databasefilesystem/instance.py +2 -2
  27. pulumi_alicloud/dts/consumer_channel.py +2 -2
  28. pulumi_alicloud/dts/subscription_job.py +2 -2
  29. pulumi_alicloud/ecs/auto_provisioning_group.py +2 -2
  30. pulumi_alicloud/ehpc/get_clusters.py +11 -2
  31. pulumi_alicloud/ehpc/get_job_templates.py +5 -2
  32. pulumi_alicloud/ehpc/job_template.py +2 -2
  33. pulumi_alicloud/ehpc/outputs.py +34 -2
  34. pulumi_alicloud/fc/function.py +6 -6
  35. pulumi_alicloud/fc/function_async_invoke_config.py +2 -2
  36. pulumi_alicloud/fc/trigger.py +2 -2
  37. pulumi_alicloud/gpdb/account.py +0 -4
  38. pulumi_alicloud/gpdb/connection.py +0 -4
  39. pulumi_alicloud/log/alert.py +30 -28
  40. pulumi_alicloud/log/audit.py +2 -0
  41. pulumi_alicloud/log/dashboard.py +8 -8
  42. pulumi_alicloud/log/etl.py +26 -26
  43. pulumi_alicloud/log/ingestion.py +10 -10
  44. pulumi_alicloud/log/log_tail_attachment.py +14 -14
  45. pulumi_alicloud/log/log_tail_config.py +10 -10
  46. pulumi_alicloud/log/machine_group.py +4 -4
  47. pulumi_alicloud/log/oss_export.py +10 -10
  48. pulumi_alicloud/log/project.py +4 -4
  49. pulumi_alicloud/log/store_index.py +10 -10
  50. pulumi_alicloud/nlb/server_group.py +2 -2
  51. pulumi_alicloud/oos/service_setting.py +10 -8
  52. pulumi_alicloud/oss/bucket.py +18 -10
  53. pulumi_alicloud/oss/bucket_object.py +12 -8
  54. pulumi_alicloud/oss/bucket_replication.py +2 -2
  55. pulumi_alicloud/polardb/cluster.py +75 -21
  56. pulumi_alicloud/pulumi-plugin.json +1 -1
  57. pulumi_alicloud/pvtz/zone_record.py +2 -2
  58. pulumi_alicloud/ram/access_key.py +4 -0
  59. pulumi_alicloud/rds/account_privilege.py +2 -2
  60. pulumi_alicloud/rds/backup_policy.py +270 -12
  61. pulumi_alicloud/rds/database.py +49 -7
  62. pulumi_alicloud/rds/get_instance_class_infos.py +20 -0
  63. pulumi_alicloud/rds/get_instance_classes.py +22 -0
  64. pulumi_alicloud/rds/get_instance_engines.py +22 -0
  65. pulumi_alicloud/rds/instance.py +4 -2
  66. pulumi_alicloud/rocketmq/group.py +2 -2
  67. pulumi_alicloud/rocketmq/topic.py +2 -2
  68. pulumi_alicloud/sls/alert.py +6 -6
  69. pulumi_alicloud/sls/scheduled_sql.py +10 -10
  70. pulumi_alicloud/vpc/ha_vip_attachment.py +2 -2
  71. pulumi_alicloud/vpc/ipv6_internet_bandwidth.py +4 -4
  72. pulumi_alicloud/vpc/route_table_attachment.py +4 -4
  73. pulumi_alicloud/vpc/traffic_mirror_filter_ingress_rule.py +2 -2
  74. {pulumi_alicloud-3.62.0a1724995491.dist-info → pulumi_alicloud-3.62.0a1725645501.dist-info}/METADATA +1 -1
  75. {pulumi_alicloud-3.62.0a1724995491.dist-info → pulumi_alicloud-3.62.0a1725645501.dist-info}/RECORD +77 -77
  76. {pulumi_alicloud-3.62.0a1724995491.dist-info → pulumi_alicloud-3.62.0a1725645501.dist-info}/WHEEL +1 -1
  77. {pulumi_alicloud-3.62.0a1724995491.dist-info → pulumi_alicloud-3.62.0a1725645501.dist-info}/top_level.txt +0 -0
@@ -25,15 +25,15 @@ class RegistryEnterpriseSyncRuleArgs:
25
25
  target_repo_name: Optional[pulumi.Input[str]] = None):
26
26
  """
27
27
  The set of arguments for constructing a RegistryEnterpriseSyncRule resource.
28
- :param pulumi.Input[str] instance_id: ID of Container Registry Enterprise Edition source instance.
29
- :param pulumi.Input[str] namespace_name: Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
30
- :param pulumi.Input[str] tag_filter: The regular expression used to filter image tags for synchronization in the source repository.
31
- :param pulumi.Input[str] target_instance_id: ID of Container Registry Enterprise Edition target instance to be synchronized.
32
- :param pulumi.Input[str] target_namespace_name: Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
33
- :param pulumi.Input[str] target_region_id: The target region to be synchronized.
34
- :param pulumi.Input[str] name: Name of Container Registry Enterprise Edition sync rule.
35
- :param pulumi.Input[str] repo_name: Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
36
- :param pulumi.Input[str] target_repo_name: Name of the target repository.
28
+ :param pulumi.Input[str] instance_id: The ID of the Container Registry Enterprise Edition source instance.
29
+ :param pulumi.Input[str] namespace_name: The namespace name of the source instance.
30
+ :param pulumi.Input[str] tag_filter: The regular expression used to filter image tags.
31
+ :param pulumi.Input[str] target_instance_id: The ID of the destination instance.
32
+ :param pulumi.Input[str] target_namespace_name: The namespace name of the destination instance.
33
+ :param pulumi.Input[str] target_region_id: The region ID of the destination instance.
34
+ :param pulumi.Input[str] name: The name of the sync rule.
35
+ :param pulumi.Input[str] repo_name: The image repository name of the source instance.
36
+ :param pulumi.Input[str] target_repo_name: The image repository name of the destination instance.
37
37
  """
38
38
  pulumi.set(__self__, "instance_id", instance_id)
39
39
  pulumi.set(__self__, "namespace_name", namespace_name)
@@ -52,7 +52,7 @@ class RegistryEnterpriseSyncRuleArgs:
52
52
  @pulumi.getter(name="instanceId")
53
53
  def instance_id(self) -> pulumi.Input[str]:
54
54
  """
55
- ID of Container Registry Enterprise Edition source instance.
55
+ The ID of the Container Registry Enterprise Edition source instance.
56
56
  """
57
57
  return pulumi.get(self, "instance_id")
58
58
 
@@ -64,7 +64,7 @@ class RegistryEnterpriseSyncRuleArgs:
64
64
  @pulumi.getter(name="namespaceName")
65
65
  def namespace_name(self) -> pulumi.Input[str]:
66
66
  """
67
- Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
67
+ The namespace name of the source instance.
68
68
  """
69
69
  return pulumi.get(self, "namespace_name")
70
70
 
@@ -76,7 +76,7 @@ class RegistryEnterpriseSyncRuleArgs:
76
76
  @pulumi.getter(name="tagFilter")
77
77
  def tag_filter(self) -> pulumi.Input[str]:
78
78
  """
79
- The regular expression used to filter image tags for synchronization in the source repository.
79
+ The regular expression used to filter image tags.
80
80
  """
81
81
  return pulumi.get(self, "tag_filter")
82
82
 
@@ -88,7 +88,7 @@ class RegistryEnterpriseSyncRuleArgs:
88
88
  @pulumi.getter(name="targetInstanceId")
89
89
  def target_instance_id(self) -> pulumi.Input[str]:
90
90
  """
91
- ID of Container Registry Enterprise Edition target instance to be synchronized.
91
+ The ID of the destination instance.
92
92
  """
93
93
  return pulumi.get(self, "target_instance_id")
94
94
 
@@ -100,7 +100,7 @@ class RegistryEnterpriseSyncRuleArgs:
100
100
  @pulumi.getter(name="targetNamespaceName")
101
101
  def target_namespace_name(self) -> pulumi.Input[str]:
102
102
  """
103
- Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
103
+ The namespace name of the destination instance.
104
104
  """
105
105
  return pulumi.get(self, "target_namespace_name")
106
106
 
@@ -112,7 +112,7 @@ class RegistryEnterpriseSyncRuleArgs:
112
112
  @pulumi.getter(name="targetRegionId")
113
113
  def target_region_id(self) -> pulumi.Input[str]:
114
114
  """
115
- The target region to be synchronized.
115
+ The region ID of the destination instance.
116
116
  """
117
117
  return pulumi.get(self, "target_region_id")
118
118
 
@@ -124,7 +124,7 @@ class RegistryEnterpriseSyncRuleArgs:
124
124
  @pulumi.getter
125
125
  def name(self) -> Optional[pulumi.Input[str]]:
126
126
  """
127
- Name of Container Registry Enterprise Edition sync rule.
127
+ The name of the sync rule.
128
128
  """
129
129
  return pulumi.get(self, "name")
130
130
 
@@ -136,7 +136,7 @@ class RegistryEnterpriseSyncRuleArgs:
136
136
  @pulumi.getter(name="repoName")
137
137
  def repo_name(self) -> Optional[pulumi.Input[str]]:
138
138
  """
139
- Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
139
+ The image repository name of the source instance.
140
140
  """
141
141
  return pulumi.get(self, "repo_name")
142
142
 
@@ -148,7 +148,7 @@ class RegistryEnterpriseSyncRuleArgs:
148
148
  @pulumi.getter(name="targetRepoName")
149
149
  def target_repo_name(self) -> Optional[pulumi.Input[str]]:
150
150
  """
151
- Name of the target repository.
151
+ The image repository name of the destination instance.
152
152
  """
153
153
  return pulumi.get(self, "target_repo_name")
154
154
 
@@ -174,18 +174,18 @@ class _RegistryEnterpriseSyncRuleState:
174
174
  target_repo_name: Optional[pulumi.Input[str]] = None):
175
175
  """
176
176
  Input properties used for looking up and filtering RegistryEnterpriseSyncRule resources.
177
- :param pulumi.Input[str] instance_id: ID of Container Registry Enterprise Edition source instance.
178
- :param pulumi.Input[str] name: Name of Container Registry Enterprise Edition sync rule.
179
- :param pulumi.Input[str] namespace_name: Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
180
- :param pulumi.Input[str] repo_name: Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
181
- :param pulumi.Input[str] rule_id: The uuid of Container Registry Enterprise Edition sync rule.
182
- :param pulumi.Input[str] sync_direction: `FROM` or `TO`, the direction of synchronization. `FROM` means source instance, `TO` means target instance.
183
- :param pulumi.Input[str] sync_scope: `REPO` or `NAMESPACE`,the scope that the synchronization rule applies.
184
- :param pulumi.Input[str] tag_filter: The regular expression used to filter image tags for synchronization in the source repository.
185
- :param pulumi.Input[str] target_instance_id: ID of Container Registry Enterprise Edition target instance to be synchronized.
186
- :param pulumi.Input[str] target_namespace_name: Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
187
- :param pulumi.Input[str] target_region_id: The target region to be synchronized.
188
- :param pulumi.Input[str] target_repo_name: Name of the target repository.
177
+ :param pulumi.Input[str] instance_id: The ID of the Container Registry Enterprise Edition source instance.
178
+ :param pulumi.Input[str] name: The name of the sync rule.
179
+ :param pulumi.Input[str] namespace_name: The namespace name of the source instance.
180
+ :param pulumi.Input[str] repo_name: The image repository name of the source instance.
181
+ :param pulumi.Input[str] rule_id: The ID of the sync rule.
182
+ :param pulumi.Input[str] sync_direction: The synchronization direction.
183
+ :param pulumi.Input[str] sync_scope: The synchronization scope.
184
+ :param pulumi.Input[str] tag_filter: The regular expression used to filter image tags.
185
+ :param pulumi.Input[str] target_instance_id: The ID of the destination instance.
186
+ :param pulumi.Input[str] target_namespace_name: The namespace name of the destination instance.
187
+ :param pulumi.Input[str] target_region_id: The region ID of the destination instance.
188
+ :param pulumi.Input[str] target_repo_name: The image repository name of the destination instance.
189
189
  """
190
190
  if instance_id is not None:
191
191
  pulumi.set(__self__, "instance_id", instance_id)
@@ -216,7 +216,7 @@ class _RegistryEnterpriseSyncRuleState:
216
216
  @pulumi.getter(name="instanceId")
217
217
  def instance_id(self) -> Optional[pulumi.Input[str]]:
218
218
  """
219
- ID of Container Registry Enterprise Edition source instance.
219
+ The ID of the Container Registry Enterprise Edition source instance.
220
220
  """
221
221
  return pulumi.get(self, "instance_id")
222
222
 
@@ -228,7 +228,7 @@ class _RegistryEnterpriseSyncRuleState:
228
228
  @pulumi.getter
229
229
  def name(self) -> Optional[pulumi.Input[str]]:
230
230
  """
231
- Name of Container Registry Enterprise Edition sync rule.
231
+ The name of the sync rule.
232
232
  """
233
233
  return pulumi.get(self, "name")
234
234
 
@@ -240,7 +240,7 @@ class _RegistryEnterpriseSyncRuleState:
240
240
  @pulumi.getter(name="namespaceName")
241
241
  def namespace_name(self) -> Optional[pulumi.Input[str]]:
242
242
  """
243
- Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
243
+ The namespace name of the source instance.
244
244
  """
245
245
  return pulumi.get(self, "namespace_name")
246
246
 
@@ -252,7 +252,7 @@ class _RegistryEnterpriseSyncRuleState:
252
252
  @pulumi.getter(name="repoName")
253
253
  def repo_name(self) -> Optional[pulumi.Input[str]]:
254
254
  """
255
- Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
255
+ The image repository name of the source instance.
256
256
  """
257
257
  return pulumi.get(self, "repo_name")
258
258
 
@@ -264,7 +264,7 @@ class _RegistryEnterpriseSyncRuleState:
264
264
  @pulumi.getter(name="ruleId")
265
265
  def rule_id(self) -> Optional[pulumi.Input[str]]:
266
266
  """
267
- The uuid of Container Registry Enterprise Edition sync rule.
267
+ The ID of the sync rule.
268
268
  """
269
269
  return pulumi.get(self, "rule_id")
270
270
 
@@ -276,7 +276,7 @@ class _RegistryEnterpriseSyncRuleState:
276
276
  @pulumi.getter(name="syncDirection")
277
277
  def sync_direction(self) -> Optional[pulumi.Input[str]]:
278
278
  """
279
- `FROM` or `TO`, the direction of synchronization. `FROM` means source instance, `TO` means target instance.
279
+ The synchronization direction.
280
280
  """
281
281
  return pulumi.get(self, "sync_direction")
282
282
 
@@ -288,7 +288,7 @@ class _RegistryEnterpriseSyncRuleState:
288
288
  @pulumi.getter(name="syncScope")
289
289
  def sync_scope(self) -> Optional[pulumi.Input[str]]:
290
290
  """
291
- `REPO` or `NAMESPACE`,the scope that the synchronization rule applies.
291
+ The synchronization scope.
292
292
  """
293
293
  return pulumi.get(self, "sync_scope")
294
294
 
@@ -300,7 +300,7 @@ class _RegistryEnterpriseSyncRuleState:
300
300
  @pulumi.getter(name="tagFilter")
301
301
  def tag_filter(self) -> Optional[pulumi.Input[str]]:
302
302
  """
303
- The regular expression used to filter image tags for synchronization in the source repository.
303
+ The regular expression used to filter image tags.
304
304
  """
305
305
  return pulumi.get(self, "tag_filter")
306
306
 
@@ -312,7 +312,7 @@ class _RegistryEnterpriseSyncRuleState:
312
312
  @pulumi.getter(name="targetInstanceId")
313
313
  def target_instance_id(self) -> Optional[pulumi.Input[str]]:
314
314
  """
315
- ID of Container Registry Enterprise Edition target instance to be synchronized.
315
+ The ID of the destination instance.
316
316
  """
317
317
  return pulumi.get(self, "target_instance_id")
318
318
 
@@ -324,7 +324,7 @@ class _RegistryEnterpriseSyncRuleState:
324
324
  @pulumi.getter(name="targetNamespaceName")
325
325
  def target_namespace_name(self) -> Optional[pulumi.Input[str]]:
326
326
  """
327
- Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
327
+ The namespace name of the destination instance.
328
328
  """
329
329
  return pulumi.get(self, "target_namespace_name")
330
330
 
@@ -336,7 +336,7 @@ class _RegistryEnterpriseSyncRuleState:
336
336
  @pulumi.getter(name="targetRegionId")
337
337
  def target_region_id(self) -> Optional[pulumi.Input[str]]:
338
338
  """
339
- The target region to be synchronized.
339
+ The region ID of the destination instance.
340
340
  """
341
341
  return pulumi.get(self, "target_region_id")
342
342
 
@@ -348,7 +348,7 @@ class _RegistryEnterpriseSyncRuleState:
348
348
  @pulumi.getter(name="targetRepoName")
349
349
  def target_repo_name(self) -> Optional[pulumi.Input[str]]:
350
350
  """
351
- Name of the target repository.
351
+ The image repository name of the destination instance.
352
352
  """
353
353
  return pulumi.get(self, "target_repo_name")
354
354
 
@@ -373,9 +373,9 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
373
373
  target_repo_name: Optional[pulumi.Input[str]] = None,
374
374
  __props__=None):
375
375
  """
376
- This resource will help you to manager Container Registry Enterprise Edition sync rules.
376
+ Provides a Container Registry Enterprise Edition Sync Rule resource.
377
377
 
378
- For information about Container Registry Enterprise Edition sync rules and how to use it, see [Create a Sync Rule](https://www.alibabacloud.com/help/en/acr/developer-reference/api-cr-2018-12-01-createreposynctaskbyrule)
378
+ For information about Container Registry Enterprise Edition Sync Rule and how to use it, see [What is Sync Rule](https://www.alibabacloud.com/help/en/acr/developer-reference/api-cr-2018-12-01-createreposyncrule)
379
379
 
380
380
  > **NOTE:** Available since v1.90.0.
381
381
 
@@ -388,25 +388,30 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
388
388
  ```python
389
389
  import pulumi
390
390
  import pulumi_alicloud as alicloud
391
+ import pulumi_random as random
391
392
 
392
393
  config = pulumi.Config()
393
394
  name = config.get("name")
394
395
  if name is None:
395
- name = "tf-example"
396
+ name = "terraform-example"
397
+ default = alicloud.get_regions(current=True)
398
+ default_integer = random.index.Integer("default",
399
+ min=10000,
400
+ max=99999)
396
401
  source = alicloud.cr.RegistryEnterpriseInstance("source",
397
402
  payment_type="Subscription",
398
403
  period=1,
399
404
  renew_period=0,
400
405
  renewal_status="ManualRenewal",
401
406
  instance_type="Advanced",
402
- instance_name=f"{name}-source")
407
+ instance_name=f"{name}-source-{default_integer['result']}")
403
408
  target = alicloud.cr.RegistryEnterpriseInstance("target",
404
409
  payment_type="Subscription",
405
410
  period=1,
406
411
  renew_period=0,
407
412
  renewal_status="ManualRenewal",
408
413
  instance_type="Advanced",
409
- instance_name=f"{name}-target")
414
+ instance_name=f"{name}-target-{default_integer['result']}")
410
415
  source_registry_enterprise_namespace = alicloud.cs.RegistryEnterpriseNamespace("source",
411
416
  instance_id=source.id,
412
417
  name=name,
@@ -422,23 +427,20 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
422
427
  namespace=source_registry_enterprise_namespace.name,
423
428
  name=name,
424
429
  summary="this is summary of my new repo",
425
- repo_type="PUBLIC",
426
- detail="this is a public repo")
430
+ repo_type="PUBLIC")
427
431
  target_registry_enterprise_repo = alicloud.cs.RegistryEnterpriseRepo("target",
428
432
  instance_id=target.id,
429
433
  namespace=target_registry_enterprise_namespace.name,
430
434
  name=name,
431
435
  summary="this is summary of my new repo",
432
- repo_type="PUBLIC",
433
- detail="this is a public repo")
434
- default = alicloud.get_regions(current=True)
436
+ repo_type="PUBLIC")
435
437
  default_registry_enterprise_sync_rule = alicloud.cs.RegistryEnterpriseSyncRule("default",
436
438
  instance_id=source.id,
437
439
  namespace_name=source_registry_enterprise_namespace.name,
438
440
  name=name,
439
- target_region_id=default.regions[0].id,
440
441
  target_instance_id=target.id,
441
442
  target_namespace_name=target_registry_enterprise_namespace.name,
443
+ target_region_id=default.regions[0].id,
442
444
  tag_filter=".*",
443
445
  repo_name=source_registry_enterprise_repo.name,
444
446
  target_repo_name=target_registry_enterprise_repo.name)
@@ -446,23 +448,23 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
446
448
 
447
449
  ## Import
448
450
 
449
- Container Registry Enterprise Edition sync rule can be imported using the id. Format to `{instance_id}:{namespace_name}:{rule_id}`, e.g.
451
+ Container Registry Enterprise Edition Sync Rule can be imported using the id, e.g.
450
452
 
451
453
  ```sh
452
- $ pulumi import alicloud:cs/registryEnterpriseSyncRule:RegistryEnterpriseSyncRule default `cri-xxx:my-namespace:crsr-yyy`
454
+ $ pulumi import alicloud:cs/registryEnterpriseSyncRule:RegistryEnterpriseSyncRule example <instance_id>:<namespace_name>:<rule_id>
453
455
  ```
454
456
 
455
457
  :param str resource_name: The name of the resource.
456
458
  :param pulumi.ResourceOptions opts: Options for the resource.
457
- :param pulumi.Input[str] instance_id: ID of Container Registry Enterprise Edition source instance.
458
- :param pulumi.Input[str] name: Name of Container Registry Enterprise Edition sync rule.
459
- :param pulumi.Input[str] namespace_name: Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
460
- :param pulumi.Input[str] repo_name: Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
461
- :param pulumi.Input[str] tag_filter: The regular expression used to filter image tags for synchronization in the source repository.
462
- :param pulumi.Input[str] target_instance_id: ID of Container Registry Enterprise Edition target instance to be synchronized.
463
- :param pulumi.Input[str] target_namespace_name: Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
464
- :param pulumi.Input[str] target_region_id: The target region to be synchronized.
465
- :param pulumi.Input[str] target_repo_name: Name of the target repository.
459
+ :param pulumi.Input[str] instance_id: The ID of the Container Registry Enterprise Edition source instance.
460
+ :param pulumi.Input[str] name: The name of the sync rule.
461
+ :param pulumi.Input[str] namespace_name: The namespace name of the source instance.
462
+ :param pulumi.Input[str] repo_name: The image repository name of the source instance.
463
+ :param pulumi.Input[str] tag_filter: The regular expression used to filter image tags.
464
+ :param pulumi.Input[str] target_instance_id: The ID of the destination instance.
465
+ :param pulumi.Input[str] target_namespace_name: The namespace name of the destination instance.
466
+ :param pulumi.Input[str] target_region_id: The region ID of the destination instance.
467
+ :param pulumi.Input[str] target_repo_name: The image repository name of the destination instance.
466
468
  """
467
469
  ...
468
470
  @overload
@@ -471,9 +473,9 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
471
473
  args: RegistryEnterpriseSyncRuleArgs,
472
474
  opts: Optional[pulumi.ResourceOptions] = None):
473
475
  """
474
- This resource will help you to manager Container Registry Enterprise Edition sync rules.
476
+ Provides a Container Registry Enterprise Edition Sync Rule resource.
475
477
 
476
- For information about Container Registry Enterprise Edition sync rules and how to use it, see [Create a Sync Rule](https://www.alibabacloud.com/help/en/acr/developer-reference/api-cr-2018-12-01-createreposynctaskbyrule)
478
+ For information about Container Registry Enterprise Edition Sync Rule and how to use it, see [What is Sync Rule](https://www.alibabacloud.com/help/en/acr/developer-reference/api-cr-2018-12-01-createreposyncrule)
477
479
 
478
480
  > **NOTE:** Available since v1.90.0.
479
481
 
@@ -486,25 +488,30 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
486
488
  ```python
487
489
  import pulumi
488
490
  import pulumi_alicloud as alicloud
491
+ import pulumi_random as random
489
492
 
490
493
  config = pulumi.Config()
491
494
  name = config.get("name")
492
495
  if name is None:
493
- name = "tf-example"
496
+ name = "terraform-example"
497
+ default = alicloud.get_regions(current=True)
498
+ default_integer = random.index.Integer("default",
499
+ min=10000,
500
+ max=99999)
494
501
  source = alicloud.cr.RegistryEnterpriseInstance("source",
495
502
  payment_type="Subscription",
496
503
  period=1,
497
504
  renew_period=0,
498
505
  renewal_status="ManualRenewal",
499
506
  instance_type="Advanced",
500
- instance_name=f"{name}-source")
507
+ instance_name=f"{name}-source-{default_integer['result']}")
501
508
  target = alicloud.cr.RegistryEnterpriseInstance("target",
502
509
  payment_type="Subscription",
503
510
  period=1,
504
511
  renew_period=0,
505
512
  renewal_status="ManualRenewal",
506
513
  instance_type="Advanced",
507
- instance_name=f"{name}-target")
514
+ instance_name=f"{name}-target-{default_integer['result']}")
508
515
  source_registry_enterprise_namespace = alicloud.cs.RegistryEnterpriseNamespace("source",
509
516
  instance_id=source.id,
510
517
  name=name,
@@ -520,23 +527,20 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
520
527
  namespace=source_registry_enterprise_namespace.name,
521
528
  name=name,
522
529
  summary="this is summary of my new repo",
523
- repo_type="PUBLIC",
524
- detail="this is a public repo")
530
+ repo_type="PUBLIC")
525
531
  target_registry_enterprise_repo = alicloud.cs.RegistryEnterpriseRepo("target",
526
532
  instance_id=target.id,
527
533
  namespace=target_registry_enterprise_namespace.name,
528
534
  name=name,
529
535
  summary="this is summary of my new repo",
530
- repo_type="PUBLIC",
531
- detail="this is a public repo")
532
- default = alicloud.get_regions(current=True)
536
+ repo_type="PUBLIC")
533
537
  default_registry_enterprise_sync_rule = alicloud.cs.RegistryEnterpriseSyncRule("default",
534
538
  instance_id=source.id,
535
539
  namespace_name=source_registry_enterprise_namespace.name,
536
540
  name=name,
537
- target_region_id=default.regions[0].id,
538
541
  target_instance_id=target.id,
539
542
  target_namespace_name=target_registry_enterprise_namespace.name,
543
+ target_region_id=default.regions[0].id,
540
544
  tag_filter=".*",
541
545
  repo_name=source_registry_enterprise_repo.name,
542
546
  target_repo_name=target_registry_enterprise_repo.name)
@@ -544,10 +548,10 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
544
548
 
545
549
  ## Import
546
550
 
547
- Container Registry Enterprise Edition sync rule can be imported using the id. Format to `{instance_id}:{namespace_name}:{rule_id}`, e.g.
551
+ Container Registry Enterprise Edition Sync Rule can be imported using the id, e.g.
548
552
 
549
553
  ```sh
550
- $ pulumi import alicloud:cs/registryEnterpriseSyncRule:RegistryEnterpriseSyncRule default `cri-xxx:my-namespace:crsr-yyy`
554
+ $ pulumi import alicloud:cs/registryEnterpriseSyncRule:RegistryEnterpriseSyncRule example <instance_id>:<namespace_name>:<rule_id>
551
555
  ```
552
556
 
553
557
  :param str resource_name: The name of the resource.
@@ -636,18 +640,18 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
636
640
  :param str resource_name: The unique name of the resulting resource.
637
641
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
638
642
  :param pulumi.ResourceOptions opts: Options for the resource.
639
- :param pulumi.Input[str] instance_id: ID of Container Registry Enterprise Edition source instance.
640
- :param pulumi.Input[str] name: Name of Container Registry Enterprise Edition sync rule.
641
- :param pulumi.Input[str] namespace_name: Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
642
- :param pulumi.Input[str] repo_name: Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
643
- :param pulumi.Input[str] rule_id: The uuid of Container Registry Enterprise Edition sync rule.
644
- :param pulumi.Input[str] sync_direction: `FROM` or `TO`, the direction of synchronization. `FROM` means source instance, `TO` means target instance.
645
- :param pulumi.Input[str] sync_scope: `REPO` or `NAMESPACE`,the scope that the synchronization rule applies.
646
- :param pulumi.Input[str] tag_filter: The regular expression used to filter image tags for synchronization in the source repository.
647
- :param pulumi.Input[str] target_instance_id: ID of Container Registry Enterprise Edition target instance to be synchronized.
648
- :param pulumi.Input[str] target_namespace_name: Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
649
- :param pulumi.Input[str] target_region_id: The target region to be synchronized.
650
- :param pulumi.Input[str] target_repo_name: Name of the target repository.
643
+ :param pulumi.Input[str] instance_id: The ID of the Container Registry Enterprise Edition source instance.
644
+ :param pulumi.Input[str] name: The name of the sync rule.
645
+ :param pulumi.Input[str] namespace_name: The namespace name of the source instance.
646
+ :param pulumi.Input[str] repo_name: The image repository name of the source instance.
647
+ :param pulumi.Input[str] rule_id: The ID of the sync rule.
648
+ :param pulumi.Input[str] sync_direction: The synchronization direction.
649
+ :param pulumi.Input[str] sync_scope: The synchronization scope.
650
+ :param pulumi.Input[str] tag_filter: The regular expression used to filter image tags.
651
+ :param pulumi.Input[str] target_instance_id: The ID of the destination instance.
652
+ :param pulumi.Input[str] target_namespace_name: The namespace name of the destination instance.
653
+ :param pulumi.Input[str] target_region_id: The region ID of the destination instance.
654
+ :param pulumi.Input[str] target_repo_name: The image repository name of the destination instance.
651
655
  """
652
656
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
653
657
 
@@ -671,7 +675,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
671
675
  @pulumi.getter(name="instanceId")
672
676
  def instance_id(self) -> pulumi.Output[str]:
673
677
  """
674
- ID of Container Registry Enterprise Edition source instance.
678
+ The ID of the Container Registry Enterprise Edition source instance.
675
679
  """
676
680
  return pulumi.get(self, "instance_id")
677
681
 
@@ -679,7 +683,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
679
683
  @pulumi.getter
680
684
  def name(self) -> pulumi.Output[str]:
681
685
  """
682
- Name of Container Registry Enterprise Edition sync rule.
686
+ The name of the sync rule.
683
687
  """
684
688
  return pulumi.get(self, "name")
685
689
 
@@ -687,7 +691,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
687
691
  @pulumi.getter(name="namespaceName")
688
692
  def namespace_name(self) -> pulumi.Output[str]:
689
693
  """
690
- Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
694
+ The namespace name of the source instance.
691
695
  """
692
696
  return pulumi.get(self, "namespace_name")
693
697
 
@@ -695,7 +699,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
695
699
  @pulumi.getter(name="repoName")
696
700
  def repo_name(self) -> pulumi.Output[Optional[str]]:
697
701
  """
698
- Name of the source repository which should be set together with `target_repo_name`, if empty means that the synchronization scope is the entire namespace level.
702
+ The image repository name of the source instance.
699
703
  """
700
704
  return pulumi.get(self, "repo_name")
701
705
 
@@ -703,7 +707,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
703
707
  @pulumi.getter(name="ruleId")
704
708
  def rule_id(self) -> pulumi.Output[str]:
705
709
  """
706
- The uuid of Container Registry Enterprise Edition sync rule.
710
+ The ID of the sync rule.
707
711
  """
708
712
  return pulumi.get(self, "rule_id")
709
713
 
@@ -711,7 +715,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
711
715
  @pulumi.getter(name="syncDirection")
712
716
  def sync_direction(self) -> pulumi.Output[str]:
713
717
  """
714
- `FROM` or `TO`, the direction of synchronization. `FROM` means source instance, `TO` means target instance.
718
+ The synchronization direction.
715
719
  """
716
720
  return pulumi.get(self, "sync_direction")
717
721
 
@@ -719,7 +723,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
719
723
  @pulumi.getter(name="syncScope")
720
724
  def sync_scope(self) -> pulumi.Output[str]:
721
725
  """
722
- `REPO` or `NAMESPACE`,the scope that the synchronization rule applies.
726
+ The synchronization scope.
723
727
  """
724
728
  return pulumi.get(self, "sync_scope")
725
729
 
@@ -727,7 +731,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
727
731
  @pulumi.getter(name="tagFilter")
728
732
  def tag_filter(self) -> pulumi.Output[str]:
729
733
  """
730
- The regular expression used to filter image tags for synchronization in the source repository.
734
+ The regular expression used to filter image tags.
731
735
  """
732
736
  return pulumi.get(self, "tag_filter")
733
737
 
@@ -735,7 +739,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
735
739
  @pulumi.getter(name="targetInstanceId")
736
740
  def target_instance_id(self) -> pulumi.Output[str]:
737
741
  """
738
- ID of Container Registry Enterprise Edition target instance to be synchronized.
742
+ The ID of the destination instance.
739
743
  """
740
744
  return pulumi.get(self, "target_instance_id")
741
745
 
@@ -743,7 +747,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
743
747
  @pulumi.getter(name="targetNamespaceName")
744
748
  def target_namespace_name(self) -> pulumi.Output[str]:
745
749
  """
746
- Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
750
+ The namespace name of the destination instance.
747
751
  """
748
752
  return pulumi.get(self, "target_namespace_name")
749
753
 
@@ -751,7 +755,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
751
755
  @pulumi.getter(name="targetRegionId")
752
756
  def target_region_id(self) -> pulumi.Output[str]:
753
757
  """
754
- The target region to be synchronized.
758
+ The region ID of the destination instance.
755
759
  """
756
760
  return pulumi.get(self, "target_region_id")
757
761
 
@@ -759,7 +763,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
759
763
  @pulumi.getter(name="targetRepoName")
760
764
  def target_repo_name(self) -> pulumi.Output[Optional[str]]:
761
765
  """
762
- Name of the target repository.
766
+ The image repository name of the destination instance.
763
767
  """
764
768
  return pulumi.get(self, "target_repo_name")
765
769