pulumi-alicloud 3.63.0__py3-none-any.whl → 3.63.0a1726205090__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 +0 -24
- pulumi_alicloud/alb/acl.py +19 -18
- pulumi_alicloud/alb/health_check_template.py +88 -96
- pulumi_alicloud/amqp/binding.py +36 -30
- pulumi_alicloud/cen/_inputs.py +14 -180
- pulumi_alicloud/cen/outputs.py +12 -173
- pulumi_alicloud/cen/traffic_marking_policy.py +53 -116
- pulumi_alicloud/cen/transit_router_vpc_attachment.py +119 -338
- pulumi_alicloud/cms/_inputs.py +6 -6
- pulumi_alicloud/cms/outputs.py +6 -6
- pulumi_alicloud/cr/chart_namespace.py +6 -14
- pulumi_alicloud/cr/endpoint_acl_policy.py +2 -10
- pulumi_alicloud/cr/namespace.py +2 -10
- pulumi_alicloud/cs/registry_enterprise_sync_rule.py +10 -10
- pulumi_alicloud/ddos/_inputs.py +9 -8
- pulumi_alicloud/ddos/bgp_ip.py +1 -1
- pulumi_alicloud/ddos/domain_resource.py +90 -446
- pulumi_alicloud/ddos/outputs.py +8 -7
- pulumi_alicloud/eci/container_group.py +0 -47
- pulumi_alicloud/ecs/_inputs.py +0 -28
- pulumi_alicloud/ecs/ecs_snapshot.py +77 -199
- pulumi_alicloud/ecs/outputs.py +0 -20
- pulumi_alicloud/ecs/snapshot.py +8 -26
- pulumi_alicloud/emrv2/_inputs.py +12 -12
- pulumi_alicloud/emrv2/outputs.py +12 -12
- pulumi_alicloud/ens/_inputs.py +2 -50
- pulumi_alicloud/ens/instance.py +184 -428
- pulumi_alicloud/ens/outputs.py +2 -57
- pulumi_alicloud/ess/__init__.py +0 -1
- pulumi_alicloud/ess/alarm.py +0 -47
- pulumi_alicloud/expressconnect/physical_connection.py +185 -321
- pulumi_alicloud/fc/trigger.py +24 -22
- pulumi_alicloud/ga/_inputs.py +5 -23
- pulumi_alicloud/ga/endpoint_group.py +14 -68
- pulumi_alicloud/ga/outputs.py +5 -21
- pulumi_alicloud/governance/account.py +0 -61
- pulumi_alicloud/gpdb/__init__.py +0 -4
- pulumi_alicloud/gpdb/_inputs.py +3 -361
- pulumi_alicloud/gpdb/instance.py +0 -47
- pulumi_alicloud/gpdb/outputs.py +4 -597
- pulumi_alicloud/mongodb/instance.py +0 -94
- pulumi_alicloud/nlb/_inputs.py +64 -120
- pulumi_alicloud/nlb/get_listeners.py +2 -32
- pulumi_alicloud/nlb/get_server_group_server_attachments.py +2 -8
- pulumi_alicloud/nlb/listener.py +245 -315
- pulumi_alicloud/nlb/listener_additional_certificate_attachment.py +25 -25
- pulumi_alicloud/nlb/load_balancer.py +212 -297
- pulumi_alicloud/nlb/load_balancer_security_group_attachment.py +39 -29
- pulumi_alicloud/nlb/loadbalancer_common_bandwidth_package_attachment.py +18 -22
- pulumi_alicloud/nlb/outputs.py +66 -122
- pulumi_alicloud/nlb/security_policy.py +25 -53
- pulumi_alicloud/nlb/server_group.py +133 -196
- pulumi_alicloud/ocean/base_instance.py +163 -498
- pulumi_alicloud/oos/get_secret_parameters.py +9 -111
- pulumi_alicloud/oos/outputs.py +11 -22
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/ram/get_account_alias.py +2 -35
- pulumi_alicloud/rds/instance.py +21 -21
- pulumi_alicloud/rocketmq/_inputs.py +22 -79
- pulumi_alicloud/rocketmq/outputs.py +21 -85
- pulumi_alicloud/rocketmq/rocket_mq_instance.py +113 -307
- pulumi_alicloud/servicemesh/extension_provider.py +2 -2
- pulumi_alicloud/vpc/common_bandwith_package_attachment.py +2 -2
- pulumi_alicloud/vpc/peer_connection.py +59 -127
- pulumi_alicloud/vpc/peer_connection_accepter.py +42 -263
- pulumi_alicloud/vpc/route_entry.py +210 -232
- {pulumi_alicloud-3.63.0.dist-info → pulumi_alicloud-3.63.0a1726205090.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.63.0.dist-info → pulumi_alicloud-3.63.0a1726205090.dist-info}/RECORD +70 -75
- {pulumi_alicloud-3.63.0.dist-info → pulumi_alicloud-3.63.0a1726205090.dist-info}/WHEEL +1 -1
- pulumi_alicloud/ess/server_group_attachment.py +0 -552
- pulumi_alicloud/gpdb/db_instance_ip_array.py +0 -533
- pulumi_alicloud/gpdb/get_data_backups.py +0 -288
- pulumi_alicloud/gpdb/get_log_backups.py +0 -225
- pulumi_alicloud/gpdb/streaming_job.py +0 -1568
- {pulumi_alicloud-3.63.0.dist-info → pulumi_alicloud-3.63.0a1726205090.dist-info}/top_level.txt +0 -0
|
@@ -21,67 +21,30 @@ 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,
|
|
28
24
|
https_ext: Optional[pulumi.Input[str]] = None,
|
|
29
|
-
key: Optional[pulumi.Input[str]] = None,
|
|
30
25
|
ocsp_enabled: Optional[pulumi.Input[bool]] = None):
|
|
31
26
|
"""
|
|
32
27
|
The set of arguments for constructing a DomainResource resource.
|
|
33
|
-
:param pulumi.Input[str] domain: The domain name
|
|
34
|
-
|
|
35
|
-
> **NOTE:**
|
|
36
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] instance_ids: InstanceIds
|
|
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.
|
|
37
31
|
:param pulumi.Input[Sequence[pulumi.Input['DomainResourceProxyTypeArgs']]] proxy_types: Protocol type and port number information. See `proxy_types` below.
|
|
38
|
-
|
|
39
|
-
:param pulumi.Input[
|
|
40
|
-
:param pulumi.Input[
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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:
|
|
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:
|
|
67
40
|
"""
|
|
68
41
|
pulumi.set(__self__, "domain", domain)
|
|
69
42
|
pulumi.set(__self__, "instance_ids", instance_ids)
|
|
70
43
|
pulumi.set(__self__, "proxy_types", proxy_types)
|
|
71
44
|
pulumi.set(__self__, "real_servers", real_servers)
|
|
72
45
|
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)
|
|
81
46
|
if https_ext is not None:
|
|
82
47
|
pulumi.set(__self__, "https_ext", https_ext)
|
|
83
|
-
if key is not None:
|
|
84
|
-
pulumi.set(__self__, "key", key)
|
|
85
48
|
if ocsp_enabled is not None:
|
|
86
49
|
pulumi.set(__self__, "ocsp_enabled", ocsp_enabled)
|
|
87
50
|
|
|
@@ -89,9 +52,7 @@ class DomainResourceArgs:
|
|
|
89
52
|
@pulumi.getter
|
|
90
53
|
def domain(self) -> pulumi.Input[str]:
|
|
91
54
|
"""
|
|
92
|
-
The domain name
|
|
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.
|
|
55
|
+
The domain name of the website that you want to add to the instance.
|
|
95
56
|
"""
|
|
96
57
|
return pulumi.get(self, "domain")
|
|
97
58
|
|
|
@@ -103,7 +64,8 @@ class DomainResourceArgs:
|
|
|
103
64
|
@pulumi.getter(name="instanceIds")
|
|
104
65
|
def instance_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
105
66
|
"""
|
|
106
|
-
|
|
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.
|
|
107
69
|
"""
|
|
108
70
|
return pulumi.get(self, "instance_ids")
|
|
109
71
|
|
|
@@ -116,6 +78,7 @@ class DomainResourceArgs:
|
|
|
116
78
|
def proxy_types(self) -> pulumi.Input[Sequence[pulumi.Input['DomainResourceProxyTypeArgs']]]:
|
|
117
79
|
"""
|
|
118
80
|
Protocol type and port number information. See `proxy_types` below.
|
|
81
|
+
> **NOTE:** From version 1.206.0, `proxy_types` can be modified.
|
|
119
82
|
"""
|
|
120
83
|
return pulumi.get(self, "proxy_types")
|
|
121
84
|
|
|
@@ -127,7 +90,7 @@ class DomainResourceArgs:
|
|
|
127
90
|
@pulumi.getter(name="realServers")
|
|
128
91
|
def real_servers(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
129
92
|
"""
|
|
130
|
-
|
|
93
|
+
the IP address. This field is required and must be a string array.
|
|
131
94
|
"""
|
|
132
95
|
return pulumi.get(self, "real_servers")
|
|
133
96
|
|
|
@@ -139,7 +102,7 @@ class DomainResourceArgs:
|
|
|
139
102
|
@pulumi.getter(name="rsType")
|
|
140
103
|
def rs_type(self) -> pulumi.Input[int]:
|
|
141
104
|
"""
|
|
142
|
-
The address type of the origin server. Valid values:
|
|
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:
|
|
143
106
|
"""
|
|
144
107
|
return pulumi.get(self, "rs_type")
|
|
145
108
|
|
|
@@ -147,77 +110,14 @@ class DomainResourceArgs:
|
|
|
147
110
|
def rs_type(self, value: pulumi.Input[int]):
|
|
148
111
|
pulumi.set(self, "rs_type", value)
|
|
149
112
|
|
|
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
|
-
|
|
204
113
|
@property
|
|
205
114
|
@pulumi.getter(name="httpsExt")
|
|
206
115
|
def https_ext(self) -> Optional[pulumi.Input[str]]:
|
|
207
116
|
"""
|
|
208
|
-
The advanced HTTPS settings. This parameter takes effect only when the value of
|
|
209
|
-
|
|
210
|
-
- `
|
|
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.
|
|
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.
|
|
221
121
|
"""
|
|
222
122
|
return pulumi.get(self, "https_ext")
|
|
223
123
|
|
|
@@ -225,25 +125,11 @@ class DomainResourceArgs:
|
|
|
225
125
|
def https_ext(self, value: Optional[pulumi.Input[str]]):
|
|
226
126
|
pulumi.set(self, "https_ext", value)
|
|
227
127
|
|
|
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
|
-
|
|
242
128
|
@property
|
|
243
129
|
@pulumi.getter(name="ocspEnabled")
|
|
244
130
|
def ocsp_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
245
131
|
"""
|
|
246
|
-
Specifies whether to enable the OCSP feature. Valid values:
|
|
132
|
+
Specifies whether to enable the OCSP feature. Default value: `false`. Valid values:
|
|
247
133
|
"""
|
|
248
134
|
return pulumi.get(self, "ocsp_enabled")
|
|
249
135
|
|
|
@@ -255,65 +141,30 @@ class DomainResourceArgs:
|
|
|
255
141
|
@pulumi.input_type
|
|
256
142
|
class _DomainResourceState:
|
|
257
143
|
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,
|
|
262
144
|
cname: Optional[pulumi.Input[str]] = None,
|
|
263
145
|
domain: Optional[pulumi.Input[str]] = None,
|
|
264
146
|
https_ext: Optional[pulumi.Input[str]] = None,
|
|
265
147
|
instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
266
|
-
key: Optional[pulumi.Input[str]] = None,
|
|
267
148
|
ocsp_enabled: Optional[pulumi.Input[bool]] = None,
|
|
268
149
|
proxy_types: Optional[pulumi.Input[Sequence[pulumi.Input['DomainResourceProxyTypeArgs']]]] = None,
|
|
269
150
|
real_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
270
151
|
rs_type: Optional[pulumi.Input[int]] = None):
|
|
271
152
|
"""
|
|
272
153
|
Input properties used for looking up and filtering DomainResource resources.
|
|
273
|
-
:param pulumi.Input[str]
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
:param pulumi.Input[str]
|
|
280
|
-
|
|
281
|
-
|
|
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:
|
|
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:
|
|
305
163
|
:param pulumi.Input[Sequence[pulumi.Input['DomainResourceProxyTypeArgs']]] proxy_types: Protocol type and port number information. See `proxy_types` below.
|
|
306
|
-
|
|
307
|
-
:param pulumi.Input[
|
|
308
|
-
|
|
309
|
-
|
|
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)
|
|
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
|
+
"""
|
|
317
168
|
if cname is not None:
|
|
318
169
|
pulumi.set(__self__, "cname", cname)
|
|
319
170
|
if domain is not None:
|
|
@@ -322,8 +173,6 @@ class _DomainResourceState:
|
|
|
322
173
|
pulumi.set(__self__, "https_ext", https_ext)
|
|
323
174
|
if instance_ids is not None:
|
|
324
175
|
pulumi.set(__self__, "instance_ids", instance_ids)
|
|
325
|
-
if key is not None:
|
|
326
|
-
pulumi.set(__self__, "key", key)
|
|
327
176
|
if ocsp_enabled is not None:
|
|
328
177
|
pulumi.set(__self__, "ocsp_enabled", ocsp_enabled)
|
|
329
178
|
if proxy_types is not None:
|
|
@@ -333,65 +182,11 @@ class _DomainResourceState:
|
|
|
333
182
|
if rs_type is not None:
|
|
334
183
|
pulumi.set(__self__, "rs_type", rs_type)
|
|
335
184
|
|
|
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
|
-
|
|
390
185
|
@property
|
|
391
186
|
@pulumi.getter
|
|
392
187
|
def cname(self) -> Optional[pulumi.Input[str]]:
|
|
393
188
|
"""
|
|
394
|
-
The CNAME
|
|
189
|
+
(Available since v1.207.2) The CNAME assigned to the domain name.
|
|
395
190
|
"""
|
|
396
191
|
return pulumi.get(self, "cname")
|
|
397
192
|
|
|
@@ -403,9 +198,7 @@ class _DomainResourceState:
|
|
|
403
198
|
@pulumi.getter
|
|
404
199
|
def domain(self) -> Optional[pulumi.Input[str]]:
|
|
405
200
|
"""
|
|
406
|
-
The domain name
|
|
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.
|
|
201
|
+
The domain name of the website that you want to add to the instance.
|
|
409
202
|
"""
|
|
410
203
|
return pulumi.get(self, "domain")
|
|
411
204
|
|
|
@@ -417,19 +210,10 @@ class _DomainResourceState:
|
|
|
417
210
|
@pulumi.getter(name="httpsExt")
|
|
418
211
|
def https_ext(self) -> Optional[pulumi.Input[str]]:
|
|
419
212
|
"""
|
|
420
|
-
The advanced HTTPS settings. This parameter takes effect only when the value of
|
|
421
|
-
|
|
422
|
-
- `
|
|
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.
|
|
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.
|
|
433
217
|
"""
|
|
434
218
|
return pulumi.get(self, "https_ext")
|
|
435
219
|
|
|
@@ -441,7 +225,8 @@ class _DomainResourceState:
|
|
|
441
225
|
@pulumi.getter(name="instanceIds")
|
|
442
226
|
def instance_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
443
227
|
"""
|
|
444
|
-
|
|
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.
|
|
445
230
|
"""
|
|
446
231
|
return pulumi.get(self, "instance_ids")
|
|
447
232
|
|
|
@@ -449,25 +234,11 @@ class _DomainResourceState:
|
|
|
449
234
|
def instance_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
450
235
|
pulumi.set(self, "instance_ids", value)
|
|
451
236
|
|
|
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
|
-
|
|
466
237
|
@property
|
|
467
238
|
@pulumi.getter(name="ocspEnabled")
|
|
468
239
|
def ocsp_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
469
240
|
"""
|
|
470
|
-
Specifies whether to enable the OCSP feature. Valid values:
|
|
241
|
+
Specifies whether to enable the OCSP feature. Default value: `false`. Valid values:
|
|
471
242
|
"""
|
|
472
243
|
return pulumi.get(self, "ocsp_enabled")
|
|
473
244
|
|
|
@@ -480,6 +251,7 @@ class _DomainResourceState:
|
|
|
480
251
|
def proxy_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DomainResourceProxyTypeArgs']]]]:
|
|
481
252
|
"""
|
|
482
253
|
Protocol type and port number information. See `proxy_types` below.
|
|
254
|
+
> **NOTE:** From version 1.206.0, `proxy_types` can be modified.
|
|
483
255
|
"""
|
|
484
256
|
return pulumi.get(self, "proxy_types")
|
|
485
257
|
|
|
@@ -491,7 +263,7 @@ class _DomainResourceState:
|
|
|
491
263
|
@pulumi.getter(name="realServers")
|
|
492
264
|
def real_servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
493
265
|
"""
|
|
494
|
-
|
|
266
|
+
the IP address. This field is required and must be a string array.
|
|
495
267
|
"""
|
|
496
268
|
return pulumi.get(self, "real_servers")
|
|
497
269
|
|
|
@@ -503,7 +275,7 @@ class _DomainResourceState:
|
|
|
503
275
|
@pulumi.getter(name="rsType")
|
|
504
276
|
def rs_type(self) -> Optional[pulumi.Input[int]]:
|
|
505
277
|
"""
|
|
506
|
-
The address type of the origin server. Valid values:
|
|
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:
|
|
507
279
|
"""
|
|
508
280
|
return pulumi.get(self, "rs_type")
|
|
509
281
|
|
|
@@ -517,23 +289,18 @@ class DomainResource(pulumi.CustomResource):
|
|
|
517
289
|
def __init__(__self__,
|
|
518
290
|
resource_name: str,
|
|
519
291
|
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,
|
|
524
292
|
domain: Optional[pulumi.Input[str]] = None,
|
|
525
293
|
https_ext: Optional[pulumi.Input[str]] = None,
|
|
526
294
|
instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
527
|
-
key: Optional[pulumi.Input[str]] = None,
|
|
528
295
|
ocsp_enabled: Optional[pulumi.Input[bool]] = None,
|
|
529
296
|
proxy_types: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DomainResourceProxyTypeArgs', 'DomainResourceProxyTypeArgsDict']]]]] = None,
|
|
530
297
|
real_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
531
298
|
rs_type: Optional[pulumi.Input[int]] = None,
|
|
532
299
|
__props__=None):
|
|
533
300
|
"""
|
|
534
|
-
Provides a
|
|
301
|
+
Provides a Anti-DDoS Pro Domain Resource resource.
|
|
535
302
|
|
|
536
|
-
For information about
|
|
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).
|
|
537
304
|
|
|
538
305
|
> **NOTE:** Available since v1.123.0.
|
|
539
306
|
|
|
@@ -575,48 +342,26 @@ class DomainResource(pulumi.CustomResource):
|
|
|
575
342
|
|
|
576
343
|
## Import
|
|
577
344
|
|
|
578
|
-
|
|
345
|
+
Anti-DDoS Pro Domain Resource can be imported using the id, e.g.
|
|
579
346
|
|
|
580
347
|
```sh
|
|
581
|
-
$ pulumi import alicloud:ddos/domainResource:DomainResource example <
|
|
348
|
+
$ pulumi import alicloud:ddos/domainResource:DomainResource example <domain>
|
|
582
349
|
```
|
|
583
350
|
|
|
584
351
|
:param str resource_name: The name of the resource.
|
|
585
352
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
586
|
-
:param pulumi.Input[str]
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
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:
|
|
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:
|
|
617
361
|
:param pulumi.Input[Sequence[pulumi.Input[Union['DomainResourceProxyTypeArgs', 'DomainResourceProxyTypeArgsDict']]]] proxy_types: Protocol type and port number information. See `proxy_types` below.
|
|
618
|
-
|
|
619
|
-
:param pulumi.Input[
|
|
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:
|
|
620
365
|
"""
|
|
621
366
|
...
|
|
622
367
|
@overload
|
|
@@ -625,9 +370,9 @@ class DomainResource(pulumi.CustomResource):
|
|
|
625
370
|
args: DomainResourceArgs,
|
|
626
371
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
627
372
|
"""
|
|
628
|
-
Provides a
|
|
373
|
+
Provides a Anti-DDoS Pro Domain Resource resource.
|
|
629
374
|
|
|
630
|
-
For information about
|
|
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).
|
|
631
376
|
|
|
632
377
|
> **NOTE:** Available since v1.123.0.
|
|
633
378
|
|
|
@@ -669,10 +414,10 @@ class DomainResource(pulumi.CustomResource):
|
|
|
669
414
|
|
|
670
415
|
## Import
|
|
671
416
|
|
|
672
|
-
|
|
417
|
+
Anti-DDoS Pro Domain Resource can be imported using the id, e.g.
|
|
673
418
|
|
|
674
419
|
```sh
|
|
675
|
-
$ pulumi import alicloud:ddos/domainResource:DomainResource example <
|
|
420
|
+
$ pulumi import alicloud:ddos/domainResource:DomainResource example <domain>
|
|
676
421
|
```
|
|
677
422
|
|
|
678
423
|
:param str resource_name: The name of the resource.
|
|
@@ -690,14 +435,9 @@ class DomainResource(pulumi.CustomResource):
|
|
|
690
435
|
def _internal_init(__self__,
|
|
691
436
|
resource_name: str,
|
|
692
437
|
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,
|
|
697
438
|
domain: Optional[pulumi.Input[str]] = None,
|
|
698
439
|
https_ext: Optional[pulumi.Input[str]] = None,
|
|
699
440
|
instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
700
|
-
key: Optional[pulumi.Input[str]] = None,
|
|
701
441
|
ocsp_enabled: Optional[pulumi.Input[bool]] = None,
|
|
702
442
|
proxy_types: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DomainResourceProxyTypeArgs', 'DomainResourceProxyTypeArgsDict']]]]] = None,
|
|
703
443
|
real_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
@@ -711,10 +451,6 @@ class DomainResource(pulumi.CustomResource):
|
|
|
711
451
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
712
452
|
__props__ = DomainResourceArgs.__new__(DomainResourceArgs)
|
|
713
453
|
|
|
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)
|
|
718
454
|
if domain is None and not opts.urn:
|
|
719
455
|
raise TypeError("Missing required property 'domain'")
|
|
720
456
|
__props__.__dict__["domain"] = domain
|
|
@@ -722,7 +458,6 @@ class DomainResource(pulumi.CustomResource):
|
|
|
722
458
|
if instance_ids is None and not opts.urn:
|
|
723
459
|
raise TypeError("Missing required property 'instance_ids'")
|
|
724
460
|
__props__.__dict__["instance_ids"] = instance_ids
|
|
725
|
-
__props__.__dict__["key"] = None if key is None else pulumi.Output.secret(key)
|
|
726
461
|
__props__.__dict__["ocsp_enabled"] = ocsp_enabled
|
|
727
462
|
if proxy_types is None and not opts.urn:
|
|
728
463
|
raise TypeError("Missing required property 'proxy_types'")
|
|
@@ -734,8 +469,6 @@ class DomainResource(pulumi.CustomResource):
|
|
|
734
469
|
raise TypeError("Missing required property 'rs_type'")
|
|
735
470
|
__props__.__dict__["rs_type"] = rs_type
|
|
736
471
|
__props__.__dict__["cname"] = None
|
|
737
|
-
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["cert", "certRegion", "key"])
|
|
738
|
-
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
739
472
|
super(DomainResource, __self__).__init__(
|
|
740
473
|
'alicloud:ddos/domainResource:DomainResource',
|
|
741
474
|
resource_name,
|
|
@@ -746,15 +479,10 @@ class DomainResource(pulumi.CustomResource):
|
|
|
746
479
|
def get(resource_name: str,
|
|
747
480
|
id: pulumi.Input[str],
|
|
748
481
|
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,
|
|
753
482
|
cname: Optional[pulumi.Input[str]] = None,
|
|
754
483
|
domain: Optional[pulumi.Input[str]] = None,
|
|
755
484
|
https_ext: Optional[pulumi.Input[str]] = None,
|
|
756
485
|
instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
757
|
-
key: Optional[pulumi.Input[str]] = None,
|
|
758
486
|
ocsp_enabled: Optional[pulumi.Input[bool]] = None,
|
|
759
487
|
proxy_types: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DomainResourceProxyTypeArgs', 'DomainResourceProxyTypeArgsDict']]]]] = None,
|
|
760
488
|
real_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
@@ -766,104 +494,39 @@ class DomainResource(pulumi.CustomResource):
|
|
|
766
494
|
:param str resource_name: The unique name of the resulting resource.
|
|
767
495
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
768
496
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
769
|
-
:param pulumi.Input[str]
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
:param pulumi.Input[str]
|
|
776
|
-
|
|
777
|
-
|
|
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:
|
|
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:
|
|
801
506
|
:param pulumi.Input[Sequence[pulumi.Input[Union['DomainResourceProxyTypeArgs', 'DomainResourceProxyTypeArgsDict']]]] proxy_types: Protocol type and port number information. See `proxy_types` below.
|
|
802
|
-
|
|
803
|
-
:param pulumi.Input[
|
|
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:
|
|
804
510
|
"""
|
|
805
511
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
806
512
|
|
|
807
513
|
__props__ = _DomainResourceState.__new__(_DomainResourceState)
|
|
808
514
|
|
|
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
|
|
813
515
|
__props__.__dict__["cname"] = cname
|
|
814
516
|
__props__.__dict__["domain"] = domain
|
|
815
517
|
__props__.__dict__["https_ext"] = https_ext
|
|
816
518
|
__props__.__dict__["instance_ids"] = instance_ids
|
|
817
|
-
__props__.__dict__["key"] = key
|
|
818
519
|
__props__.__dict__["ocsp_enabled"] = ocsp_enabled
|
|
819
520
|
__props__.__dict__["proxy_types"] = proxy_types
|
|
820
521
|
__props__.__dict__["real_servers"] = real_servers
|
|
821
522
|
__props__.__dict__["rs_type"] = rs_type
|
|
822
523
|
return DomainResource(resource_name, opts=opts, __props__=__props__)
|
|
823
524
|
|
|
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
|
-
|
|
862
525
|
@property
|
|
863
526
|
@pulumi.getter
|
|
864
527
|
def cname(self) -> pulumi.Output[str]:
|
|
865
528
|
"""
|
|
866
|
-
The CNAME
|
|
529
|
+
(Available since v1.207.2) The CNAME assigned to the domain name.
|
|
867
530
|
"""
|
|
868
531
|
return pulumi.get(self, "cname")
|
|
869
532
|
|
|
@@ -871,9 +534,7 @@ class DomainResource(pulumi.CustomResource):
|
|
|
871
534
|
@pulumi.getter
|
|
872
535
|
def domain(self) -> pulumi.Output[str]:
|
|
873
536
|
"""
|
|
874
|
-
The domain name
|
|
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.
|
|
537
|
+
The domain name of the website that you want to add to the instance.
|
|
877
538
|
"""
|
|
878
539
|
return pulumi.get(self, "domain")
|
|
879
540
|
|
|
@@ -881,19 +542,10 @@ class DomainResource(pulumi.CustomResource):
|
|
|
881
542
|
@pulumi.getter(name="httpsExt")
|
|
882
543
|
def https_ext(self) -> pulumi.Output[str]:
|
|
883
544
|
"""
|
|
884
|
-
The advanced HTTPS settings. This parameter takes effect only when the value of
|
|
885
|
-
|
|
886
|
-
- `
|
|
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.
|
|
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.
|
|
897
549
|
"""
|
|
898
550
|
return pulumi.get(self, "https_ext")
|
|
899
551
|
|
|
@@ -901,25 +553,16 @@ class DomainResource(pulumi.CustomResource):
|
|
|
901
553
|
@pulumi.getter(name="instanceIds")
|
|
902
554
|
def instance_ids(self) -> pulumi.Output[Sequence[str]]:
|
|
903
555
|
"""
|
|
904
|
-
|
|
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.
|
|
905
558
|
"""
|
|
906
559
|
return pulumi.get(self, "instance_ids")
|
|
907
560
|
|
|
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
|
-
|
|
918
561
|
@property
|
|
919
562
|
@pulumi.getter(name="ocspEnabled")
|
|
920
563
|
def ocsp_enabled(self) -> pulumi.Output[Optional[bool]]:
|
|
921
564
|
"""
|
|
922
|
-
Specifies whether to enable the OCSP feature. Valid values:
|
|
565
|
+
Specifies whether to enable the OCSP feature. Default value: `false`. Valid values:
|
|
923
566
|
"""
|
|
924
567
|
return pulumi.get(self, "ocsp_enabled")
|
|
925
568
|
|
|
@@ -928,6 +571,7 @@ class DomainResource(pulumi.CustomResource):
|
|
|
928
571
|
def proxy_types(self) -> pulumi.Output[Sequence['outputs.DomainResourceProxyType']]:
|
|
929
572
|
"""
|
|
930
573
|
Protocol type and port number information. See `proxy_types` below.
|
|
574
|
+
> **NOTE:** From version 1.206.0, `proxy_types` can be modified.
|
|
931
575
|
"""
|
|
932
576
|
return pulumi.get(self, "proxy_types")
|
|
933
577
|
|
|
@@ -935,7 +579,7 @@ class DomainResource(pulumi.CustomResource):
|
|
|
935
579
|
@pulumi.getter(name="realServers")
|
|
936
580
|
def real_servers(self) -> pulumi.Output[Sequence[str]]:
|
|
937
581
|
"""
|
|
938
|
-
|
|
582
|
+
the IP address. This field is required and must be a string array.
|
|
939
583
|
"""
|
|
940
584
|
return pulumi.get(self, "real_servers")
|
|
941
585
|
|
|
@@ -943,7 +587,7 @@ class DomainResource(pulumi.CustomResource):
|
|
|
943
587
|
@pulumi.getter(name="rsType")
|
|
944
588
|
def rs_type(self) -> pulumi.Output[int]:
|
|
945
589
|
"""
|
|
946
|
-
The address type of the origin server. Valid values:
|
|
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:
|
|
947
591
|
"""
|
|
948
592
|
return pulumi.get(self, "rs_type")
|
|
949
593
|
|