pulumi-alicloud 3.62.1a1726481120__py3-none-any.whl → 3.63.0__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.

Files changed (41) hide show
  1. pulumi_alicloud/__init__.py +24 -0
  2. pulumi_alicloud/alb/acl.py +18 -19
  3. pulumi_alicloud/alb/health_check_template.py +96 -88
  4. pulumi_alicloud/cms/_inputs.py +6 -6
  5. pulumi_alicloud/cms/outputs.py +6 -6
  6. pulumi_alicloud/ddos/_inputs.py +8 -9
  7. pulumi_alicloud/ddos/domain_resource.py +446 -90
  8. pulumi_alicloud/ddos/outputs.py +7 -8
  9. pulumi_alicloud/eci/container_group.py +47 -0
  10. pulumi_alicloud/ecs/ecs_snapshot.py +199 -77
  11. pulumi_alicloud/ecs/snapshot.py +26 -8
  12. pulumi_alicloud/ess/__init__.py +1 -0
  13. pulumi_alicloud/ess/alarm.py +47 -0
  14. pulumi_alicloud/ess/server_group_attachment.py +552 -0
  15. pulumi_alicloud/ga/_inputs.py +23 -5
  16. pulumi_alicloud/ga/outputs.py +21 -5
  17. pulumi_alicloud/governance/account.py +61 -0
  18. pulumi_alicloud/gpdb/__init__.py +4 -0
  19. pulumi_alicloud/gpdb/_inputs.py +361 -3
  20. pulumi_alicloud/gpdb/db_instance_ip_array.py +533 -0
  21. pulumi_alicloud/gpdb/get_data_backups.py +288 -0
  22. pulumi_alicloud/gpdb/get_log_backups.py +225 -0
  23. pulumi_alicloud/gpdb/instance.py +47 -0
  24. pulumi_alicloud/gpdb/outputs.py +597 -4
  25. pulumi_alicloud/gpdb/streaming_job.py +1568 -0
  26. pulumi_alicloud/nlb/load_balancer.py +116 -0
  27. pulumi_alicloud/oos/get_secret_parameters.py +111 -9
  28. pulumi_alicloud/oos/outputs.py +22 -11
  29. pulumi_alicloud/pulumi-plugin.json +1 -1
  30. pulumi_alicloud/ram/get_account_alias.py +35 -2
  31. pulumi_alicloud/rds/instance.py +21 -21
  32. pulumi_alicloud/rocketmq/_inputs.py +79 -22
  33. pulumi_alicloud/rocketmq/outputs.py +85 -21
  34. pulumi_alicloud/rocketmq/rocket_mq_instance.py +307 -113
  35. pulumi_alicloud/vpc/peer_connection.py +127 -59
  36. pulumi_alicloud/vpc/peer_connection_accepter.py +263 -42
  37. pulumi_alicloud/vpc/route_entry.py +232 -210
  38. {pulumi_alicloud-3.62.1a1726481120.dist-info → pulumi_alicloud-3.63.0.dist-info}/METADATA +1 -1
  39. {pulumi_alicloud-3.62.1a1726481120.dist-info → pulumi_alicloud-3.63.0.dist-info}/RECORD +41 -36
  40. {pulumi_alicloud-3.62.1a1726481120.dist-info → pulumi_alicloud-3.63.0.dist-info}/WHEEL +1 -1
  41. {pulumi_alicloud-3.62.1a1726481120.dist-info → pulumi_alicloud-3.63.0.dist-info}/top_level.txt +0 -0
@@ -21,30 +21,67 @@ class DomainResourceArgs:
21
21
  proxy_types: pulumi.Input[Sequence[pulumi.Input['DomainResourceProxyTypeArgs']]],
22
22
  real_servers: pulumi.Input[Sequence[pulumi.Input[str]]],
23
23
  rs_type: pulumi.Input[int],
24
+ cert: Optional[pulumi.Input[str]] = None,
25
+ cert_identifier: Optional[pulumi.Input[str]] = None,
26
+ cert_name: Optional[pulumi.Input[str]] = None,
27
+ cert_region: Optional[pulumi.Input[str]] = None,
24
28
  https_ext: Optional[pulumi.Input[str]] = None,
29
+ key: Optional[pulumi.Input[str]] = None,
25
30
  ocsp_enabled: Optional[pulumi.Input[bool]] = None):
26
31
  """
27
32
  The set of arguments for constructing a DomainResource resource.
28
- :param pulumi.Input[str] domain: The domain name of the website that you want to add to the instance.
29
- :param pulumi.Input[Sequence[pulumi.Input[str]]] instance_ids: A list of instance ID that you want to associate. If this parameter is empty, only the domain name of the website is added but no instance is associated with the website.
30
- > **NOTE:** There is a potential diff error because of the order of `instance_ids` values indefinite. So, from version 1.161.0, `instance_ids` type has been updated as `set` from `list`, and you can use tolist to convert it to a list.
33
+ :param pulumi.Input[str] domain: The domain name for which you want to configure the Static Page Caching policy.
34
+
35
+ > **NOTE:** You can call the [DescribeDomains](https://www.alibabacloud.com/help/en/doc-detail/91724.html) operation to query all the domain names that are added to Anti-DDoS Pro or Anti-DDoS Premium.
36
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] instance_ids: InstanceIds
31
37
  :param pulumi.Input[Sequence[pulumi.Input['DomainResourceProxyTypeArgs']]] proxy_types: Protocol type and port number information. See `proxy_types` below.
32
- > **NOTE:** From version 1.206.0, `proxy_types` can be modified.
33
- :param pulumi.Input[Sequence[pulumi.Input[str]]] real_servers: the IP address. This field is required and must be a string array.
34
- :param pulumi.Input[int] rs_type: The address type of the origin server. Use the domain name of the origin server if you deploy proxies, such as Web Application Firewall (WAF), between the origin server and the Anti-DDoS Pro or Anti-DDoS Premium instance. If you use the domain name, you must enter the address of the proxy, such as the CNAME of WAF. Valid values:
35
- :param pulumi.Input[str] https_ext: The advanced HTTPS settings. This parameter takes effect only when the value of ProxyType includes https. This parameter is a string that contains a JSON struct. The JSON struct includes the following fields:
36
- - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enforce HTTPS Routing is turned off. The value `1` indicates that Enforce HTTPS Routing is turned on. The default value is `0`. If your website supports both HTTP and HTTPS, this feature suits your needs. If you turn on the switch, all HTTP requests are redirected to HTTPS requests on port 443 by default.
37
- - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP is turned off. The value `1` indicates that Enable HTTP is turned on. The default value is `0`. If your website does not support HTTPS, this feature suits your needs. If you turn on the switch, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. The feature can also redirect WebSockets requests to WebSocket requests. All requests are redirected over port 80.
38
- - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP/2 is turned off. The value `1` indicates that Enable HTTP/2 is turned on. The default value is `0`. After you turn on the switch, the protocol type is HTTP/2.
39
- :param pulumi.Input[bool] ocsp_enabled: Specifies whether to enable the OCSP feature. Default value: `false`. Valid values:
38
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] real_servers: Server address information of the source station.
39
+ :param pulumi.Input[int] rs_type: The address type of the origin server. Valid values:
40
+ :param pulumi.Input[str] cert: The private key of the certificate that you want to associate. This parameter must be used together with the CertName and Cert parameters.
41
+
42
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
43
+ :param pulumi.Input[str] cert_identifier: The name of the certificate.
44
+
45
+ > **NOTE:** You can specify the name of the certificate that you want to associate.
46
+ :param pulumi.Input[str] cert_name: The public key of the certificate that you want to associate. This parameter must be used together with the CertName and Key parameters.
47
+
48
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
49
+ :param pulumi.Input[str] cert_region: The region of the certificate. `cn-hangzhou` and `ap-southeast-1` are supported. The default value is `cn-hangzhou`.
50
+ :param pulumi.Input[str] https_ext: The advanced HTTPS settings. This parameter takes effect only when the value of the `ProxyType` parameter includes `https`. The value is a string that consists of a JSON struct. The JSON struct contains the following fields:
51
+
52
+ - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enforce HTTPS Routing is turned off. The value 1 indicates that Enforce HTTPS Routing is turned on. The default value is 0.
53
+
54
+ If your website supports both HTTP and HTTPS, this feature meets your business requirements. If you enable this feature, all HTTP requests to access the website are redirected to HTTPS requests on the standard port 443.
55
+
56
+ - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP is turned off. The value 1 indicates that Enable HTTP is turned on. The default value is 0.
57
+
58
+ If your website does not support HTTPS, this feature meets your business requirements If this feature is enabled, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. This feature can redirect WebSockets requests to WebSocket requests. Requests are redirected over the standard port 80.
59
+
60
+ - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional. Data type: integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP/2 is turned off. The value 1 indicates that Enable HTTP/2 is turned on. The default value is 0.
61
+
62
+ After you turn on the switch, HTTP/2 is used.
63
+ :param pulumi.Input[str] key: The globally unique ID of the certificate. The value is in the "Certificate ID-cn-hangzhou" format. For example, if the ID of the certificate is 123, the value of the CertIdentifier parameter is 123-cn-hangzhou.
64
+
65
+ > **NOTE:** You can specify only one of this parameter and the CertId parameter.
66
+ :param pulumi.Input[bool] ocsp_enabled: Specifies whether to enable the OCSP feature. Valid values:
40
67
  """
