pulumi-alicloud 3.80.0a1749533304__py3-none-any.whl → 3.81.0a1749648605__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 +32 -0
- pulumi_alicloud/bastionhost/instance.py +7 -7
- pulumi_alicloud/ecs/outputs.py +40 -24
- pulumi_alicloud/esa/__init__.py +4 -0
- pulumi_alicloud/esa/kv.py +500 -0
- pulumi_alicloud/esa/routine.py +285 -0
- pulumi_alicloud/esa/routine_route.py +578 -0
- pulumi_alicloud/esa/site.py +534 -3
- pulumi_alicloud/esa/video_processing.py +802 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- {pulumi_alicloud-3.80.0a1749533304.dist-info → pulumi_alicloud-3.81.0a1749648605.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.80.0a1749533304.dist-info → pulumi_alicloud-3.81.0a1749648605.dist-info}/RECORD +14 -10
- {pulumi_alicloud-3.80.0a1749533304.dist-info → pulumi_alicloud-3.81.0a1749648605.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.80.0a1749533304.dist-info → pulumi_alicloud-3.81.0a1749648605.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins
|
|
6
|
+
import copy
|
|
7
|
+
import warnings
|
|
8
|
+
import sys
|
|
9
|
+
import pulumi
|
|
10
|
+
import pulumi.runtime
|
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
12
|
+
if sys.version_info >= (3, 11):
|
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
14
|
+
else:
|
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
|
+
from .. import _utilities
|
|
17
|
+
|
|
18
|
+
__all__ = ['KvArgs', 'Kv']
|
|
19
|
+
|
|
20
|
+
@pulumi.input_type
|
|
21
|
+
class KvArgs:
|
|
22
|
+
def __init__(__self__, *,
|
|
23
|
+
key: pulumi.Input[builtins.str],
|
|
24
|
+
namespace: pulumi.Input[builtins.str],
|
|
25
|
+
expiration: Optional[pulumi.Input[builtins.int]] = None,
|
|
26
|
+
expiration_ttl: Optional[pulumi.Input[builtins.int]] = None,
|
|
27
|
+
isbase: Optional[pulumi.Input[builtins.bool]] = None,
|
|
28
|
+
url: Optional[pulumi.Input[builtins.str]] = None,
|
|
29
|
+
value: Optional[pulumi.Input[builtins.str]] = None):
|
|
30
|
+
"""
|
|
31
|
+
The set of arguments for constructing a Kv resource.
|
|
32
|
+
:param pulumi.Input[builtins.str] key: kv
|
|
33
|
+
:param pulumi.Input[builtins.str] namespace: The name specified when calling [CreatevNamespace](https://help.aliyun.com/document_detail/2850317.html).
|
|
34
|
+
:param pulumi.Input[builtins.int] expiration: The content of the key, which can be up to 2 MB (2 × 1000 × 1000). If the content is larger than 2 MB, call [PutKvWithHighCapacity](https://www.alibabacloud.com/help/en/doc-detail/2850486.html).
|
|
35
|
+
:param pulumi.Input[builtins.int] expiration_ttl: The time when the key-value pair expires, which cannot be earlier than the current time. The value is a timestamp in seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
36
|
+
:param pulumi.Input[builtins.bool] isbase: The relative expiration time. Unit: seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
37
|
+
:param pulumi.Input[builtins.str] url: The key name. The name can be up to 512 characters in length and cannot contain spaces or backslashes (\\\\).
|
|
38
|
+
:param pulumi.Input[builtins.str] value: The content of the key. If the content has more than 256 characters in length, the system displays the first 100 and the last 100 characters, and omits the middle part.
|
|
39
|
+
"""
|
|
40
|
+
pulumi.set(__self__, "key", key)
|
|
41
|
+
pulumi.set(__self__, "namespace", namespace)
|
|
42
|
+
if expiration is not None:
|
|
43
|
+
pulumi.set(__self__, "expiration", expiration)
|
|
44
|
+
if expiration_ttl is not None:
|
|
45
|
+
pulumi.set(__self__, "expiration_ttl", expiration_ttl)
|
|
46
|
+
if isbase is not None:
|
|
47
|
+
pulumi.set(__self__, "isbase", isbase)
|
|
48
|
+
if url is not None:
|
|
49
|
+
pulumi.set(__self__, "url", url)
|
|
50
|
+
if value is not None:
|
|
51
|
+
pulumi.set(__self__, "value", value)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
@pulumi.getter
|
|
55
|
+
def key(self) -> pulumi.Input[builtins.str]:
|
|
56
|
+
"""
|
|
57
|
+
kv
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "key")
|
|
60
|
+
|
|
61
|
+
@key.setter
|
|
62
|
+
def key(self, value: pulumi.Input[builtins.str]):
|
|
63
|
+
pulumi.set(self, "key", value)
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
@pulumi.getter
|
|
67
|
+
def namespace(self) -> pulumi.Input[builtins.str]:
|
|
68
|
+
"""
|
|
69
|
+
The name specified when calling [CreatevNamespace](https://help.aliyun.com/document_detail/2850317.html).
|
|
70
|
+
"""
|
|
71
|
+
return pulumi.get(self, "namespace")
|
|
72
|
+
|
|
73
|
+
@namespace.setter
|
|
74
|
+
def namespace(self, value: pulumi.Input[builtins.str]):
|
|
75
|
+
pulumi.set(self, "namespace", value)
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter
|
|
79
|
+
def expiration(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
80
|
+
"""
|
|
81
|
+
The content of the key, which can be up to 2 MB (2 × 1000 × 1000). If the content is larger than 2 MB, call [PutKvWithHighCapacity](https://www.alibabacloud.com/help/en/doc-detail/2850486.html).
|
|
82
|
+
"""
|
|
83
|
+
return pulumi.get(self, "expiration")
|
|
84
|
+
|
|
85
|
+
@expiration.setter
|
|
86
|
+
def expiration(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
87
|
+
pulumi.set(self, "expiration", value)
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
@pulumi.getter(name="expirationTtl")
|
|
91
|
+
def expiration_ttl(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
92
|
+
"""
|
|
93
|
+
The time when the key-value pair expires, which cannot be earlier than the current time. The value is a timestamp in seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
94
|
+
"""
|
|
95
|
+
return pulumi.get(self, "expiration_ttl")
|
|
96
|
+
|
|
97
|
+
@expiration_ttl.setter
|
|
98
|
+
def expiration_ttl(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
99
|
+
pulumi.set(self, "expiration_ttl", value)
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
@pulumi.getter
|
|
103
|
+
def isbase(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
104
|
+
"""
|
|
105
|
+
The relative expiration time. Unit: seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
106
|
+
"""
|
|
107
|
+
return pulumi.get(self, "isbase")
|
|
108
|
+
|
|
109
|
+
@isbase.setter
|
|
110
|
+
def isbase(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
111
|
+
pulumi.set(self, "isbase", value)
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
@pulumi.getter
|
|
115
|
+
def url(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
116
|
+
"""
|
|
117
|
+
The key name. The name can be up to 512 characters in length and cannot contain spaces or backslashes (\\\\).
|
|
118
|
+
"""
|
|
119
|
+
return pulumi.get(self, "url")
|
|
120
|
+
|
|
121
|
+
@url.setter
|
|
122
|
+
def url(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
123
|
+
pulumi.set(self, "url", value)
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
@pulumi.getter
|
|
127
|
+
def value(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
128
|
+
"""
|
|
129
|
+
The content of the key. If the content has more than 256 characters in length, the system displays the first 100 and the last 100 characters, and omits the middle part.
|
|
130
|
+
"""
|
|
131
|
+
return pulumi.get(self, "value")
|
|
132
|
+
|
|
133
|
+
@value.setter
|
|
134
|
+
def value(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
135
|
+
pulumi.set(self, "value", value)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
@pulumi.input_type
|
|
139
|
+
class _KvState:
|
|
140
|
+
def __init__(__self__, *,
|
|
141
|
+
expiration: Optional[pulumi.Input[builtins.int]] = None,
|
|
142
|
+
expiration_ttl: Optional[pulumi.Input[builtins.int]] = None,
|
|
143
|
+
isbase: Optional[pulumi.Input[builtins.bool]] = None,
|
|
144
|
+
key: Optional[pulumi.Input[builtins.str]] = None,
|
|
145
|
+
namespace: Optional[pulumi.Input[builtins.str]] = None,
|
|
146
|
+
url: Optional[pulumi.Input[builtins.str]] = None,
|
|
147
|
+
value: Optional[pulumi.Input[builtins.str]] = None):
|
|
148
|
+
"""
|
|
149
|
+
Input properties used for looking up and filtering Kv resources.
|
|
150
|
+
:param pulumi.Input[builtins.int] expiration: The content of the key, which can be up to 2 MB (2 × 1000 × 1000). If the content is larger than 2 MB, call [PutKvWithHighCapacity](https://www.alibabacloud.com/help/en/doc-detail/2850486.html).
|
|
151
|
+
:param pulumi.Input[builtins.int] expiration_ttl: The time when the key-value pair expires, which cannot be earlier than the current time. The value is a timestamp in seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
152
|
+
:param pulumi.Input[builtins.bool] isbase: The relative expiration time. Unit: seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
153
|
+
:param pulumi.Input[builtins.str] key: kv
|
|
154
|
+
:param pulumi.Input[builtins.str] namespace: The name specified when calling [CreatevNamespace](https://help.aliyun.com/document_detail/2850317.html).
|
|
155
|
+
:param pulumi.Input[builtins.str] url: The key name. The name can be up to 512 characters in length and cannot contain spaces or backslashes (\\\\).
|
|
156
|
+
:param pulumi.Input[builtins.str] value: The content of the key. If the content has more than 256 characters in length, the system displays the first 100 and the last 100 characters, and omits the middle part.
|
|
157
|
+
"""
|
|
158
|
+
if expiration is not None:
|
|
159
|
+
pulumi.set(__self__, "expiration", expiration)
|
|
160
|
+
if expiration_ttl is not None:
|
|
161
|
+
pulumi.set(__self__, "expiration_ttl", expiration_ttl)
|
|
162
|
+
if isbase is not None:
|
|
163
|
+
pulumi.set(__self__, "isbase", isbase)
|
|
164
|
+
if key is not None:
|
|
165
|
+
pulumi.set(__self__, "key", key)
|
|
166
|
+
if namespace is not None:
|
|
167
|
+
pulumi.set(__self__, "namespace", namespace)
|
|
168
|
+
if url is not None:
|
|
169
|
+
pulumi.set(__self__, "url", url)
|
|
170
|
+
if value is not None:
|
|
171
|
+
pulumi.set(__self__, "value", value)
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
@pulumi.getter
|
|
175
|
+
def expiration(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
176
|
+
"""
|
|
177
|
+
The content of the key, which can be up to 2 MB (2 × 1000 × 1000). If the content is larger than 2 MB, call [PutKvWithHighCapacity](https://www.alibabacloud.com/help/en/doc-detail/2850486.html).
|
|
178
|
+
"""
|
|
179
|
+
return pulumi.get(self, "expiration")
|
|
180
|
+
|
|
181
|
+
@expiration.setter
|
|
182
|
+
def expiration(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
183
|
+
pulumi.set(self, "expiration", value)
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
@pulumi.getter(name="expirationTtl")
|
|
187
|
+
def expiration_ttl(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
188
|
+
"""
|
|
189
|
+
The time when the key-value pair expires, which cannot be earlier than the current time. The value is a timestamp in seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
190
|
+
"""
|
|
191
|
+
return pulumi.get(self, "expiration_ttl")
|
|
192
|
+
|
|
193
|
+
@expiration_ttl.setter
|
|
194
|
+
def expiration_ttl(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
195
|
+
pulumi.set(self, "expiration_ttl", value)
|
|
196
|
+
|
|
197
|
+
@property
|
|
198
|
+
@pulumi.getter
|
|
199
|
+
def isbase(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
200
|
+
"""
|
|
201
|
+
The relative expiration time. Unit: seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
202
|
+
"""
|
|
203
|
+
return pulumi.get(self, "isbase")
|
|
204
|
+
|
|
205
|
+
@isbase.setter
|
|
206
|
+
def isbase(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
207
|
+
pulumi.set(self, "isbase", value)
|
|
208
|
+
|
|
209
|
+
@property
|
|
210
|
+
@pulumi.getter
|
|
211
|
+
def key(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
212
|
+
"""
|
|
213
|
+
kv
|
|
214
|
+
"""
|
|
215
|
+
return pulumi.get(self, "key")
|
|
216
|
+
|
|
217
|
+
@key.setter
|
|
218
|
+
def key(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
219
|
+
pulumi.set(self, "key", value)
|
|
220
|
+
|
|
221
|
+
@property
|
|
222
|
+
@pulumi.getter
|
|
223
|
+
def namespace(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
224
|
+
"""
|
|
225
|
+
The name specified when calling [CreatevNamespace](https://help.aliyun.com/document_detail/2850317.html).
|
|
226
|
+
"""
|
|
227
|
+
return pulumi.get(self, "namespace")
|
|
228
|
+
|
|
229
|
+
@namespace.setter
|
|
230
|
+
def namespace(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
231
|
+
pulumi.set(self, "namespace", value)
|
|
232
|
+
|
|
233
|
+
@property
|
|
234
|
+
@pulumi.getter
|
|
235
|
+
def url(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
236
|
+
"""
|
|
237
|
+
The key name. The name can be up to 512 characters in length and cannot contain spaces or backslashes (\\\\).
|
|
238
|
+
"""
|
|
239
|
+
return pulumi.get(self, "url")
|
|
240
|
+
|
|
241
|
+
@url.setter
|
|
242
|
+
def url(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
243
|
+
pulumi.set(self, "url", value)
|
|
244
|
+
|
|
245
|
+
@property
|
|
246
|
+
@pulumi.getter
|
|
247
|
+
def value(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
248
|
+
"""
|
|
249
|
+
The content of the key. If the content has more than 256 characters in length, the system displays the first 100 and the last 100 characters, and omits the middle part.
|
|
250
|
+
"""
|
|
251
|
+
return pulumi.get(self, "value")
|
|
252
|
+
|
|
253
|
+
@value.setter
|
|
254
|
+
def value(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
255
|
+
pulumi.set(self, "value", value)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
@pulumi.type_token("alicloud:esa/kv:Kv")
|
|
259
|
+
class Kv(pulumi.CustomResource):
|
|
260
|
+
@overload
|
|
261
|
+
def __init__(__self__,
|
|
262
|
+
resource_name: str,
|
|
263
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
264
|
+
expiration: Optional[pulumi.Input[builtins.int]] = None,
|
|
265
|
+
expiration_ttl: Optional[pulumi.Input[builtins.int]] = None,
|
|
266
|
+
isbase: Optional[pulumi.Input[builtins.bool]] = None,
|
|
267
|
+
key: Optional[pulumi.Input[builtins.str]] = None,
|
|
268
|
+
namespace: Optional[pulumi.Input[builtins.str]] = None,
|
|
269
|
+
url: Optional[pulumi.Input[builtins.str]] = None,
|
|
270
|
+
value: Optional[pulumi.Input[builtins.str]] = None,
|
|
271
|
+
__props__=None):
|
|
272
|
+
"""
|
|
273
|
+
Provides a ESA Kv resource.
|
|
274
|
+
|
|
275
|
+
For information about ESA Kv and how to use it, see [What is Kv](https://next.api.alibabacloud.com/document/ESA/2024-09-10/PutKv).
|
|
276
|
+
|
|
277
|
+
> **NOTE:** Available since v1.251.0.
|
|
278
|
+
|
|
279
|
+
## Example Usage
|
|
280
|
+
|
|
281
|
+
Basic Usage
|
|
282
|
+
|
|
283
|
+
```python
|
|
284
|
+
import pulumi
|
|
285
|
+
import pulumi_alicloud as alicloud
|
|
286
|
+
|
|
287
|
+
default = alicloud.esa.KvNamespace("default",
|
|
288
|
+
description="this is a example namespace.",
|
|
289
|
+
kv_namespace="namespace1")
|
|
290
|
+
default_kv = alicloud.esa.Kv("default",
|
|
291
|
+
isbase=False,
|
|
292
|
+
expiration_ttl=360,
|
|
293
|
+
value="example_value",
|
|
294
|
+
expiration=1690,
|
|
295
|
+
namespace=default.id,
|
|
296
|
+
key="example_key")
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
## Import
|
|
300
|
+
|
|
301
|
+
ESA Kv can be imported using the id, e.g.
|
|
302
|
+
|
|
303
|
+
```sh
|
|
304
|
+
$ pulumi import alicloud:esa/kv:Kv example <namespace>:<key>
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
:param str resource_name: The name of the resource.
|
|
308
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
309
|
+
:param pulumi.Input[builtins.int] expiration: The content of the key, which can be up to 2 MB (2 × 1000 × 1000). If the content is larger than 2 MB, call [PutKvWithHighCapacity](https://www.alibabacloud.com/help/en/doc-detail/2850486.html).
|
|
310
|
+
:param pulumi.Input[builtins.int] expiration_ttl: The time when the key-value pair expires, which cannot be earlier than the current time. The value is a timestamp in seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
311
|
+
:param pulumi.Input[builtins.bool] isbase: The relative expiration time. Unit: seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
312
|
+
:param pulumi.Input[builtins.str] key: kv
|
|
313
|
+
:param pulumi.Input[builtins.str] namespace: The name specified when calling [CreatevNamespace](https://help.aliyun.com/document_detail/2850317.html).
|
|
314
|
+
:param pulumi.Input[builtins.str] url: The key name. The name can be up to 512 characters in length and cannot contain spaces or backslashes (\\\\).
|
|
315
|
+
:param pulumi.Input[builtins.str] value: The content of the key. If the content has more than 256 characters in length, the system displays the first 100 and the last 100 characters, and omits the middle part.
|
|
316
|
+
"""
|
|
317
|
+
...
|
|
318
|
+
@overload
|
|
319
|
+
def __init__(__self__,
|
|
320
|
+
resource_name: str,
|
|
321
|
+
args: KvArgs,
|
|
322
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
323
|
+
"""
|
|
324
|
+
Provides a ESA Kv resource.
|
|
325
|
+
|
|
326
|
+
For information about ESA Kv and how to use it, see [What is Kv](https://next.api.alibabacloud.com/document/ESA/2024-09-10/PutKv).
|
|
327
|
+
|
|
328
|
+
> **NOTE:** Available since v1.251.0.
|
|
329
|
+
|
|
330
|
+
## Example Usage
|
|
331
|
+
|
|
332
|
+
Basic Usage
|
|
333
|
+
|
|
334
|
+
```python
|
|
335
|
+
import pulumi
|
|
336
|
+
import pulumi_alicloud as alicloud
|
|
337
|
+
|
|
338
|
+
default = alicloud.esa.KvNamespace("default",
|
|
339
|
+
description="this is a example namespace.",
|
|
340
|
+
kv_namespace="namespace1")
|
|
341
|
+
default_kv = alicloud.esa.Kv("default",
|
|
342
|
+
isbase=False,
|
|
343
|
+
expiration_ttl=360,
|
|
344
|
+
value="example_value",
|
|
345
|
+
expiration=1690,
|
|
346
|
+
namespace=default.id,
|
|
347
|
+
key="example_key")
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
## Import
|
|
351
|
+
|
|
352
|
+
ESA Kv can be imported using the id, e.g.
|
|
353
|
+
|
|
354
|
+
```sh
|
|
355
|
+
$ pulumi import alicloud:esa/kv:Kv example <namespace>:<key>
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
:param str resource_name: The name of the resource.
|
|
359
|
+
:param KvArgs args: The arguments to use to populate this resource's properties.
|
|
360
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
361
|
+
"""
|
|
362
|
+
...
|
|
363
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
364
|
+
resource_args, opts = _utilities.get_resource_args_opts(KvArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
365
|
+
if resource_args is not None:
|
|
366
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
367
|
+
else:
|
|
368
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
369
|
+
|
|
370
|
+
def _internal_init(__self__,
|
|
371
|
+
resource_name: str,
|
|
372
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
373
|
+
expiration: Optional[pulumi.Input[builtins.int]] = None,
|
|
374
|
+
expiration_ttl: Optional[pulumi.Input[builtins.int]] = None,
|
|
375
|
+
isbase: Optional[pulumi.Input[builtins.bool]] = None,
|
|
376
|
+
key: Optional[pulumi.Input[builtins.str]] = None,
|
|
377
|
+
namespace: Optional[pulumi.Input[builtins.str]] = None,
|
|
378
|
+
url: Optional[pulumi.Input[builtins.str]] = None,
|
|
379
|
+
value: Optional[pulumi.Input[builtins.str]] = None,
|
|
380
|
+
__props__=None):
|
|
381
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
382
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
383
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
384
|
+
if opts.id is None:
|
|
385
|
+
if __props__ is not None:
|
|
386
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
387
|
+
__props__ = KvArgs.__new__(KvArgs)
|
|
388
|
+
|
|
389
|
+
__props__.__dict__["expiration"] = expiration
|
|
390
|
+
__props__.__dict__["expiration_ttl"] = expiration_ttl
|
|
391
|
+
__props__.__dict__["isbase"] = isbase
|
|
392
|
+
if key is None and not opts.urn:
|
|
393
|
+
raise TypeError("Missing required property 'key'")
|
|
394
|
+
__props__.__dict__["key"] = key
|
|
395
|
+
if namespace is None and not opts.urn:
|
|
396
|
+
raise TypeError("Missing required property 'namespace'")
|
|
397
|
+
__props__.__dict__["namespace"] = namespace
|
|
398
|
+
__props__.__dict__["url"] = url
|
|
399
|
+
__props__.__dict__["value"] = value
|
|
400
|
+
super(Kv, __self__).__init__(
|
|
401
|
+
'alicloud:esa/kv:Kv',
|
|
402
|
+
resource_name,
|
|
403
|
+
__props__,
|
|
404
|
+
opts)
|
|
405
|
+
|
|
406
|
+
@staticmethod
|
|
407
|
+
def get(resource_name: str,
|
|
408
|
+
id: pulumi.Input[str],
|
|
409
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
410
|
+
expiration: Optional[pulumi.Input[builtins.int]] = None,
|
|
411
|
+
expiration_ttl: Optional[pulumi.Input[builtins.int]] = None,
|
|
412
|
+
isbase: Optional[pulumi.Input[builtins.bool]] = None,
|
|
413
|
+
key: Optional[pulumi.Input[builtins.str]] = None,
|
|
414
|
+
namespace: Optional[pulumi.Input[builtins.str]] = None,
|
|
415
|
+
url: Optional[pulumi.Input[builtins.str]] = None,
|
|
416
|
+
value: Optional[pulumi.Input[builtins.str]] = None) -> 'Kv':
|
|
417
|
+
"""
|
|
418
|
+
Get an existing Kv resource's state with the given name, id, and optional extra
|
|
419
|
+
properties used to qualify the lookup.
|
|
420
|
+
|
|
421
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
422
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
423
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
424
|
+
:param pulumi.Input[builtins.int] expiration: The content of the key, which can be up to 2 MB (2 × 1000 × 1000). If the content is larger than 2 MB, call [PutKvWithHighCapacity](https://www.alibabacloud.com/help/en/doc-detail/2850486.html).
|
|
425
|
+
:param pulumi.Input[builtins.int] expiration_ttl: The time when the key-value pair expires, which cannot be earlier than the current time. The value is a timestamp in seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
426
|
+
:param pulumi.Input[builtins.bool] isbase: The relative expiration time. Unit: seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
427
|
+
:param pulumi.Input[builtins.str] key: kv
|
|
428
|
+
:param pulumi.Input[builtins.str] namespace: The name specified when calling [CreatevNamespace](https://help.aliyun.com/document_detail/2850317.html).
|
|
429
|
+
:param pulumi.Input[builtins.str] url: The key name. The name can be up to 512 characters in length and cannot contain spaces or backslashes (\\\\).
|
|
430
|
+
:param pulumi.Input[builtins.str] value: The content of the key. If the content has more than 256 characters in length, the system displays the first 100 and the last 100 characters, and omits the middle part.
|
|
431
|
+
"""
|
|
432
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
433
|
+
|
|
434
|
+
__props__ = _KvState.__new__(_KvState)
|
|
435
|
+
|
|
436
|
+
__props__.__dict__["expiration"] = expiration
|
|
437
|
+
__props__.__dict__["expiration_ttl"] = expiration_ttl
|
|
438
|
+
__props__.__dict__["isbase"] = isbase
|
|
439
|
+
__props__.__dict__["key"] = key
|
|
440
|
+
__props__.__dict__["namespace"] = namespace
|
|
441
|
+
__props__.__dict__["url"] = url
|
|
442
|
+
__props__.__dict__["value"] = value
|
|
443
|
+
return Kv(resource_name, opts=opts, __props__=__props__)
|
|
444
|
+
|
|
445
|
+
@property
|
|
446
|
+
@pulumi.getter
|
|
447
|
+
def expiration(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
448
|
+
"""
|
|
449
|
+
The content of the key, which can be up to 2 MB (2 × 1000 × 1000). If the content is larger than 2 MB, call [PutKvWithHighCapacity](https://www.alibabacloud.com/help/en/doc-detail/2850486.html).
|
|
450
|
+
"""
|
|
451
|
+
return pulumi.get(self, "expiration")
|
|
452
|
+
|
|
453
|
+
@property
|
|
454
|
+
@pulumi.getter(name="expirationTtl")
|
|
455
|
+
def expiration_ttl(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
456
|
+
"""
|
|
457
|
+
The time when the key-value pair expires, which cannot be earlier than the current time. The value is a timestamp in seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
458
|
+
"""
|
|
459
|
+
return pulumi.get(self, "expiration_ttl")
|
|
460
|
+
|
|
461
|
+
@property
|
|
462
|
+
@pulumi.getter
|
|
463
|
+
def isbase(self) -> pulumi.Output[Optional[builtins.bool]]:
|
|
464
|
+
"""
|
|
465
|
+
The relative expiration time. Unit: seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.
|
|
466
|
+
"""
|
|
467
|
+
return pulumi.get(self, "isbase")
|
|
468
|
+
|
|
469
|
+
@property
|
|
470
|
+
@pulumi.getter
|
|
471
|
+
def key(self) -> pulumi.Output[builtins.str]:
|
|
472
|
+
"""
|
|
473
|
+
kv
|
|
474
|
+
"""
|
|
475
|
+
return pulumi.get(self, "key")
|
|
476
|
+
|
|
477
|
+
@property
|
|
478
|
+
@pulumi.getter
|
|
479
|
+
def namespace(self) -> pulumi.Output[builtins.str]:
|
|
480
|
+
"""
|
|
481
|
+
The name specified when calling [CreatevNamespace](https://help.aliyun.com/document_detail/2850317.html).
|
|
482
|
+
"""
|
|
483
|
+
return pulumi.get(self, "namespace")
|
|
484
|
+
|
|
485
|
+
@property
|
|
486
|
+
@pulumi.getter
|
|
487
|
+
def url(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
488
|
+
"""
|
|
489
|
+
The key name. The name can be up to 512 characters in length and cannot contain spaces or backslashes (\\\\).
|
|
490
|
+
"""
|
|
491
|
+
return pulumi.get(self, "url")
|
|
492
|
+
|
|
493
|
+
@property
|
|
494
|
+
@pulumi.getter
|
|
495
|
+
def value(self) -> pulumi.Output[builtins.str]:
|
|
496
|
+
"""
|
|
497
|
+
The content of the key. If the content has more than 256 characters in length, the system displays the first 100 and the last 100 characters, and omits the middle part.
|
|
498
|
+
"""
|
|
499
|
+
return pulumi.get(self, "value")
|
|
500
|
+
|