pulumi-alicloud 3.66.0a1731648019__py3-none-any.whl → 3.67.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.
- pulumi_alicloud/__init__.py +110 -0
- pulumi_alicloud/alikafka/instance.py +112 -0
- pulumi_alicloud/cen/flow_log.py +373 -58
- pulumi_alicloud/cen/transit_router_ecr_attachment.py +4 -4
- pulumi_alicloud/cloudsso/_inputs.py +9 -9
- pulumi_alicloud/cloudsso/access_configuration.py +100 -34
- pulumi_alicloud/cloudsso/outputs.py +6 -6
- pulumi_alicloud/cr/registry_enterprise_instance.py +474 -90
- pulumi_alicloud/ecs/ecs_image_component.py +221 -48
- pulumi_alicloud/esa/__init__.py +9 -0
- pulumi_alicloud/esa/rate_plan_instance.py +626 -0
- pulumi_alicloud/esa/site.py +533 -0
- pulumi_alicloud/ess/_inputs.py +94 -0
- pulumi_alicloud/ess/eci_scaling_configuration.py +42 -14
- pulumi_alicloud/ess/outputs.py +79 -0
- pulumi_alicloud/ess/scaling_configuration.py +47 -0
- pulumi_alicloud/expressconnect/router_vbr_child_instance.py +86 -25
- pulumi_alicloud/fc/_inputs.py +243 -135
- pulumi_alicloud/fc/outputs.py +173 -90
- pulumi_alicloud/fc/v3_alias.py +28 -0
- pulumi_alicloud/fc/v3_async_invoke_config.py +56 -0
- pulumi_alicloud/fc/v3_concurrency_config.py +28 -0
- pulumi_alicloud/fc/v3_custom_domain.py +118 -6
- pulumi_alicloud/fc/v3_function.py +308 -0
- pulumi_alicloud/fc/v3_function_version.py +30 -2
- pulumi_alicloud/fc/v3_layer_version.py +104 -1
- pulumi_alicloud/fc/v3_provision_config.py +86 -2
- pulumi_alicloud/fc/v3_trigger.py +114 -0
- pulumi_alicloud/gwlb/__init__.py +12 -0
- pulumi_alicloud/gwlb/_inputs.py +673 -0
- pulumi_alicloud/gwlb/listener.py +434 -0
- pulumi_alicloud/gwlb/load_balancer.py +537 -0
- pulumi_alicloud/gwlb/outputs.py +533 -0
- pulumi_alicloud/gwlb/server_group.py +780 -0
- pulumi_alicloud/kms/key.py +1 -1
- pulumi_alicloud/kvstore/account.py +24 -24
- pulumi_alicloud/kvstore/audit_log_config.py +4 -4
- pulumi_alicloud/kvstore/backup_policy.py +2 -2
- pulumi_alicloud/kvstore/connection.py +8 -8
- pulumi_alicloud/kvstore/get_accounts.py +4 -4
- pulumi_alicloud/kvstore/get_connections.py +5 -5
- pulumi_alicloud/kvstore/get_instance_classes.py +12 -12
- pulumi_alicloud/kvstore/get_instance_engines.py +7 -7
- pulumi_alicloud/kvstore/get_permission.py +10 -10
- pulumi_alicloud/kvstore/get_zones.py +4 -4
- pulumi_alicloud/kvstore/outputs.py +2 -2
- pulumi_alicloud/mongodb/instance.py +47 -0
- pulumi_alicloud/mongodb/sharding_instance.py +47 -0
- pulumi_alicloud/oss/__init__.py +2 -0
- pulumi_alicloud/oss/_inputs.py +194 -0
- pulumi_alicloud/oss/bucket_cname.py +509 -0
- pulumi_alicloud/oss/bucket_cname_token.py +239 -0
- pulumi_alicloud/oss/outputs.py +141 -0
- pulumi_alicloud/polardb/cluster.py +7 -7
- pulumi_alicloud/privatelink/vpc_endpoint_service.py +42 -91
- pulumi_alicloud/privatelink/vpc_endpoint_service_connection.py +27 -23
- pulumi_alicloud/privatelink/vpc_endpoint_service_resource.py +34 -37
- pulumi_alicloud/privatelink/vpc_endpoint_zone.py +28 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/quotas/_inputs.py +6 -6
- pulumi_alicloud/quotas/outputs.py +4 -4
- pulumi_alicloud/quotas/quota_application.py +21 -28
- pulumi_alicloud/rds/__init__.py +2 -0
- pulumi_alicloud/rds/_inputs.py +146 -0
- pulumi_alicloud/rds/custom.py +1630 -0
- pulumi_alicloud/rds/custom_deployment_set.py +525 -0
- pulumi_alicloud/rds/outputs.py +105 -0
- pulumi_alicloud/redis/tair_instance.py +97 -78
- pulumi_alicloud/vpc/__init__.py +4 -0
- pulumi_alicloud/vpc/_inputs.py +54 -0
- pulumi_alicloud/vpc/ipam_ipam.py +531 -0
- pulumi_alicloud/vpc/ipam_ipam_pool.py +850 -0
- pulumi_alicloud/vpc/ipam_ipam_pool_cidr.py +313 -0
- pulumi_alicloud/vpc/ipam_ipam_scope.py +537 -0
- pulumi_alicloud/vpc/nat_gateway.py +175 -14
- pulumi_alicloud/vpc/outputs.py +51 -0
- pulumi_alicloud/vpn/gateway_vco_route.py +68 -21
- {pulumi_alicloud-3.66.0a1731648019.dist-info → pulumi_alicloud-3.67.0.dist-info}/METADATA +5 -5
- {pulumi_alicloud-3.66.0a1731648019.dist-info → pulumi_alicloud-3.67.0.dist-info}/RECORD +81 -64
- {pulumi_alicloud-3.66.0a1731648019.dist-info → pulumi_alicloud-3.67.0.dist-info}/WHEEL +1 -1
- {pulumi_alicloud-3.66.0a1731648019.dist-info → pulumi_alicloud-3.67.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = ['BucketCnameArgs', 'BucketCname']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class BucketCnameArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
bucket: pulumi.Input[str],
|
|
25
|
+
domain: pulumi.Input[str],
|
|
26
|
+
certificate: Optional[pulumi.Input['BucketCnameCertificateArgs']] = None,
|
|
27
|
+
delete_certificate: Optional[pulumi.Input[bool]] = None,
|
|
28
|
+
force: Optional[pulumi.Input[bool]] = None,
|
|
29
|
+
previous_cert_id: Optional[pulumi.Input[str]] = None):
|
|
30
|
+
"""
|
|
31
|
+
The set of arguments for constructing a BucketCname resource.
|
|
32
|
+
:param pulumi.Input[str] bucket: The bucket to which the custom domain name belongs
|
|
33
|
+
:param pulumi.Input[str] domain: User-defined domain name
|
|
34
|
+
:param pulumi.Input['BucketCnameCertificateArgs'] certificate: The container for the certificate configuration. See `certificate` below.
|
|
35
|
+
:param pulumi.Input[bool] delete_certificate: Whether to delete the certificate.
|
|
36
|
+
:param pulumi.Input[bool] force: Whether to force overwrite certificate.
|
|
37
|
+
:param pulumi.Input[str] previous_cert_id: The current certificate ID. If the Force value is not true, the OSS Server checks whether the value matches the current certificate ID. If the value does not match, an error is reported.
|
|
38
|
+
"""
|
|
39
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
40
|
+
pulumi.set(__self__, "domain", domain)
|
|
41
|
+
if certificate is not None:
|
|
42
|
+
pulumi.set(__self__, "certificate", certificate)
|
|
43
|
+
if delete_certificate is not None:
|
|
44
|
+
pulumi.set(__self__, "delete_certificate", delete_certificate)
|
|
45
|
+
if force is not None:
|
|
46
|
+
pulumi.set(__self__, "force", force)
|
|
47
|
+
if previous_cert_id is not None:
|
|
48
|
+
pulumi.set(__self__, "previous_cert_id", previous_cert_id)
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
@pulumi.getter
|
|
52
|
+
def bucket(self) -> pulumi.Input[str]:
|
|
53
|
+
"""
|
|
54
|
+
The bucket to which the custom domain name belongs
|
|
55
|
+
"""
|
|
56
|
+
return pulumi.get(self, "bucket")
|
|
57
|
+
|
|
58
|
+
@bucket.setter
|
|
59
|
+
def bucket(self, value: pulumi.Input[str]):
|
|
60
|
+
pulumi.set(self, "bucket", value)
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
@pulumi.getter
|
|
64
|
+
def domain(self) -> pulumi.Input[str]:
|
|
65
|
+
"""
|
|
66
|
+
User-defined domain name
|
|
67
|
+
"""
|
|
68
|
+
return pulumi.get(self, "domain")
|
|
69
|
+
|
|
70
|
+
@domain.setter
|
|
71
|
+
def domain(self, value: pulumi.Input[str]):
|
|
72
|
+
pulumi.set(self, "domain", value)
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
@pulumi.getter
|
|
76
|
+
def certificate(self) -> Optional[pulumi.Input['BucketCnameCertificateArgs']]:
|
|
77
|
+
"""
|
|
78
|
+
The container for the certificate configuration. See `certificate` below.
|
|
79
|
+
"""
|
|
80
|
+
return pulumi.get(self, "certificate")
|
|
81
|
+
|
|
82
|
+
@certificate.setter
|
|
83
|
+
def certificate(self, value: Optional[pulumi.Input['BucketCnameCertificateArgs']]):
|
|
84
|
+
pulumi.set(self, "certificate", value)
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
@pulumi.getter(name="deleteCertificate")
|
|
88
|
+
def delete_certificate(self) -> Optional[pulumi.Input[bool]]:
|
|
89
|
+
"""
|
|
90
|
+
Whether to delete the certificate.
|
|
91
|
+
"""
|
|
92
|
+
return pulumi.get(self, "delete_certificate")
|
|
93
|
+
|
|
94
|
+
@delete_certificate.setter
|
|
95
|
+
def delete_certificate(self, value: Optional[pulumi.Input[bool]]):
|
|
96
|
+
pulumi.set(self, "delete_certificate", value)
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
@pulumi.getter
|
|
100
|
+
def force(self) -> Optional[pulumi.Input[bool]]:
|
|
101
|
+
"""
|
|
102
|
+
Whether to force overwrite certificate.
|
|
103
|
+
"""
|
|
104
|
+
return pulumi.get(self, "force")
|
|
105
|
+
|
|
106
|
+
@force.setter
|
|
107
|
+
def force(self, value: Optional[pulumi.Input[bool]]):
|
|
108
|
+
pulumi.set(self, "force", value)
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
@pulumi.getter(name="previousCertId")
|
|
112
|
+
def previous_cert_id(self) -> Optional[pulumi.Input[str]]:
|
|
113
|
+
"""
|
|
114
|
+
The current certificate ID. If the Force value is not true, the OSS Server checks whether the value matches the current certificate ID. If the value does not match, an error is reported.
|
|
115
|
+
"""
|
|
116
|
+
return pulumi.get(self, "previous_cert_id")
|
|
117
|
+
|
|
118
|
+
@previous_cert_id.setter
|
|
119
|
+
def previous_cert_id(self, value: Optional[pulumi.Input[str]]):
|
|
120
|
+
pulumi.set(self, "previous_cert_id", value)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
@pulumi.input_type
|
|
124
|
+
class _BucketCnameState:
|
|
125
|
+
def __init__(__self__, *,
|
|
126
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
127
|
+
certificate: Optional[pulumi.Input['BucketCnameCertificateArgs']] = None,
|
|
128
|
+
delete_certificate: Optional[pulumi.Input[bool]] = None,
|
|
129
|
+
domain: Optional[pulumi.Input[str]] = None,
|
|
130
|
+
force: Optional[pulumi.Input[bool]] = None,
|
|
131
|
+
previous_cert_id: Optional[pulumi.Input[str]] = None,
|
|
132
|
+
status: Optional[pulumi.Input[str]] = None):
|
|
133
|
+
"""
|
|
134
|
+
Input properties used for looking up and filtering BucketCname resources.
|
|
135
|
+
:param pulumi.Input[str] bucket: The bucket to which the custom domain name belongs
|
|
136
|
+
:param pulumi.Input['BucketCnameCertificateArgs'] certificate: The container for the certificate configuration. See `certificate` below.
|
|
137
|
+
:param pulumi.Input[bool] delete_certificate: Whether to delete the certificate.
|
|
138
|
+
:param pulumi.Input[str] domain: User-defined domain name
|
|
139
|
+
:param pulumi.Input[bool] force: Whether to force overwrite certificate.
|
|
140
|
+
:param pulumi.Input[str] previous_cert_id: The current certificate ID. If the Force value is not true, the OSS Server checks whether the value matches the current certificate ID. If the value does not match, an error is reported.
|
|
141
|
+
:param pulumi.Input[str] status: Cname status
|
|
142
|
+
"""
|
|
143
|
+
if bucket is not None:
|
|
144
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
145
|
+
if certificate is not None:
|
|
146
|
+
pulumi.set(__self__, "certificate", certificate)
|
|
147
|
+
if delete_certificate is not None:
|
|
148
|
+
pulumi.set(__self__, "delete_certificate", delete_certificate)
|
|
149
|
+
if domain is not None:
|
|
150
|
+
pulumi.set(__self__, "domain", domain)
|
|
151
|
+
if force is not None:
|
|
152
|
+
pulumi.set(__self__, "force", force)
|
|
153
|
+
if previous_cert_id is not None:
|
|
154
|
+
pulumi.set(__self__, "previous_cert_id", previous_cert_id)
|
|
155
|
+
if status is not None:
|
|
156
|
+
pulumi.set(__self__, "status", status)
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
@pulumi.getter
|
|
160
|
+
def bucket(self) -> Optional[pulumi.Input[str]]:
|
|
161
|
+
"""
|
|
162
|
+
The bucket to which the custom domain name belongs
|
|
163
|
+
"""
|
|
164
|
+
return pulumi.get(self, "bucket")
|
|
165
|
+
|
|
166
|
+
@bucket.setter
|
|
167
|
+
def bucket(self, value: Optional[pulumi.Input[str]]):
|
|
168
|
+
pulumi.set(self, "bucket", value)
|
|
169
|
+
|
|
170
|
+
@property
|
|
171
|
+
@pulumi.getter
|
|
172
|
+
def certificate(self) -> Optional[pulumi.Input['BucketCnameCertificateArgs']]:
|
|
173
|
+
"""
|
|
174
|
+
The container for the certificate configuration. See `certificate` below.
|
|
175
|
+
"""
|
|
176
|
+
return pulumi.get(self, "certificate")
|
|
177
|
+
|
|
178
|
+
@certificate.setter
|
|
179
|
+
def certificate(self, value: Optional[pulumi.Input['BucketCnameCertificateArgs']]):
|
|
180
|
+
pulumi.set(self, "certificate", value)
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
@pulumi.getter(name="deleteCertificate")
|
|
184
|
+
def delete_certificate(self) -> Optional[pulumi.Input[bool]]:
|
|
185
|
+
"""
|
|
186
|
+
Whether to delete the certificate.
|
|
187
|
+
"""
|
|
188
|
+
return pulumi.get(self, "delete_certificate")
|
|
189
|
+
|
|
190
|
+
@delete_certificate.setter
|
|
191
|
+
def delete_certificate(self, value: Optional[pulumi.Input[bool]]):
|
|
192
|
+
pulumi.set(self, "delete_certificate", value)
|
|
193
|
+
|
|
194
|
+
@property
|
|
195
|
+
@pulumi.getter
|
|
196
|
+
def domain(self) -> Optional[pulumi.Input[str]]:
|
|
197
|
+
"""
|
|
198
|
+
User-defined domain name
|
|
199
|
+
"""
|
|
200
|
+
return pulumi.get(self, "domain")
|
|
201
|
+
|
|
202
|
+
@domain.setter
|
|
203
|
+
def domain(self, value: Optional[pulumi.Input[str]]):
|
|
204
|
+
pulumi.set(self, "domain", value)
|
|
205
|
+
|
|
206
|
+
@property
|
|
207
|
+
@pulumi.getter
|
|
208
|
+
def force(self) -> Optional[pulumi.Input[bool]]:
|
|
209
|
+
"""
|
|
210
|
+
Whether to force overwrite certificate.
|
|
211
|
+
"""
|
|
212
|
+
return pulumi.get(self, "force")
|
|
213
|
+
|
|
214
|
+
@force.setter
|
|
215
|
+
def force(self, value: Optional[pulumi.Input[bool]]):
|
|
216
|
+
pulumi.set(self, "force", value)
|
|
217
|
+
|
|
218
|
+
@property
|
|
219
|
+
@pulumi.getter(name="previousCertId")
|
|
220
|
+
def previous_cert_id(self) -> Optional[pulumi.Input[str]]:
|
|
221
|
+
"""
|
|
222
|
+
The current certificate ID. If the Force value is not true, the OSS Server checks whether the value matches the current certificate ID. If the value does not match, an error is reported.
|
|
223
|
+
"""
|
|
224
|
+
return pulumi.get(self, "previous_cert_id")
|
|
225
|
+
|
|
226
|
+
@previous_cert_id.setter
|
|
227
|
+
def previous_cert_id(self, value: Optional[pulumi.Input[str]]):
|
|
228
|
+
pulumi.set(self, "previous_cert_id", value)
|
|
229
|
+
|
|
230
|
+
@property
|
|
231
|
+
@pulumi.getter
|
|
232
|
+
def status(self) -> Optional[pulumi.Input[str]]:
|
|
233
|
+
"""
|
|
234
|
+
Cname status
|
|
235
|
+
"""
|
|
236
|
+
return pulumi.get(self, "status")
|
|
237
|
+
|
|
238
|
+
@status.setter
|
|
239
|
+
def status(self, value: Optional[pulumi.Input[str]]):
|
|
240
|
+
pulumi.set(self, "status", value)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
class BucketCname(pulumi.CustomResource):
|
|
244
|
+
@overload
|
|
245
|
+
def __init__(__self__,
|
|
246
|
+
resource_name: str,
|
|
247
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
248
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
249
|
+
certificate: Optional[pulumi.Input[Union['BucketCnameCertificateArgs', 'BucketCnameCertificateArgsDict']]] = None,
|
|
250
|
+
delete_certificate: Optional[pulumi.Input[bool]] = None,
|
|
251
|
+
domain: Optional[pulumi.Input[str]] = None,
|
|
252
|
+
force: Optional[pulumi.Input[bool]] = None,
|
|
253
|
+
previous_cert_id: Optional[pulumi.Input[str]] = None,
|
|
254
|
+
__props__=None):
|
|
255
|
+
"""
|
|
256
|
+
Provides a OSS Bucket Cname resource.
|
|
257
|
+
|
|
258
|
+
Customizing Bucket domains.
|
|
259
|
+
|
|
260
|
+
For information about OSS Bucket Cname and how to use it, see [What is Bucket Cname](https://www.alibabacloud.com/help/en/).
|
|
261
|
+
|
|
262
|
+
> **NOTE:** Available since v1.233.0.
|
|
263
|
+
|
|
264
|
+
## Example Usage
|
|
265
|
+
|
|
266
|
+
Basic Usage
|
|
267
|
+
|
|
268
|
+
```python
|
|
269
|
+
import pulumi
|
|
270
|
+
import pulumi_alicloud as alicloud
|
|
271
|
+
|
|
272
|
+
config = pulumi.Config()
|
|
273
|
+
name = config.get("name")
|
|
274
|
+
if name is None:
|
|
275
|
+
name = "terraform-example"
|
|
276
|
+
create_bucket = alicloud.oss.Bucket("CreateBucket",
|
|
277
|
+
bucket=name,
|
|
278
|
+
storage_class="Standard")
|
|
279
|
+
default_za_w_jf_g = alicloud.oss.BucketCnameToken("defaultZaWJfG",
|
|
280
|
+
bucket=create_bucket.bucket,
|
|
281
|
+
domain="tftestacc.com")
|
|
282
|
+
defaultn_hqm5p = alicloud.dns.AlidnsRecord("defaultnHqm5p",
|
|
283
|
+
status="ENABLE",
|
|
284
|
+
line="default",
|
|
285
|
+
rr="_dnsauth",
|
|
286
|
+
type="TXT",
|
|
287
|
+
domain_name="tftestacc.com",
|
|
288
|
+
priority=1,
|
|
289
|
+
value=default_za_w_jf_g.token,
|
|
290
|
+
ttl=600)
|
|
291
|
+
default = alicloud.oss.BucketCname("default",
|
|
292
|
+
bucket=create_bucket.bucket,
|
|
293
|
+
domain=defaultn_hqm5p.domain_name)
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
## Import
|
|
297
|
+
|
|
298
|
+
OSS Bucket Cname can be imported using the id, e.g.
|
|
299
|
+
|
|
300
|
+
```sh
|
|
301
|
+
$ pulumi import alicloud:oss/bucketCname:BucketCname example <bucket>:<domain>
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
:param str resource_name: The name of the resource.
|
|
305
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
306
|
+
:param pulumi.Input[str] bucket: The bucket to which the custom domain name belongs
|
|
307
|
+
:param pulumi.Input[Union['BucketCnameCertificateArgs', 'BucketCnameCertificateArgsDict']] certificate: The container for the certificate configuration. See `certificate` below.
|
|
308
|
+
:param pulumi.Input[bool] delete_certificate: Whether to delete the certificate.
|
|
309
|
+
:param pulumi.Input[str] domain: User-defined domain name
|
|
310
|
+
:param pulumi.Input[bool] force: Whether to force overwrite certificate.
|
|
311
|
+
:param pulumi.Input[str] previous_cert_id: The current certificate ID. If the Force value is not true, the OSS Server checks whether the value matches the current certificate ID. If the value does not match, an error is reported.
|
|
312
|
+
"""
|
|
313
|
+
...
|
|
314
|
+
@overload
|
|
315
|
+
def __init__(__self__,
|
|
316
|
+
resource_name: str,
|
|
317
|
+
args: BucketCnameArgs,
|
|
318
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
319
|
+
"""
|
|
320
|
+
Provides a OSS Bucket Cname resource.
|
|
321
|
+
|
|
322
|
+
Customizing Bucket domains.
|
|
323
|
+
|
|
324
|
+
For information about OSS Bucket Cname and how to use it, see [What is Bucket Cname](https://www.alibabacloud.com/help/en/).
|
|
325
|
+
|
|
326
|
+
> **NOTE:** Available since v1.233.0.
|
|
327
|
+
|
|
328
|
+
## Example Usage
|
|
329
|
+
|
|
330
|
+
Basic Usage
|
|
331
|
+
|
|
332
|
+
```python
|
|
333
|
+
import pulumi
|
|
334
|
+
import pulumi_alicloud as alicloud
|
|
335
|
+
|
|
336
|
+
config = pulumi.Config()
|
|
337
|
+
name = config.get("name")
|
|
338
|
+
if name is None:
|
|
339
|
+
name = "terraform-example"
|
|
340
|
+
create_bucket = alicloud.oss.Bucket("CreateBucket",
|
|
341
|
+
bucket=name,
|
|
342
|
+
storage_class="Standard")
|
|
343
|
+
default_za_w_jf_g = alicloud.oss.BucketCnameToken("defaultZaWJfG",
|
|
344
|
+
bucket=create_bucket.bucket,
|
|
345
|
+
domain="tftestacc.com")
|
|
346
|
+
defaultn_hqm5p = alicloud.dns.AlidnsRecord("defaultnHqm5p",
|
|
347
|
+
status="ENABLE",
|
|
348
|
+
line="default",
|
|
349
|
+
rr="_dnsauth",
|
|
350
|
+
type="TXT",
|
|
351
|
+
domain_name="tftestacc.com",
|
|
352
|
+
priority=1,
|
|
353
|
+
value=default_za_w_jf_g.token,
|
|
354
|
+
ttl=600)
|
|
355
|
+
default = alicloud.oss.BucketCname("default",
|
|
356
|
+
bucket=create_bucket.bucket,
|
|
357
|
+
domain=defaultn_hqm5p.domain_name)
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
## Import
|
|
361
|
+
|
|
362
|
+
OSS Bucket Cname can be imported using the id, e.g.
|
|
363
|
+
|
|
364
|
+
```sh
|
|
365
|
+
$ pulumi import alicloud:oss/bucketCname:BucketCname example <bucket>:<domain>
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
:param str resource_name: The name of the resource.
|
|
369
|
+
:param BucketCnameArgs args: The arguments to use to populate this resource's properties.
|
|
370
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
371
|
+
"""
|
|
372
|
+
...
|
|
373
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
374
|
+
resource_args, opts = _utilities.get_resource_args_opts(BucketCnameArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
375
|
+
if resource_args is not None:
|
|
376
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
377
|
+
else:
|
|
378
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
379
|
+
|
|
380
|
+
def _internal_init(__self__,
|
|
381
|
+
resource_name: str,
|
|
382
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
383
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
384
|
+
certificate: Optional[pulumi.Input[Union['BucketCnameCertificateArgs', 'BucketCnameCertificateArgsDict']]] = None,
|
|
385
|
+
delete_certificate: Optional[pulumi.Input[bool]] = None,
|
|
386
|
+
domain: Optional[pulumi.Input[str]] = None,
|
|
387
|
+
force: Optional[pulumi.Input[bool]] = None,
|
|
388
|
+
previous_cert_id: Optional[pulumi.Input[str]] = None,
|
|
389
|
+
__props__=None):
|
|
390
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
391
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
392
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
393
|
+
if opts.id is None:
|
|
394
|
+
if __props__ is not None:
|
|
395
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
396
|
+
__props__ = BucketCnameArgs.__new__(BucketCnameArgs)
|
|
397
|
+
|
|
398
|
+
if bucket is None and not opts.urn:
|
|
399
|
+
raise TypeError("Missing required property 'bucket'")
|
|
400
|
+
__props__.__dict__["bucket"] = bucket
|
|
401
|
+
__props__.__dict__["certificate"] = certificate
|
|
402
|
+
__props__.__dict__["delete_certificate"] = delete_certificate
|
|
403
|
+
if domain is None and not opts.urn:
|
|
404
|
+
raise TypeError("Missing required property 'domain'")
|
|
405
|
+
__props__.__dict__["domain"] = domain
|
|
406
|
+
__props__.__dict__["force"] = force
|
|
407
|
+
__props__.__dict__["previous_cert_id"] = previous_cert_id
|
|
408
|
+
__props__.__dict__["status"] = None
|
|
409
|
+
super(BucketCname, __self__).__init__(
|
|
410
|
+
'alicloud:oss/bucketCname:BucketCname',
|
|
411
|
+
resource_name,
|
|
412
|
+
__props__,
|
|
413
|
+
opts)
|
|
414
|
+
|
|
415
|
+
@staticmethod
|
|
416
|
+
def get(resource_name: str,
|
|
417
|
+
id: pulumi.Input[str],
|
|
418
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
419
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
420
|
+
certificate: Optional[pulumi.Input[Union['BucketCnameCertificateArgs', 'BucketCnameCertificateArgsDict']]] = None,
|
|
421
|
+
delete_certificate: Optional[pulumi.Input[bool]] = None,
|
|
422
|
+
domain: Optional[pulumi.Input[str]] = None,
|
|
423
|
+
force: Optional[pulumi.Input[bool]] = None,
|
|
424
|
+
previous_cert_id: Optional[pulumi.Input[str]] = None,
|
|
425
|
+
status: Optional[pulumi.Input[str]] = None) -> 'BucketCname':
|
|
426
|
+
"""
|
|
427
|
+
Get an existing BucketCname resource's state with the given name, id, and optional extra
|
|
428
|
+
properties used to qualify the lookup.
|
|
429
|
+
|
|
430
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
431
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
432
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
433
|
+
:param pulumi.Input[str] bucket: The bucket to which the custom domain name belongs
|
|
434
|
+
:param pulumi.Input[Union['BucketCnameCertificateArgs', 'BucketCnameCertificateArgsDict']] certificate: The container for the certificate configuration. See `certificate` below.
|
|
435
|
+
:param pulumi.Input[bool] delete_certificate: Whether to delete the certificate.
|
|
436
|
+
:param pulumi.Input[str] domain: User-defined domain name
|
|
437
|
+
:param pulumi.Input[bool] force: Whether to force overwrite certificate.
|
|
438
|
+
:param pulumi.Input[str] previous_cert_id: The current certificate ID. If the Force value is not true, the OSS Server checks whether the value matches the current certificate ID. If the value does not match, an error is reported.
|
|
439
|
+
:param pulumi.Input[str] status: Cname status
|
|
440
|
+
"""
|
|
441
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
442
|
+
|
|
443
|
+
__props__ = _BucketCnameState.__new__(_BucketCnameState)
|
|
444
|
+
|
|
445
|
+
__props__.__dict__["bucket"] = bucket
|
|
446
|
+
__props__.__dict__["certificate"] = certificate
|
|
447
|
+
__props__.__dict__["delete_certificate"] = delete_certificate
|
|
448
|
+
__props__.__dict__["domain"] = domain
|
|
449
|
+
__props__.__dict__["force"] = force
|
|
450
|
+
__props__.__dict__["previous_cert_id"] = previous_cert_id
|
|
451
|
+
__props__.__dict__["status"] = status
|
|
452
|
+
return BucketCname(resource_name, opts=opts, __props__=__props__)
|
|
453
|
+
|
|
454
|
+
@property
|
|
455
|
+
@pulumi.getter
|
|
456
|
+
def bucket(self) -> pulumi.Output[str]:
|
|
457
|
+
"""
|
|
458
|
+
The bucket to which the custom domain name belongs
|
|
459
|
+
"""
|
|
460
|
+
return pulumi.get(self, "bucket")
|
|
461
|
+
|
|
462
|
+
@property
|
|
463
|
+
@pulumi.getter
|
|
464
|
+
def certificate(self) -> pulumi.Output[Optional['outputs.BucketCnameCertificate']]:
|
|
465
|
+
"""
|
|
466
|
+
The container for the certificate configuration. See `certificate` below.
|
|
467
|
+
"""
|
|
468
|
+
return pulumi.get(self, "certificate")
|
|
469
|
+
|
|
470
|
+
@property
|
|
471
|
+
@pulumi.getter(name="deleteCertificate")
|
|
472
|
+
def delete_certificate(self) -> pulumi.Output[Optional[bool]]:
|
|
473
|
+
"""
|
|
474
|
+
Whether to delete the certificate.
|
|
475
|
+
"""
|
|
476
|
+
return pulumi.get(self, "delete_certificate")
|
|
477
|
+
|
|
478
|
+
@property
|
|
479
|
+
@pulumi.getter
|
|
480
|
+
def domain(self) -> pulumi.Output[str]:
|
|
481
|
+
"""
|
|
482
|
+
User-defined domain name
|
|
483
|
+
"""
|
|
484
|
+
return pulumi.get(self, "domain")
|
|
485
|
+
|
|
486
|
+
@property
|
|
487
|
+
@pulumi.getter
|
|
488
|
+
def force(self) -> pulumi.Output[Optional[bool]]:
|
|
489
|
+
"""
|
|
490
|
+
Whether to force overwrite certificate.
|
|
491
|
+
"""
|
|
492
|
+
return pulumi.get(self, "force")
|
|
493
|
+
|
|
494
|
+
@property
|
|
495
|
+
@pulumi.getter(name="previousCertId")
|
|
496
|
+
def previous_cert_id(self) -> pulumi.Output[Optional[str]]:
|
|
497
|
+
"""
|
|
498
|
+
The current certificate ID. If the Force value is not true, the OSS Server checks whether the value matches the current certificate ID. If the value does not match, an error is reported.
|
|
499
|
+
"""
|
|
500
|
+
return pulumi.get(self, "previous_cert_id")
|
|
501
|
+
|
|
502
|
+
@property
|
|
503
|
+
@pulumi.getter
|
|
504
|
+
def status(self) -> pulumi.Output[str]:
|
|
505
|
+
"""
|
|
506
|
+
Cname status
|
|
507
|
+
"""
|
|
508
|
+
return pulumi.get(self, "status")
|
|
509
|
+
|