41
68
  pulumi.set(__self__, "domain", domain)
42
69
  pulumi.set(__self__, "instance_ids", instance_ids)
43
70
  pulumi.set(__self__, "proxy_types", proxy_types)
44
71
  pulumi.set(__self__, "real_servers", real_servers)
45
72
  pulumi.set(__self__, "rs_type", rs_type)
73
+ if cert is not None:
74
+ pulumi.set(__self__, "cert", cert)
75
+ if cert_identifier is not None:
76
+ pulumi.set(__self__, "cert_identifier", cert_identifier)
77
+ if cert_name is not None:
78
+ pulumi.set(__self__, "cert_name", cert_name)
79
+ if cert_region is not None:
80
+ pulumi.set(__self__, "cert_region", cert_region)
46
81
  if https_ext is not None:
47
82
  pulumi.set(__self__, "https_ext", https_ext)
83
+ if key is not None:
84
+ pulumi.set(__self__, "key", key)
48
85
  if ocsp_enabled is not None:
49
86
  pulumi.set(__self__, "ocsp_enabled", ocsp_enabled)
50
87
 
@@ -52,7 +89,9 @@ class DomainResourceArgs:
52
89
  @pulumi.getter
53
90
  def domain(self) -> pulumi.Input[str]:
54
91
  """
55
- The domain name of the website that you want to add to the instance.
92
+ The domain name for which you want to configure the Static Page Caching policy.
93
+
94
+ > **NOTE:** You can call the [DescribeDomains](https://www.alibabacloud.com/help/en/doc-detail/91724.html) operation to query all the domain names that are added to Anti-DDoS Pro or Anti-DDoS Premium.
56
95
  """
57
96
  return pulumi.get(self, "domain")
58
97
 
@@ -64,8 +103,7 @@ class DomainResourceArgs:
64
103
  @pulumi.getter(name="instanceIds")
65
104
  def instance_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
66
105
  """
67
- A list of instance ID that you want to associate. If this parameter is empty, only the domain name of the website is added but no instance is associated with the website.
68
- > **NOTE:** There is a potential diff error because of the order of `instance_ids` values indefinite. So, from version 1.161.0, `instance_ids` type has been updated as `set` from `list`, and you can use tolist to convert it to a list.
106
+ InstanceIds
69
107
  """
70
108
  return pulumi.get(self, "instance_ids")
71
109
 
@@ -78,7 +116,6 @@ class DomainResourceArgs:
78
116
  def proxy_types(self) -> pulumi.Input[Sequence[pulumi.Input['DomainResourceProxyTypeArgs']]]:
79
117
  """
80
118
  Protocol type and port number information. See `proxy_types` below.
81
- > **NOTE:** From version 1.206.0, `proxy_types` can be modified.
82
119
  """
83
120
  return pulumi.get(self, "proxy_types")
84
121
 
@@ -90,7 +127,7 @@ class DomainResourceArgs:
90
127
  @pulumi.getter(name="realServers")
