pulumi-alicloud 3.86.0a1758340042__py3-none-any.whl → 3.86.1__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/apig/_inputs.py +80 -6
- pulumi_alicloud/apig/gateway.py +111 -3
- pulumi_alicloud/apig/outputs.py +67 -4
- pulumi_alicloud/cas/certificate.py +248 -35
- pulumi_alicloud/cas/service_certificate.py +454 -168
- pulumi_alicloud/ecs/instance.py +7 -7
- pulumi_alicloud/hbr/policy_binding.py +7 -0
- pulumi_alicloud/kvstore/account.py +4 -4
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/pvtz/get_service.py +12 -8
- pulumi_alicloud/resourcemanager/control_policy.py +169 -31
- pulumi_alicloud/vpc/bgp_network.py +83 -36
- {pulumi_alicloud-3.86.0a1758340042.dist-info → pulumi_alicloud-3.86.1.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.86.0a1758340042.dist-info → pulumi_alicloud-3.86.1.dist-info}/RECORD +16 -16
- {pulumi_alicloud-3.86.0a1758340042.dist-info → pulumi_alicloud-3.86.1.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.86.0a1758340042.dist-info → pulumi_alicloud-3.86.1.dist-info}/top_level.txt +0 -0
pulumi_alicloud/ecs/instance.py
CHANGED
|
@@ -198,7 +198,7 @@ class InstanceArgs:
|
|
|
198
198
|
- `Normal`: Disable auto renewal.
|
|
199
199
|
- `NotRenewal`: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
|
|
200
200
|
:param pulumi.Input[_builtins.str] resource_group_id: The Id of resource group which the instance belongs.
|
|
201
|
-
:param pulumi.Input[_builtins.str] role_name:
|
|
201
|
+
:param pulumi.Input[_builtins.str] role_name: The name of the Resource Access Management (RAM) role. **NOTE:** From version 1.250.0, If you want to use `role_name`, We recommend you to use the resource alicloud_ecs_ram_role_attachment.
|
|
202
202
|
:param pulumi.Input[_builtins.int] secondary_private_ip_address_count: The number of private IP addresses to be automatically assigned from within the CIDR block of the vswitch. **NOTE:** To assign secondary private IP addresses, you must specify `secondary_private_ips` or `secondary_private_ip_address_count` but not both.
|
|
203
203
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] secondary_private_ips: A list of Secondary private IP addresses which is selected from within the CIDR block of the vSwitch.
|
|
204
204
|
:param pulumi.Input[_builtins.str] security_enhancement_strategy: The security enhancement strategy.
|
|
@@ -1093,7 +1093,7 @@ class InstanceArgs:
|
|
|
1093
1093
|
@pulumi.getter(name="roleName")
|
|
1094
1094
|
def role_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
1095
1095
|
"""
|
|
1096
|
-
|
|
1096
|
+
The name of the Resource Access Management (RAM) role. **NOTE:** From version 1.250.0, If you want to use `role_name`, We recommend you to use the resource alicloud_ecs_ram_role_attachment.
|
|
1097
1097
|
"""
|
|
1098
1098
|
return pulumi.get(self, "role_name")
|
|
1099
1099
|
|
|
@@ -1632,7 +1632,7 @@ class _InstanceState:
|
|
|
1632
1632
|
- `Normal`: Disable auto renewal.
|
|
1633
1633
|
- `NotRenewal`: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
|
|
1634
1634
|
:param pulumi.Input[_builtins.str] resource_group_id: The Id of resource group which the instance belongs.
|
|
1635
|
-
:param pulumi.Input[_builtins.str] role_name:
|
|
1635
|
+
:param pulumi.Input[_builtins.str] role_name: The name of the Resource Access Management (RAM) role. **NOTE:** From version 1.250.0, If you want to use `role_name`, We recommend you to use the resource alicloud_ecs_ram_role_attachment.
|
|
1636
1636
|
:param pulumi.Input[_builtins.int] secondary_private_ip_address_count: The number of private IP addresses to be automatically assigned from within the CIDR block of the vswitch. **NOTE:** To assign secondary private IP addresses, you must specify `secondary_private_ips` or `secondary_private_ip_address_count` but not both.
|
|
1637
1637
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] secondary_private_ips: A list of Secondary private IP addresses which is selected from within the CIDR block of the vSwitch.
|
|
1638
1638
|
:param pulumi.Input[_builtins.str] security_enhancement_strategy: The security enhancement strategy.
|
|
@@ -2673,7 +2673,7 @@ class _InstanceState:
|
|
|
2673
2673
|
@pulumi.getter(name="roleName")
|
|
2674
2674
|
def role_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
2675
2675
|
"""
|
|
2676
|
-
|
|
2676
|
+
The name of the Resource Access Management (RAM) role. **NOTE:** From version 1.250.0, If you want to use `role_name`, We recommend you to use the resource alicloud_ecs_ram_role_attachment.
|
|
2677
2677
|
"""
|
|
2678
2678
|
return pulumi.get(self, "role_name")
|
|
2679
2679
|
|
|
@@ -3296,7 +3296,7 @@ class Instance(pulumi.CustomResource):
|
|
|
3296
3296
|
- `Normal`: Disable auto renewal.
|
|
3297
3297
|
- `NotRenewal`: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
|
|
3298
3298
|
:param pulumi.Input[_builtins.str] resource_group_id: The Id of resource group which the instance belongs.
|
|
3299
|
-
:param pulumi.Input[_builtins.str] role_name:
|
|
3299
|
+
:param pulumi.Input[_builtins.str] role_name: The name of the Resource Access Management (RAM) role. **NOTE:** From version 1.250.0, If you want to use `role_name`, We recommend you to use the resource alicloud_ecs_ram_role_attachment.
|
|
3300
3300
|
:param pulumi.Input[_builtins.int] secondary_private_ip_address_count: The number of private IP addresses to be automatically assigned from within the CIDR block of the vswitch. **NOTE:** To assign secondary private IP addresses, you must specify `secondary_private_ips` or `secondary_private_ip_address_count` but not both.
|
|
3301
3301
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] secondary_private_ips: A list of Secondary private IP addresses which is selected from within the CIDR block of the vSwitch.
|
|
3302
3302
|
:param pulumi.Input[_builtins.str] security_enhancement_strategy: The security enhancement strategy.
|
|
@@ -3836,7 +3836,7 @@ class Instance(pulumi.CustomResource):
|
|
|
3836
3836
|
- `Normal`: Disable auto renewal.
|
|
3837
3837
|
- `NotRenewal`: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
|
|
3838
3838
|
:param pulumi.Input[_builtins.str] resource_group_id: The Id of resource group which the instance belongs.
|
|
3839
|
-
:param pulumi.Input[_builtins.str] role_name:
|
|
3839
|
+
:param pulumi.Input[_builtins.str] role_name: The name of the Resource Access Management (RAM) role. **NOTE:** From version 1.250.0, If you want to use `role_name`, We recommend you to use the resource alicloud_ecs_ram_role_attachment.
|
|
3840
3840
|
:param pulumi.Input[_builtins.int] secondary_private_ip_address_count: The number of private IP addresses to be automatically assigned from within the CIDR block of the vswitch. **NOTE:** To assign secondary private IP addresses, you must specify `secondary_private_ips` or `secondary_private_ip_address_count` but not both.
|
|
3841
3841
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] secondary_private_ips: A list of Secondary private IP addresses which is selected from within the CIDR block of the vSwitch.
|
|
3842
3842
|
:param pulumi.Input[_builtins.str] security_enhancement_strategy: The security enhancement strategy.
|
|
@@ -4532,7 +4532,7 @@ class Instance(pulumi.CustomResource):
|
|
|
4532
4532
|
@pulumi.getter(name="roleName")
|
|
4533
4533
|
def role_name(self) -> pulumi.Output[_builtins.str]:
|
|
4534
4534
|
"""
|
|
4535
|
-
|
|
4535
|
+
The name of the Resource Access Management (RAM) role. **NOTE:** From version 1.250.0, If you want to use `role_name`, We recommend you to use the resource alicloud_ecs_ram_role_attachment.
|
|
4536
4536
|
"""
|
|
4537
4537
|
return pulumi.get(self, "role_name")
|
|
4538
4538
|
|
|
@@ -55,6 +55,7 @@ class PolicyBindingArgs:
|
|
|
55
55
|
- `NAS`: indicates an Alibaba Cloud NAS Backup. When you bind a file system to a policy, Cloud Backup automatically creates a mount point for the file system. If you no longer need the mount point, delete it manually.
|
|
56
56
|
- `ECS_FILE`: indicates that the ECS file is backed up.
|
|
57
57
|
- `File`: indicates a local File backup.
|
|
58
|
+
- `OTS`: (Available since v1.260.1) indicates the Tablestore backup.
|
|
58
59
|
:param pulumi.Input[_builtins.str] speed_limit: This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates backup flow control. The format is {start}{end}{bandwidth}. Multiple flow control configurations use partitioning, and no overlap in configuration time is allowed. start: start hour. end: end of hour. bandwidth: limit rate, in KB/s.
|
|
59
60
|
"""
|
|
60
61
|
if advanced_options is not None:
|
|
@@ -228,6 +229,7 @@ class PolicyBindingArgs:
|
|
|
228
229
|
- `NAS`: indicates an Alibaba Cloud NAS Backup. When you bind a file system to a policy, Cloud Backup automatically creates a mount point for the file system. If you no longer need the mount point, delete it manually.
|
|
229
230
|
- `ECS_FILE`: indicates that the ECS file is backed up.
|
|
230
231
|
- `File`: indicates a local File backup.
|
|
232
|
+
- `OTS`: (Available since v1.260.1) indicates the Tablestore backup.
|
|
231
233
|
"""
|
|
232
234
|
return pulumi.get(self, "source_type")
|
|
233
235
|
|
|
@@ -287,6 +289,7 @@ class _PolicyBindingState:
|
|
|
287
289
|
- `NAS`: indicates an Alibaba Cloud NAS Backup. When you bind a file system to a policy, Cloud Backup automatically creates a mount point for the file system. If you no longer need the mount point, delete it manually.
|
|
288
290
|
- `ECS_FILE`: indicates that the ECS file is backed up.
|
|
289
291
|
- `File`: indicates a local File backup.
|
|
292
|
+
- `OTS`: (Available since v1.260.1) indicates the Tablestore backup.
|
|
290
293
|
:param pulumi.Input[_builtins.str] speed_limit: This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates backup flow control. The format is {start}{end}{bandwidth}. Multiple flow control configurations use partitioning, and no overlap in configuration time is allowed. start: start hour. end: end of hour. bandwidth: limit rate, in KB/s.
|
|
291
294
|
"""
|
|
292
295
|
if advanced_options is not None:
|
|
@@ -474,6 +477,7 @@ class _PolicyBindingState:
|
|
|
474
477
|
- `NAS`: indicates an Alibaba Cloud NAS Backup. When you bind a file system to a policy, Cloud Backup automatically creates a mount point for the file system. If you no longer need the mount point, delete it manually.
|
|
475
478
|
- `ECS_FILE`: indicates that the ECS file is backed up.
|
|
476
479
|
- `File`: indicates a local File backup.
|
|
480
|
+
- `OTS`: (Available since v1.260.1) indicates the Tablestore backup.
|
|
477
481
|
"""
|
|
478
482
|
return pulumi.get(self, "source_type")
|
|
479
483
|
|
|
@@ -592,6 +596,7 @@ class PolicyBinding(pulumi.CustomResource):
|
|
|
592
596
|
- `NAS`: indicates an Alibaba Cloud NAS Backup. When you bind a file system to a policy, Cloud Backup automatically creates a mount point for the file system. If you no longer need the mount point, delete it manually.
|
|
593
597
|
- `ECS_FILE`: indicates that the ECS file is backed up.
|
|
594
598
|
- `File`: indicates a local File backup.
|
|
599
|
+
- `OTS`: (Available since v1.260.1) indicates the Tablestore backup.
|
|
595
600
|
:param pulumi.Input[_builtins.str] speed_limit: This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates backup flow control. The format is {start}{end}{bandwidth}. Multiple flow control configurations use partitioning, and no overlap in configuration time is allowed. start: start hour. end: end of hour. bandwidth: limit rate, in KB/s.
|
|
596
601
|
"""
|
|
597
602
|
...
|
|
@@ -759,6 +764,7 @@ class PolicyBinding(pulumi.CustomResource):
|
|
|
759
764
|
- `NAS`: indicates an Alibaba Cloud NAS Backup. When you bind a file system to a policy, Cloud Backup automatically creates a mount point for the file system. If you no longer need the mount point, delete it manually.
|
|
760
765
|
- `ECS_FILE`: indicates that the ECS file is backed up.
|
|
761
766
|
- `File`: indicates a local File backup.
|
|
767
|
+
- `OTS`: (Available since v1.260.1) indicates the Tablestore backup.
|
|
762
768
|
:param pulumi.Input[_builtins.str] speed_limit: This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates backup flow control. The format is {start}{end}{bandwidth}. Multiple flow control configurations use partitioning, and no overlap in configuration time is allowed. start: start hour. end: end of hour. bandwidth: limit rate, in KB/s.
|
|
763
769
|
"""
|
|
764
770
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -889,6 +895,7 @@ class PolicyBinding(pulumi.CustomResource):
|
|
|
889
895
|
- `NAS`: indicates an Alibaba Cloud NAS Backup. When you bind a file system to a policy, Cloud Backup automatically creates a mount point for the file system. If you no longer need the mount point, delete it manually.
|
|
890
896
|
- `ECS_FILE`: indicates that the ECS file is backed up.
|
|
891
897
|
- `File`: indicates a local File backup.
|
|
898
|
+
- `OTS`: (Available since v1.260.1) indicates the Tablestore backup.
|
|
892
899
|
"""
|
|
893
900
|
return pulumi.get(self, "source_type")
|
|
894
901
|
|
|
@@ -399,7 +399,7 @@ class Account(pulumi.CustomResource):
|
|
|
399
399
|
|
|
400
400
|
## Import
|
|
401
401
|
|
|
402
|
-
Tair (Redis OSS-Compatible) And Memcache (KVStore)
|
|
402
|
+
Tair (Redis OSS-Compatible) And Memcache (KVStore) Account can be imported using the id, e.g.
|
|
403
403
|
|
|
404
404
|
```sh
|
|
405
405
|
$ pulumi import alicloud:kvstore/account:Account example <instance_id>:<account_name>
|
|
@@ -483,7 +483,7 @@ class Account(pulumi.CustomResource):
|
|
|
483
483
|
|
|
484
484
|
## Import
|
|
485
485
|
|
|
486
|
-
Tair (Redis OSS-Compatible) And Memcache (KVStore)
|
|
486
|
+
Tair (Redis OSS-Compatible) And Memcache (KVStore) Account can be imported using the id, e.g.
|
|
487
487
|
|
|
488
488
|
```sh
|
|
489
489
|
$ pulumi import alicloud:kvstore/account:Account example <instance_id>:<account_name>
|
|
@@ -615,7 +615,7 @@ class Account(pulumi.CustomResource):
|
|
|
615
615
|
|
|
616
616
|
@_builtins.property
|
|
617
617
|
@pulumi.getter(name="accountPrivilege")
|
|
618
|
-
def account_privilege(self) -> pulumi.Output[
|
|
618
|
+
def account_privilege(self) -> pulumi.Output[_builtins.str]:
|
|
619
619
|
"""
|
|
620
620
|
The privilege of account access database. Default value: `RoleReadWrite`
|
|
621
621
|
- `RoleReadOnly`: This value is only for Redis and Memcache
|
|
@@ -625,7 +625,7 @@ class Account(pulumi.CustomResource):
|
|
|
625
625
|
|
|
626
626
|
@_builtins.property
|
|
627
627
|
@pulumi.getter(name="accountType")
|
|
628
|
-
def account_type(self) -> pulumi.Output[
|
|
628
|
+
def account_type(self) -> pulumi.Output[_builtins.str]:
|
|
629
629
|
"""
|
|
630
630
|
Privilege type of account.
|
|
631
631
|
- Normal: Common privilege.
|
|
@@ -75,21 +75,23 @@ def get_service(enable: Optional[_builtins.str] = None,
|
|
|
75
75
|
"""
|
|
76
76
|
Using this data source can open Private Zone service automatically. If the service has been opened, it will return opened.
|
|
77
77
|
|
|
78
|
-
For information about
|
|
78
|
+
For information about Private Zone and how to use it, see [What is Private Zone](https://www.alibabacloud.com/help/en/product/64583.htm).
|
|
79
79
|
|
|
80
|
-
> **NOTE:** Available
|
|
80
|
+
> **NOTE:** Available since v1.114.0.
|
|
81
81
|
|
|
82
82
|
## Example Usage
|
|
83
83
|
|
|
84
|
+
Basic Usage
|
|
85
|
+
|
|
84
86
|
```python
|
|
85
87
|
import pulumi
|
|
86
88
|
import pulumi_alicloud as alicloud
|
|
87
89
|
|
|
88
|
-
|
|
90
|
+
default = alicloud.pvtz.get_service(enable="On")
|
|
89
91
|
```
|
|
90
92
|
|
|
91
93
|
|
|
92
|
-
:param _builtins.str enable: Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values:
|
|
94
|
+
:param _builtins.str enable: Setting the value to `On` to enable the service. If has been enabled, return the result. Default value: `Off`. Valid values: `On` and `Off`.
|
|
93
95
|
|
|
94
96
|
> **NOTE:** Setting `enable = "On"` to open the Private Zone service that means you have read and agreed the [Private Zone Terms of Service](https://help.aliyun.com/document_detail/65657.html). The service can not closed once it is opened.
|
|
95
97
|
"""
|
|
@@ -107,21 +109,23 @@ def get_service_output(enable: Optional[pulumi.Input[Optional[_builtins.str]]] =
|
|
|
107
109
|
"""
|
|
108
110
|
Using this data source can open Private Zone service automatically. If the service has been opened, it will return opened.
|
|
109
111
|
|
|
110
|
-
For information about
|
|
112
|
+
For information about Private Zone and how to use it, see [What is Private Zone](https://www.alibabacloud.com/help/en/product/64583.htm).
|
|
111
113
|
|
|
112
|
-
> **NOTE:** Available
|
|
114
|
+
> **NOTE:** Available since v1.114.0.
|
|
113
115
|
|
|
114
116
|
## Example Usage
|
|
115
117
|
|
|
118
|
+
Basic Usage
|
|
119
|
+
|
|
116
120
|
```python
|
|
117
121
|
import pulumi
|
|
118
122
|
import pulumi_alicloud as alicloud
|
|
119
123
|
|
|
120
|
-
|
|
124
|
+
default = alicloud.pvtz.get_service(enable="On")
|
|
121
125
|
```
|
|
122
126
|
|
|
123
127
|
|
|
124
|
-
:param _builtins.str enable: Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values:
|
|
128
|
+
:param _builtins.str enable: Setting the value to `On` to enable the service. If has been enabled, return the result. Default value: `Off`. Valid values: `On` and `Off`.
|
|
125
129
|
|
|
126
130
|
> **NOTE:** Setting `enable = "On"` to open the Private Zone service that means you have read and agreed the [Private Zone Terms of Service](https://help.aliyun.com/document_detail/65657.html). The service can not closed once it is opened.
|
|
127
131
|
"""
|
|
@@ -22,25 +22,39 @@ class ControlPolicyArgs:
|
|
|
22
22
|
control_policy_name: pulumi.Input[_builtins.str],
|
|
23
23
|
effect_scope: pulumi.Input[_builtins.str],
|
|
24
24
|
policy_document: pulumi.Input[_builtins.str],
|
|
25
|
-
description: Optional[pulumi.Input[_builtins.str]] = None
|
|
25
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None):
|
|
26
27
|
"""
|
|
27
28
|
The set of arguments for constructing a ControlPolicy resource.
|
|
28
|
-
:param pulumi.Input[_builtins.str] control_policy_name: The name of control policy.
|
|
29
|
-
|
|
30
|
-
:param pulumi.Input[_builtins.str]
|
|
31
|
-
|
|
29
|
+
:param pulumi.Input[_builtins.str] control_policy_name: The new name of the access control policy.
|
|
30
|
+
The name must be 1 to 128 characters in length. The name can contain letters, digits, and hyphens (-) and must start with a letter.
|
|
31
|
+
:param pulumi.Input[_builtins.str] effect_scope: The effective scope of the access control policy. Valid values:
|
|
32
|
+
|
|
33
|
+
- All: The access control policy is in effect for Alibaba Cloud accounts, RAM users, and RAM roles.
|
|
34
|
+
- RAM: The access control policy is in effect only for RAM users and RAM roles.
|
|
35
|
+
:param pulumi.Input[_builtins.str] policy_document: The new document of the access control policy.
|
|
36
|
+
The document can be a maximum of 4,096 characters in length.
|
|
37
|
+
For more information about the languages of access control policies, see [Languages of access control policies](https://www.alibabacloud.com/help/en/doc-detail/179096.html).
|
|
38
|
+
For more information about the examples of access control policies, see [Examples of custom access control policies](https://www.alibabacloud.com/help/en/doc-detail/181474.html).
|
|
39
|
+
:param pulumi.Input[_builtins.str] description: The new description of the access control policy.
|
|
40
|
+
The description must be 1 to 1,024 characters in length. The description can contain letters, digits, underscores (\\_), and hyphens (-) and must start with a letter.
|
|
41
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: The tags.
|
|
42
|
+
You can specify a maximum of 20 tags.
|
|
32
43
|
"""
|
|
33
44
|
pulumi.set(__self__, "control_policy_name", control_policy_name)
|
|
34
45
|
pulumi.set(__self__, "effect_scope", effect_scope)
|
|
35
46
|
pulumi.set(__self__, "policy_document", policy_document)
|
|
36
47
|
if description is not None:
|
|
37
48
|
pulumi.set(__self__, "description", description)
|
|
49
|
+
if tags is not None:
|
|
50
|
+
pulumi.set(__self__, "tags", tags)
|
|
38
51
|
|
|
39
52
|
@_builtins.property
|
|
40
53
|
@pulumi.getter(name="controlPolicyName")
|
|
41
54
|
def control_policy_name(self) -> pulumi.Input[_builtins.str]:
|
|
42
55
|
"""
|
|
43
|
-
The name of control policy.
|
|
56
|
+
The new name of the access control policy.
|
|
57
|
+
The name must be 1 to 128 characters in length. The name can contain letters, digits, and hyphens (-) and must start with a letter.
|
|
44
58
|
"""
|
|
45
59
|
return pulumi.get(self, "control_policy_name")
|
|
46
60
|
|
|
@@ -52,7 +66,10 @@ class ControlPolicyArgs:
|
|
|
52
66
|
@pulumi.getter(name="effectScope")
|
|
53
67
|
def effect_scope(self) -> pulumi.Input[_builtins.str]:
|
|
54
68
|
"""
|
|
55
|
-
The
|
|
69
|
+
The effective scope of the access control policy. Valid values:
|
|
70
|
+
|
|
71
|
+
- All: The access control policy is in effect for Alibaba Cloud accounts, RAM users, and RAM roles.
|
|
72
|
+
- RAM: The access control policy is in effect only for RAM users and RAM roles.
|
|
56
73
|
"""
|
|
57
74
|
return pulumi.get(self, "effect_scope")
|
|
58
75
|
|
|
@@ -64,7 +81,10 @@ class ControlPolicyArgs:
|
|
|
64
81
|
@pulumi.getter(name="policyDocument")
|
|
65
82
|
def policy_document(self) -> pulumi.Input[_builtins.str]:
|
|
66
83
|
"""
|
|
67
|
-
The
|
|
84
|
+
The new document of the access control policy.
|
|
85
|
+
The document can be a maximum of 4,096 characters in length.
|
|
86
|
+
For more information about the languages of access control policies, see [Languages of access control policies](https://www.alibabacloud.com/help/en/doc-detail/179096.html).
|
|
87
|
+
For more information about the examples of access control policies, see [Examples of custom access control policies](https://www.alibabacloud.com/help/en/doc-detail/181474.html).
|
|
68
88
|
"""
|
|
69
89
|
return pulumi.get(self, "policy_document")
|
|
70
90
|
|
|
@@ -76,7 +96,8 @@ class ControlPolicyArgs:
|
|
|
76
96
|
@pulumi.getter
|
|
77
97
|
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
78
98
|
"""
|
|
79
|
-
The description of control policy.
|
|
99
|
+
The new description of the access control policy.
|
|
100
|
+
The description must be 1 to 1,024 characters in length. The description can contain letters, digits, underscores (\\_), and hyphens (-) and must start with a letter.
|
|
80
101
|
"""
|
|
81
102
|
return pulumi.get(self, "description")
|
|
82
103
|
|
|
@@ -84,35 +105,66 @@ class ControlPolicyArgs:
|
|
|
84
105
|
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
85
106
|
pulumi.set(self, "description", value)
|
|
86
107
|
|
|
108
|
+
@_builtins.property
|
|
109
|
+
@pulumi.getter
|
|
110
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
111
|
+
"""
|
|
112
|
+
The tags.
|
|
113
|
+
You can specify a maximum of 20 tags.
|
|
114
|
+
"""
|
|
115
|
+
return pulumi.get(self, "tags")
|
|
116
|
+
|
|
117
|
+
@tags.setter
|
|
118
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
119
|
+
pulumi.set(self, "tags", value)
|
|
120
|
+
|
|
87
121
|
|
|
88
122
|
@pulumi.input_type
|
|
89
123
|
class _ControlPolicyState:
|
|
90
124
|
def __init__(__self__, *,
|
|
91
125
|
control_policy_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
126
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
92
127
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
93
128
|
effect_scope: Optional[pulumi.Input[_builtins.str]] = None,
|
|
94
|
-
policy_document: Optional[pulumi.Input[_builtins.str]] = None
|
|
129
|
+
policy_document: Optional[pulumi.Input[_builtins.str]] = None,
|
|
130
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None):
|
|
95
131
|
"""
|
|
96
132
|
Input properties used for looking up and filtering ControlPolicy resources.
|
|
97
|
-
:param pulumi.Input[_builtins.str] control_policy_name: The name of control policy.
|
|
98
|
-
|
|
99
|
-
:param pulumi.Input[_builtins.str]
|
|
100
|
-
:param pulumi.Input[_builtins.str]
|
|
133
|
+
:param pulumi.Input[_builtins.str] control_policy_name: The new name of the access control policy.
|
|
134
|
+
The name must be 1 to 128 characters in length. The name can contain letters, digits, and hyphens (-) and must start with a letter.
|
|
135
|
+
:param pulumi.Input[_builtins.str] create_time: The time when the access control policy was created.
|
|
136
|
+
:param pulumi.Input[_builtins.str] description: The new description of the access control policy.
|
|
137
|
+
The description must be 1 to 1,024 characters in length. The description can contain letters, digits, underscores (\\_), and hyphens (-) and must start with a letter.
|
|
138
|
+
:param pulumi.Input[_builtins.str] effect_scope: The effective scope of the access control policy. Valid values:
|
|
139
|
+
|
|
140
|
+
- All: The access control policy is in effect for Alibaba Cloud accounts, RAM users, and RAM roles.
|
|
141
|
+
- RAM: The access control policy is in effect only for RAM users and RAM roles.
|
|
142
|
+
:param pulumi.Input[_builtins.str] policy_document: The new document of the access control policy.
|
|
143
|
+
The document can be a maximum of 4,096 characters in length.
|
|
144
|
+
For more information about the languages of access control policies, see [Languages of access control policies](https://www.alibabacloud.com/help/en/doc-detail/179096.html).
|
|
145
|
+
For more information about the examples of access control policies, see [Examples of custom access control policies](https://www.alibabacloud.com/help/en/doc-detail/181474.html).
|
|
146
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: The tags.
|
|
147
|
+
You can specify a maximum of 20 tags.
|
|
101
148
|
"""
|
|
102
149
|
if control_policy_name is not None:
|
|
103
150
|
pulumi.set(__self__, "control_policy_name", control_policy_name)
|
|
151
|
+
if create_time is not None:
|
|
152
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
104
153
|
if description is not None:
|
|
105
154
|
pulumi.set(__self__, "description", description)
|
|
106
155
|
if effect_scope is not None:
|
|
107
156
|
pulumi.set(__self__, "effect_scope", effect_scope)
|
|
108
157
|
if policy_document is not None:
|
|
109
158
|
pulumi.set(__self__, "policy_document", policy_document)
|
|
159
|
+
if tags is not None:
|
|
160
|
+
pulumi.set(__self__, "tags", tags)
|
|
110
161
|
|
|
111
162
|
@_builtins.property
|
|
112
163
|
@pulumi.getter(name="controlPolicyName")
|
|
113
164
|
def control_policy_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
114
165
|
"""
|
|
115
|
-
The name of control policy.
|
|
166
|
+
The new name of the access control policy.
|
|
167
|
+
The name must be 1 to 128 characters in length. The name can contain letters, digits, and hyphens (-) and must start with a letter.
|
|
116
168
|
"""
|
|
117
169
|
return pulumi.get(self, "control_policy_name")
|
|
118
170
|
|
|
@@ -120,11 +172,24 @@ class _ControlPolicyState:
|
|
|
120
172
|
def control_policy_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
121
173
|
pulumi.set(self, "control_policy_name", value)
|
|
122
174
|
|
|
175
|
+
@_builtins.property
|
|
176
|
+
@pulumi.getter(name="createTime")
|
|
177
|
+
def create_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
178
|
+
"""
|
|
179
|
+
The time when the access control policy was created.
|
|
180
|
+
"""
|
|
181
|
+
return pulumi.get(self, "create_time")
|
|
182
|
+
|
|
183
|
+
@create_time.setter
|
|
184
|
+
def create_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
185
|
+
pulumi.set(self, "create_time", value)
|
|
186
|
+
|
|
123
187
|
@_builtins.property
|
|
124
188
|
@pulumi.getter
|
|
125
189
|
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
126
190
|
"""
|
|
127
|
-
The description of control policy.
|
|
191
|
+
The new description of the access control policy.
|
|
192
|
+
The description must be 1 to 1,024 characters in length. The description can contain letters, digits, underscores (\\_), and hyphens (-) and must start with a letter.
|
|
128
193
|
"""
|
|
129
194
|
return pulumi.get(self, "description")
|
|
130
195
|
|
|
@@ -136,7 +201,10 @@ class _ControlPolicyState:
|
|
|
136
201
|
@pulumi.getter(name="effectScope")
|
|
137
202
|
def effect_scope(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
138
203
|
"""
|
|
139
|
-
The
|
|
204
|
+
The effective scope of the access control policy. Valid values:
|
|
205
|
+
|
|
206
|
+
- All: The access control policy is in effect for Alibaba Cloud accounts, RAM users, and RAM roles.
|
|
207
|
+
- RAM: The access control policy is in effect only for RAM users and RAM roles.
|
|
140
208
|
"""
|
|
141
209
|
return pulumi.get(self, "effect_scope")
|
|
142
210
|
|
|
@@ -148,7 +216,10 @@ class _ControlPolicyState:
|
|
|
148
216
|
@pulumi.getter(name="policyDocument")
|
|
149
217
|
def policy_document(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
150
218
|
"""
|
|
151
|
-
The
|
|
219
|
+
The new document of the access control policy.
|
|
220
|
+
The document can be a maximum of 4,096 characters in length.
|
|
221
|
+
For more information about the languages of access control policies, see [Languages of access control policies](https://www.alibabacloud.com/help/en/doc-detail/179096.html).
|
|
222
|
+
For more information about the examples of access control policies, see [Examples of custom access control policies](https://www.alibabacloud.com/help/en/doc-detail/181474.html).
|
|
152
223
|
"""
|
|
153
224
|
return pulumi.get(self, "policy_document")
|
|
154
225
|
|
|
@@ -156,6 +227,19 @@ class _ControlPolicyState:
|
|
|
156
227
|
def policy_document(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
157
228
|
pulumi.set(self, "policy_document", value)
|
|
158
229
|
|
|
230
|
+
@_builtins.property
|
|
231
|
+
@pulumi.getter
|
|
232
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
233
|
+
"""
|
|
234
|
+
The tags.
|
|
235
|
+
You can specify a maximum of 20 tags.
|
|
236
|
+
"""
|
|
237
|
+
return pulumi.get(self, "tags")
|
|
238
|
+
|
|
239
|
+
@tags.setter
|
|
240
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
241
|
+
pulumi.set(self, "tags", value)
|
|
242
|
+
|
|
159
243
|
|
|
160
244
|
@pulumi.type_token("alicloud:resourcemanager/controlPolicy:ControlPolicy")
|
|
161
245
|
class ControlPolicy(pulumi.CustomResource):
|
|
@@ -167,6 +251,7 @@ class ControlPolicy(pulumi.CustomResource):
|
|
|
167
251
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
168
252
|
effect_scope: Optional[pulumi.Input[_builtins.str]] = None,
|
|
169
253
|
policy_document: Optional[pulumi.Input[_builtins.str]] = None,
|
|
254
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
170
255
|
__props__=None):
|
|
171
256
|
"""
|
|
172
257
|
Provides a Resource Manager Control Policy resource.
|
|
@@ -219,10 +304,20 @@ class ControlPolicy(pulumi.CustomResource):
|
|
|
219
304
|
|
|
220
305
|
:param str resource_name: The name of the resource.
|
|
221
306
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
222
|
-
:param pulumi.Input[_builtins.str] control_policy_name: The name of control policy.
|
|
223
|
-
|
|
224
|
-
:param pulumi.Input[_builtins.str]
|
|
225
|
-
|
|
307
|
+
:param pulumi.Input[_builtins.str] control_policy_name: The new name of the access control policy.
|
|
308
|
+
The name must be 1 to 128 characters in length. The name can contain letters, digits, and hyphens (-) and must start with a letter.
|
|
309
|
+
:param pulumi.Input[_builtins.str] description: The new description of the access control policy.
|
|
310
|
+
The description must be 1 to 1,024 characters in length. The description can contain letters, digits, underscores (\\_), and hyphens (-) and must start with a letter.
|
|
311
|
+
:param pulumi.Input[_builtins.str] effect_scope: The effective scope of the access control policy. Valid values:
|
|
312
|
+
|
|
313
|
+
- All: The access control policy is in effect for Alibaba Cloud accounts, RAM users, and RAM roles.
|
|
314
|
+
- RAM: The access control policy is in effect only for RAM users and RAM roles.
|
|
315
|
+
:param pulumi.Input[_builtins.str] policy_document: The new document of the access control policy.
|
|
316
|
+
The document can be a maximum of 4,096 characters in length.
|
|
317
|
+
For more information about the languages of access control policies, see [Languages of access control policies](https://www.alibabacloud.com/help/en/doc-detail/179096.html).
|
|
318
|
+
For more information about the examples of access control policies, see [Examples of custom access control policies](https://www.alibabacloud.com/help/en/doc-detail/181474.html).
|
|
319
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: The tags.
|
|
320
|
+
You can specify a maximum of 20 tags.
|
|
226
321
|
"""
|
|
227
322
|
...
|
|
228
323
|
@overload
|
|
@@ -298,6 +393,7 @@ class ControlPolicy(pulumi.CustomResource):
|
|
|
298
393
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
299
394
|
effect_scope: Optional[pulumi.Input[_builtins.str]] = None,
|
|
300
395
|
policy_document: Optional[pulumi.Input[_builtins.str]] = None,
|
|
396
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
301
397
|
__props__=None):
|
|
302
398
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
303
399
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -317,6 +413,8 @@ class ControlPolicy(pulumi.CustomResource):
|
|
|
317
413
|
if policy_document is None and not opts.urn:
|
|
318
414
|
raise TypeError("Missing required property 'policy_document'")
|
|
319
415
|
__props__.__dict__["policy_document"] = policy_document
|
|
416
|
+
__props__.__dict__["tags"] = tags
|
|
417
|
+
__props__.__dict__["create_time"] = None
|
|
320
418
|
super(ControlPolicy, __self__).__init__(
|
|
321
419
|
'alicloud:resourcemanager/controlPolicy:ControlPolicy',
|
|
322
420
|
resource_name,
|
|
@@ -328,9 +426,11 @@ class ControlPolicy(pulumi.CustomResource):
|
|
|
328
426
|
id: pulumi.Input[str],
|
|
329
427
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
330
428
|
control_policy_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
429
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
331
430
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
332
431
|
effect_scope: Optional[pulumi.Input[_builtins.str]] = None,
|
|
333
|
-
policy_document: Optional[pulumi.Input[_builtins.str]] = None
|
|
432
|
+
policy_document: Optional[pulumi.Input[_builtins.str]] = None,
|
|
433
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None) -> 'ControlPolicy':
|
|
334
434
|
"""
|
|
335
435
|
Get an existing ControlPolicy resource's state with the given name, id, and optional extra
|
|
336
436
|
properties used to qualify the lookup.
|
|
@@ -338,34 +438,57 @@ class ControlPolicy(pulumi.CustomResource):
|
|
|
338
438
|
:param str resource_name: The unique name of the resulting resource.
|
|
339
439
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
340
440
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
341
|
-
:param pulumi.Input[_builtins.str] control_policy_name: The name of control policy.
|
|
342
|
-
|
|
343
|
-
:param pulumi.Input[_builtins.str]
|
|
344
|
-
:param pulumi.Input[_builtins.str]
|
|
441
|
+
:param pulumi.Input[_builtins.str] control_policy_name: The new name of the access control policy.
|
|
442
|
+
The name must be 1 to 128 characters in length. The name can contain letters, digits, and hyphens (-) and must start with a letter.
|
|
443
|
+
:param pulumi.Input[_builtins.str] create_time: The time when the access control policy was created.
|
|
444
|
+
:param pulumi.Input[_builtins.str] description: The new description of the access control policy.
|
|
445
|
+
The description must be 1 to 1,024 characters in length. The description can contain letters, digits, underscores (\\_), and hyphens (-) and must start with a letter.
|
|
446
|
+
:param pulumi.Input[_builtins.str] effect_scope: The effective scope of the access control policy. Valid values:
|
|
447
|
+
|
|
448
|
+
- All: The access control policy is in effect for Alibaba Cloud accounts, RAM users, and RAM roles.
|
|
449
|
+
- RAM: The access control policy is in effect only for RAM users and RAM roles.
|
|
450
|
+
:param pulumi.Input[_builtins.str] policy_document: The new document of the access control policy.
|
|
451
|
+
The document can be a maximum of 4,096 characters in length.
|
|
452
|
+
For more information about the languages of access control policies, see [Languages of access control policies](https://www.alibabacloud.com/help/en/doc-detail/179096.html).
|
|
453
|
+
For more information about the examples of access control policies, see [Examples of custom access control policies](https://www.alibabacloud.com/help/en/doc-detail/181474.html).
|
|
454
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: The tags.
|
|
455
|
+
You can specify a maximum of 20 tags.
|
|
345
456
|
"""
|
|
346
457
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
347
458
|
|
|
348
459
|
__props__ = _ControlPolicyState.__new__(_ControlPolicyState)
|
|
349
460
|
|
|
350
461
|
__props__.__dict__["control_policy_name"] = control_policy_name
|
|
462
|
+
__props__.__dict__["create_time"] = create_time
|
|
351
463
|
__props__.__dict__["description"] = description
|
|
352
464
|
__props__.__dict__["effect_scope"] = effect_scope
|
|
353
465
|
__props__.__dict__["policy_document"] = policy_document
|
|
466
|
+
__props__.__dict__["tags"] = tags
|
|
354
467
|
return ControlPolicy(resource_name, opts=opts, __props__=__props__)
|
|
355
468
|
|
|
356
469
|
@_builtins.property
|
|
357
470
|
@pulumi.getter(name="controlPolicyName")
|
|
358
471
|
def control_policy_name(self) -> pulumi.Output[_builtins.str]:
|
|
359
472
|
"""
|
|
360
|
-
The name of control policy.
|
|
473
|
+
The new name of the access control policy.
|
|
474
|
+
The name must be 1 to 128 characters in length. The name can contain letters, digits, and hyphens (-) and must start with a letter.
|
|
361
475
|
"""
|
|
362
476
|
return pulumi.get(self, "control_policy_name")
|
|
363
477
|
|
|
478
|
+
@_builtins.property
|
|
479
|
+
@pulumi.getter(name="createTime")
|
|
480
|
+
def create_time(self) -> pulumi.Output[_builtins.str]:
|
|
481
|
+
"""
|
|
482
|
+
The time when the access control policy was created.
|
|
483
|
+
"""
|
|
484
|
+
return pulumi.get(self, "create_time")
|
|
485
|
+
|
|
364
486
|
@_builtins.property
|
|
365
487
|
@pulumi.getter
|
|
366
488
|
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
367
489
|
"""
|
|
368
|
-
The description of control policy.
|
|
490
|
+
The new description of the access control policy.
|
|
491
|
+
The description must be 1 to 1,024 characters in length. The description can contain letters, digits, underscores (\\_), and hyphens (-) and must start with a letter.
|
|
369
492
|
"""
|
|
370
493
|
return pulumi.get(self, "description")
|
|
371
494
|
|
|
@@ -373,7 +496,10 @@ class ControlPolicy(pulumi.CustomResource):
|
|
|
373
496
|
@pulumi.getter(name="effectScope")
|
|
374
497
|
def effect_scope(self) -> pulumi.Output[_builtins.str]:
|
|
375
498
|
"""
|
|
376
|
-
The
|
|
499
|
+
The effective scope of the access control policy. Valid values:
|
|
500
|
+
|
|
501
|
+
- All: The access control policy is in effect for Alibaba Cloud accounts, RAM users, and RAM roles.
|
|
502
|
+
- RAM: The access control policy is in effect only for RAM users and RAM roles.
|
|
377
503
|
"""
|
|
378
504
|
return pulumi.get(self, "effect_scope")
|
|
379
505
|
|
|
@@ -381,7 +507,19 @@ class ControlPolicy(pulumi.CustomResource):
|
|
|
381
507
|
@pulumi.getter(name="policyDocument")
|
|
382
508
|
def policy_document(self) -> pulumi.Output[_builtins.str]:
|
|
383
509
|
"""
|
|
384
|
-
The
|
|
510
|
+
The new document of the access control policy.
|
|
511
|
+
The document can be a maximum of 4,096 characters in length.
|
|
512
|
+
For more information about the languages of access control policies, see [Languages of access control policies](https://www.alibabacloud.com/help/en/doc-detail/179096.html).
|
|
513
|
+
For more information about the examples of access control policies, see [Examples of custom access control policies](https://www.alibabacloud.com/help/en/doc-detail/181474.html).
|
|
385
514
|
"""
|
|
386
515
|
return pulumi.get(self, "policy_document")
|
|
387
516
|
|
|
517
|
+
@_builtins.property
|
|
518
|
+
@pulumi.getter
|
|
519
|
+
def tags(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
|
520
|
+
"""
|
|
521
|
+
The tags.
|
|
522
|
+
You can specify a maximum of 20 tags.
|
|
523
|
+
"""
|
|
524
|
+
return pulumi.get(self, "tags")
|
|
525
|
+
|