pulumi-alicloud 3.61.2a1725006221__py3-none-any.whl → 3.62.0a1724476801__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/brain/get_industrial_pid_loops.py +2 -18
- pulumi_alicloud/brain/get_industrial_pid_organizations.py +2 -12
- pulumi_alicloud/brain/get_industrial_pid_projects.py +2 -18
- pulumi_alicloud/brain/get_industrial_serice.py +2 -6
- pulumi_alicloud/brain/industrial_pid_loop.py +2 -6
- pulumi_alicloud/brain/industrial_pid_organization.py +4 -4
- pulumi_alicloud/brain/industrial_pid_project.py +4 -4
- pulumi_alicloud/cas/certificate.py +13 -155
- pulumi_alicloud/cas/service_certificate.py +30 -9
- pulumi_alicloud/cdn/real_time_log_delivery.py +2 -2
- pulumi_alicloud/cen/get_transit_router_route_tables.py +14 -81
- pulumi_alicloud/cen/outputs.py +2 -6
- pulumi_alicloud/cfg/remediation.py +2 -6
- pulumi_alicloud/clickhouse/account.py +2 -2
- pulumi_alicloud/clickhouse/backup_policy.py +2 -2
- pulumi_alicloud/cloudfirewall/instance.py +0 -2
- pulumi_alicloud/cs/_inputs.py +21 -141
- pulumi_alicloud/cs/kubernetes.py +7 -7
- pulumi_alicloud/cs/managed_kubernetes.py +45 -506
- pulumi_alicloud/cs/outputs.py +21 -148
- pulumi_alicloud/cs/registry_enterprise_namespace.py +72 -92
- pulumi_alicloud/cs/registry_enterprise_repo.py +74 -96
- pulumi_alicloud/cs/registry_enterprise_sync_rule.py +101 -105
- pulumi_alicloud/cs/serverless_kubernetes.py +206 -174
- pulumi_alicloud/databasefilesystem/instance.py +2 -2
- pulumi_alicloud/dts/consumer_channel.py +2 -2
- pulumi_alicloud/dts/subscription_job.py +2 -2
- pulumi_alicloud/ecs/auto_provisioning_group.py +2 -2
- pulumi_alicloud/ehpc/get_clusters.py +2 -11
- pulumi_alicloud/ehpc/get_job_templates.py +2 -5
- pulumi_alicloud/ehpc/job_template.py +2 -2
- pulumi_alicloud/ehpc/outputs.py +2 -34
- pulumi_alicloud/fc/function.py +6 -6
- pulumi_alicloud/fc/function_async_invoke_config.py +2 -2
- pulumi_alicloud/fc/trigger.py +2 -2
- pulumi_alicloud/gpdb/account.py +4 -0
- pulumi_alicloud/gpdb/connection.py +4 -0
- pulumi_alicloud/log/alert.py +28 -30
- pulumi_alicloud/log/audit.py +0 -2
- pulumi_alicloud/log/dashboard.py +8 -8
- pulumi_alicloud/log/etl.py +26 -26
- pulumi_alicloud/log/ingestion.py +10 -10
- pulumi_alicloud/log/log_tail_attachment.py +14 -14
- pulumi_alicloud/log/log_tail_config.py +10 -10
- pulumi_alicloud/log/machine_group.py +4 -4
- pulumi_alicloud/log/oss_export.py +10 -10
- pulumi_alicloud/log/project.py +4 -4
- pulumi_alicloud/log/store_index.py +10 -10
- pulumi_alicloud/nlb/server_group.py +2 -2
- pulumi_alicloud/oos/service_setting.py +8 -10
- pulumi_alicloud/oss/bucket.py +10 -18
- pulumi_alicloud/oss/bucket_object.py +8 -12
- pulumi_alicloud/oss/bucket_replication.py +2 -2
- pulumi_alicloud/polardb/cluster.py +21 -75
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/pvtz/zone_record.py +2 -2
- pulumi_alicloud/ram/access_key.py +0 -4
- pulumi_alicloud/rds/account_privilege.py +2 -2
- pulumi_alicloud/rds/backup_policy.py +12 -270
- pulumi_alicloud/rds/database.py +7 -49
- pulumi_alicloud/rds/instance.py +2 -4
- pulumi_alicloud/rocketmq/group.py +2 -2
- pulumi_alicloud/rocketmq/topic.py +2 -2
- pulumi_alicloud/sls/alert.py +6 -6
- pulumi_alicloud/sls/scheduled_sql.py +10 -10
- pulumi_alicloud/vpc/ha_vip_attachment.py +2 -2
- pulumi_alicloud/vpc/ipv6_internet_bandwidth.py +4 -4
- pulumi_alicloud/vpc/route_table_attachment.py +4 -4
- pulumi_alicloud/vpc/traffic_mirror_filter_ingress_rule.py +2 -2
- {pulumi_alicloud-3.61.2a1725006221.dist-info → pulumi_alicloud-3.62.0a1724476801.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.61.2a1725006221.dist-info → pulumi_alicloud-3.62.0a1724476801.dist-info}/RECORD +73 -73
- {pulumi_alicloud-3.61.2a1725006221.dist-info → pulumi_alicloud-3.62.0a1724476801.dist-info}/WHEEL +1 -1
- {pulumi_alicloud-3.61.2a1725006221.dist-info → pulumi_alicloud-3.62.0a1724476801.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:
|
|
29
|
-
:param pulumi.Input[str] namespace_name:
|
|
30
|
-
:param pulumi.Input[str] tag_filter: The regular expression used to filter image tags.
|
|
31
|
-
:param pulumi.Input[str] target_instance_id:
|
|
32
|
-
:param pulumi.Input[str] target_namespace_name:
|
|
33
|
-
:param pulumi.Input[str] target_region_id: The region
|
|
34
|
-
:param pulumi.Input[str] name:
|
|
35
|
-
:param pulumi.Input[str] repo_name:
|
|
36
|
-
:param pulumi.Input[str] target_repo_name:
|
|
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.
|
|
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
|
-
|
|
55
|
+
ID of 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
|
-
|
|
67
|
+
Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
|
|
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.
|
|
79
|
+
The regular expression used to filter image tags for synchronization in the source repository.
|
|
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
|
-
|
|
91
|
+
ID of Container Registry Enterprise Edition target instance to be synchronized.
|
|
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
|
-
|
|
103
|
+
Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
|
|
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 region
|
|
115
|
+
The target region to be synchronized.
|
|
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
|
-
|
|
127
|
+
Name of Container Registry Enterprise Edition 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
|
-
|
|
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.
|
|
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
|
-
|
|
151
|
+
Name of the target repository.
|
|
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:
|
|
178
|
-
:param pulumi.Input[str] name:
|
|
179
|
-
:param pulumi.Input[str] namespace_name:
|
|
180
|
-
:param pulumi.Input[str] repo_name:
|
|
181
|
-
:param pulumi.Input[str] rule_id: The
|
|
182
|
-
:param pulumi.Input[str] sync_direction:
|
|
183
|
-
:param pulumi.Input[str] sync_scope:
|
|
184
|
-
:param pulumi.Input[str] tag_filter: The regular expression used to filter image tags.
|
|
185
|
-
:param pulumi.Input[str] target_instance_id:
|
|
186
|
-
:param pulumi.Input[str] target_namespace_name:
|
|
187
|
-
:param pulumi.Input[str] target_region_id: The region
|
|
188
|
-
:param pulumi.Input[str] target_repo_name:
|
|
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.
|
|
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
|
-
|
|
219
|
+
ID of 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
|
-
|
|
231
|
+
Name of Container Registry Enterprise Edition 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
|
-
|
|
243
|
+
Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
|
|
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
|
-
|
|
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.
|
|
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
|
|
267
|
+
The uuid of Container Registry Enterprise Edition 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
|
-
|
|
279
|
+
`FROM` or `TO`, the direction of synchronization. `FROM` means source instance, `TO` means target instance.
|
|
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
|
-
|
|
291
|
+
`REPO` or `NAMESPACE`,the scope that the synchronization rule applies.
|
|
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.
|
|
303
|
+
The regular expression used to filter image tags for synchronization in the source repository.
|
|
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
|
-
|
|
315
|
+
ID of Container Registry Enterprise Edition target instance to be synchronized.
|
|
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
|
-
|
|
327
|
+
Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
|
|
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 region
|
|
339
|
+
The target region to be synchronized.
|
|
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
|
-
|
|
351
|
+
Name of the target repository.
|
|
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
|
-
|
|
376
|
+
This resource will help you to manager Container Registry Enterprise Edition sync rules.
|
|
377
377
|
|
|
378
|
-
For information about Container Registry Enterprise Edition
|
|
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)
|
|
379
379
|
|
|
380
380
|
> **NOTE:** Available since v1.90.0.
|
|
381
381
|
|
|
@@ -388,30 +388,25 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
388
388
|
```python
|
|
389
389
|
import pulumi
|
|
390
390
|
import pulumi_alicloud as alicloud
|
|
391
|
-
import pulumi_random as random
|
|
392
391
|
|
|
393
392
|
config = pulumi.Config()
|
|
394
393
|
name = config.get("name")
|
|
395
394
|
if name is None:
|
|
396
|
-
name = "
|
|
397
|
-
default = alicloud.get_regions(current=True)
|
|
398
|
-
default_integer = random.index.Integer("default",
|
|
399
|
-
min=10000,
|
|
400
|
-
max=99999)
|
|
395
|
+
name = "tf-example"
|
|
401
396
|
source = alicloud.cr.RegistryEnterpriseInstance("source",
|
|
402
397
|
payment_type="Subscription",
|
|
403
398
|
period=1,
|
|
404
399
|
renew_period=0,
|
|
405
400
|
renewal_status="ManualRenewal",
|
|
406
401
|
instance_type="Advanced",
|
|
407
|
-
instance_name=f"{name}-source
|
|
402
|
+
instance_name=f"{name}-source")
|
|
408
403
|
target = alicloud.cr.RegistryEnterpriseInstance("target",
|
|
409
404
|
payment_type="Subscription",
|
|
410
405
|
period=1,
|
|
411
406
|
renew_period=0,
|
|
412
407
|
renewal_status="ManualRenewal",
|
|
413
408
|
instance_type="Advanced",
|
|
414
|
-
instance_name=f"{name}-target
|
|
409
|
+
instance_name=f"{name}-target")
|
|
415
410
|
source_registry_enterprise_namespace = alicloud.cs.RegistryEnterpriseNamespace("source",
|
|
416
411
|
instance_id=source.id,
|
|
417
412
|
name=name,
|
|
@@ -427,20 +422,23 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
427
422
|
namespace=source_registry_enterprise_namespace.name,
|
|
428
423
|
name=name,
|
|
429
424
|
summary="this is summary of my new repo",
|
|
430
|
-
repo_type="PUBLIC"
|
|
425
|
+
repo_type="PUBLIC",
|
|
426
|
+
detail="this is a public repo")
|
|
431
427
|
target_registry_enterprise_repo = alicloud.cs.RegistryEnterpriseRepo("target",
|
|
432
428
|
instance_id=target.id,
|
|
433
429
|
namespace=target_registry_enterprise_namespace.name,
|
|
434
430
|
name=name,
|
|
435
431
|
summary="this is summary of my new repo",
|
|
436
|
-
repo_type="PUBLIC"
|
|
432
|
+
repo_type="PUBLIC",
|
|
433
|
+
detail="this is a public repo")
|
|
434
|
+
default = alicloud.get_regions(current=True)
|
|
437
435
|
default_registry_enterprise_sync_rule = alicloud.cs.RegistryEnterpriseSyncRule("default",
|
|
438
436
|
instance_id=source.id,
|
|
439
437
|
namespace_name=source_registry_enterprise_namespace.name,
|
|
440
438
|
name=name,
|
|
439
|
+
target_region_id=default.regions[0].id,
|
|
441
440
|
target_instance_id=target.id,
|
|
442
441
|
target_namespace_name=target_registry_enterprise_namespace.name,
|
|
443
|
-
target_region_id=default.regions[0].id,
|
|
444
442
|
tag_filter=".*",
|
|
445
443
|
repo_name=source_registry_enterprise_repo.name,
|
|
446
444
|
target_repo_name=target_registry_enterprise_repo.name)
|
|
@@ -448,23 +446,23 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
448
446
|
|
|
449
447
|
## Import
|
|
450
448
|
|
|
451
|
-
Container Registry Enterprise Edition
|
|
449
|
+
Container Registry Enterprise Edition sync rule can be imported using the id. Format to `{instance_id}:{namespace_name}:{rule_id}`, e.g.
|
|
452
450
|
|
|
453
451
|
```sh
|
|
454
|
-
$ pulumi import alicloud:cs/registryEnterpriseSyncRule:RegistryEnterpriseSyncRule
|
|
452
|
+
$ pulumi import alicloud:cs/registryEnterpriseSyncRule:RegistryEnterpriseSyncRule default `cri-xxx:my-namespace:crsr-yyy`
|
|
455
453
|
```
|
|
456
454
|
|
|
457
455
|
:param str resource_name: The name of the resource.
|
|
458
456
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
459
|
-
:param pulumi.Input[str] instance_id:
|
|
460
|
-
:param pulumi.Input[str] name:
|
|
461
|
-
:param pulumi.Input[str] namespace_name:
|
|
462
|
-
:param pulumi.Input[str] repo_name:
|
|
463
|
-
:param pulumi.Input[str] tag_filter: The regular expression used to filter image tags.
|
|
464
|
-
:param pulumi.Input[str] target_instance_id:
|
|
465
|
-
:param pulumi.Input[str] target_namespace_name:
|
|
466
|
-
:param pulumi.Input[str] target_region_id: The region
|
|
467
|
-
:param pulumi.Input[str] target_repo_name:
|
|
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.
|
|
468
466
|
"""
|
|
469
467
|
...
|
|
470
468
|
@overload
|
|
@@ -473,9 +471,9 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
473
471
|
args: RegistryEnterpriseSyncRuleArgs,
|
|
474
472
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
475
473
|
"""
|
|
476
|
-
|
|
474
|
+
This resource will help you to manager Container Registry Enterprise Edition sync rules.
|
|
477
475
|
|
|
478
|
-
For information about Container Registry Enterprise Edition
|
|
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)
|
|
479
477
|
|
|
480
478
|
> **NOTE:** Available since v1.90.0.
|
|
481
479
|
|
|
@@ -488,30 +486,25 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
488
486
|
```python
|
|
489
487
|
import pulumi
|
|
490
488
|
import pulumi_alicloud as alicloud
|
|
491
|
-
import pulumi_random as random
|
|
492
489
|
|
|
493
490
|
config = pulumi.Config()
|
|
494
491
|
name = config.get("name")
|
|
495
492
|
if name is None:
|
|
496
|
-
name = "
|
|
497
|
-
default = alicloud.get_regions(current=True)
|
|
498
|
-
default_integer = random.index.Integer("default",
|
|
499
|
-
min=10000,
|
|
500
|
-
max=99999)
|
|
493
|
+
name = "tf-example"
|
|
501
494
|
source = alicloud.cr.RegistryEnterpriseInstance("source",
|
|
502
495
|
payment_type="Subscription",
|
|
503
496
|
period=1,
|
|
504
497
|
renew_period=0,
|
|
505
498
|
renewal_status="ManualRenewal",
|
|
506
499
|
instance_type="Advanced",
|
|
507
|
-
instance_name=f"{name}-source
|
|
500
|
+
instance_name=f"{name}-source")
|
|
508
501
|
target = alicloud.cr.RegistryEnterpriseInstance("target",
|
|
509
502
|
payment_type="Subscription",
|
|
510
503
|
period=1,
|
|
511
504
|
renew_period=0,
|
|
512
505
|
renewal_status="ManualRenewal",
|
|
513
506
|
instance_type="Advanced",
|
|
514
|
-
instance_name=f"{name}-target
|
|
507
|
+
instance_name=f"{name}-target")
|
|
515
508
|
source_registry_enterprise_namespace = alicloud.cs.RegistryEnterpriseNamespace("source",
|
|
516
509
|
instance_id=source.id,
|
|
517
510
|
name=name,
|
|
@@ -527,20 +520,23 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
527
520
|
namespace=source_registry_enterprise_namespace.name,
|
|
528
521
|
name=name,
|
|
529
522
|
summary="this is summary of my new repo",
|
|
530
|
-
repo_type="PUBLIC"
|
|
523
|
+
repo_type="PUBLIC",
|
|
524
|
+
detail="this is a public repo")
|
|
531
525
|
target_registry_enterprise_repo = alicloud.cs.RegistryEnterpriseRepo("target",
|
|
532
526
|
instance_id=target.id,
|
|
533
527
|
namespace=target_registry_enterprise_namespace.name,
|
|
534
528
|
name=name,
|
|
535
529
|
summary="this is summary of my new repo",
|
|
536
|
-
repo_type="PUBLIC"
|
|
530
|
+
repo_type="PUBLIC",
|
|
531
|
+
detail="this is a public repo")
|
|
532
|
+
default = alicloud.get_regions(current=True)
|
|
537
533
|
default_registry_enterprise_sync_rule = alicloud.cs.RegistryEnterpriseSyncRule("default",
|
|
538
534
|
instance_id=source.id,
|
|
539
535
|
namespace_name=source_registry_enterprise_namespace.name,
|
|
540
536
|
name=name,
|
|
537
|
+
target_region_id=default.regions[0].id,
|
|
541
538
|
target_instance_id=target.id,
|
|
542
539
|
target_namespace_name=target_registry_enterprise_namespace.name,
|
|
543
|
-
target_region_id=default.regions[0].id,
|
|
544
540
|
tag_filter=".*",
|
|
545
541
|
repo_name=source_registry_enterprise_repo.name,
|
|
546
542
|
target_repo_name=target_registry_enterprise_repo.name)
|
|
@@ -548,10 +544,10 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
548
544
|
|
|
549
545
|
## Import
|
|
550
546
|
|
|
551
|
-
Container Registry Enterprise Edition
|
|
547
|
+
Container Registry Enterprise Edition sync rule can be imported using the id. Format to `{instance_id}:{namespace_name}:{rule_id}`, e.g.
|
|
552
548
|
|
|
553
549
|
```sh
|
|
554
|
-
$ pulumi import alicloud:cs/registryEnterpriseSyncRule:RegistryEnterpriseSyncRule
|
|
550
|
+
$ pulumi import alicloud:cs/registryEnterpriseSyncRule:RegistryEnterpriseSyncRule default `cri-xxx:my-namespace:crsr-yyy`
|
|
555
551
|
```
|
|
556
552
|
|
|
557
553
|
:param str resource_name: The name of the resource.
|
|
@@ -640,18 +636,18 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
640
636
|
:param str resource_name: The unique name of the resulting resource.
|
|
641
637
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
642
638
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
643
|
-
:param pulumi.Input[str] instance_id:
|
|
644
|
-
:param pulumi.Input[str] name:
|
|
645
|
-
:param pulumi.Input[str] namespace_name:
|
|
646
|
-
:param pulumi.Input[str] repo_name:
|
|
647
|
-
:param pulumi.Input[str] rule_id: The
|
|
648
|
-
:param pulumi.Input[str] sync_direction:
|
|
649
|
-
:param pulumi.Input[str] sync_scope:
|
|
650
|
-
:param pulumi.Input[str] tag_filter: The regular expression used to filter image tags.
|
|
651
|
-
:param pulumi.Input[str] target_instance_id:
|
|
652
|
-
:param pulumi.Input[str] target_namespace_name:
|
|
653
|
-
:param pulumi.Input[str] target_region_id: The region
|
|
654
|
-
:param pulumi.Input[str] target_repo_name:
|
|
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.
|
|
655
651
|
"""
|
|
656
652
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
657
653
|
|
|
@@ -675,7 +671,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
675
671
|
@pulumi.getter(name="instanceId")
|
|
676
672
|
def instance_id(self) -> pulumi.Output[str]:
|
|
677
673
|
"""
|
|
678
|
-
|
|
674
|
+
ID of Container Registry Enterprise Edition source instance.
|
|
679
675
|
"""
|
|
680
676
|
return pulumi.get(self, "instance_id")
|
|
681
677
|
|
|
@@ -683,7 +679,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
683
679
|
@pulumi.getter
|
|
684
680
|
def name(self) -> pulumi.Output[str]:
|
|
685
681
|
"""
|
|
686
|
-
|
|
682
|
+
Name of Container Registry Enterprise Edition sync rule.
|
|
687
683
|
"""
|
|
688
684
|
return pulumi.get(self, "name")
|
|
689
685
|
|
|
@@ -691,7 +687,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
691
687
|
@pulumi.getter(name="namespaceName")
|
|
692
688
|
def namespace_name(self) -> pulumi.Output[str]:
|
|
693
689
|
"""
|
|
694
|
-
|
|
690
|
+
Name of Container Registry Enterprise Edition source namespace. It can contain 2 to 30 characters.
|
|
695
691
|
"""
|
|
696
692
|
return pulumi.get(self, "namespace_name")
|
|
697
693
|
|
|
@@ -699,7 +695,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
699
695
|
@pulumi.getter(name="repoName")
|
|
700
696
|
def repo_name(self) -> pulumi.Output[Optional[str]]:
|
|
701
697
|
"""
|
|
702
|
-
|
|
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.
|
|
703
699
|
"""
|
|
704
700
|
return pulumi.get(self, "repo_name")
|
|
705
701
|
|
|
@@ -707,7 +703,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
707
703
|
@pulumi.getter(name="ruleId")
|
|
708
704
|
def rule_id(self) -> pulumi.Output[str]:
|
|
709
705
|
"""
|
|
710
|
-
The
|
|
706
|
+
The uuid of Container Registry Enterprise Edition sync rule.
|
|
711
707
|
"""
|
|
712
708
|
return pulumi.get(self, "rule_id")
|
|
713
709
|
|
|
@@ -715,7 +711,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
715
711
|
@pulumi.getter(name="syncDirection")
|
|
716
712
|
def sync_direction(self) -> pulumi.Output[str]:
|
|
717
713
|
"""
|
|
718
|
-
|
|
714
|
+
`FROM` or `TO`, the direction of synchronization. `FROM` means source instance, `TO` means target instance.
|
|
719
715
|
"""
|
|
720
716
|
return pulumi.get(self, "sync_direction")
|
|
721
717
|
|
|
@@ -723,7 +719,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
723
719
|
@pulumi.getter(name="syncScope")
|
|
724
720
|
def sync_scope(self) -> pulumi.Output[str]:
|
|
725
721
|
"""
|
|
726
|
-
|
|
722
|
+
`REPO` or `NAMESPACE`,the scope that the synchronization rule applies.
|
|
727
723
|
"""
|
|
728
724
|
return pulumi.get(self, "sync_scope")
|
|
729
725
|
|
|
@@ -731,7 +727,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
731
727
|
@pulumi.getter(name="tagFilter")
|
|
732
728
|
def tag_filter(self) -> pulumi.Output[str]:
|
|
733
729
|
"""
|
|
734
|
-
The regular expression used to filter image tags.
|
|
730
|
+
The regular expression used to filter image tags for synchronization in the source repository.
|
|
735
731
|
"""
|
|
736
732
|
return pulumi.get(self, "tag_filter")
|
|
737
733
|
|
|
@@ -739,7 +735,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
739
735
|
@pulumi.getter(name="targetInstanceId")
|
|
740
736
|
def target_instance_id(self) -> pulumi.Output[str]:
|
|
741
737
|
"""
|
|
742
|
-
|
|
738
|
+
ID of Container Registry Enterprise Edition target instance to be synchronized.
|
|
743
739
|
"""
|
|
744
740
|
return pulumi.get(self, "target_instance_id")
|
|
745
741
|
|
|
@@ -747,7 +743,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
747
743
|
@pulumi.getter(name="targetNamespaceName")
|
|
748
744
|
def target_namespace_name(self) -> pulumi.Output[str]:
|
|
749
745
|
"""
|
|
750
|
-
|
|
746
|
+
Name of Container Registry Enterprise Edition target namespace to be synchronized. It can contain 2 to 30 characters.
|
|
751
747
|
"""
|
|
752
748
|
return pulumi.get(self, "target_namespace_name")
|
|
753
749
|
|
|
@@ -755,7 +751,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
755
751
|
@pulumi.getter(name="targetRegionId")
|
|
756
752
|
def target_region_id(self) -> pulumi.Output[str]:
|
|
757
753
|
"""
|
|
758
|
-
The region
|
|
754
|
+
The target region to be synchronized.
|
|
759
755
|
"""
|
|
760
756
|
return pulumi.get(self, "target_region_id")
|
|
761
757
|
|
|
@@ -763,7 +759,7 @@ class RegistryEnterpriseSyncRule(pulumi.CustomResource):
|
|
|
763
759
|
@pulumi.getter(name="targetRepoName")
|
|
764
760
|
def target_repo_name(self) -> pulumi.Output[Optional[str]]:
|
|
765
761
|
"""
|
|
766
|
-
|
|
762
|
+
Name of the target repository.
|
|
767
763
|
"""
|
|
768
764
|
return pulumi.get(self, "target_repo_name")
|
|
769
765
|
|