91
128
  def real_servers(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
92
129
  """
93
- the IP address. This field is required and must be a string array.
130
+ Server address information of the source station.
94
131
  """
95
132
  return pulumi.get(self, "real_servers")
96
133
 
@@ -102,7 +139,7 @@ class DomainResourceArgs:
102
139
  @pulumi.getter(name="rsType")
103
140
  def rs_type(self) -> pulumi.Input[int]:
104
141
  """
105
- The address type of the origin server. Use the domain name of the origin server if you deploy proxies, such as Web Application Firewall (WAF), between the origin server and the Anti-DDoS Pro or Anti-DDoS Premium instance. If you use the domain name, you must enter the address of the proxy, such as the CNAME of WAF. Valid values:
142
+ The address type of the origin server. Valid values:
106
143
  """
107
144
  return pulumi.get(self, "rs_type")
108
145
 
@@ -110,14 +147,77 @@ class DomainResourceArgs:
110
147
  def rs_type(self, value: pulumi.Input[int]):
111
148
  pulumi.set(self, "rs_type", value)
112
149
 
150
+ @property
151
+ @pulumi.getter
152
+ def cert(self) -> Optional[pulumi.Input[str]]:
153
+ """
154
+ The private key of the certificate that you want to associate. This parameter must be used together with the CertName and Cert parameters.
155
+
156
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
157
+ """
158
+ return pulumi.get(self, "cert")
159
+
160
+ @cert.setter
161
+ def cert(self, value: Optional[pulumi.Input[str]]):
162
+ pulumi.set(self, "cert", value)
163
+
164
+ @property
165
+ @pulumi.getter(name="certIdentifier")
166
+ def cert_identifier(self) -> Optional[pulumi.Input[str]]:
167
+ """
168
+ The name of the certificate.
169
+
170
+ > **NOTE:** You can specify the name of the certificate that you want to associate.
171
+ """
172
+ return pulumi.get(self, "cert_identifier")
173
+
174
+ @cert_identifier.setter
175
+ def cert_identifier(self, value: Optional[pulumi.Input[str]]):
176
+ pulumi.set(self, "cert_identifier", value)
177
+
178
+ @property
179
+ @pulumi.getter(name="certName")
180
+ def cert_name(self) -> Optional[pulumi.Input[str]]:
181
+ """
182
+ The public key of the certificate that you want to associate. This parameter must be used together with the CertName and Key parameters.
183
+
184
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
185
+ """
186
+ return pulumi.get(self, "cert_name")
187
+
188
+ @cert_name.setter
189
+ def cert_name(self, value: Optional[pulumi.Input[str]]):
190
+ pulumi.set(self, "cert_name", value)
191
+
192
+ @property
193
+ @pulumi.getter(name="certRegion")
194
+ def cert_region(self) -> Optional[pulumi.Input[str]]:
195
+ """
196
+ The region of the certificate. `cn-hangzhou` and `ap-southeast-1` are supported. The default value is `cn-hangzhou`.
197
+ """
198
+ return pulumi.get(self, "cert_region")
199
+
200
+ @cert_region.setter
201
+ def cert_region(self, value: Optional[pulumi.Input[str]]):
202
+ pulumi.set(self, "cert_region", value)
203
+
113
204
  @property
114
205
  @pulumi.getter(name="httpsExt")
115
206
  def https_ext(self) -> Optional[pulumi.Input[str]]:
116
207
  """
117
- The advanced HTTPS settings. This parameter takes effect only when the value of ProxyType includes https. This parameter is a string that contains a JSON struct. The JSON struct includes the following fields:
118
- - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enforce HTTPS Routing is turned off. The value `1` indicates that Enforce HTTPS Routing is turned on. The default value is `0`. If your website supports both HTTP and HTTPS, this feature suits your needs. If you turn on the switch, all HTTP requests are redirected to HTTPS requests on port 443 by default.
119
- - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP is turned off. The value `1` indicates that Enable HTTP is turned on. The default value is `0`. If your website does not support HTTPS, this feature suits your needs. If you turn on the switch, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. The feature can also redirect WebSockets requests to WebSocket requests. All requests are redirected over port 80.
120
- - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP/2 is turned off. The value `1` indicates that Enable HTTP/2 is turned on. The default value is `0`. After you turn on the switch, the protocol type is HTTP/2.
208
+ The advanced HTTPS settings. This parameter takes effect only when the value of the `ProxyType` parameter includes `https`. The value is a string that consists of a JSON struct. The JSON struct contains the following fields:
209
+
210
+ - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enforce HTTPS Routing is turned off. The value 1 indicates that Enforce HTTPS Routing is turned on. The default value is 0.
211
+
212
+ If your website supports both HTTP and HTTPS, this feature meets your business requirements. If you enable this feature, all HTTP requests to access the website are redirected to HTTPS requests on the standard port 443.
213
+
214
+ - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP is turned off. The value 1 indicates that Enable HTTP is turned on. The default value is 0.
215
+
216
+ If your website does not support HTTPS, this feature meets your business requirements If this feature is enabled, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. This feature can redirect WebSockets requests to WebSocket requests. Requests are redirected over the standard port 80.
217
+
218
+ - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional. Data type: integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP/2 is turned off. The value 1 indicates that Enable HTTP/2 is turned on. The default value is 0.
219
+
220
+ After you turn on the switch, HTTP/2 is used.
121
221
  """
122
222
  return pulumi.get(self, "https_ext")
123
223
 
@@ -125,11 +225,25 @@ class DomainResourceArgs:
125
225
  def https_ext(self, value: Optional[pulumi.Input[str]]):
126
226
  pulumi.set(self, "https_ext", value)
127
227
 
228
+ @property
229
+ @pulumi.getter
230
+ def key(self) -> Optional[pulumi.Input[str]]:
231
+ """
232
+ The globally unique ID of the certificate. The value is in the "Certificate ID-cn-hangzhou" format. For example, if the ID of the certificate is 123, the value of the CertIdentifier parameter is 123-cn-hangzhou.
233
+
234
+ > **NOTE:** You can specify only one of this parameter and the CertId parameter.
235
+ """
236
+ return pulumi.get(self, "key")
237
+
238
+ @key.setter
239
+ def key(self, value: Optional[pulumi.Input[str]]):
240
+ pulumi.set(self, "key", value)
241
+
128
242
  @property
129
243
  @pulumi.getter(name="ocspEnabled")
130
244
  def ocsp_enabled(self) -> Optional[pulumi.Input[bool]]:
131
245
  """
132
- Specifies whether to enable the OCSP feature. Default value: `false`. Valid values:
246
+ Specifies whether to enable the OCSP feature. Valid values:
133
247
  """
134
248
  return pulumi.get(self, "ocsp_enabled")
135
249
 
@@ -141,30 +255,65 @@ class DomainResourceArgs:
141
255
  @pulumi.input_type
142
256
  class _DomainResourceState:
143
257
  def __init__(__self__, *,
258
+ cert: Optional[pulumi.Input[str]] = None,
259
+ cert_identifier: Optional[pulumi.Input[str]] = None,
260
+ cert_name: Optional[pulumi.Input[str]] = None,
261
+ cert_region: Optional[pulumi.Input[str]] = None,
144
262
  cname: Optional[pulumi.Input[str]] = None,
145
263
  domain: Optional[pulumi.Input[str]] = None,
146
264
  https_ext: Optional[pulumi.Input[str]] = None,
147
265
  instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
266
+ key: Optional[pulumi.Input[str]] = None,
148
267
  ocsp_enabled: Optional[pulumi.Input[bool]] = None,
149
268
  proxy_types: Optional[pulumi.Input[Sequence[pulumi.Input['DomainResourceProxyTypeArgs']]]] = None,
150
269
  real_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
151
270
  rs_type: Optional[pulumi.Input[int]] = None):
152
271
  """
153
272
  Input properties used for looking up and filtering DomainResource resources.
154
- :param pulumi.Input[str] cname: (Available since v1.207.2) The CNAME assigned to the domain name.
155
- :param pulumi.Input[str] domain: The domain name of the website that you want to add to the instance.
156
- :param pulumi.Input[str] https_ext: The advanced HTTPS settings. This parameter takes effect only when the value of ProxyType includes https. This parameter is a string that contains a JSON struct. The JSON struct includes the following fields:
157
- - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enforce HTTPS Routing is turned off. The value `1` indicates that Enforce HTTPS Routing is turned on. The default value is `0`. If your website supports both HTTP and HTTPS, this feature suits your needs. If you turn on the switch, all HTTP requests are redirected to HTTPS requests on port 443 by default.
158
- - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP is turned off. The value `1` indicates that Enable HTTP is turned on. The default value is `0`. If your website does not support HTTPS, this feature suits your needs. If you turn on the switch, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. The feature can also redirect WebSockets requests to WebSocket requests. All requests are redirected over port 80.
159
- - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP/2 is turned off. The value `1` indicates that Enable HTTP/2 is turned on. The default value is `0`. After you turn on the switch, the protocol type is HTTP/2.
160
- :param pulumi.Input[Sequence[pulumi.Input[str]]] instance_ids: A list of instance ID that you want to associate. If this parameter is empty, only the domain name of the website is added but no instance is associated with the website.
161
- > **NOTE:** There is a potential diff error because of the order of `instance_ids` values indefinite. So, from version 1.161.0, `instance_ids` type has been updated as `set` from `list`, and you can use tolist to convert it to a list.
162
- :param pulumi.Input[bool] ocsp_enabled: Specifies whether to enable the OCSP feature. Default value: `false`. Valid values:
273
+ :param pulumi.Input[str] cert: The private key of the certificate that you want to associate. This parameter must be used together with the CertName and Cert parameters.
274
+
275
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
276
+ :param pulumi.Input[str] cert_identifier: The name of the certificate.
277
+
278
+ > **NOTE:** You can specify the name of the certificate that you want to associate.
279
+ :param pulumi.Input[str] cert_name: The public key of the certificate that you want to associate. This parameter must be used together with the CertName and Key parameters.
280
+
281
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
282
+ :param pulumi.Input[str] cert_region: The region of the certificate. `cn-hangzhou` and `ap-southeast-1` are supported. The default value is `cn-hangzhou`.
283
+ :param pulumi.Input[str] cname: The CNAME address to query.
284
+ :param pulumi.Input[str] domain: The domain name for which you want to configure the Static Page Caching policy.
285
+
286
+ > **NOTE:** You can call the [DescribeDomains](https://www.alibabacloud.com/help/en/doc-detail/91724.html) operation to query all the domain names that are added to Anti-DDoS Pro or Anti-DDoS Premium.
287
+ :param pulumi.Input[str] https_ext: The advanced HTTPS settings. This parameter takes effect only when the value of the `ProxyType` parameter includes `https`. The value is a string that consists of a JSON struct. The JSON struct contains the following fields:
288
+
289
+ - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enforce HTTPS Routing is turned off. The value 1 indicates that Enforce HTTPS Routing is turned on. The default value is 0.
290
+
291
+ If your website supports both HTTP and HTTPS, this feature meets your business requirements. If you enable this feature, all HTTP requests to access the website are redirected to HTTPS requests on the standard port 443.
292
+
293
+ - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP is turned off. The value 1 indicates that Enable HTTP is turned on. The default value is 0.
294
+
295
+ If your website does not support HTTPS, this feature meets your business requirements If this feature is enabled, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. This feature can redirect WebSockets requests to WebSocket requests. Requests are redirected over the standard port 80.
296
+
297
+ - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional. Data type: integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP/2 is turned off. The value 1 indicates that Enable HTTP/2 is turned on. The default value is 0.
298
+
299
+ After you turn on the switch, HTTP/2 is used.
300
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] instance_ids: InstanceIds
301
+ :param pulumi.Input[str] key: The globally unique ID of the certificate. The value is in the "Certificate ID-cn-hangzhou" format. For example, if the ID of the certificate is 123, the value of the CertIdentifier parameter is 123-cn-hangzhou.
302
+
303
+ > **NOTE:** You can specify only one of this parameter and the CertId parameter.
304
+ :param pulumi.Input[bool] ocsp_enabled: Specifies whether to enable the OCSP feature. Valid values:
163
305
  :param pulumi.Input[Sequence[pulumi.Input['DomainResourceProxyTypeArgs']]] proxy_types: Protocol type and port number information. See `proxy_types` below.
164
- > **NOTE:** From version 1.206.0, `proxy_types` can be modified.
165
- :param pulumi.Input[Sequence[pulumi.Input[str]]] real_servers: the IP address. This field is required and must be a string array.
166
- :param pulumi.Input[int] rs_type: The address type of the origin server. Use the domain name of the origin server if you deploy proxies, such as Web Application Firewall (WAF), between the origin server and the Anti-DDoS Pro or Anti-DDoS Premium instance. If you use the domain name, you must enter the address of the proxy, such as the CNAME of WAF. Valid values:
167
- """
306
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] real_servers: Server address information of the source station.
307
+ :param pulumi.Input[int] rs_type: The address type of the origin server. Valid values:
308
+ """
309
+ if cert is not None:
310
+ pulumi.set(__self__, "cert", cert)
311
+ if cert_identifier is not None:
312
+ pulumi.set(__self__, "cert_identifier", cert_identifier)
313
+ if cert_name is not None:
314
+ pulumi.set(__self__, "cert_name", cert_name)
315
+ if cert_region is not None:
316
+ pulumi.set(__self__, "cert_region", cert_region)
168
317
  if cname is not None:
169
318
  pulumi.set(__self__, "cname", cname)
170
319
  if domain is not None:
@@ -173,6 +322,8 @@ class _DomainResourceState:
173
322
  pulumi.set(__self__, "https_ext", https_ext)
174
323
  if instance_ids is not None:
175
324
  pulumi.set(__self__, "instance_ids", instance_ids)
325
+ if key is not None:
326
+ pulumi.set(__self__, "key", key)
176
327
  if ocsp_enabled is not None:
177
328
  pulumi.set(__self__, "ocsp_enabled", ocsp_enabled)
178
329
  if proxy_types is not None:
@@ -182,11 +333,65 @@ class _DomainResourceState:
182
333
  if rs_type is not None:
183
334
  pulumi.set(__self__, "rs_type", rs_type)
184
335
 
336
+ @property
337
+ @pulumi.getter
338
+ def cert(self) -> Optional[pulumi.Input[str]]:
339
+ """
340
+ The private key of the certificate that you want to associate. This parameter must be used together with the CertName and Cert parameters.
341
+
342
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
343
+ """
344
+ return pulumi.get(self, "cert")
345
+
346
+ @cert.setter
347
+ def cert(self, value: Optional[pulumi.Input[str]]):
348
+ pulumi.set(self, "cert", value)
349
+
350
+ @property
351
+ @pulumi.getter(name="certIdentifier")
352
+ def cert_identifier(self) -> Optional[pulumi.Input[str]]:
353
+ """
354
+ The name of the certificate.
355
+
356
+ > **NOTE:** You can specify the name of the certificate that you want to associate.
357
+ """
358
+ return pulumi.get(self, "cert_identifier")
359
+
360
+ @cert_identifier.setter
361
+ def cert_identifier(self, value: Optional[pulumi.Input[str]]):
362
+ pulumi.set(self, "cert_identifier", value)
363
+
364
+ @property
365
+ @pulumi.getter(name="certName")
366
+ def cert_name(self) -> Optional[pulumi.Input[str]]:
367
+ """
368
+ The public key of the certificate that you want to associate. This parameter must be used together with the CertName and Key parameters.
369
+
370
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
371
+ """
372
+ return pulumi.get(self, "cert_name")
373
+
374
+ @cert_name.setter
375
+ def cert_name(self, value: Optional[pulumi.Input[str]]):
376
+ pulumi.set(self, "cert_name", value)
377
+
378
+ @property
379
+ @pulumi.getter(name="certRegion")
380
+ def cert_region(self) -> Optional[pulumi.Input[str]]:
381
+ """
382
+ The region of the certificate. `cn-hangzhou` and `ap-southeast-1` are supported. The default value is `cn-hangzhou`.
383
+ """
384
+ return pulumi.get(self, "cert_region")
385
+
386
+ @cert_region.setter
387
+ def cert_region(self, value: Optional[pulumi.Input[str]]):
388
+ pulumi.set(self, "cert_region", value)
389
+
185
390
  @property
186
391
  @pulumi.getter
187
392
  def cname(self) -> Optional[pulumi.Input[str]]:
188
393
  """
