pulumi-alicloud 3.86.0a1758340042__py3-none-any.whl → 3.86.1a1758944763__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/apig/_inputs.py +80 -6
- pulumi_alicloud/apig/gateway.py +111 -3
- pulumi_alicloud/apig/outputs.py +67 -4
- pulumi_alicloud/cas/certificate.py +248 -35
- pulumi_alicloud/cas/service_certificate.py +454 -168
- pulumi_alicloud/ecs/instance.py +7 -7
- pulumi_alicloud/hbr/policy_binding.py +7 -0
- pulumi_alicloud/kvstore/account.py +4 -4
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/pvtz/get_service.py +12 -8
- pulumi_alicloud/resourcemanager/control_policy.py +169 -31
- pulumi_alicloud/vpc/bgp_network.py +83 -36
- {pulumi_alicloud-3.86.0a1758340042.dist-info → pulumi_alicloud-3.86.1a1758944763.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.86.0a1758340042.dist-info → pulumi_alicloud-3.86.1a1758944763.dist-info}/RECORD +16 -16
- {pulumi_alicloud-3.86.0a1758340042.dist-info → pulumi_alicloud-3.86.1a1758944763.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.86.0a1758340042.dist-info → pulumi_alicloud-3.86.1a1758944763.dist-info}/top_level.txt +0 -0
|
@@ -19,64 +19,106 @@ __all__ = ['CertificateArgs', 'Certificate']
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class CertificateArgs:
|
|
21
21
|
def __init__(__self__, *,
|
|
22
|
-
cert: pulumi.Input[_builtins.str],
|
|
23
|
-
key: pulumi.Input[_builtins.str],
|
|
22
|
+
cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
24
23
|
certificate_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
24
|
+
encrypt_cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
encrypt_private_key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
27
|
lang: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
-
name: Optional[pulumi.Input[_builtins.str]] = None
|
|
28
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
+
resource_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
sign_cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
31
|
+
sign_private_key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None):
|
|
27
33
|
"""
|
|
28
34
|
The set of arguments for constructing a Certificate resource.
|
|
29
35
|
:param pulumi.Input[_builtins.str] cert: Cert of the Certificate in which the Certificate will add.
|
|
30
36
|
:param pulumi.Input[_builtins.str] key: Key of the Certificate in which the Certificate will add.
|
|
31
37
|
:param pulumi.Input[_builtins.str] name: Name of the Certificate. This name must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix `.sh` and `.tel` are not supported.
|
|
32
38
|
"""
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
if cert is not None:
|
|
40
|
+
pulumi.set(__self__, "cert", cert)
|
|
35
41
|
if certificate_name is not None:
|
|
36
42
|
pulumi.set(__self__, "certificate_name", certificate_name)
|
|
43
|
+
if encrypt_cert is not None:
|
|
44
|
+
pulumi.set(__self__, "encrypt_cert", encrypt_cert)
|
|
45
|
+
if encrypt_private_key is not None:
|
|
46
|
+
pulumi.set(__self__, "encrypt_private_key", encrypt_private_key)
|
|
47
|
+
if key is not None:
|
|
48
|
+
pulumi.set(__self__, "key", key)
|
|
49
|
+
if lang is not None:
|
|
50
|
+
warnings.warn("""Field 'lang' has been deprecated from provider version 1.260.1 and it will be removed in the future version.""", DeprecationWarning)
|
|
51
|
+
pulumi.log.warn("""lang is deprecated: Field 'lang' has been deprecated from provider version 1.260.1 and it will be removed in the future version.""")
|
|
37
52
|
if lang is not None:
|
|
38
53
|
pulumi.set(__self__, "lang", lang)
|
|
39
54
|
if name is not None:
|
|
40
|
-
warnings.warn("""
|
|
41
|
-
pulumi.log.warn("""name is deprecated:
|
|
55
|
+
warnings.warn("""Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.""", DeprecationWarning)
|
|
56
|
+
pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.""")
|
|
42
57
|
if name is not None:
|
|
43
58
|
pulumi.set(__self__, "name", name)
|
|
59
|
+
if resource_group_id is not None:
|
|
60
|
+
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
61
|
+
if sign_cert is not None:
|
|
62
|
+
pulumi.set(__self__, "sign_cert", sign_cert)
|
|
63
|
+
if sign_private_key is not None:
|
|
64
|
+
pulumi.set(__self__, "sign_private_key", sign_private_key)
|
|
65
|
+
if tags is not None:
|
|
66
|
+
pulumi.set(__self__, "tags", tags)
|
|
44
67
|
|
|
45
68
|
@_builtins.property
|
|
46
69
|
@pulumi.getter
|
|
47
|
-
def cert(self) -> pulumi.Input[_builtins.str]:
|
|
70
|
+
def cert(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
48
71
|
"""
|
|
49
72
|
Cert of the Certificate in which the Certificate will add.
|
|
50
73
|
"""
|
|
51
74
|
return pulumi.get(self, "cert")
|
|
52
75
|
|
|
53
76
|
@cert.setter
|
|
54
|
-
def cert(self, value: pulumi.Input[_builtins.str]):
|
|
77
|
+
def cert(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
55
78
|
pulumi.set(self, "cert", value)
|
|
56
79
|
|
|
80
|
+
@_builtins.property
|
|
81
|
+
@pulumi.getter(name="certificateName")
|
|
82
|
+
def certificate_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
83
|
+
return pulumi.get(self, "certificate_name")
|
|
84
|
+
|
|
85
|
+
@certificate_name.setter
|
|
86
|
+
def certificate_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
87
|
+
pulumi.set(self, "certificate_name", value)
|
|
88
|
+
|
|
89
|
+
@_builtins.property
|
|
90
|
+
@pulumi.getter(name="encryptCert")
|
|
91
|
+
def encrypt_cert(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
92
|
+
return pulumi.get(self, "encrypt_cert")
|
|
93
|
+
|
|
94
|
+
@encrypt_cert.setter
|
|
95
|
+
def encrypt_cert(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
96
|
+
pulumi.set(self, "encrypt_cert", value)
|
|
97
|
+
|
|
98
|
+
@_builtins.property
|
|
99
|
+
@pulumi.getter(name="encryptPrivateKey")
|
|
100
|
+
def encrypt_private_key(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
101
|
+
return pulumi.get(self, "encrypt_private_key")
|
|
102
|
+
|
|
103
|
+
@encrypt_private_key.setter
|
|
104
|
+
def encrypt_private_key(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
105
|
+
pulumi.set(self, "encrypt_private_key", value)
|
|
106
|
+
|
|
57
107
|
@_builtins.property
|
|
58
108
|
@pulumi.getter
|
|
59
|
-
def key(self) -> pulumi.Input[_builtins.str]:
|
|
109
|
+
def key(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
60
110
|
"""
|
|
61
111
|
Key of the Certificate in which the Certificate will add.
|
|
62
112
|
"""
|
|
63
113
|
return pulumi.get(self, "key")
|
|
64
114
|
|
|
65
115
|
@key.setter
|
|
66
|
-
def key(self, value: pulumi.Input[_builtins.str]):
|
|
116
|
+
def key(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
67
117
|
pulumi.set(self, "key", value)
|
|
68
118
|
|
|
69
|
-
@_builtins.property
|
|
70
|
-
@pulumi.getter(name="certificateName")
|
|
71
|
-
def certificate_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
72
|
-
return pulumi.get(self, "certificate_name")
|
|
73
|
-
|
|
74
|
-
@certificate_name.setter
|
|
75
|
-
def certificate_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
76
|
-
pulumi.set(self, "certificate_name", value)
|
|
77
|
-
|
|
78
119
|
@_builtins.property
|
|
79
120
|
@pulumi.getter
|
|
121
|
+
@_utilities.deprecated("""Field 'lang' has been deprecated from provider version 1.260.1 and it will be removed in the future version.""")
|
|
80
122
|
def lang(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
81
123
|
return pulumi.get(self, "lang")
|
|
82
124
|
|
|
@@ -86,7 +128,7 @@ class CertificateArgs:
|
|
|
86
128
|
|
|
87
129
|
@_builtins.property
|
|
88
130
|
@pulumi.getter
|
|
89
|
-
@_utilities.deprecated("""
|
|
131
|
+
@_utilities.deprecated("""Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.""")
|
|
90
132
|
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
91
133
|
"""
|
|
92
134
|
Name of the Certificate. This name must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix `.sh` and `.tel` are not supported.
|
|
@@ -97,15 +139,57 @@ class CertificateArgs:
|
|
|
97
139
|
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
98
140
|
pulumi.set(self, "name", value)
|
|
99
141
|
|
|
142
|
+
@_builtins.property
|
|
143
|
+
@pulumi.getter(name="resourceGroupId")
|
|
144
|
+
def resource_group_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
145
|
+
return pulumi.get(self, "resource_group_id")
|
|
146
|
+
|
|
147
|
+
@resource_group_id.setter
|
|
148
|
+
def resource_group_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
149
|
+
pulumi.set(self, "resource_group_id", value)
|
|
150
|
+
|
|
151
|
+
@_builtins.property
|
|
152
|
+
@pulumi.getter(name="signCert")
|
|
153
|
+
def sign_cert(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
154
|
+
return pulumi.get(self, "sign_cert")
|
|
155
|
+
|
|
156
|
+
@sign_cert.setter
|
|
157
|
+
def sign_cert(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
158
|
+
pulumi.set(self, "sign_cert", value)
|
|
159
|
+
|
|
160
|
+
@_builtins.property
|
|
161
|
+
@pulumi.getter(name="signPrivateKey")
|
|
162
|
+
def sign_private_key(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
163
|
+
return pulumi.get(self, "sign_private_key")
|
|
164
|
+
|
|
165
|
+
@sign_private_key.setter
|
|
166
|
+
def sign_private_key(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
167
|
+
pulumi.set(self, "sign_private_key", value)
|
|
168
|
+
|
|
169
|
+
@_builtins.property
|
|
170
|
+
@pulumi.getter
|
|
171
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
172
|
+
return pulumi.get(self, "tags")
|
|
173
|
+
|
|
174
|
+
@tags.setter
|
|
175
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
176
|
+
pulumi.set(self, "tags", value)
|
|
177
|
+
|
|
100
178
|
|
|
101
179
|
@pulumi.input_type
|
|
102
180
|
class _CertificateState:
|
|
103
181
|
def __init__(__self__, *,
|
|
104
182
|
cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
105
183
|
certificate_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
184
|
+
encrypt_cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
185
|
+
encrypt_private_key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
106
186
|
key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
107
187
|
lang: Optional[pulumi.Input[_builtins.str]] = None,
|
|
108
|
-
name: Optional[pulumi.Input[_builtins.str]] = None
|
|
188
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
189
|
+
resource_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
190
|
+
sign_cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
191
|
+
sign_private_key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
192
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None):
|
|
109
193
|
"""
|
|
110
194
|
Input properties used for looking up and filtering Certificate resources.
|
|
111
195
|
:param pulumi.Input[_builtins.str] cert: Cert of the Certificate in which the Certificate will add.
|
|
@@ -116,15 +200,30 @@ class _CertificateState:
|
|
|
116
200
|
pulumi.set(__self__, "cert", cert)
|
|
117
201
|
if certificate_name is not None:
|
|
118
202
|
pulumi.set(__self__, "certificate_name", certificate_name)
|
|
203
|
+
if encrypt_cert is not None:
|
|
204
|
+
pulumi.set(__self__, "encrypt_cert", encrypt_cert)
|
|
205
|
+
if encrypt_private_key is not None:
|
|
206
|
+
pulumi.set(__self__, "encrypt_private_key", encrypt_private_key)
|
|
119
207
|
if key is not None:
|
|
120
208
|
pulumi.set(__self__, "key", key)
|
|
209
|
+
if lang is not None:
|
|
210
|
+
warnings.warn("""Field 'lang' has been deprecated from provider version 1.260.1 and it will be removed in the future version.""", DeprecationWarning)
|
|
211
|
+
pulumi.log.warn("""lang is deprecated: Field 'lang' has been deprecated from provider version 1.260.1 and it will be removed in the future version.""")
|
|
121
212
|
if lang is not None:
|
|
122
213
|
pulumi.set(__self__, "lang", lang)
|
|
123
214
|
if name is not None:
|
|
124
|
-
warnings.warn("""
|
|
125
|
-
pulumi.log.warn("""name is deprecated:
|
|
215
|
+
warnings.warn("""Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.""", DeprecationWarning)
|
|
216
|
+
pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.""")
|
|
126
217
|
if name is not None:
|
|
127
218
|
pulumi.set(__self__, "name", name)
|
|
219
|
+
if resource_group_id is not None:
|
|
220
|
+
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
221
|
+
if sign_cert is not None:
|
|
222
|
+
pulumi.set(__self__, "sign_cert", sign_cert)
|
|
223
|
+
if sign_private_key is not None:
|
|
224
|
+
pulumi.set(__self__, "sign_private_key", sign_private_key)
|
|
225
|
+
if tags is not None:
|
|
226
|
+
pulumi.set(__self__, "tags", tags)
|
|
128
227
|
|
|
129
228
|
@_builtins.property
|
|
130
229
|
@pulumi.getter
|
|
@@ -147,6 +246,24 @@ class _CertificateState:
|
|
|
147
246
|
def certificate_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
148
247
|
pulumi.set(self, "certificate_name", value)
|
|
149
248
|
|
|
249
|
+
@_builtins.property
|
|
250
|
+
@pulumi.getter(name="encryptCert")
|
|
251
|
+
def encrypt_cert(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
252
|
+
return pulumi.get(self, "encrypt_cert")
|
|
253
|
+
|
|
254
|
+
@encrypt_cert.setter
|
|
255
|
+
def encrypt_cert(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
256
|
+
pulumi.set(self, "encrypt_cert", value)
|
|
257
|
+
|
|
258
|
+
@_builtins.property
|
|
259
|
+
@pulumi.getter(name="encryptPrivateKey")
|
|
260
|
+
def encrypt_private_key(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
261
|
+
return pulumi.get(self, "encrypt_private_key")
|
|
262
|
+
|
|
263
|
+
@encrypt_private_key.setter
|
|
264
|
+
def encrypt_private_key(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
265
|
+
pulumi.set(self, "encrypt_private_key", value)
|
|
266
|
+
|
|
150
267
|
@_builtins.property
|
|
151
268
|
@pulumi.getter
|
|
152
269
|
def key(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -161,6 +278,7 @@ class _CertificateState:
|
|
|
161
278
|
|
|
162
279
|
@_builtins.property
|
|
163
280
|
@pulumi.getter
|
|
281
|
+
@_utilities.deprecated("""Field 'lang' has been deprecated from provider version 1.260.1 and it will be removed in the future version.""")
|
|
164
282
|
def lang(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
165
283
|
return pulumi.get(self, "lang")
|
|
166
284
|
|
|
@@ -170,7 +288,7 @@ class _CertificateState:
|
|
|
170
288
|
|
|
171
289
|
@_builtins.property
|
|
172
290
|
@pulumi.getter
|
|
173
|
-
@_utilities.deprecated("""
|
|
291
|
+
@_utilities.deprecated("""Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.""")
|
|
174
292
|
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
175
293
|
"""
|
|
176
294
|
Name of the Certificate. This name must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix `.sh` and `.tel` are not supported.
|
|
@@ -181,6 +299,42 @@ class _CertificateState:
|
|
|
181
299
|
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
182
300
|
pulumi.set(self, "name", value)
|
|
183
301
|
|
|
302
|
+
@_builtins.property
|
|
303
|
+
@pulumi.getter(name="resourceGroupId")
|
|
304
|
+
def resource_group_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
305
|
+
return pulumi.get(self, "resource_group_id")
|
|
306
|
+
|
|
307
|
+
@resource_group_id.setter
|
|
308
|
+
def resource_group_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
309
|
+
pulumi.set(self, "resource_group_id", value)
|
|
310
|
+
|
|
311
|
+
@_builtins.property
|
|
312
|
+
@pulumi.getter(name="signCert")
|
|
313
|
+
def sign_cert(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
314
|
+
return pulumi.get(self, "sign_cert")
|
|
315
|
+
|
|
316
|
+
@sign_cert.setter
|
|
317
|
+
def sign_cert(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
318
|
+
pulumi.set(self, "sign_cert", value)
|
|
319
|
+
|
|
320
|
+
@_builtins.property
|
|
321
|
+
@pulumi.getter(name="signPrivateKey")
|
|
322
|
+
def sign_private_key(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
323
|
+
return pulumi.get(self, "sign_private_key")
|
|
324
|
+
|
|
325
|
+
@sign_private_key.setter
|
|
326
|
+
def sign_private_key(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
327
|
+
pulumi.set(self, "sign_private_key", value)
|
|
328
|
+
|
|
329
|
+
@_builtins.property
|
|
330
|
+
@pulumi.getter
|
|
331
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
332
|
+
return pulumi.get(self, "tags")
|
|
333
|
+
|
|
334
|
+
@tags.setter
|
|
335
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
336
|
+
pulumi.set(self, "tags", value)
|
|
337
|
+
|
|
184
338
|
|
|
185
339
|
warnings.warn("""This resource has been deprecated in favour of ServiceCertificate""", DeprecationWarning)
|
|
186
340
|
|
|
@@ -195,9 +349,15 @@ class Certificate(pulumi.CustomResource):
|
|
|
195
349
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
196
350
|
cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
197
351
|
certificate_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
352
|
+
encrypt_cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
353
|
+
encrypt_private_key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
198
354
|
key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
199
355
|
lang: Optional[pulumi.Input[_builtins.str]] = None,
|
|
200
356
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
357
|
+
resource_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
358
|
+
sign_cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
359
|
+
sign_private_key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
360
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
201
361
|
__props__=None):
|
|
202
362
|
"""
|
|
203
363
|
Provides a CAS Certificate resource.
|
|
@@ -291,7 +451,7 @@ class Certificate(pulumi.CustomResource):
|
|
|
291
451
|
@overload
|
|
292
452
|
def __init__(__self__,
|
|
293
453
|
resource_name: str,
|
|
294
|
-
args: CertificateArgs,
|
|
454
|
+
args: Optional[CertificateArgs] = None,
|
|
295
455
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
296
456
|
"""
|
|
297
457
|
Provides a CAS Certificate resource.
|
|
@@ -392,9 +552,15 @@ class Certificate(pulumi.CustomResource):
|
|
|
392
552
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
393
553
|
cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
394
554
|
certificate_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
555
|
+
encrypt_cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
556
|
+
encrypt_private_key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
395
557
|
key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
396
558
|
lang: Optional[pulumi.Input[_builtins.str]] = None,
|
|
397
559
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
560
|
+
resource_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
561
|
+
sign_cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
562
|
+
sign_private_key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
563
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
398
564
|
__props__=None):
|
|
399
565
|
pulumi.log.warn("""Certificate is deprecated: This resource has been deprecated in favour of ServiceCertificate""")
|
|
400
566
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -405,15 +571,19 @@ class Certificate(pulumi.CustomResource):
|
|
|
405
571
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
406
572
|
__props__ = CertificateArgs.__new__(CertificateArgs)
|
|
407
573
|
|
|
408
|
-
if cert is None and not opts.urn:
|
|
409
|
-
raise TypeError("Missing required property 'cert'")
|
|
410
574
|
__props__.__dict__["cert"] = cert
|
|
411
575
|
__props__.__dict__["certificate_name"] = certificate_name
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
__props__.__dict__["key"] = key
|
|
576
|
+
__props__.__dict__["encrypt_cert"] = encrypt_cert
|
|
577
|
+
__props__.__dict__["encrypt_private_key"] = None if encrypt_private_key is None else pulumi.Output.secret(encrypt_private_key)
|
|
578
|
+
__props__.__dict__["key"] = None if key is None else pulumi.Output.secret(key)
|
|
415
579
|
__props__.__dict__["lang"] = lang
|
|
416
580
|
__props__.__dict__["name"] = name
|
|
581
|
+
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
582
|
+
__props__.__dict__["sign_cert"] = sign_cert
|
|
583
|
+
__props__.__dict__["sign_private_key"] = None if sign_private_key is None else pulumi.Output.secret(sign_private_key)
|
|
584
|
+
__props__.__dict__["tags"] = tags
|
|
585
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["encryptPrivateKey", "key", "signPrivateKey"])
|
|
586
|
+
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
417
587
|
super(Certificate, __self__).__init__(
|
|
418
588
|
'alicloud:cas/certificate:Certificate',
|
|
419
589
|
resource_name,
|
|
@@ -426,9 +596,15 @@ class Certificate(pulumi.CustomResource):
|
|
|
426
596
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
427
597
|
cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
428
598
|
certificate_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
599
|
+
encrypt_cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
600
|
+
encrypt_private_key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
429
601
|
key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
430
602
|
lang: Optional[pulumi.Input[_builtins.str]] = None,
|
|
431
|
-
name: Optional[pulumi.Input[_builtins.str]] = None
|
|
603
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
604
|
+
resource_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
605
|
+
sign_cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
606
|
+
sign_private_key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
607
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None) -> 'Certificate':
|
|
432
608
|
"""
|
|
433
609
|
Get an existing Certificate resource's state with the given name, id, and optional extra
|
|
434
610
|
properties used to qualify the lookup.
|
|
@@ -446,14 +622,20 @@ class Certificate(pulumi.CustomResource):
|
|
|
446
622
|
|
|
447
623
|
__props__.__dict__["cert"] = cert
|
|
448
624
|
__props__.__dict__["certificate_name"] = certificate_name
|
|
625
|
+
__props__.__dict__["encrypt_cert"] = encrypt_cert
|
|
626
|
+
__props__.__dict__["encrypt_private_key"] = encrypt_private_key
|
|
449
627
|
__props__.__dict__["key"] = key
|
|
450
628
|
__props__.__dict__["lang"] = lang
|
|
451
629
|
__props__.__dict__["name"] = name
|
|
630
|
+
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
631
|
+
__props__.__dict__["sign_cert"] = sign_cert
|
|
632
|
+
__props__.__dict__["sign_private_key"] = sign_private_key
|
|
633
|
+
__props__.__dict__["tags"] = tags
|
|
452
634
|
return Certificate(resource_name, opts=opts, __props__=__props__)
|
|
453
635
|
|
|
454
636
|
@_builtins.property
|
|
455
637
|
@pulumi.getter
|
|
456
|
-
def cert(self) -> pulumi.Output[_builtins.str]:
|
|
638
|
+
def cert(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
457
639
|
"""
|
|
458
640
|
Cert of the Certificate in which the Certificate will add.
|
|
459
641
|
"""
|
|
@@ -464,9 +646,19 @@ class Certificate(pulumi.CustomResource):
|
|
|
464
646
|
def certificate_name(self) -> pulumi.Output[_builtins.str]:
|
|
465
647
|
return pulumi.get(self, "certificate_name")
|
|
466
648
|
|
|
649
|
+
@_builtins.property
|
|
650
|
+
@pulumi.getter(name="encryptCert")
|
|
651
|
+
def encrypt_cert(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
652
|
+
return pulumi.get(self, "encrypt_cert")
|
|
653
|
+
|
|
654
|
+
@_builtins.property
|
|
655
|
+
@pulumi.getter(name="encryptPrivateKey")
|
|
656
|
+
def encrypt_private_key(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
657
|
+
return pulumi.get(self, "encrypt_private_key")
|
|
658
|
+
|
|
467
659
|
@_builtins.property
|
|
468
660
|
@pulumi.getter
|
|
469
|
-
def key(self) -> pulumi.Output[_builtins.str]:
|
|
661
|
+
def key(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
470
662
|
"""
|
|
471
663
|
Key of the Certificate in which the Certificate will add.
|
|
472
664
|
"""
|
|
@@ -474,15 +666,36 @@ class Certificate(pulumi.CustomResource):
|
|
|
474
666
|
|
|
475
667
|
@_builtins.property
|
|
476
668
|
@pulumi.getter
|
|
669
|
+
@_utilities.deprecated("""Field 'lang' has been deprecated from provider version 1.260.1 and it will be removed in the future version.""")
|
|
477
670
|
def lang(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
478
671
|
return pulumi.get(self, "lang")
|
|
479
672
|
|
|
480
673
|
@_builtins.property
|
|
481
674
|
@pulumi.getter
|
|
482
|
-
@_utilities.deprecated("""
|
|
675
|
+
@_utilities.deprecated("""Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.""")
|
|
483
676
|
def name(self) -> pulumi.Output[_builtins.str]:
|
|
484
677
|
"""
|
|
485
678
|
Name of the Certificate. This name must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix `.sh` and `.tel` are not supported.
|
|
486
679
|
"""
|
|
487
680
|
return pulumi.get(self, "name")
|
|
488
681
|
|
|
682
|
+
@_builtins.property
|
|
683
|
+
@pulumi.getter(name="resourceGroupId")
|
|
684
|
+
def resource_group_id(self) -> pulumi.Output[_builtins.str]:
|
|
685
|
+
return pulumi.get(self, "resource_group_id")
|
|
686
|
+
|
|
687
|
+
@_builtins.property
|
|
688
|
+
@pulumi.getter(name="signCert")
|
|
689
|
+
def sign_cert(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
690
|
+
return pulumi.get(self, "sign_cert")
|
|
691
|
+
|
|
692
|
+
@_builtins.property
|
|
693
|
+
@pulumi.getter(name="signPrivateKey")
|
|
694
|
+
def sign_private_key(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
695
|
+
return pulumi.get(self, "sign_private_key")
|
|
696
|
+
|
|
697
|
+
@_builtins.property
|
|
698
|
+
@pulumi.getter
|
|
699
|
+
def tags(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
|
700
|
+
return pulumi.get(self, "tags")
|
|
701
|
+
|