pulumi-alicloud 3.84.0a1757017465__py3-none-any.whl → 3.85.0a1757389637__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +64 -0
- pulumi_alicloud/amqp/get_instances.py +49 -20
- pulumi_alicloud/amqp/outputs.py +20 -20
- pulumi_alicloud/amqp/virtual_host.py +46 -20
- pulumi_alicloud/cloudsso/__init__.py +1 -0
- pulumi_alicloud/cloudsso/delegate_account.py +218 -0
- pulumi_alicloud/cs/node_pool.py +7 -0
- pulumi_alicloud/ddos/bgp_ip.py +57 -48
- pulumi_alicloud/ddos/ddos_bgp_instance.py +246 -106
- pulumi_alicloud/dms/__init__.py +1 -0
- pulumi_alicloud/dms/enterprise_workspace.py +354 -0
- pulumi_alicloud/dns/ddos_bgp_instance.py +246 -106
- pulumi_alicloud/eflo/node.py +54 -7
- pulumi_alicloud/esa/__init__.py +3 -0
- pulumi_alicloud/esa/kv_account.py +145 -0
- pulumi_alicloud/esa/routine_related_record.py +226 -0
- pulumi_alicloud/esa/url_observation.py +352 -0
- pulumi_alicloud/fc/get_service.py +2 -2
- pulumi_alicloud/hologram/instance.py +35 -0
- pulumi_alicloud/kms/instance.py +47 -0
- pulumi_alicloud/log/oss_export.py +6 -0
- pulumi_alicloud/message/service_subscription.py +48 -1
- pulumi_alicloud/mongodb/sharding_instance.py +338 -0
- pulumi_alicloud/nlb/server_group.py +28 -21
- pulumi_alicloud/oss/bucket.py +56 -0
- pulumi_alicloud/privatelink/vpc_endpoint.py +21 -7
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/resourcemanager/__init__.py +1 -0
- pulumi_alicloud/resourcemanager/delegated_administrator.py +22 -50
- pulumi_alicloud/resourcemanager/folder.py +106 -29
- pulumi_alicloud/resourcemanager/get_accounts.py +35 -18
- pulumi_alicloud/resourcemanager/message_contact.py +572 -0
- pulumi_alicloud/resourcemanager/outputs.py +31 -20
- pulumi_alicloud/resourcemanager/resource_directory.py +137 -46
- pulumi_alicloud/resourcemanager/shared_resource.py +81 -45
- pulumi_alicloud/resourcemanager/shared_target.py +60 -24
- pulumi_alicloud/sls/__init__.py +4 -0
- pulumi_alicloud/sls/_inputs.py +128 -0
- pulumi_alicloud/sls/get_logtail_configs.py +395 -0
- pulumi_alicloud/sls/get_machine_groups.py +229 -0
- pulumi_alicloud/sls/logtail_config.py +692 -0
- pulumi_alicloud/sls/machine_group.py +502 -0
- pulumi_alicloud/sls/outputs.py +172 -0
- pulumi_alicloud/vpc/_inputs.py +87 -54
- pulumi_alicloud/vpc/dhcp_options_set.py +97 -58
- pulumi_alicloud/vpc/flow_log.py +25 -25
- pulumi_alicloud/vpc/ha_vip_attachment.py +41 -60
- pulumi_alicloud/vpc/ha_vipv2.py +100 -88
- pulumi_alicloud/vpc/network_acl.py +34 -23
- pulumi_alicloud/vpc/outputs.py +58 -36
- {pulumi_alicloud-3.84.0a1757017465.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.84.0a1757017465.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/RECORD +54 -44
- {pulumi_alicloud-3.84.0a1757017465.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.84.0a1757017465.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/top_level.txt +0 -0
|
@@ -62,9 +62,10 @@ class ServerGroupArgs:
|
|
|
62
62
|
:param pulumi.Input[_builtins.str] scheduler: The scheduling algorithm. Valid values:
|
|
63
63
|
|
|
64
64
|
- **Wrr:** The weighted round-robin algorithm is used. Backend servers with higher weights receive more requests than backend servers with lower weights. This is the default value.
|
|
65
|
-
- **
|
|
66
|
-
- **
|
|
67
|
-
- **
|
|
65
|
+
- **Rr:** The round-robin algorithm is used. Requests are forwarded to backend servers in sequence.
|
|
66
|
+
- **Sch:** Source IP hashing is used. Requests from the same source IP address are forwarded to the same backend server.
|
|
67
|
+
- **Tch:** Four-element hashing is used. It specifies consistent hashing that is based on four factors: source IP address, destination IP address, source port, and destination port. Requests that contain the same information based on the four factors are forwarded to the same backend server.
|
|
68
|
+
- `Qch`: QUIC ID hashing. Requests that contain the same QUIC ID are forwarded to the same backend server.
|
|
68
69
|
:param pulumi.Input[_builtins.str] server_group_type: The type of server group. Valid values:
|
|
69
70
|
|
|
70
71
|
- `Instance`: allows you to add servers of the `Ecs`, `Eni`, or `Eci` type. This is the default value.
|
|
@@ -252,9 +253,10 @@ class ServerGroupArgs:
|
|
|
252
253
|
The scheduling algorithm. Valid values:
|
|
253
254
|
|
|
254
255
|
- **Wrr:** The weighted round-robin algorithm is used. Backend servers with higher weights receive more requests than backend servers with lower weights. This is the default value.
|
|
255
|
-
- **
|
|
256
|
-
- **
|
|
257
|
-
- **
|
|
256
|
+
- **Rr:** The round-robin algorithm is used. Requests are forwarded to backend servers in sequence.
|
|
257
|
+
- **Sch:** Source IP hashing is used. Requests from the same source IP address are forwarded to the same backend server.
|
|
258
|
+
- **Tch:** Four-element hashing is used. It specifies consistent hashing that is based on four factors: source IP address, destination IP address, source port, and destination port. Requests that contain the same information based on the four factors are forwarded to the same backend server.
|
|
259
|
+
- `Qch`: QUIC ID hashing. Requests that contain the same QUIC ID are forwarded to the same backend server.
|
|
258
260
|
"""
|
|
259
261
|
return pulumi.get(self, "scheduler")
|
|
260
262
|
|
|
@@ -329,9 +331,10 @@ class _ServerGroupState:
|
|
|
329
331
|
:param pulumi.Input[_builtins.str] scheduler: The scheduling algorithm. Valid values:
|
|
330
332
|
|
|
331
333
|
- **Wrr:** The weighted round-robin algorithm is used. Backend servers with higher weights receive more requests than backend servers with lower weights. This is the default value.
|
|
332
|
-
- **
|
|
333
|
-
- **
|
|
334
|
-
- **
|
|
334
|
+
- **Rr:** The round-robin algorithm is used. Requests are forwarded to backend servers in sequence.
|
|
335
|
+
- **Sch:** Source IP hashing is used. Requests from the same source IP address are forwarded to the same backend server.
|
|
336
|
+
- **Tch:** Four-element hashing is used. It specifies consistent hashing that is based on four factors: source IP address, destination IP address, source port, and destination port. Requests that contain the same information based on the four factors are forwarded to the same backend server.
|
|
337
|
+
- `Qch`: QUIC ID hashing. Requests that contain the same QUIC ID are forwarded to the same backend server.
|
|
335
338
|
:param pulumi.Input[_builtins.str] server_group_name: The new name of the server group.
|
|
336
339
|
The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\\_), and hyphens (-). The name must start with a letter.
|
|
337
340
|
:param pulumi.Input[_builtins.str] server_group_type: The type of server group. Valid values:
|
|
@@ -516,9 +519,10 @@ class _ServerGroupState:
|
|
|
516
519
|
The scheduling algorithm. Valid values:
|
|
517
520
|
|
|
518
521
|
- **Wrr:** The weighted round-robin algorithm is used. Backend servers with higher weights receive more requests than backend servers with lower weights. This is the default value.
|
|
519
|
-
- **
|
|
520
|
-
- **
|
|
521
|
-
- **
|
|
522
|
+
- **Rr:** The round-robin algorithm is used. Requests are forwarded to backend servers in sequence.
|
|
523
|
+
- **Sch:** Source IP hashing is used. Requests from the same source IP address are forwarded to the same backend server.
|
|
524
|
+
- **Tch:** Four-element hashing is used. It specifies consistent hashing that is based on four factors: source IP address, destination IP address, source port, and destination port. Requests that contain the same information based on the four factors are forwarded to the same backend server.
|
|
525
|
+
- `Qch`: QUIC ID hashing. Requests that contain the same QUIC ID are forwarded to the same backend server.
|
|
522
526
|
"""
|
|
523
527
|
return pulumi.get(self, "scheduler")
|
|
524
528
|
|
|
@@ -698,9 +702,10 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
698
702
|
:param pulumi.Input[_builtins.str] scheduler: The scheduling algorithm. Valid values:
|
|
699
703
|
|
|
700
704
|
- **Wrr:** The weighted round-robin algorithm is used. Backend servers with higher weights receive more requests than backend servers with lower weights. This is the default value.
|
|
701
|
-
- **
|
|
702
|
-
- **
|
|
703
|
-
- **
|
|
705
|
+
- **Rr:** The round-robin algorithm is used. Requests are forwarded to backend servers in sequence.
|
|
706
|
+
- **Sch:** Source IP hashing is used. Requests from the same source IP address are forwarded to the same backend server.
|
|
707
|
+
- **Tch:** Four-element hashing is used. It specifies consistent hashing that is based on four factors: source IP address, destination IP address, source port, and destination port. Requests that contain the same information based on the four factors are forwarded to the same backend server.
|
|
708
|
+
- `Qch`: QUIC ID hashing. Requests that contain the same QUIC ID are forwarded to the same backend server.
|
|
704
709
|
:param pulumi.Input[_builtins.str] server_group_name: The new name of the server group.
|
|
705
710
|
The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\\_), and hyphens (-). The name must start with a letter.
|
|
706
711
|
:param pulumi.Input[_builtins.str] server_group_type: The type of server group. Valid values:
|
|
@@ -892,9 +897,10 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
892
897
|
:param pulumi.Input[_builtins.str] scheduler: The scheduling algorithm. Valid values:
|
|
893
898
|
|
|
894
899
|
- **Wrr:** The weighted round-robin algorithm is used. Backend servers with higher weights receive more requests than backend servers with lower weights. This is the default value.
|
|
895
|
-
- **
|
|
896
|
-
- **
|
|
897
|
-
- **
|
|
900
|
+
- **Rr:** The round-robin algorithm is used. Requests are forwarded to backend servers in sequence.
|
|
901
|
+
- **Sch:** Source IP hashing is used. Requests from the same source IP address are forwarded to the same backend server.
|
|
902
|
+
- **Tch:** Four-element hashing is used. It specifies consistent hashing that is based on four factors: source IP address, destination IP address, source port, and destination port. Requests that contain the same information based on the four factors are forwarded to the same backend server.
|
|
903
|
+
- `Qch`: QUIC ID hashing. Requests that contain the same QUIC ID are forwarded to the same backend server.
|
|
898
904
|
:param pulumi.Input[_builtins.str] server_group_name: The new name of the server group.
|
|
899
905
|
The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\\_), and hyphens (-). The name must start with a letter.
|
|
900
906
|
:param pulumi.Input[_builtins.str] server_group_type: The type of server group. Valid values:
|
|
@@ -1025,9 +1031,10 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
1025
1031
|
The scheduling algorithm. Valid values:
|
|
1026
1032
|
|
|
1027
1033
|
- **Wrr:** The weighted round-robin algorithm is used. Backend servers with higher weights receive more requests than backend servers with lower weights. This is the default value.
|
|
1028
|
-
- **
|
|
1029
|
-
- **
|
|
1030
|
-
- **
|
|
1034
|
+
- **Rr:** The round-robin algorithm is used. Requests are forwarded to backend servers in sequence.
|
|
1035
|
+
- **Sch:** Source IP hashing is used. Requests from the same source IP address are forwarded to the same backend server.
|
|
1036
|
+
- **Tch:** Four-element hashing is used. It specifies consistent hashing that is based on four factors: source IP address, destination IP address, source port, and destination port. Requests that contain the same information based on the four factors are forwarded to the same backend server.
|
|
1037
|
+
- `Qch`: QUIC ID hashing. Requests that contain the same QUIC ID are forwarded to the same backend server.
|
|
1031
1038
|
"""
|
|
1032
1039
|
return pulumi.get(self, "scheduler")
|
|
1033
1040
|
|
pulumi_alicloud/oss/bucket.py
CHANGED
|
@@ -1118,8 +1118,36 @@ class Bucket(pulumi.CustomResource):
|
|
|
1118
1118
|
|
|
1119
1119
|
Set bucket redundancy type
|
|
1120
1120
|
|
|
1121
|
+
```python
|
|
1122
|
+
import pulumi
|
|
1123
|
+
import pulumi_alicloud as alicloud
|
|
1124
|
+
import pulumi_random as random
|
|
1125
|
+
|
|
1126
|
+
default = random.index.Integer("default",
|
|
1127
|
+
max=99999,
|
|
1128
|
+
min=10000)
|
|
1129
|
+
bucket_redundancytype = alicloud.oss.Bucket("bucket-redundancytype",
|
|
1130
|
+
bucket=f"terraform-example-{default['result']}",
|
|
1131
|
+
redundancy_type="ZRS")
|
|
1132
|
+
```
|
|
1133
|
+
|
|
1121
1134
|
Set bucket accelerate configuration
|
|
1122
1135
|
|
|
1136
|
+
```python
|
|
1137
|
+
import pulumi
|
|
1138
|
+
import pulumi_alicloud as alicloud
|
|
1139
|
+
import pulumi_random as random
|
|
1140
|
+
|
|
1141
|
+
default = random.index.Integer("default",
|
|
1142
|
+
max=99999,
|
|
1143
|
+
min=10000)
|
|
1144
|
+
bucket_accelerate = alicloud.oss.Bucket("bucket-accelerate",
|
|
1145
|
+
bucket=f"terraform-example-{default['result']}",
|
|
1146
|
+
transfer_acceleration={
|
|
1147
|
+
"enabled": False,
|
|
1148
|
+
})
|
|
1149
|
+
```
|
|
1150
|
+
|
|
1123
1151
|
Set bucket resource group id
|
|
1124
1152
|
|
|
1125
1153
|
```python
|
|
@@ -1533,8 +1561,36 @@ class Bucket(pulumi.CustomResource):
|
|
|
1533
1561
|
|
|
1534
1562
|
Set bucket redundancy type
|
|
1535
1563
|
|
|
1564
|
+
```python
|
|
1565
|
+
import pulumi
|
|
1566
|
+
import pulumi_alicloud as alicloud
|
|
1567
|
+
import pulumi_random as random
|
|
1568
|
+
|
|
1569
|
+
default = random.index.Integer("default",
|
|
1570
|
+
max=99999,
|
|
1571
|
+
min=10000)
|
|
1572
|
+
bucket_redundancytype = alicloud.oss.Bucket("bucket-redundancytype",
|
|
1573
|
+
bucket=f"terraform-example-{default['result']}",
|
|
1574
|
+
redundancy_type="ZRS")
|
|
1575
|
+
```
|
|
1576
|
+
|
|
1536
1577
|
Set bucket accelerate configuration
|
|
1537
1578
|
|
|
1579
|
+
```python
|
|
1580
|
+
import pulumi
|
|
1581
|
+
import pulumi_alicloud as alicloud
|
|
1582
|
+
import pulumi_random as random
|
|
1583
|
+
|
|
1584
|
+
default = random.index.Integer("default",
|
|
1585
|
+
max=99999,
|
|
1586
|
+
min=10000)
|
|
1587
|
+
bucket_accelerate = alicloud.oss.Bucket("bucket-accelerate",
|
|
1588
|
+
bucket=f"terraform-example-{default['result']}",
|
|
1589
|
+
transfer_acceleration={
|
|
1590
|
+
"enabled": False,
|
|
1591
|
+
})
|
|
1592
|
+
```
|
|
1593
|
+
|
|
1538
1594
|
Set bucket resource group id
|
|
1539
1595
|
|
|
1540
1596
|
```python
|
|
@@ -36,7 +36,9 @@ class VpcEndpointArgs:
|
|
|
36
36
|
"""
|
|
37
37
|
The set of arguments for constructing a VpcEndpoint resource.
|
|
38
38
|
:param pulumi.Input[_builtins.str] vpc_id: The ID of the VPC to which the endpoint belongs.
|
|
39
|
-
:param pulumi.Input[_builtins.str] address_ip_version: The IP address version.
|
|
39
|
+
:param pulumi.Input[_builtins.str] address_ip_version: The IP address version. Valid values:
|
|
40
|
+
- `IPv4` (default): IPv4.
|
|
41
|
+
- `DualStack`: dual-stack.
|
|
40
42
|
:param pulumi.Input[_builtins.bool] dry_run: Specifies whether to perform only a dry run, without performing the actual request. Valid values:
|
|
41
43
|
:param pulumi.Input[_builtins.str] endpoint_description: The description of the endpoint.
|
|
42
44
|
:param pulumi.Input[_builtins.str] endpoint_type: The endpoint type.
|
|
@@ -98,7 +100,9 @@ class VpcEndpointArgs:
|
|
|
98
100
|
@pulumi.getter(name="addressIpVersion")
|
|
99
101
|
def address_ip_version(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
100
102
|
"""
|
|
101
|
-
The IP address version.
|
|
103
|
+
The IP address version. Valid values:
|
|
104
|
+
- `IPv4` (default): IPv4.
|
|
105
|
+
- `DualStack`: dual-stack.
|
|
102
106
|
"""
|
|
103
107
|
return pulumi.get(self, "address_ip_version")
|
|
104
108
|
|
|
@@ -281,7 +285,9 @@ class _VpcEndpointState:
|
|
|
281
285
|
zone_private_ip_address_count: Optional[pulumi.Input[_builtins.int]] = None):
|
|
282
286
|
"""
|
|
283
287
|
Input properties used for looking up and filtering VpcEndpoint resources.
|
|
284
|
-
:param pulumi.Input[_builtins.str] address_ip_version: The IP address version.
|
|
288
|
+
:param pulumi.Input[_builtins.str] address_ip_version: The IP address version. Valid values:
|
|
289
|
+
- `IPv4` (default): IPv4.
|
|
290
|
+
- `DualStack`: dual-stack.
|
|
285
291
|
:param pulumi.Input[_builtins.int] bandwidth: The bandwidth of the endpoint connection. 1024 to 10240. Unit: Mbit/s.
|
|
286
292
|
:param pulumi.Input[_builtins.str] connection_status: The state of the endpoint connection.
|
|
287
293
|
:param pulumi.Input[_builtins.str] create_time: The time when the endpoint was created.
|
|
@@ -354,7 +360,9 @@ class _VpcEndpointState:
|
|
|
354
360
|
@pulumi.getter(name="addressIpVersion")
|
|
355
361
|
def address_ip_version(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
356
362
|
"""
|
|
357
|
-
The IP address version.
|
|
363
|
+
The IP address version. Valid values:
|
|
364
|
+
- `IPv4` (default): IPv4.
|
|
365
|
+
- `DualStack`: dual-stack.
|
|
358
366
|
"""
|
|
359
367
|
return pulumi.get(self, "address_ip_version")
|
|
360
368
|
|
|
@@ -692,7 +700,9 @@ class VpcEndpoint(pulumi.CustomResource):
|
|
|
692
700
|
|
|
693
701
|
:param str resource_name: The name of the resource.
|
|
694
702
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
695
|
-
:param pulumi.Input[_builtins.str] address_ip_version: The IP address version.
|
|
703
|
+
:param pulumi.Input[_builtins.str] address_ip_version: The IP address version. Valid values:
|
|
704
|
+
- `IPv4` (default): IPv4.
|
|
705
|
+
- `DualStack`: dual-stack.
|
|
696
706
|
:param pulumi.Input[_builtins.bool] dry_run: Specifies whether to perform only a dry run, without performing the actual request. Valid values:
|
|
697
707
|
:param pulumi.Input[_builtins.str] endpoint_description: The description of the endpoint.
|
|
698
708
|
:param pulumi.Input[_builtins.str] endpoint_type: The endpoint type.
|
|
@@ -878,7 +888,9 @@ class VpcEndpoint(pulumi.CustomResource):
|
|
|
878
888
|
:param str resource_name: The unique name of the resulting resource.
|
|
879
889
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
880
890
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
881
|
-
:param pulumi.Input[_builtins.str] address_ip_version: The IP address version.
|
|
891
|
+
:param pulumi.Input[_builtins.str] address_ip_version: The IP address version. Valid values:
|
|
892
|
+
- `IPv4` (default): IPv4.
|
|
893
|
+
- `DualStack`: dual-stack.
|
|
882
894
|
:param pulumi.Input[_builtins.int] bandwidth: The bandwidth of the endpoint connection. 1024 to 10240. Unit: Mbit/s.
|
|
883
895
|
:param pulumi.Input[_builtins.str] connection_status: The state of the endpoint connection.
|
|
884
896
|
:param pulumi.Input[_builtins.str] create_time: The time when the endpoint was created.
|
|
@@ -935,7 +947,9 @@ class VpcEndpoint(pulumi.CustomResource):
|
|
|
935
947
|
@pulumi.getter(name="addressIpVersion")
|
|
936
948
|
def address_ip_version(self) -> pulumi.Output[_builtins.str]:
|
|
937
949
|
"""
|
|
938
|
-
The IP address version.
|
|
950
|
+
The IP address version. Valid values:
|
|
951
|
+
- `IPv4` (default): IPv4.
|
|
952
|
+
- `DualStack`: dual-stack.
|
|
939
953
|
"""
|
|
940
954
|
return pulumi.get(self, "address_ip_version")
|
|
941
955
|
|
|
@@ -23,8 +23,8 @@ class DelegatedAdministratorArgs:
|
|
|
23
23
|
service_principal: pulumi.Input[_builtins.str]):
|
|
24
24
|
"""
|
|
25
25
|
The set of arguments for constructing a DelegatedAdministrator resource.
|
|
26
|
-
:param pulumi.Input[_builtins.str] account_id: The ID of the member
|
|
27
|
-
:param pulumi.Input[_builtins.str] service_principal: The
|
|
26
|
+
:param pulumi.Input[_builtins.str] account_id: The Alibaba Cloud account ID of the member in the resource directory.
|
|
27
|
+
:param pulumi.Input[_builtins.str] service_principal: The identifier of the trusted service.
|
|
28
28
|
"""
|
|
29
29
|
pulumi.set(__self__, "account_id", account_id)
|
|
30
30
|
pulumi.set(__self__, "service_principal", service_principal)
|
|
@@ -33,7 +33,7 @@ class DelegatedAdministratorArgs:
|
|
|
33
33
|
@pulumi.getter(name="accountId")
|
|
34
34
|
def account_id(self) -> pulumi.Input[_builtins.str]:
|
|
35
35
|
"""
|
|
36
|
-
The ID of the member
|
|
36
|
+
The Alibaba Cloud account ID of the member in the resource directory.
|
|
37
37
|
"""
|
|
38
38
|
return pulumi.get(self, "account_id")
|
|
39
39
|
|
|
@@ -45,7 +45,7 @@ class DelegatedAdministratorArgs:
|
|
|
45
45
|
@pulumi.getter(name="servicePrincipal")
|
|
46
46
|
def service_principal(self) -> pulumi.Input[_builtins.str]:
|
|
47
47
|
"""
|
|
48
|
-
The
|
|
48
|
+
The identifier of the trusted service.
|
|
49
49
|
"""
|
|
50
50
|
return pulumi.get(self, "service_principal")
|
|
51
51
|
|
|
@@ -61,8 +61,8 @@ class _DelegatedAdministratorState:
|
|
|
61
61
|
service_principal: Optional[pulumi.Input[_builtins.str]] = None):
|
|
62
62
|
"""
|
|
63
63
|
Input properties used for looking up and filtering DelegatedAdministrator resources.
|
|
64
|
-
:param pulumi.Input[_builtins.str] account_id: The ID of the member
|
|
65
|
-
:param pulumi.Input[_builtins.str] service_principal: The
|
|
64
|
+
:param pulumi.Input[_builtins.str] account_id: The Alibaba Cloud account ID of the member in the resource directory.
|
|
65
|
+
:param pulumi.Input[_builtins.str] service_principal: The identifier of the trusted service.
|
|
66
66
|
"""
|
|
67
67
|
if account_id is not None:
|
|
68
68
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -73,7 +73,7 @@ class _DelegatedAdministratorState:
|
|
|
73
73
|
@pulumi.getter(name="accountId")
|
|
74
74
|
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
75
75
|
"""
|
|
76
|
-
The ID of the member
|
|
76
|
+
The Alibaba Cloud account ID of the member in the resource directory.
|
|
77
77
|
"""
|
|
78
78
|
return pulumi.get(self, "account_id")
|
|
79
79
|
|
|
@@ -85,7 +85,7 @@ class _DelegatedAdministratorState:
|
|
|
85
85
|
@pulumi.getter(name="servicePrincipal")
|
|
86
86
|
def service_principal(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
87
87
|
"""
|
|
88
|
-
The
|
|
88
|
+
The identifier of the trusted service.
|
|
89
89
|
"""
|
|
90
90
|
return pulumi.get(self, "service_principal")
|
|
91
91
|
|
|
@@ -117,24 +117,10 @@ class DelegatedAdministrator(pulumi.CustomResource):
|
|
|
117
117
|
```python
|
|
118
118
|
import pulumi
|
|
119
119
|
import pulumi_alicloud as alicloud
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
if name is None:
|
|
125
|
-
name = "tf-example"
|
|
126
|
-
display_name = config.get("displayName")
|
|
127
|
-
if display_name is None:
|
|
128
|
-
display_name = "EAccount"
|
|
129
|
-
default = random.index.Integer("default",
|
|
130
|
-
min=10000,
|
|
131
|
-
max=99999)
|
|
132
|
-
example = alicloud.resourcemanager.get_folders()
|
|
133
|
-
example_account = alicloud.resourcemanager.Account("example",
|
|
134
|
-
display_name=f"{display_name}-{default['result']}",
|
|
135
|
-
folder_id=example.ids[0])
|
|
136
|
-
example_delegated_administrator = alicloud.resourcemanager.DelegatedAdministrator("example",
|
|
137
|
-
account_id=example_account.id,
|
|
120
|
+
|
|
121
|
+
default = alicloud.resourcemanager.get_accounts(status="CreateSuccess")
|
|
122
|
+
default_delegated_administrator = alicloud.resourcemanager.DelegatedAdministrator("default",
|
|
123
|
+
account_id=default.accounts[0].account_id,
|
|
138
124
|
service_principal="cloudfw.aliyuncs.com")
|
|
139
125
|
```
|
|
140
126
|
|
|
@@ -148,8 +134,8 @@ class DelegatedAdministrator(pulumi.CustomResource):
|
|
|
148
134
|
|
|
149
135
|
:param str resource_name: The name of the resource.
|
|
150
136
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
151
|
-
:param pulumi.Input[_builtins.str] account_id: The ID of the member
|
|
152
|
-
:param pulumi.Input[_builtins.str] service_principal: The
|
|
137
|
+
:param pulumi.Input[_builtins.str] account_id: The Alibaba Cloud account ID of the member in the resource directory.
|
|
138
|
+
:param pulumi.Input[_builtins.str] service_principal: The identifier of the trusted service.
|
|
153
139
|
"""
|
|
154
140
|
...
|
|
155
141
|
@overload
|
|
@@ -171,24 +157,10 @@ class DelegatedAdministrator(pulumi.CustomResource):
|
|
|
171
157
|
```python
|
|
172
158
|
import pulumi
|
|
173
159
|
import pulumi_alicloud as alicloud
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
if name is None:
|
|
179
|
-
name = "tf-example"
|
|
180
|
-
display_name = config.get("displayName")
|
|
181
|
-
if display_name is None:
|
|
182
|
-
display_name = "EAccount"
|
|
183
|
-
default = random.index.Integer("default",
|
|
184
|
-
min=10000,
|
|
185
|
-
max=99999)
|
|
186
|
-
example = alicloud.resourcemanager.get_folders()
|
|
187
|
-
example_account = alicloud.resourcemanager.Account("example",
|
|
188
|
-
display_name=f"{display_name}-{default['result']}",
|
|
189
|
-
folder_id=example.ids[0])
|
|
190
|
-
example_delegated_administrator = alicloud.resourcemanager.DelegatedAdministrator("example",
|
|
191
|
-
account_id=example_account.id,
|
|
160
|
+
|
|
161
|
+
default = alicloud.resourcemanager.get_accounts(status="CreateSuccess")
|
|
162
|
+
default_delegated_administrator = alicloud.resourcemanager.DelegatedAdministrator("default",
|
|
163
|
+
account_id=default.accounts[0].account_id,
|
|
192
164
|
service_principal="cloudfw.aliyuncs.com")
|
|
193
165
|
```
|
|
194
166
|
|
|
@@ -251,8 +223,8 @@ class DelegatedAdministrator(pulumi.CustomResource):
|
|
|
251
223
|
:param str resource_name: The unique name of the resulting resource.
|
|
252
224
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
253
225
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
254
|
-
:param pulumi.Input[_builtins.str] account_id: The ID of the member
|
|
255
|
-
:param pulumi.Input[_builtins.str] service_principal: The
|
|
226
|
+
:param pulumi.Input[_builtins.str] account_id: The Alibaba Cloud account ID of the member in the resource directory.
|
|
227
|
+
:param pulumi.Input[_builtins.str] service_principal: The identifier of the trusted service.
|
|
256
228
|
"""
|
|
257
229
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
258
230
|
|
|
@@ -266,7 +238,7 @@ class DelegatedAdministrator(pulumi.CustomResource):
|
|
|
266
238
|
@pulumi.getter(name="accountId")
|
|
267
239
|
def account_id(self) -> pulumi.Output[_builtins.str]:
|
|
268
240
|
"""
|
|
269
|
-
The ID of the member
|
|
241
|
+
The Alibaba Cloud account ID of the member in the resource directory.
|
|
270
242
|
"""
|
|
271
243
|
return pulumi.get(self, "account_id")
|
|
272
244
|
|
|
@@ -274,7 +246,7 @@ class DelegatedAdministrator(pulumi.CustomResource):
|
|
|
274
246
|
@pulumi.getter(name="servicePrincipal")
|
|
275
247
|
def service_principal(self) -> pulumi.Output[_builtins.str]:
|
|
276
248
|
"""
|
|
277
|
-
The
|
|
249
|
+
The identifier of the trusted service.
|
|
278
250
|
"""
|
|
279
251
|
return pulumi.get(self, "service_principal")
|
|
280
252
|
|