189
- (Available since v1.207.2) The CNAME assigned to the domain name.
394
+ The CNAME address to query.
190
395
  """
191
396
  return pulumi.get(self, "cname")
192
397
 
@@ -198,7 +403,9 @@ class _DomainResourceState:
198
403
  @pulumi.getter
199
404
  def domain(self) -> Optional[pulumi.Input[str]]:
200
405
  """
201
- The domain name of the website that you want to add to the instance.
406
+ The domain name for which you want to configure the Static Page Caching policy.
407
+
408
+ > **NOTE:** You can call the [DescribeDomains](https://www.alibabacloud.com/help/en/doc-detail/91724.html) operation to query all the domain names that are added to Anti-DDoS Pro or Anti-DDoS Premium.
202
409
  """
203
410
  return pulumi.get(self, "domain")
204
411
 
@@ -210,10 +417,19 @@ class _DomainResourceState:
210
417
  @pulumi.getter(name="httpsExt")
211
418
  def https_ext(self) -> Optional[pulumi.Input[str]]:
212
419
  """
213
- The advanced HTTPS settings. This parameter takes effect only when the value of ProxyType includes https. This parameter is a string that contains a JSON struct. The JSON struct includes the following fields:
214
- - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enforce HTTPS Routing is turned off. The value `1` indicates that Enforce HTTPS Routing is turned on. The default value is `0`. If your website supports both HTTP and HTTPS, this feature suits your needs. If you turn on the switch, all HTTP requests are redirected to HTTPS requests on port 443 by default.
215
- - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP is turned off. The value `1` indicates that Enable HTTP is turned on. The default value is `0`. If your website does not support HTTPS, this feature suits your needs. If you turn on the switch, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. The feature can also redirect WebSockets requests to WebSocket requests. All requests are redirected over port 80.
216
- - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP/2 is turned off. The value `1` indicates that Enable HTTP/2 is turned on. The default value is `0`. After you turn on the switch, the protocol type is HTTP/2.
420
+ The advanced HTTPS settings. This parameter takes effect only when the value of the `ProxyType` parameter includes `https`. The value is a string that consists of a JSON struct. The JSON struct contains the following fields:
421
+
422
+ - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enforce HTTPS Routing is turned off. The value 1 indicates that Enforce HTTPS Routing is turned on. The default value is 0.
423
+
424
+ If your website supports both HTTP and HTTPS, this feature meets your business requirements. If you enable this feature, all HTTP requests to access the website are redirected to HTTPS requests on the standard port 443.
425
+
426
+ - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP is turned off. The value 1 indicates that Enable HTTP is turned on. The default value is 0.
427
+
428
+ If your website does not support HTTPS, this feature meets your business requirements If this feature is enabled, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. This feature can redirect WebSockets requests to WebSocket requests. Requests are redirected over the standard port 80.
429
+
430
+ - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional. Data type: integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP/2 is turned off. The value 1 indicates that Enable HTTP/2 is turned on. The default value is 0.
431
+
432
+ After you turn on the switch, HTTP/2 is used.
217
433
  """
218
434
  return pulumi.get(self, "https_ext")
219
435
 
@@ -225,8 +441,7 @@ class _DomainResourceState:
225
441
  @pulumi.getter(name="instanceIds")
226
442
  def instance_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
227
443
  """
228
- A list of instance ID that you want to associate. If this parameter is empty, only the domain name of the website is added but no instance is associated with the website.
229
- > **NOTE:** There is a potential diff error because of the order of `instance_ids` values indefinite. So, from version 1.161.0, `instance_ids` type has been updated as `set` from `list`, and you can use tolist to convert it to a list.
444
+ InstanceIds
230
445
  """
231
446
  return pulumi.get(self, "instance_ids")
232
447
 
@@ -234,11 +449,25 @@ class _DomainResourceState:
234
449
  def instance_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
235
450
  pulumi.set(self, "instance_ids", value)
236
451
 
452
+ @property
453
+ @pulumi.getter
454
+ def key(self) -> Optional[pulumi.Input[str]]:
455
+ """
456
+ The globally unique ID of the certificate. The value is in the "Certificate ID-cn-hangzhou" format. For example, if the ID of the certificate is 123, the value of the CertIdentifier parameter is 123-cn-hangzhou.
457
+
458
+ > **NOTE:** You can specify only one of this parameter and the CertId parameter.
459
+ """
460
+ return pulumi.get(self, "key")
461
+
462
+ @key.setter
463
+ def key(self, value: Optional[pulumi.Input[str]]):
464
+ pulumi.set(self, "key", value)
465
+
237
466
  @property
238
467
  @pulumi.getter(name="ocspEnabled")
239
468
  def ocsp_enabled(self) -> Optional[pulumi.Input[bool]]:
240
469
  """
241
- Specifies whether to enable the OCSP feature. Default value: `false`. Valid values:
470
+ Specifies whether to enable the OCSP feature. Valid values:
242
471
  """
243
472
  return pulumi.get(self, "ocsp_enabled")
244
473
 
@@ -251,7 +480,6 @@ class _DomainResourceState:
251
480
  def proxy_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DomainResourceProxyTypeArgs']]]]:
252
481
  """
253
482
  Protocol type and port number information. See `proxy_types` below.
254
- > **NOTE:** From version 1.206.0, `proxy_types` can be modified.
255
483
  """
256
484
  return pulumi.get(self, "proxy_types")
257
485
 
@@ -263,7 +491,7 @@ class _DomainResourceState:
263
491
  @pulumi.getter(name="realServers")
264
492
  def real_servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
265
493
  """
266
- the IP address. This field is required and must be a string array.
494
+ Server address information of the source station.
267
495
  """
268
496
  return pulumi.get(self, "real_servers")
269
497
 
@@ -275,7 +503,7 @@ class _DomainResourceState:
275
503
  @pulumi.getter(name="rsType")
276
504
  def rs_type(self) -> Optional[pulumi.Input[int]]:
277
505
  """
278
- The address type of the origin server. Use the domain name of the origin server if you deploy proxies, such as Web Application Firewall (WAF), between the origin server and the Anti-DDoS Pro or Anti-DDoS Premium instance. If you use the domain name, you must enter the address of the proxy, such as the CNAME of WAF. Valid values:
506
+ The address type of the origin server. Valid values:
279
507
  """
280
508
  return pulumi.get(self, "rs_type")
281
509
 
@@ -289,18 +517,23 @@ class DomainResource(pulumi.CustomResource):
289
517
  def __init__(__self__,
290
518
  resource_name: str,
291
519
  opts: Optional[pulumi.ResourceOptions] = None,
520
+ cert: Optional[pulumi.Input[str]] = None,
521
+ cert_identifier: Optional[pulumi.Input[str]] = None,
522
+ cert_name: Optional[pulumi.Input[str]] = None,
523
+ cert_region: Optional[pulumi.Input[str]] = None,
292
524
  domain: Optional[pulumi.Input[str]] = None,
293
525
  https_ext: Optional[pulumi.Input[str]] = None,
294
526
  instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
527
+ key: Optional[pulumi.Input[str]] = None,
295
528
  ocsp_enabled: Optional[pulumi.Input[bool]] = None,
296
529
  proxy_types: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DomainResourceProxyTypeArgs', 'DomainResourceProxyTypeArgsDict']]]]] = None,
297
530
  real_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
298
531
  rs_type: Optional[pulumi.Input[int]] = None,
299
532
  __props__=None):
300
533
  """
301
- Provides a Anti-DDoS Pro Domain Resource resource.
534
+ Provides a Ddos Coo Domain Resource resource.
302
535
 
303
- For information about Anti-DDoS Pro Domain Resource and how to use it, see [What is Domain Resource](https://www.alibabacloud.com/help/en/ddos-protection/latest/api-ddoscoo-2020-01-01-createwebrule).
536
+ For information about Ddos Coo Domain Resource and how to use it, see [What is Domain Resource](https://www.alibabacloud.com/help/en/anti-ddos/anti-ddos-pro-and-premium/developer-reference/api-ddoscoo-2020-01-01-createdomainresource).
304
537
 
305
538
  > **NOTE:** Available since v1.123.0.
306
539
 
@@ -342,26 +575,48 @@ class DomainResource(pulumi.CustomResource):
342
575
 
343
576
  ## Import
344
577
 
345
- Anti-DDoS Pro Domain Resource can be imported using the id, e.g.
578
+ Ddos Coo Domain Resource can be imported using the id, e.g.
346
579
 
347
580
  ```sh
348
- $ pulumi import alicloud:ddos/domainResource:DomainResource example <domain>
581
+ $ pulumi import alicloud:ddos/domainResource:DomainResource example <id>
349
582
  ```
350
583
 
351
584
  :param str resource_name: The name of the resource.
352
585
  :param pulumi.ResourceOptions opts: Options for the resource.
353
- :param pulumi.Input[str] domain: The domain name of the website that you want to add to the instance.
354
- :param pulumi.Input[str] https_ext: The advanced HTTPS settings. This parameter takes effect only when the value of ProxyType includes https. This parameter is a string that contains a JSON struct. The JSON struct includes the following fields:
355
- - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enforce HTTPS Routing is turned off. The value `1` indicates that Enforce HTTPS Routing is turned on. The default value is `0`. If your website supports both HTTP and HTTPS, this feature suits your needs. If you turn on the switch, all HTTP requests are redirected to HTTPS requests on port 443 by default.
356
- - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP is turned off. The value `1` indicates that Enable HTTP is turned on. The default value is `0`. If your website does not support HTTPS, this feature suits your needs. If you turn on the switch, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. The feature can also redirect WebSockets requests to WebSocket requests. All requests are redirected over port 80.
357
- - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP/2 is turned off. The value `1` indicates that Enable HTTP/2 is turned on. The default value is `0`. After you turn on the switch, the protocol type is HTTP/2.
358
- :param pulumi.Input[Sequence[pulumi.Input[str]]] instance_ids: A list of instance ID that you want to associate. If this parameter is empty, only the domain name of the website is added but no instance is associated with the website.
359
- > **NOTE:** There is a potential diff error because of the order of `instance_ids` values indefinite. So, from version 1.161.0, `instance_ids` type has been updated as `set` from `list`, and you can use tolist to convert it to a list.
360
- :param pulumi.Input[bool] ocsp_enabled: Specifies whether to enable the OCSP feature. Default value: `false`. Valid values:
586
+ :param pulumi.Input[str] cert: The private key of the certificate that you want to associate. This parameter must be used together with the CertName and Cert parameters.
587
+
588
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
589
+ :param pulumi.Input[str] cert_identifier: The name of the certificate.
590
+
591
+ > **NOTE:** You can specify the name of the certificate that you want to associate.
592
+ :param pulumi.Input[str] cert_name: The public key of the certificate that you want to associate. This parameter must be used together with the CertName and Key parameters.
593
+
594
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
595
+ :param pulumi.Input[str] cert_region: The region of the certificate. `cn-hangzhou` and `ap-southeast-1` are supported. The default value is `cn-hangzhou`.
596
+ :param pulumi.Input[str] domain: The domain name for which you want to configure the Static Page Caching policy.
597
+
598
+ > **NOTE:** You can call the [DescribeDomains](https://www.alibabacloud.com/help/en/doc-detail/91724.html) operation to query all the domain names that are added to Anti-DDoS Pro or Anti-DDoS Premium.
599
+ :param pulumi.Input[str] https_ext: The advanced HTTPS settings. This parameter takes effect only when the value of the `ProxyType` parameter includes `https`. The value is a string that consists of a JSON struct. The JSON struct contains the following fields:
600
+
601
+ - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enforce HTTPS Routing is turned off. The value 1 indicates that Enforce HTTPS Routing is turned on. The default value is 0.
602
+
603
+ If your website supports both HTTP and HTTPS, this feature meets your business requirements. If you enable this feature, all HTTP requests to access the website are redirected to HTTPS requests on the standard port 443.
604
+
605
+ - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP is turned off. The value 1 indicates that Enable HTTP is turned on. The default value is 0.
606
+
607
+ If your website does not support HTTPS, this feature meets your business requirements If this feature is enabled, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. This feature can redirect WebSockets requests to WebSocket requests. Requests are redirected over the standard port 80.
608
+
609
+ - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional. Data type: integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP/2 is turned off. The value 1 indicates that Enable HTTP/2 is turned on. The default value is 0.
610
+
611
+ After you turn on the switch, HTTP/2 is used.
612
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] instance_ids: InstanceIds
613
+ :param pulumi.Input[str] key: The globally unique ID of the certificate. The value is in the "Certificate ID-cn-hangzhou" format. For example, if the ID of the certificate is 123, the value of the CertIdentifier parameter is 123-cn-hangzhou.
614
+
615
+ > **NOTE:** You can specify only one of this parameter and the CertId parameter.
616
+ :param pulumi.Input[bool] ocsp_enabled: Specifies whether to enable the OCSP feature. Valid values:
361
617
  :param pulumi.Input[Sequence[pulumi.Input[Union['DomainResourceProxyTypeArgs', 'DomainResourceProxyTypeArgsDict']]]] proxy_types: Protocol type and port number information. See `proxy_types` below.
362
- > **NOTE:** From version 1.206.0, `proxy_types` can be modified.
363
- :param pulumi.Input[Sequence[pulumi.Input[str]]] real_servers: the IP address. This field is required and must be a string array.
364
- :param pulumi.Input[int] rs_type: The address type of the origin server. Use the domain name of the origin server if you deploy proxies, such as Web Application Firewall (WAF), between the origin server and the Anti-DDoS Pro or Anti-DDoS Premium instance. If you use the domain name, you must enter the address of the proxy, such as the CNAME of WAF. Valid values:
618
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] real_servers: Server address information of the source station.
619
+ :param pulumi.Input[int] rs_type: The address type of the origin server. Valid values:
365
620
  """
366
621
  ...
367
622
  @overload
@@ -370,9 +625,9 @@ class DomainResource(pulumi.CustomResource):
370
625
  args: DomainResourceArgs,
371
626
  opts: Optional[pulumi.ResourceOptions] = None):
372
627
  """
373
- Provides a Anti-DDoS Pro Domain Resource resource.
628
+ Provides a Ddos Coo Domain Resource resource.
374
629
 
375
- For information about Anti-DDoS Pro Domain Resource and how to use it, see [What is Domain Resource](https://www.alibabacloud.com/help/en/ddos-protection/latest/api-ddoscoo-2020-01-01-createwebrule).
630
+ For information about Ddos Coo Domain Resource and how to use it, see [What is Domain Resource](https://www.alibabacloud.com/help/en/anti-ddos/anti-ddos-pro-and-premium/developer-reference/api-ddoscoo-2020-01-01-createdomainresource).
376
631
 
377
632
  > **NOTE:** Available since v1.123.0.
378
633
 
@@ -414,10 +669,10 @@ class DomainResource(pulumi.CustomResource):
414
669
 
415
670
  ## Import
416
671
 
417
- Anti-DDoS Pro Domain Resource can be imported using the id, e.g.
672
+ Ddos Coo Domain Resource can be imported using the id, e.g.
418
673
 
419
674
  ```sh
420
- $ pulumi import alicloud:ddos/domainResource:DomainResource example <domain>
675
+ $ pulumi import alicloud:ddos/domainResource:DomainResource example <id>
421
676
  ```
422
677
 
423
678
  :param str resource_name: The name of the resource.
@@ -435,9 +690,14 @@ class DomainResource(pulumi.CustomResource):
435
690
  def _internal_init(__self__,
436
691
  resource_name: str,
437
692
  opts: Optional[pulumi.ResourceOptions] = None,
693
+ cert: Optional[pulumi.Input[str]] = None,
694
+ cert_identifier: Optional[pulumi.Input[str]] = None,
695
+ cert_name: Optional[pulumi.Input[str]] = None,
696
+ cert_region: Optional[pulumi.Input[str]] = None,
438
697
  domain: Optional[pulumi.Input[str]] = None,
439
698
  https_ext: Optional[pulumi.Input[str]] = None,
440
699
  instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
700
+ key: Optional[pulumi.Input[str]] = None,
441
701
  ocsp_enabled: Optional[pulumi.Input[bool]] = None,
442
702
  proxy_types: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DomainResourceProxyTypeArgs', 'DomainResourceProxyTypeArgsDict']]]]] = None,
443
703
  real_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -451,6 +711,10 @@ class DomainResource(pulumi.CustomResource):
451
711
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
452
712
  __props__ = DomainResourceArgs.__new__(DomainResourceArgs)
453
713
 
714
+ __props__.__dict__["cert"] = None if cert is None else pulumi.Output.secret(cert)
715
+ __props__.__dict__["cert_identifier"] = cert_identifier
716
+ __props__.__dict__["cert_name"] = cert_name
717
+ __props__.__dict__["cert_region"] = None if cert_region is None else pulumi.Output.secret(cert_region)
454
718
  if domain is None and not opts.urn:
455
719
  raise TypeError("Missing required property 'domain'")
456
720
  __props__.__dict__["domain"] = domain
@@ -458,6 +722,7 @@ class DomainResource(pulumi.CustomResource):
458
722
  if instance_ids is None and not opts.urn:
459
723
  raise TypeError("Missing required property 'instance_ids'")
460
724
  __props__.__dict__["instance_ids"] = instance_ids
725
+ __props__.__dict__["key"] = None if key is None else pulumi.Output.secret(key)
461
726
  __props__.__dict__["ocsp_enabled"] = ocsp_enabled
462
727
  if proxy_types is None and not opts.urn:
463
728
  raise TypeError("Missing required property 'proxy_types'")
@@ -469,6 +734,8 @@ class DomainResource(pulumi.CustomResource):
469
734
  raise TypeError("Missing required property 'rs_type'")
470
735
  __props__.__dict__["rs_type"] = rs_type
471
736
  __props__.__dict__["cname"] = None
737
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["cert", "certRegion", "key"])
738
+ opts = pulumi.ResourceOptions.merge(opts, secret_opts)
472
739
  super(DomainResource, __self__).__init__(
473
740
  'alicloud:ddos/domainResource:DomainResource',
474
741
  resource_name,
@@ -479,10 +746,15 @@ class DomainResource(pulumi.CustomResource):
479
746
  def get(resource_name: str,
480
747
  id: pulumi.Input[str],
481
748
  opts: Optional[pulumi.ResourceOptions] = None,
749
+ cert: Optional[pulumi.Input[str]] = None,
750
+ cert_identifier: Optional[pulumi.Input[str]] = None,
751
+ cert_name: Optional[pulumi.Input[str]] = None,
752
+ cert_region: Optional[pulumi.Input[str]] = None,
482
753
  cname: Optional[pulumi.Input[str]] = None,
483
754
  domain: Optional[pulumi.Input[str]] = None,
484
755
  https_ext: Optional[pulumi.Input[str]] = None,
485
756
  instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
757
+ key: Optional[pulumi.Input[str]] = None,
486
758
  ocsp_enabled: Optional[pulumi.Input[bool]] = None,
487
759
  proxy_types: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DomainResourceProxyTypeArgs', 'DomainResourceProxyTypeArgsDict']]]]] = None,
488
760
  real_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -494,39 +766,104 @@ class DomainResource(pulumi.CustomResource):
494
766
  :param str resource_name: The unique name of the resulting resource.
495
767
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
496
768
  :param pulumi.ResourceOptions opts: Options for the resource.
497
- :param pulumi.Input[str] cname: (Available since v1.207.2) The CNAME assigned to the domain name.
498
- :param pulumi.Input[str] domain: The domain name of the website that you want to add to the instance.
499
- :param pulumi.Input[str] https_ext: The advanced HTTPS settings. This parameter takes effect only when the value of ProxyType includes https. This parameter is a string that contains a JSON struct. The JSON struct includes the following fields:
500
- - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enforce HTTPS Routing is turned off. The value `1` indicates that Enforce HTTPS Routing is turned on. The default value is `0`. If your website supports both HTTP and HTTPS, this feature suits your needs. If you turn on the switch, all HTTP requests are redirected to HTTPS requests on port 443 by default.
501
- - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP is turned off. The value `1` indicates that Enable HTTP is turned on. The default value is `0`. If your website does not support HTTPS, this feature suits your needs. If you turn on the switch, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. The feature can also redirect WebSockets requests to WebSocket requests. All requests are redirected over port 80.
502
- - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP/2 is turned off. The value `1` indicates that Enable HTTP/2 is turned on. The default value is `0`. After you turn on the switch, the protocol type is HTTP/2.
503
- :param pulumi.Input[Sequence[pulumi.Input[str]]] instance_ids: A list of instance ID that you want to associate. If this parameter is empty, only the domain name of the website is added but no instance is associated with the website.
504
- > **NOTE:** There is a potential diff error because of the order of `instance_ids` values indefinite. So, from version 1.161.0, `instance_ids` type has been updated as `set` from `list`, and you can use tolist to convert it to a list.
505
- :param pulumi.Input[bool] ocsp_enabled: Specifies whether to enable the OCSP feature. Default value: `false`. Valid values:
769
+ :param pulumi.Input[str] cert: The private key of the certificate that you want to associate. This parameter must be used together with the CertName and Cert parameters.
770
+
771
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
772
+ :param pulumi.Input[str] cert_identifier: The name of the certificate.
773
+
774
+ > **NOTE:** You can specify the name of the certificate that you want to associate.
775
+ :param pulumi.Input[str] cert_name: The public key of the certificate that you want to associate. This parameter must be used together with the CertName and Key parameters.
776
+
777
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
778
+ :param pulumi.Input[str] cert_region: The region of the certificate. `cn-hangzhou` and `ap-southeast-1` are supported. The default value is `cn-hangzhou`.
779
+ :param pulumi.Input[str] cname: The CNAME address to query.
780
+ :param pulumi.Input[str] domain: The domain name for which you want to configure the Static Page Caching policy.
781
+
782
+ > **NOTE:** You can call the [DescribeDomains](https://www.alibabacloud.com/help/en/doc-detail/91724.html) operation to query all the domain names that are added to Anti-DDoS Pro or Anti-DDoS Premium.
783
+ :param pulumi.Input[str] https_ext: The advanced HTTPS settings. This parameter takes effect only when the value of the `ProxyType` parameter includes `https`. The value is a string that consists of a JSON struct. The JSON struct contains the following fields:
784
+
785
+ - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enforce HTTPS Routing is turned off. The value 1 indicates that Enforce HTTPS Routing is turned on. The default value is 0.
786
+
787
+ If your website supports both HTTP and HTTPS, this feature meets your business requirements. If you enable this feature, all HTTP requests to access the website are redirected to HTTPS requests on the standard port 443.
788
+
789
+ - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP is turned off. The value 1 indicates that Enable HTTP is turned on. The default value is 0.
790
+
791
+ If your website does not support HTTPS, this feature meets your business requirements If this feature is enabled, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. This feature can redirect WebSockets requests to WebSocket requests. Requests are redirected over the standard port 80.
792
+
793
+ - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional. Data type: integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP/2 is turned off. The value 1 indicates that Enable HTTP/2 is turned on. The default value is 0.
794
+
795
+ After you turn on the switch, HTTP/2 is used.
796
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] instance_ids: InstanceIds
797
+ :param pulumi.Input[str] key: The globally unique ID of the certificate. The value is in the "Certificate ID-cn-hangzhou" format. For example, if the ID of the certificate is 123, the value of the CertIdentifier parameter is 123-cn-hangzhou.
798
+
799
+ > **NOTE:** You can specify only one of this parameter and the CertId parameter.
800
+ :param pulumi.Input[bool] ocsp_enabled: Specifies whether to enable the OCSP feature. Valid values:
506
801
  :param pulumi.Input[Sequence[pulumi.Input[Union['DomainResourceProxyTypeArgs', 'DomainResourceProxyTypeArgsDict']]]] proxy_types: Protocol type and port number information. See `proxy_types` below.
507
- > **NOTE:** From version 1.206.0, `proxy_types` can be modified.
508
- :param pulumi.Input[Sequence[pulumi.Input[str]]] real_servers: the IP address. This field is required and must be a string array.
509
- :param pulumi.Input[int] rs_type: The address type of the origin server. Use the domain name of the origin server if you deploy proxies, such as Web Application Firewall (WAF), between the origin server and the Anti-DDoS Pro or Anti-DDoS Premium instance. If you use the domain name, you must enter the address of the proxy, such as the CNAME of WAF. Valid values:
802
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] real_servers: Server address information of the source station.
803
+ :param pulumi.Input[int] rs_type: The address type of the origin server. Valid values:
510
804
  """
511
805
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
512
806
 
513
807
  __props__ = _DomainResourceState.__new__(_DomainResourceState)
514
808
 
809
+ __props__.__dict__["cert"] = cert
810
+ __props__.__dict__["cert_identifier"] = cert_identifier
811
+ __props__.__dict__["cert_name"] = cert_name
812
+ __props__.__dict__["cert_region"] = cert_region
515
813
  __props__.__dict__["cname"] = cname
516
814
  __props__.__dict__["domain"] = domain
517
815
  __props__.__dict__["https_ext"] = https_ext
518
816
  __props__.__dict__["instance_ids"] = instance_ids
817
+ __props__.__dict__["key"] = key
519
818
  __props__.__dict__["ocsp_enabled"] = ocsp_enabled
520
819
  __props__.__dict__["proxy_types"] = proxy_types
521
820
  __props__.__dict__["real_servers"] = real_servers
522
821
  __props__.__dict__["rs_type"] = rs_type
523
822
  return DomainResource(resource_name, opts=opts, __props__=__props__)
524
823
 
824
+ @property
825
+ @pulumi.getter
826
+ def cert(self) -> pulumi.Output[Optional[str]]:
827
+ """
828
+ The private key of the certificate that you want to associate. This parameter must be used together with the CertName and Cert parameters.
829
+
830
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
831
+ """
832
+ return pulumi.get(self, "cert")
833
+
834
+ @property
835
+ @pulumi.getter(name="certIdentifier")
836
+ def cert_identifier(self) -> pulumi.Output[Optional[str]]:
837
+ """
838
+ The name of the certificate.
839
+
840
+ > **NOTE:** You can specify the name of the certificate that you want to associate.
841
+ """
842
+ return pulumi.get(self, "cert_identifier")
843
+
844
+ @property
845
+ @pulumi.getter(name="certName")
846
+ def cert_name(self) -> pulumi.Output[str]:
847
+ """
848
+ The public key of the certificate that you want to associate. This parameter must be used together with the CertName and Key parameters.
849
+
850
+ > **NOTE:** If you specify a value for the CertName, Cert, and Key parameters, you do not need to specify a value for the CertId parameter.
851
+ """
852
+ return pulumi.get(self, "cert_name")
853
+
854
+ @property
855
+ @pulumi.getter(name="certRegion")
856
+ def cert_region(self) -> pulumi.Output[Optional[str]]:
857
+ """
858
+ The region of the certificate. `cn-hangzhou` and `ap-southeast-1` are supported. The default value is `cn-hangzhou`.
859
+ """
860
+ return pulumi.get(self, "cert_region")
861
+
525
862
  @property
526
863
  @pulumi.getter
527
864
  def cname(self) -> pulumi.Output[str]:
528
865
  """
529
- (Available since v1.207.2) The CNAME assigned to the domain name.
866
+ The CNAME address to query.
530
867
  """
531
868
  return pulumi.get(self, "cname")
532
869
 
@@ -534,7 +871,9 @@ class DomainResource(pulumi.CustomResource):
534
871
  @pulumi.getter
535
872
  def domain(self) -> pulumi.Output[str]:
536
873
  """
537
- The domain name of the website that you want to add to the instance.
874
+ The domain name for which you want to configure the Static Page Caching policy.
875
+
876
+ > **NOTE:** You can call the [DescribeDomains](https://www.alibabacloud.com/help/en/doc-detail/91724.html) operation to query all the domain names that are added to Anti-DDoS Pro or Anti-DDoS Premium.
538
877
  """
539
878
  return pulumi.get(self, "domain")
540
879
 
@@ -542,10 +881,19 @@ class DomainResource(pulumi.CustomResource):
542
881
  @pulumi.getter(name="httpsExt")
543
882
  def https_ext(self) -> pulumi.Output[str]:
544
883
  """
545
- The advanced HTTPS settings. This parameter takes effect only when the value of ProxyType includes https. This parameter is a string that contains a JSON struct. The JSON struct includes the following fields:
546
- - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enforce HTTPS Routing is turned off. The value `1` indicates that Enforce HTTPS Routing is turned on. The default value is `0`. If your website supports both HTTP and HTTPS, this feature suits your needs. If you turn on the switch, all HTTP requests are redirected to HTTPS requests on port 443 by default.
547
- - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP is turned off. The value `1` indicates that Enable HTTP is turned on. The default value is `0`. If your website does not support HTTPS, this feature suits your needs. If you turn on the switch, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. The feature can also redirect WebSockets requests to WebSocket requests. All requests are redirected over port 80.
548
- - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional and must be an integer. Valid values: `0` and `1`. The value `0` indicates that Enable HTTP/2 is turned off. The value `1` indicates that Enable HTTP/2 is turned on. The default value is `0`. After you turn on the switch, the protocol type is HTTP/2.
884
+ The advanced HTTPS settings. This parameter takes effect only when the value of the `ProxyType` parameter includes `https`. The value is a string that consists of a JSON struct. The JSON struct contains the following fields:
885
+
886
+ - `Http2https`: specifies whether to turn on Enforce HTTPS Routing. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enforce HTTPS Routing is turned off. The value 1 indicates that Enforce HTTPS Routing is turned on. The default value is 0.
887
+
888
+ If your website supports both HTTP and HTTPS, this feature meets your business requirements. If you enable this feature, all HTTP requests to access the website are redirected to HTTPS requests on the standard port 443.
889
+
890
+ - `Https2http`: specifies whether to turn on Enable HTTP. This field is optional and must be an integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP is turned off. The value 1 indicates that Enable HTTP is turned on. The default value is 0.
891
+
892
+ If your website does not support HTTPS, this feature meets your business requirements If this feature is enabled, all HTTPS requests are redirected to HTTP requests and forwarded to origin servers. This feature can redirect WebSockets requests to WebSocket requests. Requests are redirected over the standard port 80.
893
+
894
+ - `Http2`: specifies whether to turn on Enable HTTP/2. This field is optional. Data type: integer. Valid values: `0` and `1`. The value 0 indicates that Enable HTTP/2 is turned off. The value 1 indicates that Enable HTTP/2 is turned on. The default value is 0.
895
+
896
+ After you turn on the switch, HTTP/2 is used.
549
897
  """
550
898
  return pulumi.get(self, "https_ext")
551
899
 
@@ -553,16 +901,25 @@ class DomainResource(pulumi.CustomResource):
553
901
  @pulumi.getter(name="instanceIds")
554
902
  def instance_ids(self) -> pulumi.Output[Sequence[str]]:
555
903
  """
556
- A list of instance ID that you want to associate. If this parameter is empty, only the domain name of the website is added but no instance is associated with the website.
557
- > **NOTE:** There is a potential diff error because of the order of `instance_ids` values indefinite. So, from version 1.161.0, `instance_ids` type has been updated as `set` from `list`, and you can use tolist to convert it to a list.
904
+ InstanceIds
558
905
  """
559
906
  return pulumi.get(self, "instance_ids")
560
907
 
908
+ @property
909
+ @pulumi.getter
910
+ def key(self) -> pulumi.Output[Optional[str]]:
911
+ """
912
+ The globally unique ID of the certificate. The value is in the "Certificate ID-cn-hangzhou" format. For example, if the ID of the certificate is 123, the value of the CertIdentifier parameter is 123-cn-hangzhou.
913
+
914
+ > **NOTE:** You can specify only one of this parameter and the CertId parameter.
915
+ """
916
+ return pulumi.get(self, "key")
917
+
561
918
  @property
562
919
  @pulumi.getter(name="ocspEnabled")
563
920
  def ocsp_enabled(self) -> pulumi.Output[Optional[bool]]:
564
921
  """
565
- Specifies whether to enable the OCSP feature. Default value: `false`. Valid values:
922
+ Specifies whether to enable the OCSP feature. Valid values:
566
923
  """
567
924
  return pulumi.get(self, "ocsp_enabled")
568
925
 
@@ -571,7 +928,6 @@ class DomainResource(pulumi.CustomResource):
571
928
  def proxy_types(self) -> pulumi.Output[Sequence['outputs.DomainResourceProxyType']]:
572
929
  """
573
930
  Protocol type and port number information. See `proxy_types` below.
574
- > **NOTE:** From version 1.206.0, `proxy_types` can be modified.
575
931
  """
576
932
  return pulumi.get(self, "proxy_types")
577
933
 
@@ -579,7 +935,7 @@ class DomainResource(pulumi.CustomResource):
579
935
  @pulumi.getter(name="realServers")
580
936
  def real_servers(self) -> pulumi.Output[Sequence[str]]:
581
937
  """
582
- the IP address. This field is required and must be a string array.
938
+ Server address information of the source station.
583
939
  """
584
940
  return pulumi.get(self, "real_servers")
585
941
 
@@ -587,7 +943,7 @@ class DomainResource(pulumi.CustomResource):
587
943
  @pulumi.getter(name="rsType")
588
944
  def rs_type(self) -> pulumi.Output[int]:
589
945
  """
590
- The address type of the origin server. Use the domain name of the origin server if you deploy proxies, such as Web Application Firewall (WAF), between the origin server and the Anti-DDoS Pro or Anti-DDoS Premium instance. If you use the domain name, you must enter the address of the proxy, such as the CNAME of WAF. Valid values:
946
+ The address type of the origin server. Valid values:
591
947
  """
592
948
  return pulumi.get(self, "rs_type")
593
949