pulumi-alicloud 3.56.0a1717132537__py3-none-any.whl → 3.56.0a1717175543__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 +96 -0
- pulumi_alicloud/alikafka/instance.py +47 -0
- pulumi_alicloud/apigateway/__init__.py +1 -0
- pulumi_alicloud/apigateway/_inputs.py +40 -0
- pulumi_alicloud/apigateway/access_control_list.py +322 -0
- pulumi_alicloud/apigateway/get_apis.py +96 -23
- pulumi_alicloud/apigateway/outputs.py +72 -14
- pulumi_alicloud/apigateway/plugin.py +225 -73
- pulumi_alicloud/cen/get_transit_router_vpc_attachments.py +171 -18
- pulumi_alicloud/cen/outputs.py +51 -22
- pulumi_alicloud/cloudfirewall/__init__.py +2 -0
- pulumi_alicloud/cloudfirewall/_inputs.py +68 -0
- pulumi_alicloud/cloudfirewall/nat_firewall.py +811 -0
- pulumi_alicloud/cloudfirewall/nat_firewall_control_policy.py +1589 -0
- pulumi_alicloud/cloudfirewall/outputs.py +75 -0
- pulumi_alicloud/ecs/security_group_rule.py +75 -53
- pulumi_alicloud/ess/_inputs.py +56 -0
- pulumi_alicloud/ess/outputs.py +61 -0
- pulumi_alicloud/ess/scaling_group.py +101 -7
- pulumi_alicloud/kms/key.py +251 -333
- pulumi_alicloud/kms/secret.py +210 -125
- pulumi_alicloud/nas/__init__.py +2 -0
- pulumi_alicloud/nas/_inputs.py +126 -0
- pulumi_alicloud/nas/access_point.py +743 -0
- pulumi_alicloud/nas/outputs.py +128 -0
- pulumi_alicloud/oss/__init__.py +7 -0
- pulumi_alicloud/oss/account_public_access_block.py +200 -0
- pulumi_alicloud/oss/bucket_access_monitor.py +206 -0
- pulumi_alicloud/oss/bucket_data_redundancy_transition.py +290 -0
- pulumi_alicloud/oss/bucket_meta_query.py +270 -0
- pulumi_alicloud/oss/bucket_public_access_block.py +258 -0
- pulumi_alicloud/oss/bucket_transfer_acceleration.py +205 -0
- pulumi_alicloud/oss/bucket_user_defined_log_fields.py +328 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/redis/tair_instance.py +188 -0
- pulumi_alicloud/sls/__init__.py +1 -0
- pulumi_alicloud/sls/_inputs.py +384 -0
- pulumi_alicloud/sls/outputs.py +358 -0
- pulumi_alicloud/sls/scheduled_sql.py +523 -0
- {pulumi_alicloud-3.56.0a1717132537.dist-info → pulumi_alicloud-3.56.0a1717175543.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.56.0a1717132537.dist-info → pulumi_alicloud-3.56.0a1717175543.dist-info}/RECORD +43 -30
- {pulumi_alicloud-3.56.0a1717132537.dist-info → pulumi_alicloud-3.56.0a1717175543.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.56.0a1717132537.dist-info → pulumi_alicloud-3.56.0a1717175543.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from .. import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
from ._inputs import *
|
|
13
|
+
|
|
14
|
+
__all__ = ['AccessControlListArgs', 'AccessControlList']
|
|
15
|
+
|
|
16
|
+
@pulumi.input_type
|
|
17
|
+
class AccessControlListArgs:
|
|
18
|
+
def __init__(__self__, *,
|
|
19
|
+
access_control_list_name: pulumi.Input[str],
|
|
20
|
+
acl_entrys: Optional[pulumi.Input[Sequence[pulumi.Input['AccessControlListAclEntryArgs']]]] = None,
|
|
21
|
+
address_ip_version: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
"""
|
|
23
|
+
The set of arguments for constructing a AccessControlList resource.
|
|
24
|
+
:param pulumi.Input[str] access_control_list_name: Access control list name.
|
|
25
|
+
:param pulumi.Input[Sequence[pulumi.Input['AccessControlListAclEntryArgs']]] acl_entrys: Information list of access control policies. You can add at most 50 IP addresses or CIDR blocks to an ACL in each call. If the IP address or CIDR block that you want to add to an ACL already exists, the IP address or CIDR block is not added. The entries that you add must be CIDR blocks. See `acl_entrys` below.
|
|
26
|
+
:param pulumi.Input[str] address_ip_version: The IP version. Valid values: ipv4 and ipv6.
|
|
27
|
+
"""
|
|
28
|
+
pulumi.set(__self__, "access_control_list_name", access_control_list_name)
|
|
29
|
+
if acl_entrys is not None:
|
|
30
|
+
pulumi.set(__self__, "acl_entrys", acl_entrys)
|
|
31
|
+
if address_ip_version is not None:
|
|
32
|
+
pulumi.set(__self__, "address_ip_version", address_ip_version)
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
@pulumi.getter(name="accessControlListName")
|
|
36
|
+
def access_control_list_name(self) -> pulumi.Input[str]:
|
|
37
|
+
"""
|
|
38
|
+
Access control list name.
|
|
39
|
+
"""
|
|
40
|
+
return pulumi.get(self, "access_control_list_name")
|
|
41
|
+
|
|
42
|
+
@access_control_list_name.setter
|
|
43
|
+
def access_control_list_name(self, value: pulumi.Input[str]):
|
|
44
|
+
pulumi.set(self, "access_control_list_name", value)
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
@pulumi.getter(name="aclEntrys")
|
|
48
|
+
def acl_entrys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AccessControlListAclEntryArgs']]]]:
|
|
49
|
+
"""
|
|
50
|
+
Information list of access control policies. You can add at most 50 IP addresses or CIDR blocks to an ACL in each call. If the IP address or CIDR block that you want to add to an ACL already exists, the IP address or CIDR block is not added. The entries that you add must be CIDR blocks. See `acl_entrys` below.
|
|
51
|
+
"""
|
|
52
|
+
return pulumi.get(self, "acl_entrys")
|
|
53
|
+
|
|
54
|
+
@acl_entrys.setter
|
|
55
|
+
def acl_entrys(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AccessControlListAclEntryArgs']]]]):
|
|
56
|
+
pulumi.set(self, "acl_entrys", value)
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
@pulumi.getter(name="addressIpVersion")
|
|
60
|
+
def address_ip_version(self) -> Optional[pulumi.Input[str]]:
|
|
61
|
+
"""
|
|
62
|
+
The IP version. Valid values: ipv4 and ipv6.
|
|
63
|
+
"""
|
|
64
|
+
return pulumi.get(self, "address_ip_version")
|
|
65
|
+
|
|
66
|
+
@address_ip_version.setter
|
|
67
|
+
def address_ip_version(self, value: Optional[pulumi.Input[str]]):
|
|
68
|
+
pulumi.set(self, "address_ip_version", value)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
@pulumi.input_type
|
|
72
|
+
class _AccessControlListState:
|
|
73
|
+
def __init__(__self__, *,
|
|
74
|
+
access_control_list_name: Optional[pulumi.Input[str]] = None,
|
|
75
|
+
acl_entrys: Optional[pulumi.Input[Sequence[pulumi.Input['AccessControlListAclEntryArgs']]]] = None,
|
|
76
|
+
address_ip_version: Optional[pulumi.Input[str]] = None):
|
|
77
|
+
"""
|
|
78
|
+
Input properties used for looking up and filtering AccessControlList resources.
|
|
79
|
+
:param pulumi.Input[str] access_control_list_name: Access control list name.
|
|
80
|
+
:param pulumi.Input[Sequence[pulumi.Input['AccessControlListAclEntryArgs']]] acl_entrys: Information list of access control policies. You can add at most 50 IP addresses or CIDR blocks to an ACL in each call. If the IP address or CIDR block that you want to add to an ACL already exists, the IP address or CIDR block is not added. The entries that you add must be CIDR blocks. See `acl_entrys` below.
|
|
81
|
+
:param pulumi.Input[str] address_ip_version: The IP version. Valid values: ipv4 and ipv6.
|
|
82
|
+
"""
|
|
83
|
+
if access_control_list_name is not None:
|
|
84
|
+
pulumi.set(__self__, "access_control_list_name", access_control_list_name)
|
|
85
|
+
if acl_entrys is not None:
|
|
86
|
+
pulumi.set(__self__, "acl_entrys", acl_entrys)
|
|
87
|
+
if address_ip_version is not None:
|
|
88
|
+
pulumi.set(__self__, "address_ip_version", address_ip_version)
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
@pulumi.getter(name="accessControlListName")
|
|
92
|
+
def access_control_list_name(self) -> Optional[pulumi.Input[str]]:
|
|
93
|
+
"""
|
|
94
|
+
Access control list name.
|
|
95
|
+
"""
|
|
96
|
+
return pulumi.get(self, "access_control_list_name")
|
|
97
|
+
|
|
98
|
+
@access_control_list_name.setter
|
|
99
|
+
def access_control_list_name(self, value: Optional[pulumi.Input[str]]):
|
|
100
|
+
pulumi.set(self, "access_control_list_name", value)
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
@pulumi.getter(name="aclEntrys")
|
|
104
|
+
def acl_entrys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AccessControlListAclEntryArgs']]]]:
|
|
105
|
+
"""
|
|
106
|
+
Information list of access control policies. You can add at most 50 IP addresses or CIDR blocks to an ACL in each call. If the IP address or CIDR block that you want to add to an ACL already exists, the IP address or CIDR block is not added. The entries that you add must be CIDR blocks. See `acl_entrys` below.
|
|
107
|
+
"""
|
|
108
|
+
return pulumi.get(self, "acl_entrys")
|
|
109
|
+
|
|
110
|
+
@acl_entrys.setter
|
|
111
|
+
def acl_entrys(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AccessControlListAclEntryArgs']]]]):
|
|
112
|
+
pulumi.set(self, "acl_entrys", value)
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
@pulumi.getter(name="addressIpVersion")
|
|
116
|
+
def address_ip_version(self) -> Optional[pulumi.Input[str]]:
|
|
117
|
+
"""
|
|
118
|
+
The IP version. Valid values: ipv4 and ipv6.
|
|
119
|
+
"""
|
|
120
|
+
return pulumi.get(self, "address_ip_version")
|
|
121
|
+
|
|
122
|
+
@address_ip_version.setter
|
|
123
|
+
def address_ip_version(self, value: Optional[pulumi.Input[str]]):
|
|
124
|
+
pulumi.set(self, "address_ip_version", value)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
class AccessControlList(pulumi.CustomResource):
|
|
128
|
+
@overload
|
|
129
|
+
def __init__(__self__,
|
|
130
|
+
resource_name: str,
|
|
131
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
132
|
+
access_control_list_name: Optional[pulumi.Input[str]] = None,
|
|
133
|
+
acl_entrys: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AccessControlListAclEntryArgs']]]]] = None,
|
|
134
|
+
address_ip_version: Optional[pulumi.Input[str]] = None,
|
|
135
|
+
__props__=None):
|
|
136
|
+
"""
|
|
137
|
+
Provides a Api Gateway Access Control List resource. Access control list.
|
|
138
|
+
|
|
139
|
+
For information about Api Gateway Access Control List and how to use it, see [What is Access Control List](https://www.alibabacloud.com/help/en/api-gateway/developer-reference/api-cloudapi-2016-07-14-createaccesscontrollist).
|
|
140
|
+
|
|
141
|
+
> **NOTE:** Available since v1.224.0.
|
|
142
|
+
|
|
143
|
+
## Example Usage
|
|
144
|
+
|
|
145
|
+
Basic Usage
|
|
146
|
+
|
|
147
|
+
```python
|
|
148
|
+
import pulumi
|
|
149
|
+
import pulumi_alicloud as alicloud
|
|
150
|
+
|
|
151
|
+
config = pulumi.Config()
|
|
152
|
+
name = config.get("name")
|
|
153
|
+
if name is None:
|
|
154
|
+
name = "terraform_example"
|
|
155
|
+
defaultxyw_s8c = alicloud.apigateway.Instance("defaultxywS8c",
|
|
156
|
+
instance_name=name,
|
|
157
|
+
instance_spec="api.s1.small",
|
|
158
|
+
https_policy="HTTPS2_TLS1_0",
|
|
159
|
+
zone_id="cn-hangzhou-MAZ6",
|
|
160
|
+
payment_type="PayAsYouGo")
|
|
161
|
+
default = alicloud.apigateway.AccessControlList("default",
|
|
162
|
+
access_control_list_name=name,
|
|
163
|
+
acl_entrys=[alicloud.apigateway.AccessControlListAclEntryArgs(
|
|
164
|
+
acl_entry_ip="128.0.0.1/32",
|
|
165
|
+
acl_entry_comment="example comment",
|
|
166
|
+
)],
|
|
167
|
+
address_ip_version="ipv4")
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Import
|
|
171
|
+
|
|
172
|
+
Api Gateway Access Control List can be imported using the id, e.g.
|
|
173
|
+
|
|
174
|
+
```sh
|
|
175
|
+
$ pulumi import alicloud:apigateway/accessControlList:AccessControlList example <id>
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
:param str resource_name: The name of the resource.
|
|
179
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
180
|
+
:param pulumi.Input[str] access_control_list_name: Access control list name.
|
|
181
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AccessControlListAclEntryArgs']]]] acl_entrys: Information list of access control policies. You can add at most 50 IP addresses or CIDR blocks to an ACL in each call. If the IP address or CIDR block that you want to add to an ACL already exists, the IP address or CIDR block is not added. The entries that you add must be CIDR blocks. See `acl_entrys` below.
|
|
182
|
+
:param pulumi.Input[str] address_ip_version: The IP version. Valid values: ipv4 and ipv6.
|
|
183
|
+
"""
|
|
184
|
+
...
|
|
185
|
+
@overload
|
|
186
|
+
def __init__(__self__,
|
|
187
|
+
resource_name: str,
|
|
188
|
+
args: AccessControlListArgs,
|
|
189
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
190
|
+
"""
|
|
191
|
+
Provides a Api Gateway Access Control List resource. Access control list.
|
|
192
|
+
|
|
193
|
+
For information about Api Gateway Access Control List and how to use it, see [What is Access Control List](https://www.alibabacloud.com/help/en/api-gateway/developer-reference/api-cloudapi-2016-07-14-createaccesscontrollist).
|
|
194
|
+
|
|
195
|
+
> **NOTE:** Available since v1.224.0.
|
|
196
|
+
|
|
197
|
+
## Example Usage
|
|
198
|
+
|
|
199
|
+
Basic Usage
|
|
200
|
+
|
|
201
|
+
```python
|
|
202
|
+
import pulumi
|
|
203
|
+
import pulumi_alicloud as alicloud
|
|
204
|
+
|
|
205
|
+
config = pulumi.Config()
|
|
206
|
+
name = config.get("name")
|
|
207
|
+
if name is None:
|
|
208
|
+
name = "terraform_example"
|
|
209
|
+
defaultxyw_s8c = alicloud.apigateway.Instance("defaultxywS8c",
|
|
210
|
+
instance_name=name,
|
|
211
|
+
instance_spec="api.s1.small",
|
|
212
|
+
https_policy="HTTPS2_TLS1_0",
|
|
213
|
+
zone_id="cn-hangzhou-MAZ6",
|
|
214
|
+
payment_type="PayAsYouGo")
|
|
215
|
+
default = alicloud.apigateway.AccessControlList("default",
|
|
216
|
+
access_control_list_name=name,
|
|
217
|
+
acl_entrys=[alicloud.apigateway.AccessControlListAclEntryArgs(
|
|
218
|
+
acl_entry_ip="128.0.0.1/32",
|
|
219
|
+
acl_entry_comment="example comment",
|
|
220
|
+
)],
|
|
221
|
+
address_ip_version="ipv4")
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## Import
|
|
225
|
+
|
|
226
|
+
Api Gateway Access Control List can be imported using the id, e.g.
|
|
227
|
+
|
|
228
|
+
```sh
|
|
229
|
+
$ pulumi import alicloud:apigateway/accessControlList:AccessControlList example <id>
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
:param str resource_name: The name of the resource.
|
|
233
|
+
:param AccessControlListArgs args: The arguments to use to populate this resource's properties.
|
|
234
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
235
|
+
"""
|
|
236
|
+
...
|
|
237
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
238
|
+
resource_args, opts = _utilities.get_resource_args_opts(AccessControlListArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
239
|
+
if resource_args is not None:
|
|
240
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
241
|
+
else:
|
|
242
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
243
|
+
|
|
244
|
+
def _internal_init(__self__,
|
|
245
|
+
resource_name: str,
|
|
246
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
247
|
+
access_control_list_name: Optional[pulumi.Input[str]] = None,
|
|
248
|
+
acl_entrys: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AccessControlListAclEntryArgs']]]]] = None,
|
|
249
|
+
address_ip_version: Optional[pulumi.Input[str]] = None,
|
|
250
|
+
__props__=None):
|
|
251
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
252
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
253
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
254
|
+
if opts.id is None:
|
|
255
|
+
if __props__ is not None:
|
|
256
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
257
|
+
__props__ = AccessControlListArgs.__new__(AccessControlListArgs)
|
|
258
|
+
|
|
259
|
+
if access_control_list_name is None and not opts.urn:
|
|
260
|
+
raise TypeError("Missing required property 'access_control_list_name'")
|
|
261
|
+
__props__.__dict__["access_control_list_name"] = access_control_list_name
|
|
262
|
+
__props__.__dict__["acl_entrys"] = None if acl_entrys is None else pulumi.Output.secret(acl_entrys)
|
|
263
|
+
__props__.__dict__["address_ip_version"] = address_ip_version
|
|
264
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["aclEntrys"])
|
|
265
|
+
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
266
|
+
super(AccessControlList, __self__).__init__(
|
|
267
|
+
'alicloud:apigateway/accessControlList:AccessControlList',
|
|
268
|
+
resource_name,
|
|
269
|
+
__props__,
|
|
270
|
+
opts)
|
|
271
|
+
|
|
272
|
+
@staticmethod
|
|
273
|
+
def get(resource_name: str,
|
|
274
|
+
id: pulumi.Input[str],
|
|
275
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
276
|
+
access_control_list_name: Optional[pulumi.Input[str]] = None,
|
|
277
|
+
acl_entrys: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AccessControlListAclEntryArgs']]]]] = None,
|
|
278
|
+
address_ip_version: Optional[pulumi.Input[str]] = None) -> 'AccessControlList':
|
|
279
|
+
"""
|
|
280
|
+
Get an existing AccessControlList resource's state with the given name, id, and optional extra
|
|
281
|
+
properties used to qualify the lookup.
|
|
282
|
+
|
|
283
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
284
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
285
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
286
|
+
:param pulumi.Input[str] access_control_list_name: Access control list name.
|
|
287
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AccessControlListAclEntryArgs']]]] acl_entrys: Information list of access control policies. You can add at most 50 IP addresses or CIDR blocks to an ACL in each call. If the IP address or CIDR block that you want to add to an ACL already exists, the IP address or CIDR block is not added. The entries that you add must be CIDR blocks. See `acl_entrys` below.
|
|
288
|
+
:param pulumi.Input[str] address_ip_version: The IP version. Valid values: ipv4 and ipv6.
|
|
289
|
+
"""
|
|
290
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
291
|
+
|
|
292
|
+
__props__ = _AccessControlListState.__new__(_AccessControlListState)
|
|
293
|
+
|
|
294
|
+
__props__.__dict__["access_control_list_name"] = access_control_list_name
|
|
295
|
+
__props__.__dict__["acl_entrys"] = acl_entrys
|
|
296
|
+
__props__.__dict__["address_ip_version"] = address_ip_version
|
|
297
|
+
return AccessControlList(resource_name, opts=opts, __props__=__props__)
|
|
298
|
+
|
|
299
|
+
@property
|
|
300
|
+
@pulumi.getter(name="accessControlListName")
|
|
301
|
+
def access_control_list_name(self) -> pulumi.Output[str]:
|
|
302
|
+
"""
|
|
303
|
+
Access control list name.
|
|
304
|
+
"""
|
|
305
|
+
return pulumi.get(self, "access_control_list_name")
|
|
306
|
+
|
|
307
|
+
@property
|
|
308
|
+
@pulumi.getter(name="aclEntrys")
|
|
309
|
+
def acl_entrys(self) -> pulumi.Output[Optional[Sequence['outputs.AccessControlListAclEntry']]]:
|
|
310
|
+
"""
|
|
311
|
+
Information list of access control policies. You can add at most 50 IP addresses or CIDR blocks to an ACL in each call. If the IP address or CIDR block that you want to add to an ACL already exists, the IP address or CIDR block is not added. The entries that you add must be CIDR blocks. See `acl_entrys` below.
|
|
312
|
+
"""
|
|
313
|
+
return pulumi.get(self, "acl_entrys")
|
|
314
|
+
|
|
315
|
+
@property
|
|
316
|
+
@pulumi.getter(name="addressIpVersion")
|
|
317
|
+
def address_ip_version(self) -> pulumi.Output[str]:
|
|
318
|
+
"""
|
|
319
|
+
The IP version. Valid values: ipv4 and ipv6.
|
|
320
|
+
"""
|
|
321
|
+
return pulumi.get(self, "address_ip_version")
|
|
322
|
+
|
|
@@ -51,16 +51,16 @@ class GetApisResult:
|
|
|
51
51
|
@property
|
|
52
52
|
@pulumi.getter(name="apiId")
|
|
53
53
|
def api_id(self) -> Optional[str]:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
"""
|
|
55
|
+
(Available since v1.224.0) The ID of the API.
|
|
56
|
+
"""
|
|
57
57
|
return pulumi.get(self, "api_id")
|
|
58
58
|
|
|
59
59
|
@property
|
|
60
60
|
@pulumi.getter
|
|
61
61
|
def apis(self) -> Sequence['outputs.GetApisApiResult']:
|
|
62
62
|
"""
|
|
63
|
-
A list of
|
|
63
|
+
A list of APIs. Each element contains the following attributes:
|
|
64
64
|
"""
|
|
65
65
|
return pulumi.get(self, "apis")
|
|
66
66
|
|
|
@@ -68,7 +68,7 @@ class GetApisResult:
|
|
|
68
68
|
@pulumi.getter(name="groupId")
|
|
69
69
|
def group_id(self) -> Optional[str]:
|
|
70
70
|
"""
|
|
71
|
-
The
|
|
71
|
+
The ID of the API group.
|
|
72
72
|
"""
|
|
73
73
|
return pulumi.get(self, "group_id")
|
|
74
74
|
|
|
@@ -83,9 +83,6 @@ class GetApisResult:
|
|
|
83
83
|
@property
|
|
84
84
|
@pulumi.getter
|
|
85
85
|
def ids(self) -> Sequence[str]:
|
|
86
|
-
"""
|
|
87
|
-
A list of api IDs.
|
|
88
|
-
"""
|
|
89
86
|
return pulumi.get(self, "ids")
|
|
90
87
|
|
|
91
88
|
@property
|
|
@@ -97,7 +94,7 @@ class GetApisResult:
|
|
|
97
94
|
@pulumi.getter
|
|
98
95
|
def names(self) -> Sequence[str]:
|
|
99
96
|
"""
|
|
100
|
-
A list of
|
|
97
|
+
A list of API names.
|
|
101
98
|
"""
|
|
102
99
|
return pulumi.get(self, "names")
|
|
103
100
|
|
|
@@ -130,23 +127,61 @@ def get_apis(api_id: Optional[str] = None,
|
|
|
130
127
|
output_file: Optional[str] = None,
|
|
131
128
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetApisResult:
|
|
132
129
|
"""
|
|
133
|
-
This data source provides the
|
|
130
|
+
This data source provides the Api Gateway APIs of the current Alibaba Cloud user.
|
|
131
|
+
|
|
132
|
+
> **NOTE:** Available since v1.22.0.
|
|
134
133
|
|
|
135
134
|
## Example Usage
|
|
136
135
|
|
|
136
|
+
Basic Usage
|
|
137
|
+
|
|
137
138
|
```python
|
|
138
139
|
import pulumi
|
|
139
140
|
import pulumi_alicloud as alicloud
|
|
140
141
|
|
|
141
|
-
|
|
142
|
-
|
|
142
|
+
config = pulumi.Config()
|
|
143
|
+
name = config.get("name")
|
|
144
|
+
if name is None:
|
|
145
|
+
name = "terraform-example"
|
|
146
|
+
default = alicloud.apigateway.Group("default",
|
|
147
|
+
name=name,
|
|
148
|
+
description=name)
|
|
149
|
+
default_api = alicloud.apigateway.Api("default",
|
|
150
|
+
group_id=default.id,
|
|
151
|
+
name=name,
|
|
152
|
+
description=name,
|
|
153
|
+
auth_type="APP",
|
|
154
|
+
service_type="HTTP",
|
|
155
|
+
request_config=alicloud.apigateway.ApiRequestConfigArgs(
|
|
156
|
+
protocol="HTTP",
|
|
157
|
+
method="GET",
|
|
158
|
+
path="/test/path",
|
|
159
|
+
mode="MAPPING",
|
|
160
|
+
),
|
|
161
|
+
http_service_config=alicloud.apigateway.ApiHttpServiceConfigArgs(
|
|
162
|
+
address="http://apigateway-backend.alicloudapi.com:8080",
|
|
163
|
+
method="GET",
|
|
164
|
+
path="/web/cloudapi",
|
|
165
|
+
timeout=20,
|
|
166
|
+
aone_name="cloudapi-openapi",
|
|
167
|
+
),
|
|
168
|
+
request_parameters=[alicloud.apigateway.ApiRequestParameterArgs(
|
|
169
|
+
name=name,
|
|
170
|
+
type="STRING",
|
|
171
|
+
required="OPTIONAL",
|
|
172
|
+
in_="QUERY",
|
|
173
|
+
in_service="QUERY",
|
|
174
|
+
name_service=name,
|
|
175
|
+
)])
|
|
176
|
+
ids = alicloud.apigateway.get_apis_output(ids=[default_api.id])
|
|
177
|
+
pulumi.export("apiGatewayApisId0", ids.apis[0].id)
|
|
143
178
|
```
|
|
144
179
|
|
|
145
180
|
|
|
146
|
-
:param str api_id:
|
|
147
|
-
:param str group_id: ID of the
|
|
148
|
-
:param Sequence[str] ids: A list of
|
|
149
|
-
:param str name_regex: A regex string to filter
|
|
181
|
+
:param str api_id: The ID of the API.
|
|
182
|
+
:param str group_id: The ID of the API group.
|
|
183
|
+
:param Sequence[str] ids: A list of API IDs.
|
|
184
|
+
:param str name_regex: A regex string to filter results by API name.
|
|
150
185
|
:param str output_file: File name where to save data source results (after running `pulumi preview`).
|
|
151
186
|
"""
|
|
152
187
|
__args__ = dict()
|
|
@@ -177,23 +212,61 @@ def get_apis_output(api_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
177
212
|
output_file: Optional[pulumi.Input[Optional[str]]] = None,
|
|
178
213
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetApisResult]:
|
|
179
214
|
"""
|
|
180
|
-
This data source provides the
|
|
215
|
+
This data source provides the Api Gateway APIs of the current Alibaba Cloud user.
|
|
216
|
+
|
|
217
|
+
> **NOTE:** Available since v1.22.0.
|
|
181
218
|
|
|
182
219
|
## Example Usage
|
|
183
220
|
|
|
221
|
+
Basic Usage
|
|
222
|
+
|
|
184
223
|
```python
|
|
185
224
|
import pulumi
|
|
186
225
|
import pulumi_alicloud as alicloud
|
|
187
226
|
|
|
188
|
-
|
|
189
|
-
|
|
227
|
+
config = pulumi.Config()
|
|
228
|
+
name = config.get("name")
|
|
229
|
+
if name is None:
|
|
230
|
+
name = "terraform-example"
|
|
231
|
+
default = alicloud.apigateway.Group("default",
|
|
232
|
+
name=name,
|
|
233
|
+
description=name)
|
|
234
|
+
default_api = alicloud.apigateway.Api("default",
|
|
235
|
+
group_id=default.id,
|
|
236
|
+
name=name,
|
|
237
|
+
description=name,
|
|
238
|
+
auth_type="APP",
|
|
239
|
+
service_type="HTTP",
|
|
240
|
+
request_config=alicloud.apigateway.ApiRequestConfigArgs(
|
|
241
|
+
protocol="HTTP",
|
|
242
|
+
method="GET",
|
|
243
|
+
path="/test/path",
|
|
244
|
+
mode="MAPPING",
|
|
245
|
+
),
|
|
246
|
+
http_service_config=alicloud.apigateway.ApiHttpServiceConfigArgs(
|
|
247
|
+
address="http://apigateway-backend.alicloudapi.com:8080",
|
|
248
|
+
method="GET",
|
|
249
|
+
path="/web/cloudapi",
|
|
250
|
+
timeout=20,
|
|
251
|
+
aone_name="cloudapi-openapi",
|
|
252
|
+
),
|
|
253
|
+
request_parameters=[alicloud.apigateway.ApiRequestParameterArgs(
|
|
254
|
+
name=name,
|
|
255
|
+
type="STRING",
|
|
256
|
+
required="OPTIONAL",
|
|
257
|
+
in_="QUERY",
|
|
258
|
+
in_service="QUERY",
|
|
259
|
+
name_service=name,
|
|
260
|
+
)])
|
|
261
|
+
ids = alicloud.apigateway.get_apis_output(ids=[default_api.id])
|
|
262
|
+
pulumi.export("apiGatewayApisId0", ids.apis[0].id)
|
|
190
263
|
```
|
|
191
264
|
|
|
192
265
|
|
|
193
|
-
:param str api_id:
|
|
194
|
-
:param str group_id: ID of the
|
|
195
|
-
:param Sequence[str] ids: A list of
|
|
196
|
-
:param str name_regex: A regex string to filter
|
|
266
|
+
:param str api_id: The ID of the API.
|
|
267
|
+
:param str group_id: The ID of the API group.
|
|
268
|
+
:param Sequence[str] ids: A list of API IDs.
|
|
269
|
+
:param str name_regex: A regex string to filter results by API name.
|
|
197
270
|
:param str output_file: File name where to save data source results (after running `pulumi preview`).
|
|
198
271
|
"""
|
|
199
272
|
...
|
|
@@ -10,6 +10,7 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
|
10
10
|
from .. import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = [
|
|
13
|
+
'AccessControlListAclEntry',
|
|
13
14
|
'ApiConstantParameter',
|
|
14
15
|
'ApiFcServiceConfig',
|
|
15
16
|
'ApiHttpServiceConfig',
|
|
@@ -27,6 +28,56 @@ __all__ = [
|
|
|
27
28
|
'GetPluginsPluginResult',
|
|
28
29
|
]
|
|
29
30
|
|
|
31
|
+
@pulumi.output_type
|
|
32
|
+
class AccessControlListAclEntry(dict):
|
|
33
|
+
@staticmethod
|
|
34
|
+
def __key_warning(key: str):
|
|
35
|
+
suggest = None
|
|
36
|
+
if key == "aclEntryComment":
|
|
37
|
+
suggest = "acl_entry_comment"
|
|
38
|
+
elif key == "aclEntryIp":
|
|
39
|
+
suggest = "acl_entry_ip"
|
|
40
|
+
|
|
41
|
+
if suggest:
|
|
42
|
+
pulumi.log.warn(f"Key '{key}' not found in AccessControlListAclEntry. Access the value via the '{suggest}' property getter instead.")
|
|
43
|
+
|
|
44
|
+
def __getitem__(self, key: str) -> Any:
|
|
45
|
+
AccessControlListAclEntry.__key_warning(key)
|
|
46
|
+
return super().__getitem__(key)
|
|
47
|
+
|
|
48
|
+
def get(self, key: str, default = None) -> Any:
|
|
49
|
+
AccessControlListAclEntry.__key_warning(key)
|
|
50
|
+
return super().get(key, default)
|
|
51
|
+
|
|
52
|
+
def __init__(__self__, *,
|
|
53
|
+
acl_entry_comment: Optional[str] = None,
|
|
54
|
+
acl_entry_ip: Optional[str] = None):
|
|
55
|
+
"""
|
|
56
|
+
:param str acl_entry_comment: The description of the ACL.
|
|
57
|
+
:param str acl_entry_ip: The entries that you want to add to the ACL. You can add CIDR blocks. Separate multiple CIDR blocks with commas (,).
|
|
58
|
+
"""
|
|
59
|
+
if acl_entry_comment is not None:
|
|
60
|
+
pulumi.set(__self__, "acl_entry_comment", acl_entry_comment)
|
|
61
|
+
if acl_entry_ip is not None:
|
|
62
|
+
pulumi.set(__self__, "acl_entry_ip", acl_entry_ip)
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
@pulumi.getter(name="aclEntryComment")
|
|
66
|
+
def acl_entry_comment(self) -> Optional[str]:
|
|
67
|
+
"""
|
|
68
|
+
The description of the ACL.
|
|
69
|
+
"""
|
|
70
|
+
return pulumi.get(self, "acl_entry_comment")
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
@pulumi.getter(name="aclEntryIp")
|
|
74
|
+
def acl_entry_ip(self) -> Optional[str]:
|
|
75
|
+
"""
|
|
76
|
+
The entries that you want to add to the ACL. You can add CIDR blocks. Separate multiple CIDR blocks with commas (,).
|
|
77
|
+
"""
|
|
78
|
+
return pulumi.get(self, "acl_entry_ip")
|
|
79
|
+
|
|
80
|
+
|
|
30
81
|
@pulumi.output_type
|
|
31
82
|
class ApiConstantParameter(dict):
|
|
32
83
|
@staticmethod
|
|
@@ -728,6 +779,7 @@ class ApiSystemParameter(dict):
|
|
|
728
779
|
@pulumi.output_type
|
|
729
780
|
class GetApisApiResult(dict):
|
|
730
781
|
def __init__(__self__, *,
|
|
782
|
+
api_id: str,
|
|
731
783
|
description: str,
|
|
732
784
|
group_id: str,
|
|
733
785
|
group_name: str,
|
|
@@ -735,13 +787,14 @@ class GetApisApiResult(dict):
|
|
|
735
787
|
name: str,
|
|
736
788
|
region_id: str):
|
|
737
789
|
"""
|
|
738
|
-
:param str
|
|
739
|
-
:param str
|
|
740
|
-
:param str
|
|
741
|
-
:param str
|
|
742
|
-
:param str name:
|
|
743
|
-
:param str region_id: The ID of the
|
|
790
|
+
:param str api_id: The ID of the API.
|
|
791
|
+
:param str description: The description of the API.
|
|
792
|
+
:param str group_id: The ID of the API group.
|
|
793
|
+
:param str group_name: The name of the API group.
|
|
794
|
+
:param str name: The name of the API.
|
|
795
|
+
:param str region_id: The region ID of the API.
|
|
744
796
|
"""
|
|
797
|
+
pulumi.set(__self__, "api_id", api_id)
|
|
745
798
|
pulumi.set(__self__, "description", description)
|
|
746
799
|
pulumi.set(__self__, "group_id", group_id)
|
|
747
800
|
pulumi.set(__self__, "group_name", group_name)
|
|
@@ -749,11 +802,19 @@ class GetApisApiResult(dict):
|
|
|
749
802
|
pulumi.set(__self__, "name", name)
|
|
750
803
|
pulumi.set(__self__, "region_id", region_id)
|
|
751
804
|
|
|
805
|
+
@property
|
|
806
|
+
@pulumi.getter(name="apiId")
|
|
807
|
+
def api_id(self) -> str:
|
|
808
|
+
"""
|
|
809
|
+
The ID of the API.
|
|
810
|
+
"""
|
|
811
|
+
return pulumi.get(self, "api_id")
|
|
812
|
+
|
|
752
813
|
@property
|
|
753
814
|
@pulumi.getter
|
|
754
815
|
def description(self) -> str:
|
|
755
816
|
"""
|
|
756
|
-
|
|
817
|
+
The description of the API.
|
|
757
818
|
"""
|
|
758
819
|
return pulumi.get(self, "description")
|
|
759
820
|
|
|
@@ -761,7 +822,7 @@ class GetApisApiResult(dict):
|
|
|
761
822
|
@pulumi.getter(name="groupId")
|
|
762
823
|
def group_id(self) -> str:
|
|
763
824
|
"""
|
|
764
|
-
ID of the
|
|
825
|
+
The ID of the API group.
|
|
765
826
|
"""
|
|
766
827
|
return pulumi.get(self, "group_id")
|
|
767
828
|
|
|
@@ -769,23 +830,20 @@ class GetApisApiResult(dict):
|
|
|
769
830
|
@pulumi.getter(name="groupName")
|
|
770
831
|
def group_name(self) -> str:
|
|
771
832
|
"""
|
|
772
|
-
The
|
|
833
|
+
The name of the API group.
|
|
773
834
|
"""
|
|
774
835
|
return pulumi.get(self, "group_name")
|
|
775
836
|
|
|
776
837
|
@property
|
|
777
838
|
@pulumi.getter
|
|
778
839
|
def id(self) -> str:
|
|
779
|
-
"""
|
|
780
|
-
API ID, which is generated by the system and globally unique.
|
|
781
|
-
"""
|
|
782
840
|
return pulumi.get(self, "id")
|
|
783
841
|
|
|
784
842
|
@property
|
|
785
843
|
@pulumi.getter
|
|
786
844
|
def name(self) -> str:
|
|
787
845
|
"""
|
|
788
|
-
|
|
846
|
+
The name of the API.
|
|
789
847
|
"""
|
|
790
848
|
return pulumi.get(self, "name")
|
|
791
849
|
|
|
@@ -793,7 +851,7 @@ class GetApisApiResult(dict):
|
|
|
793
851
|
@pulumi.getter(name="regionId")
|
|
794
852
|
def region_id(self) -> str:
|
|
795
853
|
"""
|
|
796
|
-
The ID of the
|
|
854
|
+
The region ID of the API.
|
|
797
855
|
"""
|
|
798
856
|
return pulumi.get(self, "region_id")
|
|
799
857
|
|