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
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = ['DelegateAccountArgs', 'DelegateAccount']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class DelegateAccountArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
account_id: pulumi.Input[_builtins.str]):
|
|
23
|
+
"""
|
|
24
|
+
The set of arguments for constructing a DelegateAccount resource.
|
|
25
|
+
:param pulumi.Input[_builtins.str] account_id: Delegate administrator account Id
|
|
26
|
+
"""
|
|
27
|
+
pulumi.set(__self__, "account_id", account_id)
|
|
28
|
+
|
|
29
|
+
@_builtins.property
|
|
30
|
+
@pulumi.getter(name="accountId")
|
|
31
|
+
def account_id(self) -> pulumi.Input[_builtins.str]:
|
|
32
|
+
"""
|
|
33
|
+
Delegate administrator account Id
|
|
34
|
+
"""
|
|
35
|
+
return pulumi.get(self, "account_id")
|
|
36
|
+
|
|
37
|
+
@account_id.setter
|
|
38
|
+
def account_id(self, value: pulumi.Input[_builtins.str]):
|
|
39
|
+
pulumi.set(self, "account_id", value)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@pulumi.input_type
|
|
43
|
+
class _DelegateAccountState:
|
|
44
|
+
def __init__(__self__, *,
|
|
45
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
46
|
+
"""
|
|
47
|
+
Input properties used for looking up and filtering DelegateAccount resources.
|
|
48
|
+
:param pulumi.Input[_builtins.str] account_id: Delegate administrator account Id
|
|
49
|
+
"""
|
|
50
|
+
if account_id is not None:
|
|
51
|
+
pulumi.set(__self__, "account_id", account_id)
|
|
52
|
+
|
|
53
|
+
@_builtins.property
|
|
54
|
+
@pulumi.getter(name="accountId")
|
|
55
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
56
|
+
"""
|
|
57
|
+
Delegate administrator account Id
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "account_id")
|
|
60
|
+
|
|
61
|
+
@account_id.setter
|
|
62
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
63
|
+
pulumi.set(self, "account_id", value)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
@pulumi.type_token("alicloud:cloudsso/delegateAccount:DelegateAccount")
|
|
67
|
+
class DelegateAccount(pulumi.CustomResource):
|
|
68
|
+
@overload
|
|
69
|
+
def __init__(__self__,
|
|
70
|
+
resource_name: str,
|
|
71
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
72
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
73
|
+
__props__=None):
|
|
74
|
+
"""
|
|
75
|
+
Provides a Cloud SSO Delegate Account resource.
|
|
76
|
+
|
|
77
|
+
Delegated Administrator Account.
|
|
78
|
+
|
|
79
|
+
For information about Cloud SSO Delegate Account and how to use it, see [What is Delegate Account](https://next.api.alibabacloud.com/document/cloudsso/2021-05-15/EnableDelegateAccount).
|
|
80
|
+
|
|
81
|
+
> **NOTE:** Available since v1.259.0.
|
|
82
|
+
|
|
83
|
+
## Example Usage
|
|
84
|
+
|
|
85
|
+
Basic Usage
|
|
86
|
+
|
|
87
|
+
```python
|
|
88
|
+
import pulumi
|
|
89
|
+
import pulumi_alicloud as alicloud
|
|
90
|
+
|
|
91
|
+
config = pulumi.Config()
|
|
92
|
+
name = config.get("name")
|
|
93
|
+
if name is None:
|
|
94
|
+
name = "terraform-example"
|
|
95
|
+
default = alicloud.resourcemanager.get_accounts(status="CreateSuccess")
|
|
96
|
+
default_delegated_administrator = alicloud.resourcemanager.DelegatedAdministrator("default",
|
|
97
|
+
account_id=default.accounts[0].account_id,
|
|
98
|
+
service_principal="cloudsso.aliyuncs.com")
|
|
99
|
+
default_delegate_account = alicloud.cloudsso.DelegateAccount("default", account_id=default_delegated_administrator.account_id)
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Import
|
|
103
|
+
|
|
104
|
+
Cloud SSO Delegate Account can be imported using the id, e.g.
|
|
105
|
+
|
|
106
|
+
```sh
|
|
107
|
+
$ pulumi import alicloud:cloudsso/delegateAccount:DelegateAccount example <id>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
:param str resource_name: The name of the resource.
|
|
111
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
112
|
+
:param pulumi.Input[_builtins.str] account_id: Delegate administrator account Id
|
|
113
|
+
"""
|
|
114
|
+
...
|
|
115
|
+
@overload
|
|
116
|
+
def __init__(__self__,
|
|
117
|
+
resource_name: str,
|
|
118
|
+
args: DelegateAccountArgs,
|
|
119
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
120
|
+
"""
|
|
121
|
+
Provides a Cloud SSO Delegate Account resource.
|
|
122
|
+
|
|
123
|
+
Delegated Administrator Account.
|
|
124
|
+
|
|
125
|
+
For information about Cloud SSO Delegate Account and how to use it, see [What is Delegate Account](https://next.api.alibabacloud.com/document/cloudsso/2021-05-15/EnableDelegateAccount).
|
|
126
|
+
|
|
127
|
+
> **NOTE:** Available since v1.259.0.
|
|
128
|
+
|
|
129
|
+
## Example Usage
|
|
130
|
+
|
|
131
|
+
Basic Usage
|
|
132
|
+
|
|
133
|
+
```python
|
|
134
|
+
import pulumi
|
|
135
|
+
import pulumi_alicloud as alicloud
|
|
136
|
+
|
|
137
|
+
config = pulumi.Config()
|
|
138
|
+
name = config.get("name")
|
|
139
|
+
if name is None:
|
|
140
|
+
name = "terraform-example"
|
|
141
|
+
default = alicloud.resourcemanager.get_accounts(status="CreateSuccess")
|
|
142
|
+
default_delegated_administrator = alicloud.resourcemanager.DelegatedAdministrator("default",
|
|
143
|
+
account_id=default.accounts[0].account_id,
|
|
144
|
+
service_principal="cloudsso.aliyuncs.com")
|
|
145
|
+
default_delegate_account = alicloud.cloudsso.DelegateAccount("default", account_id=default_delegated_administrator.account_id)
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Import
|
|
149
|
+
|
|
150
|
+
Cloud SSO Delegate Account can be imported using the id, e.g.
|
|
151
|
+
|
|
152
|
+
```sh
|
|
153
|
+
$ pulumi import alicloud:cloudsso/delegateAccount:DelegateAccount example <id>
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
:param str resource_name: The name of the resource.
|
|
157
|
+
:param DelegateAccountArgs args: The arguments to use to populate this resource's properties.
|
|
158
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
159
|
+
"""
|
|
160
|
+
...
|
|
161
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
162
|
+
resource_args, opts = _utilities.get_resource_args_opts(DelegateAccountArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
163
|
+
if resource_args is not None:
|
|
164
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
165
|
+
else:
|
|
166
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
167
|
+
|
|
168
|
+
def _internal_init(__self__,
|
|
169
|
+
resource_name: str,
|
|
170
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
171
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
172
|
+
__props__=None):
|
|
173
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
174
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
175
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
176
|
+
if opts.id is None:
|
|
177
|
+
if __props__ is not None:
|
|
178
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
179
|
+
__props__ = DelegateAccountArgs.__new__(DelegateAccountArgs)
|
|
180
|
+
|
|
181
|
+
if account_id is None and not opts.urn:
|
|
182
|
+
raise TypeError("Missing required property 'account_id'")
|
|
183
|
+
__props__.__dict__["account_id"] = account_id
|
|
184
|
+
super(DelegateAccount, __self__).__init__(
|
|
185
|
+
'alicloud:cloudsso/delegateAccount:DelegateAccount',
|
|
186
|
+
resource_name,
|
|
187
|
+
__props__,
|
|
188
|
+
opts)
|
|
189
|
+
|
|
190
|
+
@staticmethod
|
|
191
|
+
def get(resource_name: str,
|
|
192
|
+
id: pulumi.Input[str],
|
|
193
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
194
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'DelegateAccount':
|
|
195
|
+
"""
|
|
196
|
+
Get an existing DelegateAccount resource's state with the given name, id, and optional extra
|
|
197
|
+
properties used to qualify the lookup.
|
|
198
|
+
|
|
199
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
200
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
201
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
202
|
+
:param pulumi.Input[_builtins.str] account_id: Delegate administrator account Id
|
|
203
|
+
"""
|
|
204
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
205
|
+
|
|
206
|
+
__props__ = _DelegateAccountState.__new__(_DelegateAccountState)
|
|
207
|
+
|
|
208
|
+
__props__.__dict__["account_id"] = account_id
|
|
209
|
+
return DelegateAccount(resource_name, opts=opts, __props__=__props__)
|
|
210
|
+
|
|
211
|
+
@_builtins.property
|
|
212
|
+
@pulumi.getter(name="accountId")
|
|
213
|
+
def account_id(self) -> pulumi.Output[_builtins.str]:
|
|
214
|
+
"""
|
|
215
|
+
Delegate administrator account Id
|
|
216
|
+
"""
|
|
217
|
+
return pulumi.get(self, "account_id")
|
|
218
|
+
|
pulumi_alicloud/cs/node_pool.py
CHANGED
|
@@ -122,6 +122,7 @@ class NodePoolArgs:
|
|
|
122
122
|
- `ContainerOS` : container-optimized image.
|
|
123
123
|
- `Ubuntu`: Ubuntu image.
|
|
124
124
|
- `AliyunLinux3ContainerOptimized`: Alinux3 container-optimized image.
|
|
125
|
+
- `Custom`: Custom image.
|
|
125
126
|
:param pulumi.Input[_builtins.bool] install_cloud_monitor: Whether to install cloud monitoring on the ECS node. After installation, you can view the monitoring information of the created ECS instance in the cloud monitoring console and recommend enable it. Default value: `false`. Valid values:
|
|
126
127
|
:param pulumi.Input[_builtins.str] instance_charge_type: Node payment type. Valid values: `PostPaid`, `PrePaid`, default is `PostPaid`. If value is `PrePaid`, the arguments `period`, `period_unit`, `auto_renew` and `auto_renew_period` are required.
|
|
127
128
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] instance_types: In the node instance specification list, you can select multiple instance specifications as alternatives. When each node is created, it will try to purchase from the first specification until it is created successfully. The final purchased instance specifications may vary with inventory changes.
|
|
@@ -543,6 +544,7 @@ class NodePoolArgs:
|
|
|
543
544
|
- `ContainerOS` : container-optimized image.
|
|
544
545
|
- `Ubuntu`: Ubuntu image.
|
|
545
546
|
- `AliyunLinux3ContainerOptimized`: Alinux3 container-optimized image.
|
|
547
|
+
- `Custom`: Custom image.
|
|
546
548
|
"""
|
|
547
549
|
return pulumi.get(self, "image_type")
|
|
548
550
|
|
|
@@ -1415,6 +1417,7 @@ class _NodePoolState:
|
|
|
1415
1417
|
- `ContainerOS` : container-optimized image.
|
|
1416
1418
|
- `Ubuntu`: Ubuntu image.
|
|
1417
1419
|
- `AliyunLinux3ContainerOptimized`: Alinux3 container-optimized image.
|
|
1420
|
+
- `Custom`: Custom image.
|
|
1418
1421
|
:param pulumi.Input[_builtins.bool] install_cloud_monitor: Whether to install cloud monitoring on the ECS node. After installation, you can view the monitoring information of the created ECS instance in the cloud monitoring console and recommend enable it. Default value: `false`. Valid values:
|
|
1419
1422
|
:param pulumi.Input[_builtins.str] instance_charge_type: Node payment type. Valid values: `PostPaid`, `PrePaid`, default is `PostPaid`. If value is `PrePaid`, the arguments `period`, `period_unit`, `auto_renew` and `auto_renew_period` are required.
|
|
1420
1423
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] instance_types: In the node instance specification list, you can select multiple instance specifications as alternatives. When each node is created, it will try to purchase from the first specification until it is created successfully. The final purchased instance specifications may vary with inventory changes.
|
|
@@ -1843,6 +1846,7 @@ class _NodePoolState:
|
|
|
1843
1846
|
- `ContainerOS` : container-optimized image.
|
|
1844
1847
|
- `Ubuntu`: Ubuntu image.
|
|
1845
1848
|
- `AliyunLinux3ContainerOptimized`: Alinux3 container-optimized image.
|
|
1849
|
+
- `Custom`: Custom image.
|
|
1846
1850
|
"""
|
|
1847
1851
|
return pulumi.get(self, "image_type")
|
|
1848
1852
|
|
|
@@ -2962,6 +2966,7 @@ class NodePool(pulumi.CustomResource):
|
|
|
2962
2966
|
- `ContainerOS` : container-optimized image.
|
|
2963
2967
|
- `Ubuntu`: Ubuntu image.
|
|
2964
2968
|
- `AliyunLinux3ContainerOptimized`: Alinux3 container-optimized image.
|
|
2969
|
+
- `Custom`: Custom image.
|
|
2965
2970
|
:param pulumi.Input[_builtins.bool] install_cloud_monitor: Whether to install cloud monitoring on the ECS node. After installation, you can view the monitoring information of the created ECS instance in the cloud monitoring console and recommend enable it. Default value: `false`. Valid values:
|
|
2966
2971
|
:param pulumi.Input[_builtins.str] instance_charge_type: Node payment type. Valid values: `PostPaid`, `PrePaid`, default is `PostPaid`. If value is `PrePaid`, the arguments `period`, `period_unit`, `auto_renew` and `auto_renew_period` are required.
|
|
2967
2972
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] instance_types: In the node instance specification list, you can select multiple instance specifications as alternatives. When each node is created, it will try to purchase from the first specification until it is created successfully. The final purchased instance specifications may vary with inventory changes.
|
|
@@ -3571,6 +3576,7 @@ class NodePool(pulumi.CustomResource):
|
|
|
3571
3576
|
- `ContainerOS` : container-optimized image.
|
|
3572
3577
|
- `Ubuntu`: Ubuntu image.
|
|
3573
3578
|
- `AliyunLinux3ContainerOptimized`: Alinux3 container-optimized image.
|
|
3579
|
+
- `Custom`: Custom image.
|
|
3574
3580
|
:param pulumi.Input[_builtins.bool] install_cloud_monitor: Whether to install cloud monitoring on the ECS node. After installation, you can view the monitoring information of the created ECS instance in the cloud monitoring console and recommend enable it. Default value: `false`. Valid values:
|
|
3575
3581
|
:param pulumi.Input[_builtins.str] instance_charge_type: Node payment type. Valid values: `PostPaid`, `PrePaid`, default is `PostPaid`. If value is `PrePaid`, the arguments `period`, `period_unit`, `auto_renew` and `auto_renew_period` are required.
|
|
3576
3582
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] instance_types: In the node instance specification list, you can select multiple instance specifications as alternatives. When each node is created, it will try to purchase from the first specification until it is created successfully. The final purchased instance specifications may vary with inventory changes.
|
|
@@ -3860,6 +3866,7 @@ class NodePool(pulumi.CustomResource):
|
|
|
3860
3866
|
- `ContainerOS` : container-optimized image.
|
|
3861
3867
|
- `Ubuntu`: Ubuntu image.
|
|
3862
3868
|
- `AliyunLinux3ContainerOptimized`: Alinux3 container-optimized image.
|
|
3869
|
+
- `Custom`: Custom image.
|
|
3863
3870
|
"""
|
|
3864
3871
|
return pulumi.get(self, "image_type")
|
|
3865
3872
|
|
pulumi_alicloud/ddos/bgp_ip.py
CHANGED
|
@@ -25,15 +25,18 @@ class BgpIpArgs:
|
|
|
25
25
|
resource_group_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
26
26
|
"""
|
|
27
27
|
The set of arguments for constructing a BgpIp resource.
|
|
28
|
-
:param pulumi.Input[_builtins.str] instance_id: The ID of the
|
|
29
|
-
:param pulumi.Input[_builtins.str] ip: The IP address.
|
|
30
|
-
:param pulumi.Input[_builtins.str] member_uid: The member
|
|
31
|
-
:param pulumi.Input[_builtins.str] resource_group_id:
|
|
28
|
+
:param pulumi.Input[_builtins.str] instance_id: The ID of the Anti-DDoS Origin instance.
|
|
29
|
+
:param pulumi.Input[_builtins.str] ip: The IP address that you want to add.
|
|
30
|
+
:param pulumi.Input[_builtins.str] member_uid: The member to which the asset belongs.
|
|
31
|
+
:param pulumi.Input[_builtins.str] resource_group_id: Field `resource_group_id` has been deprecated from provider version 1.259.0.
|
|
32
32
|
"""
|
|
33
33
|
pulumi.set(__self__, "instance_id", instance_id)
|
|
34
34
|
pulumi.set(__self__, "ip", ip)
|
|
35
35
|
if member_uid is not None:
|
|
36
36
|
pulumi.set(__self__, "member_uid", member_uid)
|
|
37
|
+
if resource_group_id is not None:
|
|
38
|
+
warnings.warn("""Field `resource_group_id` has been deprecated from provider version 1.259.0.""", DeprecationWarning)
|
|
39
|
+
pulumi.log.warn("""resource_group_id is deprecated: Field `resource_group_id` has been deprecated from provider version 1.259.0.""")
|
|
37
40
|
if resource_group_id is not None:
|
|
38
41
|
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
39
42
|
|
|
@@ -41,7 +44,7 @@ class BgpIpArgs:
|
|
|
41
44
|
@pulumi.getter(name="instanceId")
|
|
42
45
|
def instance_id(self) -> pulumi.Input[_builtins.str]:
|
|
43
46
|
"""
|
|
44
|
-
The ID of the
|
|
47
|
+
The ID of the Anti-DDoS Origin instance.
|
|
45
48
|
"""
|
|
46
49
|
return pulumi.get(self, "instance_id")
|
|
47
50
|
|
|
@@ -53,7 +56,7 @@ class BgpIpArgs:
|
|
|
53
56
|
@pulumi.getter
|
|
54
57
|
def ip(self) -> pulumi.Input[_builtins.str]:
|
|
55
58
|
"""
|
|
56
|
-
The IP address.
|
|
59
|
+
The IP address that you want to add.
|
|
57
60
|
"""
|
|
58
61
|
return pulumi.get(self, "ip")
|
|
59
62
|
|
|
@@ -65,7 +68,7 @@ class BgpIpArgs:
|
|
|
65
68
|
@pulumi.getter(name="memberUid")
|
|
66
69
|
def member_uid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
67
70
|
"""
|
|
68
|
-
The member
|
|
71
|
+
The member to which the asset belongs.
|
|
69
72
|
"""
|
|
70
73
|
return pulumi.get(self, "member_uid")
|
|
71
74
|
|
|
@@ -75,9 +78,10 @@ class BgpIpArgs:
|
|
|
75
78
|
|
|
76
79
|
@_builtins.property
|
|
77
80
|
@pulumi.getter(name="resourceGroupId")
|
|
81
|
+
@_utilities.deprecated("""Field `resource_group_id` has been deprecated from provider version 1.259.0.""")
|
|
78
82
|
def resource_group_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
79
83
|
"""
|
|
80
|
-
|
|
84
|
+
Field `resource_group_id` has been deprecated from provider version 1.259.0.
|
|
81
85
|
"""
|
|
82
86
|
return pulumi.get(self, "resource_group_id")
|
|
83
87
|
|
|
@@ -96,11 +100,11 @@ class _BgpIpState:
|
|
|
96
100
|
status: Optional[pulumi.Input[_builtins.str]] = None):
|
|
97
101
|
"""
|
|
98
102
|
Input properties used for looking up and filtering BgpIp resources.
|
|
99
|
-
:param pulumi.Input[_builtins.str] instance_id: The ID of the
|
|
100
|
-
:param pulumi.Input[_builtins.str] ip: The IP address.
|
|
101
|
-
:param pulumi.Input[_builtins.str] member_uid: The member
|
|
102
|
-
:param pulumi.Input[_builtins.str] resource_group_id:
|
|
103
|
-
:param pulumi.Input[_builtins.str] status: The
|
|
103
|
+
:param pulumi.Input[_builtins.str] instance_id: The ID of the Anti-DDoS Origin instance.
|
|
104
|
+
:param pulumi.Input[_builtins.str] ip: The IP address that you want to add.
|
|
105
|
+
:param pulumi.Input[_builtins.str] member_uid: The member to which the asset belongs.
|
|
106
|
+
:param pulumi.Input[_builtins.str] resource_group_id: Field `resource_group_id` has been deprecated from provider version 1.259.0.
|
|
107
|
+
:param pulumi.Input[_builtins.str] status: The status of the IP address.
|
|
104
108
|
"""
|
|
105
109
|
if instance_id is not None:
|
|
106
110
|
pulumi.set(__self__, "instance_id", instance_id)
|
|
@@ -108,6 +112,9 @@ class _BgpIpState:
|
|
|
108
112
|
pulumi.set(__self__, "ip", ip)
|
|
109
113
|
if member_uid is not None:
|
|
110
114
|
pulumi.set(__self__, "member_uid", member_uid)
|
|
115
|
+
if resource_group_id is not None:
|
|
116
|
+
warnings.warn("""Field `resource_group_id` has been deprecated from provider version 1.259.0.""", DeprecationWarning)
|
|
117
|
+
pulumi.log.warn("""resource_group_id is deprecated: Field `resource_group_id` has been deprecated from provider version 1.259.0.""")
|
|
111
118
|
if resource_group_id is not None:
|
|
112
119
|
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
113
120
|
if status is not None:
|
|
@@ -117,7 +124,7 @@ class _BgpIpState:
|
|
|
117
124
|
@pulumi.getter(name="instanceId")
|
|
118
125
|
def instance_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
119
126
|
"""
|
|
120
|
-
The ID of the
|
|
127
|
+
The ID of the Anti-DDoS Origin instance.
|
|
121
128
|
"""
|
|
122
129
|
return pulumi.get(self, "instance_id")
|
|
123
130
|
|
|
@@ -129,7 +136,7 @@ class _BgpIpState:
|
|
|
129
136
|
@pulumi.getter
|
|
130
137
|
def ip(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
131
138
|
"""
|
|
132
|
-
The IP address.
|
|
139
|
+
The IP address that you want to add.
|
|
133
140
|
"""
|
|
134
141
|
return pulumi.get(self, "ip")
|
|
135
142
|
|
|
@@ -141,7 +148,7 @@ class _BgpIpState:
|
|
|
141
148
|
@pulumi.getter(name="memberUid")
|
|
142
149
|
def member_uid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
143
150
|
"""
|
|
144
|
-
The member
|
|
151
|
+
The member to which the asset belongs.
|
|
145
152
|
"""
|
|
146
153
|
return pulumi.get(self, "member_uid")
|
|
147
154
|
|
|
@@ -151,9 +158,10 @@ class _BgpIpState:
|
|
|
151
158
|
|
|
152
159
|
@_builtins.property
|
|
153
160
|
@pulumi.getter(name="resourceGroupId")
|
|
161
|
+
@_utilities.deprecated("""Field `resource_group_id` has been deprecated from provider version 1.259.0.""")
|
|
154
162
|
def resource_group_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
155
163
|
"""
|
|
156
|
-
|
|
164
|
+
Field `resource_group_id` has been deprecated from provider version 1.259.0.
|
|
157
165
|
"""
|
|
158
166
|
return pulumi.get(self, "resource_group_id")
|
|
159
167
|
|
|
@@ -165,7 +173,7 @@ class _BgpIpState:
|
|
|
165
173
|
@pulumi.getter
|
|
166
174
|
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
167
175
|
"""
|
|
168
|
-
The
|
|
176
|
+
The status of the IP address.
|
|
169
177
|
"""
|
|
170
178
|
return pulumi.get(self, "status")
|
|
171
179
|
|
|
@@ -186,9 +194,9 @@ class BgpIp(pulumi.CustomResource):
|
|
|
186
194
|
resource_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
187
195
|
__props__=None):
|
|
188
196
|
"""
|
|
189
|
-
Provides a
|
|
197
|
+
Provides a Anti-DDoS Pro (DdosBgp) Ip resource.
|
|
190
198
|
|
|
191
|
-
For information about
|
|
199
|
+
For information about Anti-DDoS Pro (DdosBgp) Ip and how to use it, see [What is Ip](https://www.alibabacloud.com/help/en/ddos-protection/latest/addip).
|
|
192
200
|
|
|
193
201
|
> **NOTE:** Available since v1.180.0.
|
|
194
202
|
|
|
@@ -203,9 +211,9 @@ class BgpIp(pulumi.CustomResource):
|
|
|
203
211
|
config = pulumi.Config()
|
|
204
212
|
name = config.get("name")
|
|
205
213
|
if name is None:
|
|
206
|
-
name = "
|
|
207
|
-
default = alicloud.
|
|
208
|
-
|
|
214
|
+
name = "terraform-example"
|
|
215
|
+
default = alicloud.get_account()
|
|
216
|
+
default_ddos_bgp_instance = alicloud.ddos.DdosBgpInstance("default",
|
|
209
217
|
name=name,
|
|
210
218
|
base_bandwidth=20,
|
|
211
219
|
bandwidth=-1,
|
|
@@ -215,14 +223,14 @@ class BgpIp(pulumi.CustomResource):
|
|
|
215
223
|
type="Enterprise")
|
|
216
224
|
default_eip_address = alicloud.ecs.EipAddress("default", address_name=name)
|
|
217
225
|
default_bgp_ip = alicloud.ddos.BgpIp("default",
|
|
218
|
-
instance_id=
|
|
226
|
+
instance_id=default_ddos_bgp_instance.id,
|
|
219
227
|
ip=default_eip_address.ip_address,
|
|
220
|
-
|
|
228
|
+
member_uid=default.id)
|
|
221
229
|
```
|
|
222
230
|
|
|
223
231
|
## Import
|
|
224
232
|
|
|
225
|
-
|
|
233
|
+
Anti-DDoS Pro (DdosBgp) Ip can be imported using the id, e.g.
|
|
226
234
|
|
|
227
235
|
```sh
|
|
228
236
|
$ pulumi import alicloud:ddos/bgpIp:BgpIp example <instance_id>:<ip>
|
|
@@ -230,10 +238,10 @@ class BgpIp(pulumi.CustomResource):
|
|
|
230
238
|
|
|
231
239
|
:param str resource_name: The name of the resource.
|
|
232
240
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
233
|
-
:param pulumi.Input[_builtins.str] instance_id: The ID of the
|
|
234
|
-
:param pulumi.Input[_builtins.str] ip: The IP address.
|
|
235
|
-
:param pulumi.Input[_builtins.str] member_uid: The member
|
|
236
|
-
:param pulumi.Input[_builtins.str] resource_group_id:
|
|
241
|
+
:param pulumi.Input[_builtins.str] instance_id: The ID of the Anti-DDoS Origin instance.
|
|
242
|
+
:param pulumi.Input[_builtins.str] ip: The IP address that you want to add.
|
|
243
|
+
:param pulumi.Input[_builtins.str] member_uid: The member to which the asset belongs.
|
|
244
|
+
:param pulumi.Input[_builtins.str] resource_group_id: Field `resource_group_id` has been deprecated from provider version 1.259.0.
|
|
237
245
|
"""
|
|
238
246
|
...
|
|
239
247
|
@overload
|
|
@@ -242,9 +250,9 @@ class BgpIp(pulumi.CustomResource):
|
|
|
242
250
|
args: BgpIpArgs,
|
|
243
251
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
244
252
|
"""
|
|
245
|
-
Provides a
|
|
253
|
+
Provides a Anti-DDoS Pro (DdosBgp) Ip resource.
|
|
246
254
|
|
|
247
|
-
For information about
|
|
255
|
+
For information about Anti-DDoS Pro (DdosBgp) Ip and how to use it, see [What is Ip](https://www.alibabacloud.com/help/en/ddos-protection/latest/addip).
|
|
248
256
|
|
|
249
257
|
> **NOTE:** Available since v1.180.0.
|
|
250
258
|
|
|
@@ -259,9 +267,9 @@ class BgpIp(pulumi.CustomResource):
|
|
|
259
267
|
config = pulumi.Config()
|
|
260
268
|
name = config.get("name")
|
|
261
269
|
if name is None:
|
|
262
|
-
name = "
|
|
263
|
-
default = alicloud.
|
|
264
|
-
|
|
270
|
+
name = "terraform-example"
|
|
271
|
+
default = alicloud.get_account()
|
|
272
|
+
default_ddos_bgp_instance = alicloud.ddos.DdosBgpInstance("default",
|
|
265
273
|
name=name,
|
|
266
274
|
base_bandwidth=20,
|
|
267
275
|
bandwidth=-1,
|
|
@@ -271,14 +279,14 @@ class BgpIp(pulumi.CustomResource):
|
|
|
271
279
|
type="Enterprise")
|
|
272
280
|
default_eip_address = alicloud.ecs.EipAddress("default", address_name=name)
|
|
273
281
|
default_bgp_ip = alicloud.ddos.BgpIp("default",
|
|
274
|
-
instance_id=
|
|
282
|
+
instance_id=default_ddos_bgp_instance.id,
|
|
275
283
|
ip=default_eip_address.ip_address,
|
|
276
|
-
|
|
284
|
+
member_uid=default.id)
|
|
277
285
|
```
|
|
278
286
|
|
|
279
287
|
## Import
|
|
280
288
|
|
|
281
|
-
|
|
289
|
+
Anti-DDoS Pro (DdosBgp) Ip can be imported using the id, e.g.
|
|
282
290
|
|
|
283
291
|
```sh
|
|
284
292
|
$ pulumi import alicloud:ddos/bgpIp:BgpIp example <instance_id>:<ip>
|
|
@@ -343,11 +351,11 @@ class BgpIp(pulumi.CustomResource):
|
|
|
343
351
|
:param str resource_name: The unique name of the resulting resource.
|
|
344
352
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
345
353
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
346
|
-
:param pulumi.Input[_builtins.str] instance_id: The ID of the
|
|
347
|
-
:param pulumi.Input[_builtins.str] ip: The IP address.
|
|
348
|
-
:param pulumi.Input[_builtins.str] member_uid: The member
|
|
349
|
-
:param pulumi.Input[_builtins.str] resource_group_id:
|
|
350
|
-
:param pulumi.Input[_builtins.str] status: The
|
|
354
|
+
:param pulumi.Input[_builtins.str] instance_id: The ID of the Anti-DDoS Origin instance.
|
|
355
|
+
:param pulumi.Input[_builtins.str] ip: The IP address that you want to add.
|
|
356
|
+
:param pulumi.Input[_builtins.str] member_uid: The member to which the asset belongs.
|
|
357
|
+
:param pulumi.Input[_builtins.str] resource_group_id: Field `resource_group_id` has been deprecated from provider version 1.259.0.
|
|
358
|
+
:param pulumi.Input[_builtins.str] status: The status of the IP address.
|
|
351
359
|
"""
|
|
352
360
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
353
361
|
|
|
@@ -364,7 +372,7 @@ class BgpIp(pulumi.CustomResource):
|
|
|
364
372
|
@pulumi.getter(name="instanceId")
|
|
365
373
|
def instance_id(self) -> pulumi.Output[_builtins.str]:
|
|
366
374
|
"""
|
|
367
|
-
The ID of the
|
|
375
|
+
The ID of the Anti-DDoS Origin instance.
|
|
368
376
|
"""
|
|
369
377
|
return pulumi.get(self, "instance_id")
|
|
370
378
|
|
|
@@ -372,7 +380,7 @@ class BgpIp(pulumi.CustomResource):
|
|
|
372
380
|
@pulumi.getter
|
|
373
381
|
def ip(self) -> pulumi.Output[_builtins.str]:
|
|
374
382
|
"""
|
|
375
|
-
The IP address.
|
|
383
|
+
The IP address that you want to add.
|
|
376
384
|
"""
|
|
377
385
|
return pulumi.get(self, "ip")
|
|
378
386
|
|
|
@@ -380,15 +388,16 @@ class BgpIp(pulumi.CustomResource):
|
|
|
380
388
|
@pulumi.getter(name="memberUid")
|
|
381
389
|
def member_uid(self) -> pulumi.Output[_builtins.str]:
|
|
382
390
|
"""
|
|
383
|
-
The member
|
|
391
|
+
The member to which the asset belongs.
|
|
384
392
|
"""
|
|
385
393
|
return pulumi.get(self, "member_uid")
|
|
386
394
|
|
|
387
395
|
@_builtins.property
|
|
388
396
|
@pulumi.getter(name="resourceGroupId")
|
|
397
|
+
@_utilities.deprecated("""Field `resource_group_id` has been deprecated from provider version 1.259.0.""")
|
|
389
398
|
def resource_group_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
390
399
|
"""
|
|
391
|
-
|
|
400
|
+
Field `resource_group_id` has been deprecated from provider version 1.259.0.
|
|
392
401
|
"""
|
|
393
402
|
return pulumi.get(self, "resource_group_id")
|
|
394
403
|
|
|
@@ -396,7 +405,7 @@ class BgpIp(pulumi.CustomResource):
|
|
|
396
405
|
@pulumi.getter
|
|
397
406
|
def status(self) -> pulumi.Output[_builtins.str]:
|
|
398
407
|
"""
|
|
399
|
-
The
|
|
408
|
+
The status of the IP address.
|
|
400
409
|
"""
|
|
401
410
|
return pulumi.get(self, "status")
|
|
402
411
|
|