pulumi-alicloud 3.84.0a1755713188__py3-none-any.whl → 3.84.0a1755839849__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/fc/_inputs.py +3 -3
- pulumi_alicloud/fc/outputs.py +2 -2
- pulumi_alicloud/fc/service.py +215 -2
- pulumi_alicloud/fc/v2_function.py +398 -2
- pulumi_alicloud/pulumi-plugin.json +1 -1
- {pulumi_alicloud-3.84.0a1755713188.dist-info → pulumi_alicloud-3.84.0a1755839849.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.84.0a1755713188.dist-info → pulumi_alicloud-3.84.0a1755839849.dist-info}/RECORD +9 -9
- {pulumi_alicloud-3.84.0a1755713188.dist-info → pulumi_alicloud-3.84.0a1755839849.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.84.0a1755713188.dist-info → pulumi_alicloud-3.84.0a1755839849.dist-info}/top_level.txt +0 -0
pulumi_alicloud/fc/_inputs.py
CHANGED
|
@@ -741,7 +741,7 @@ if not MYPY:
|
|
|
741
741
|
class ServiceTracingConfigArgsDict(TypedDict):
|
|
742
742
|
params: pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]
|
|
743
743
|
"""
|
|
744
|
-
Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces
|
|
744
|
+
Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: <http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces>.
|
|
745
745
|
"""
|
|
746
746
|
type: pulumi.Input[_builtins.str]
|
|
747
747
|
"""
|
|
@@ -756,7 +756,7 @@ class ServiceTracingConfigArgs:
|
|
|
756
756
|
params: pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]],
|
|
757
757
|
type: pulumi.Input[_builtins.str]):
|
|
758
758
|
"""
|
|
759
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] params: Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces
|
|
759
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] params: Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: <http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces>.
|
|
760
760
|
:param pulumi.Input[_builtins.str] type: Tracing protocol type. Currently, only Jaeger is supported.
|
|
761
761
|
"""
|
|
762
762
|
pulumi.set(__self__, "params", params)
|
|
@@ -766,7 +766,7 @@ class ServiceTracingConfigArgs:
|
|
|
766
766
|
@pulumi.getter
|
|
767
767
|
def params(self) -> pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]:
|
|
768
768
|
"""
|
|
769
|
-
Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces
|
|
769
|
+
Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: <http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces>.
|
|
770
770
|
"""
|
|
771
771
|
return pulumi.get(self, "params")
|
|
772
772
|
|
pulumi_alicloud/fc/outputs.py
CHANGED
|
@@ -582,7 +582,7 @@ class ServiceTracingConfig(dict):
|
|
|
582
582
|
params: Mapping[str, _builtins.str],
|
|
583
583
|
type: _builtins.str):
|
|
584
584
|
"""
|
|
585
|
-
:param Mapping[str, _builtins.str] params: Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces
|
|
585
|
+
:param Mapping[str, _builtins.str] params: Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: <http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces>.
|
|
586
586
|
:param _builtins.str type: Tracing protocol type. Currently, only Jaeger is supported.
|
|
587
587
|
"""
|
|
588
588
|
pulumi.set(__self__, "params", params)
|
|
@@ -592,7 +592,7 @@ class ServiceTracingConfig(dict):
|
|
|
592
592
|
@pulumi.getter
|
|
593
593
|
def params(self) -> Mapping[str, _builtins.str]:
|
|
594
594
|
"""
|
|
595
|
-
Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces
|
|
595
|
+
Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: <http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces>.
|
|
596
596
|
"""
|
|
597
597
|
return pulumi.get(self, "params")
|
|
598
598
|
|
pulumi_alicloud/fc/service.py
CHANGED
|
@@ -34,6 +34,17 @@ class ServiceArgs:
|
|
|
34
34
|
vpc_config: Optional[pulumi.Input['ServiceVpcConfigArgs']] = None):
|
|
35
35
|
"""
|
|
36
36
|
The set of arguments for constructing a Service resource.
|
|
37
|
+
:param pulumi.Input[_builtins.str] description: The Function Compute Service description.
|
|
38
|
+
:param pulumi.Input[_builtins.bool] internet_access: Whether to allow the Service to access Internet. Default to "true".
|
|
39
|
+
:param pulumi.Input['ServiceLogConfigArgs'] log_config: Provide this to store your Function Compute Service logs. Fields documented below. See [Create a Service](https://www.alibabacloud.com/help/doc-detail/51924.htm). `log_config` requires the following: (**NOTE:** If both `project` and `logstore` are empty, log_config is considered to be empty or unset.). See `log_config` below.
|
|
40
|
+
:param pulumi.Input[_builtins.str] name: The Function Compute Service name. It is the only in one Alicloud account and is conflict with `name_prefix`.
|
|
41
|
+
:param pulumi.Input[_builtins.str] name_prefix: Setting a prefix to get a only name. It is conflict with `name`.
|
|
42
|
+
:param pulumi.Input['ServiceNasConfigArgs'] nas_config: Provide [NAS configuration](https://www.alibabacloud.com/help/doc-detail/87401.htm) to allow Function Compute Service to access your NAS resources. See `nas_config` below.
|
|
43
|
+
:param pulumi.Input[_builtins.bool] publish: Whether to publish creation/change as new Function Compute Service Version. Defaults to `false`.
|
|
44
|
+
:param pulumi.Input[_builtins.str] role: RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.
|
|
45
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: Map for tagging resources.
|
|
46
|
+
:param pulumi.Input['ServiceTracingConfigArgs'] tracing_config: Provide this to allow your Function Compute to report tracing information. Fields documented below. See [Function Compute Tracing Config](https://help.aliyun.com/document_detail/189805.html). `tracing_config` requires the following: (**NOTE:** If both `type` and `params` are empty, tracing_config is considered to be empty or unset.). See `tracing_config` below.
|
|
47
|
+
:param pulumi.Input['ServiceVpcConfigArgs'] vpc_config: Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See [Function Compute Service in VPC](https://www.alibabacloud.com/help/faq-detail/72959.htm). `vpc_config` requires the following: (**NOTE:** If both `vswitch_ids` and `security_group_id` are empty, vpc_config is considered to be empty or unset.). See `vpc_config` below.
|
|
37
48
|
"""
|
|
38
49
|
if description is not None:
|
|
39
50
|
pulumi.set(__self__, "description", description)
|
|
@@ -61,6 +72,9 @@ class ServiceArgs:
|
|
|
61
72
|
@_builtins.property
|
|
62
73
|
@pulumi.getter
|
|
63
74
|
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
75
|
+
"""
|
|
76
|
+
The Function Compute Service description.
|
|
77
|
+
"""
|
|
64
78
|
return pulumi.get(self, "description")
|
|
65
79
|
|
|
66
80
|
@description.setter
|
|
@@ -70,6 +84,9 @@ class ServiceArgs:
|
|
|
70
84
|
@_builtins.property
|
|
71
85
|
@pulumi.getter(name="internetAccess")
|
|
72
86
|
def internet_access(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
87
|
+
"""
|
|
88
|
+
Whether to allow the Service to access Internet. Default to "true".
|
|
89
|
+
"""
|
|
73
90
|
return pulumi.get(self, "internet_access")
|
|
74
91
|
|
|
75
92
|
@internet_access.setter
|
|
@@ -79,6 +96,9 @@ class ServiceArgs:
|
|
|
79
96
|
@_builtins.property
|
|
80
97
|
@pulumi.getter(name="logConfig")
|
|
81
98
|
def log_config(self) -> Optional[pulumi.Input['ServiceLogConfigArgs']]:
|
|
99
|
+
"""
|
|
100
|
+
Provide this to store your Function Compute Service logs. Fields documented below. See [Create a Service](https://www.alibabacloud.com/help/doc-detail/51924.htm). `log_config` requires the following: (**NOTE:** If both `project` and `logstore` are empty, log_config is considered to be empty or unset.). See `log_config` below.
|
|
101
|
+
"""
|
|
82
102
|
return pulumi.get(self, "log_config")
|
|
83
103
|
|
|
84
104
|
@log_config.setter
|
|
@@ -88,6 +108,9 @@ class ServiceArgs:
|
|
|
88
108
|
@_builtins.property
|
|
89
109
|
@pulumi.getter
|
|
90
110
|
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
111
|
+
"""
|
|
112
|
+
The Function Compute Service name. It is the only in one Alicloud account and is conflict with `name_prefix`.
|
|
113
|
+
"""
|
|
91
114
|
return pulumi.get(self, "name")
|
|
92
115
|
|
|
93
116
|
@name.setter
|
|
@@ -97,6 +120,9 @@ class ServiceArgs:
|
|
|
97
120
|
@_builtins.property
|
|
98
121
|
@pulumi.getter(name="namePrefix")
|
|
99
122
|
def name_prefix(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
123
|
+
"""
|
|
124
|
+
Setting a prefix to get a only name. It is conflict with `name`.
|
|
125
|
+
"""
|
|
100
126
|
return pulumi.get(self, "name_prefix")
|
|
101
127
|
|
|
102
128
|
@name_prefix.setter
|
|
@@ -106,6 +132,9 @@ class ServiceArgs:
|
|
|
106
132
|
@_builtins.property
|
|
107
133
|
@pulumi.getter(name="nasConfig")
|
|
108
134
|
def nas_config(self) -> Optional[pulumi.Input['ServiceNasConfigArgs']]:
|
|
135
|
+
"""
|
|
136
|
+
Provide [NAS configuration](https://www.alibabacloud.com/help/doc-detail/87401.htm) to allow Function Compute Service to access your NAS resources. See `nas_config` below.
|
|
137
|
+
"""
|
|
109
138
|
return pulumi.get(self, "nas_config")
|
|
110
139
|
|
|
111
140
|
@nas_config.setter
|
|
@@ -115,6 +144,9 @@ class ServiceArgs:
|
|
|
115
144
|
@_builtins.property
|
|
116
145
|
@pulumi.getter
|
|
117
146
|
def publish(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
147
|
+
"""
|
|
148
|
+
Whether to publish creation/change as new Function Compute Service Version. Defaults to `false`.
|
|
149
|
+
"""
|
|
118
150
|
return pulumi.get(self, "publish")
|
|
119
151
|
|
|
120
152
|
@publish.setter
|
|
@@ -124,6 +156,9 @@ class ServiceArgs:
|
|
|
124
156
|
@_builtins.property
|
|
125
157
|
@pulumi.getter
|
|
126
158
|
def role(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
159
|
+
"""
|
|
160
|
+
RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.
|
|
161
|
+
"""
|
|
127
162
|
return pulumi.get(self, "role")
|
|
128
163
|
|
|
129
164
|
@role.setter
|
|
@@ -133,6 +168,9 @@ class ServiceArgs:
|
|
|
133
168
|
@_builtins.property
|
|
134
169
|
@pulumi.getter
|
|
135
170
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
171
|
+
"""
|
|
172
|
+
Map for tagging resources.
|
|
173
|
+
"""
|
|
136
174
|
return pulumi.get(self, "tags")
|
|
137
175
|
|
|
138
176
|
@tags.setter
|
|
@@ -142,6 +180,9 @@ class ServiceArgs:
|
|
|
142
180
|
@_builtins.property
|
|
143
181
|
@pulumi.getter(name="tracingConfig")
|
|
144
182
|
def tracing_config(self) -> Optional[pulumi.Input['ServiceTracingConfigArgs']]:
|
|
183
|
+
"""
|
|
184
|
+
Provide this to allow your Function Compute to report tracing information. Fields documented below. See [Function Compute Tracing Config](https://help.aliyun.com/document_detail/189805.html). `tracing_config` requires the following: (**NOTE:** If both `type` and `params` are empty, tracing_config is considered to be empty or unset.). See `tracing_config` below.
|
|
185
|
+
"""
|
|
145
186
|
return pulumi.get(self, "tracing_config")
|
|
146
187
|
|
|
147
188
|
@tracing_config.setter
|
|
@@ -151,6 +192,9 @@ class ServiceArgs:
|
|
|
151
192
|
@_builtins.property
|
|
152
193
|
@pulumi.getter(name="vpcConfig")
|
|
153
194
|
def vpc_config(self) -> Optional[pulumi.Input['ServiceVpcConfigArgs']]:
|
|
195
|
+
"""
|
|
196
|
+
Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See [Function Compute Service in VPC](https://www.alibabacloud.com/help/faq-detail/72959.htm). `vpc_config` requires the following: (**NOTE:** If both `vswitch_ids` and `security_group_id` are empty, vpc_config is considered to be empty or unset.). See `vpc_config` below.
|
|
197
|
+
"""
|
|
154
198
|
return pulumi.get(self, "vpc_config")
|
|
155
199
|
|
|
156
200
|
@vpc_config.setter
|
|
@@ -177,6 +221,20 @@ class _ServiceState:
|
|
|
177
221
|
vpc_config: Optional[pulumi.Input['ServiceVpcConfigArgs']] = None):
|
|
178
222
|
"""
|
|
179
223
|
Input properties used for looking up and filtering Service resources.
|
|
224
|
+
:param pulumi.Input[_builtins.str] description: The Function Compute Service description.
|
|
225
|
+
:param pulumi.Input[_builtins.bool] internet_access: Whether to allow the Service to access Internet. Default to "true".
|
|
226
|
+
:param pulumi.Input[_builtins.str] last_modified: The date this resource was last modified.
|
|
227
|
+
:param pulumi.Input['ServiceLogConfigArgs'] log_config: Provide this to store your Function Compute Service logs. Fields documented below. See [Create a Service](https://www.alibabacloud.com/help/doc-detail/51924.htm). `log_config` requires the following: (**NOTE:** If both `project` and `logstore` are empty, log_config is considered to be empty or unset.). See `log_config` below.
|
|
228
|
+
:param pulumi.Input[_builtins.str] name: The Function Compute Service name. It is the only in one Alicloud account and is conflict with `name_prefix`.
|
|
229
|
+
:param pulumi.Input[_builtins.str] name_prefix: Setting a prefix to get a only name. It is conflict with `name`.
|
|
230
|
+
:param pulumi.Input['ServiceNasConfigArgs'] nas_config: Provide [NAS configuration](https://www.alibabacloud.com/help/doc-detail/87401.htm) to allow Function Compute Service to access your NAS resources. See `nas_config` below.
|
|
231
|
+
:param pulumi.Input[_builtins.bool] publish: Whether to publish creation/change as new Function Compute Service Version. Defaults to `false`.
|
|
232
|
+
:param pulumi.Input[_builtins.str] role: RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.
|
|
233
|
+
:param pulumi.Input[_builtins.str] service_id: The Function Compute Service ID.
|
|
234
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: Map for tagging resources.
|
|
235
|
+
:param pulumi.Input['ServiceTracingConfigArgs'] tracing_config: Provide this to allow your Function Compute to report tracing information. Fields documented below. See [Function Compute Tracing Config](https://help.aliyun.com/document_detail/189805.html). `tracing_config` requires the following: (**NOTE:** If both `type` and `params` are empty, tracing_config is considered to be empty or unset.). See `tracing_config` below.
|
|
236
|
+
:param pulumi.Input[_builtins.str] version: The latest published version of your Function Compute Service.
|
|
237
|
+
:param pulumi.Input['ServiceVpcConfigArgs'] vpc_config: Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See [Function Compute Service in VPC](https://www.alibabacloud.com/help/faq-detail/72959.htm). `vpc_config` requires the following: (**NOTE:** If both `vswitch_ids` and `security_group_id` are empty, vpc_config is considered to be empty or unset.). See `vpc_config` below.
|
|
180
238
|
"""
|
|
181
239
|
if description is not None:
|
|
182
240
|
pulumi.set(__self__, "description", description)
|
|
@@ -210,6 +268,9 @@ class _ServiceState:
|
|
|
210
268
|
@_builtins.property
|
|
211
269
|
@pulumi.getter
|
|
212
270
|
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
271
|
+
"""
|
|
272
|
+
The Function Compute Service description.
|
|
273
|
+
"""
|
|
213
274
|
return pulumi.get(self, "description")
|
|
214
275
|
|
|
215
276
|
@description.setter
|
|
@@ -219,6 +280,9 @@ class _ServiceState:
|
|
|
219
280
|
@_builtins.property
|
|
220
281
|
@pulumi.getter(name="internetAccess")
|
|
221
282
|
def internet_access(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
283
|
+
"""
|
|
284
|
+
Whether to allow the Service to access Internet. Default to "true".
|
|
285
|
+
"""
|
|
222
286
|
return pulumi.get(self, "internet_access")
|
|
223
287
|
|
|
224
288
|
@internet_access.setter
|
|
@@ -228,6 +292,9 @@ class _ServiceState:
|
|
|
228
292
|
@_builtins.property
|
|
229
293
|
@pulumi.getter(name="lastModified")
|
|
230
294
|
def last_modified(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
295
|
+
"""
|
|
296
|
+
The date this resource was last modified.
|
|
297
|
+
"""
|
|
231
298
|
return pulumi.get(self, "last_modified")
|
|
232
299
|
|
|
233
300
|
@last_modified.setter
|
|
@@ -237,6 +304,9 @@ class _ServiceState:
|
|
|
237
304
|
@_builtins.property
|
|
238
305
|
@pulumi.getter(name="logConfig")
|
|
239
306
|
def log_config(self) -> Optional[pulumi.Input['ServiceLogConfigArgs']]:
|
|
307
|
+
"""
|
|
308
|
+
Provide this to store your Function Compute Service logs. Fields documented below. See [Create a Service](https://www.alibabacloud.com/help/doc-detail/51924.htm). `log_config` requires the following: (**NOTE:** If both `project` and `logstore` are empty, log_config is considered to be empty or unset.). See `log_config` below.
|
|
309
|
+
"""
|
|
240
310
|
return pulumi.get(self, "log_config")
|
|
241
311
|
|
|
242
312
|
@log_config.setter
|
|
@@ -246,6 +316,9 @@ class _ServiceState:
|
|
|
246
316
|
@_builtins.property
|
|
247
317
|
@pulumi.getter
|
|
248
318
|
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
319
|
+
"""
|
|
320
|
+
The Function Compute Service name. It is the only in one Alicloud account and is conflict with `name_prefix`.
|
|
321
|
+
"""
|
|
249
322
|
return pulumi.get(self, "name")
|
|
250
323
|
|
|
251
324
|
@name.setter
|
|
@@ -255,6 +328,9 @@ class _ServiceState:
|
|
|
255
328
|
@_builtins.property
|
|
256
329
|
@pulumi.getter(name="namePrefix")
|
|
257
330
|
def name_prefix(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
331
|
+
"""
|
|
332
|
+
Setting a prefix to get a only name. It is conflict with `name`.
|
|
333
|
+
"""
|
|
258
334
|
return pulumi.get(self, "name_prefix")
|
|
259
335
|
|
|
260
336
|
@name_prefix.setter
|
|
@@ -264,6 +340,9 @@ class _ServiceState:
|
|
|
264
340
|
@_builtins.property
|
|
265
341
|
@pulumi.getter(name="nasConfig")
|
|
266
342
|
def nas_config(self) -> Optional[pulumi.Input['ServiceNasConfigArgs']]:
|
|
343
|
+
"""
|
|
344
|
+
Provide [NAS configuration](https://www.alibabacloud.com/help/doc-detail/87401.htm) to allow Function Compute Service to access your NAS resources. See `nas_config` below.
|
|
345
|
+
"""
|
|
267
346
|
return pulumi.get(self, "nas_config")
|
|
268
347
|
|
|
269
348
|
@nas_config.setter
|
|
@@ -273,6 +352,9 @@ class _ServiceState:
|
|
|
273
352
|
@_builtins.property
|
|
274
353
|
@pulumi.getter
|
|
275
354
|
def publish(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
355
|
+
"""
|
|
356
|
+
Whether to publish creation/change as new Function Compute Service Version. Defaults to `false`.
|
|
357
|
+
"""
|
|
276
358
|
return pulumi.get(self, "publish")
|
|
277
359
|
|
|
278
360
|
@publish.setter
|
|
@@ -282,6 +364,9 @@ class _ServiceState:
|
|
|
282
364
|
@_builtins.property
|
|
283
365
|
@pulumi.getter
|
|
284
366
|
def role(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
367
|
+
"""
|
|
368
|
+
RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.
|
|
369
|
+
"""
|
|
285
370
|
return pulumi.get(self, "role")
|
|
286
371
|
|
|
287
372
|
@role.setter
|
|
@@ -291,6 +376,9 @@ class _ServiceState:
|
|
|
291
376
|
@_builtins.property
|
|
292
377
|
@pulumi.getter(name="serviceId")
|
|
293
378
|
def service_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
379
|
+
"""
|
|
380
|
+
The Function Compute Service ID.
|
|
381
|
+
"""
|
|
294
382
|
return pulumi.get(self, "service_id")
|
|
295
383
|
|
|
296
384
|
@service_id.setter
|
|
@@ -300,6 +388,9 @@ class _ServiceState:
|
|
|
300
388
|
@_builtins.property
|
|
301
389
|
@pulumi.getter
|
|
302
390
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
391
|
+
"""
|
|
392
|
+
Map for tagging resources.
|
|
393
|
+
"""
|
|
303
394
|
return pulumi.get(self, "tags")
|
|
304
395
|
|
|
305
396
|
@tags.setter
|
|
@@ -309,6 +400,9 @@ class _ServiceState:
|
|
|
309
400
|
@_builtins.property
|
|
310
401
|
@pulumi.getter(name="tracingConfig")
|
|
311
402
|
def tracing_config(self) -> Optional[pulumi.Input['ServiceTracingConfigArgs']]:
|
|
403
|
+
"""
|
|
404
|
+
Provide this to allow your Function Compute to report tracing information. Fields documented below. See [Function Compute Tracing Config](https://help.aliyun.com/document_detail/189805.html). `tracing_config` requires the following: (**NOTE:** If both `type` and `params` are empty, tracing_config is considered to be empty or unset.). See `tracing_config` below.
|
|
405
|
+
"""
|
|
312
406
|
return pulumi.get(self, "tracing_config")
|
|
313
407
|
|
|
314
408
|
@tracing_config.setter
|
|
@@ -318,6 +412,9 @@ class _ServiceState:
|
|
|
318
412
|
@_builtins.property
|
|
319
413
|
@pulumi.getter
|
|
320
414
|
def version(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
415
|
+
"""
|
|
416
|
+
The latest published version of your Function Compute Service.
|
|
417
|
+
"""
|
|
321
418
|
return pulumi.get(self, "version")
|
|
322
419
|
|
|
323
420
|
@version.setter
|
|
@@ -327,6 +424,9 @@ class _ServiceState:
|
|
|
327
424
|
@_builtins.property
|
|
328
425
|
@pulumi.getter(name="vpcConfig")
|
|
329
426
|
def vpc_config(self) -> Optional[pulumi.Input['ServiceVpcConfigArgs']]:
|
|
427
|
+
"""
|
|
428
|
+
Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See [Function Compute Service in VPC](https://www.alibabacloud.com/help/faq-detail/72959.htm). `vpc_config` requires the following: (**NOTE:** If both `vswitch_ids` and `security_group_id` are empty, vpc_config is considered to be empty or unset.). See `vpc_config` below.
|
|
429
|
+
"""
|
|
330
430
|
return pulumi.get(self, "vpc_config")
|
|
331
431
|
|
|
332
432
|
@vpc_config.setter
|
|
@@ -353,9 +453,43 @@ class Service(pulumi.CustomResource):
|
|
|
353
453
|
vpc_config: Optional[pulumi.Input[Union['ServiceVpcConfigArgs', 'ServiceVpcConfigArgsDict']]] = None,
|
|
354
454
|
__props__=None):
|
|
355
455
|
"""
|
|
356
|
-
|
|
456
|
+
Provides a Alicloud Function Compute Service resource. The resource is the base of launching Function and Trigger configuration.
|
|
457
|
+
For information about Service and how to use it, see [What is Function Compute](https://www.alibabacloud.com/help/en/fc/developer-reference/api-fc-open-2021-04-06-createservice).
|
|
458
|
+
|
|
459
|
+
> **NOTE:** The resource requires a provider field 'account_id'. See account_id.
|
|
460
|
+
|
|
461
|
+
> **NOTE:** If you happen the error "Argument 'internetAccess' is not supported", you need to log on web console and click button "Apply VPC Function"
|
|
462
|
+
which is in the upper of [Function Service Web Console](https://fc.console.aliyun.com/) page.
|
|
463
|
+
|
|
464
|
+
> **NOTE:** Currently not all regions support Function Compute Service.
|
|
465
|
+
For more details supported regions, see [Service endpoints](https://www.alibabacloud.com/help/doc-detail/52984.htm)
|
|
466
|
+
|
|
467
|
+
> **NOTE:** Available since v1.93.0.
|
|
468
|
+
## Module Support
|
|
469
|
+
|
|
470
|
+
You can use to the existing fc module to create a service and a function quickly and then set several triggers for it.
|
|
471
|
+
|
|
472
|
+
## Import
|
|
473
|
+
|
|
474
|
+
Function Compute Service can be imported using the id or name, e.g.
|
|
475
|
+
|
|
476
|
+
```sh
|
|
477
|
+
$ pulumi import alicloud:fc/service:Service foo my-fc-service
|
|
478
|
+
```
|
|
479
|
+
|
|
357
480
|
:param str resource_name: The name of the resource.
|
|
358
481
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
482
|
+
:param pulumi.Input[_builtins.str] description: The Function Compute Service description.
|
|
483
|
+
:param pulumi.Input[_builtins.bool] internet_access: Whether to allow the Service to access Internet. Default to "true".
|
|
484
|
+
:param pulumi.Input[Union['ServiceLogConfigArgs', 'ServiceLogConfigArgsDict']] log_config: Provide this to store your Function Compute Service logs. Fields documented below. See [Create a Service](https://www.alibabacloud.com/help/doc-detail/51924.htm). `log_config` requires the following: (**NOTE:** If both `project` and `logstore` are empty, log_config is considered to be empty or unset.). See `log_config` below.
|
|
485
|
+
:param pulumi.Input[_builtins.str] name: The Function Compute Service name. It is the only in one Alicloud account and is conflict with `name_prefix`.
|
|
486
|
+
:param pulumi.Input[_builtins.str] name_prefix: Setting a prefix to get a only name. It is conflict with `name`.
|
|
487
|
+
:param pulumi.Input[Union['ServiceNasConfigArgs', 'ServiceNasConfigArgsDict']] nas_config: Provide [NAS configuration](https://www.alibabacloud.com/help/doc-detail/87401.htm) to allow Function Compute Service to access your NAS resources. See `nas_config` below.
|
|
488
|
+
:param pulumi.Input[_builtins.bool] publish: Whether to publish creation/change as new Function Compute Service Version. Defaults to `false`.
|
|
489
|
+
:param pulumi.Input[_builtins.str] role: RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.
|
|
490
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: Map for tagging resources.
|
|
491
|
+
:param pulumi.Input[Union['ServiceTracingConfigArgs', 'ServiceTracingConfigArgsDict']] tracing_config: Provide this to allow your Function Compute to report tracing information. Fields documented below. See [Function Compute Tracing Config](https://help.aliyun.com/document_detail/189805.html). `tracing_config` requires the following: (**NOTE:** If both `type` and `params` are empty, tracing_config is considered to be empty or unset.). See `tracing_config` below.
|
|
492
|
+
:param pulumi.Input[Union['ServiceVpcConfigArgs', 'ServiceVpcConfigArgsDict']] vpc_config: Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See [Function Compute Service in VPC](https://www.alibabacloud.com/help/faq-detail/72959.htm). `vpc_config` requires the following: (**NOTE:** If both `vswitch_ids` and `security_group_id` are empty, vpc_config is considered to be empty or unset.). See `vpc_config` below.
|
|
359
493
|
"""
|
|
360
494
|
...
|
|
361
495
|
@overload
|
|
@@ -364,7 +498,30 @@ class Service(pulumi.CustomResource):
|
|
|
364
498
|
args: Optional[ServiceArgs] = None,
|
|
365
499
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
366
500
|
"""
|
|
367
|
-
|
|
501
|
+
Provides a Alicloud Function Compute Service resource. The resource is the base of launching Function and Trigger configuration.
|
|
502
|
+
For information about Service and how to use it, see [What is Function Compute](https://www.alibabacloud.com/help/en/fc/developer-reference/api-fc-open-2021-04-06-createservice).
|
|
503
|
+
|
|
504
|
+
> **NOTE:** The resource requires a provider field 'account_id'. See account_id.
|
|
505
|
+
|
|
506
|
+
> **NOTE:** If you happen the error "Argument 'internetAccess' is not supported", you need to log on web console and click button "Apply VPC Function"
|
|
507
|
+
which is in the upper of [Function Service Web Console](https://fc.console.aliyun.com/) page.
|
|
508
|
+
|
|
509
|
+
> **NOTE:** Currently not all regions support Function Compute Service.
|
|
510
|
+
For more details supported regions, see [Service endpoints](https://www.alibabacloud.com/help/doc-detail/52984.htm)
|
|
511
|
+
|
|
512
|
+
> **NOTE:** Available since v1.93.0.
|
|
513
|
+
## Module Support
|
|
514
|
+
|
|
515
|
+
You can use to the existing fc module to create a service and a function quickly and then set several triggers for it.
|
|
516
|
+
|
|
517
|
+
## Import
|
|
518
|
+
|
|
519
|
+
Function Compute Service can be imported using the id or name, e.g.
|
|
520
|
+
|
|
521
|
+
```sh
|
|
522
|
+
$ pulumi import alicloud:fc/service:Service foo my-fc-service
|
|
523
|
+
```
|
|
524
|
+
|
|
368
525
|
:param str resource_name: The name of the resource.
|
|
369
526
|
:param ServiceArgs args: The arguments to use to populate this resource's properties.
|
|
370
527
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -445,6 +602,20 @@ class Service(pulumi.CustomResource):
|
|
|
445
602
|
:param str resource_name: The unique name of the resulting resource.
|
|
446
603
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
447
604
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
605
|
+
:param pulumi.Input[_builtins.str] description: The Function Compute Service description.
|
|
606
|
+
:param pulumi.Input[_builtins.bool] internet_access: Whether to allow the Service to access Internet. Default to "true".
|
|
607
|
+
:param pulumi.Input[_builtins.str] last_modified: The date this resource was last modified.
|
|
608
|
+
:param pulumi.Input[Union['ServiceLogConfigArgs', 'ServiceLogConfigArgsDict']] log_config: Provide this to store your Function Compute Service logs. Fields documented below. See [Create a Service](https://www.alibabacloud.com/help/doc-detail/51924.htm). `log_config` requires the following: (**NOTE:** If both `project` and `logstore` are empty, log_config is considered to be empty or unset.). See `log_config` below.
|
|
609
|
+
:param pulumi.Input[_builtins.str] name: The Function Compute Service name. It is the only in one Alicloud account and is conflict with `name_prefix`.
|
|
610
|
+
:param pulumi.Input[_builtins.str] name_prefix: Setting a prefix to get a only name. It is conflict with `name`.
|
|
611
|
+
:param pulumi.Input[Union['ServiceNasConfigArgs', 'ServiceNasConfigArgsDict']] nas_config: Provide [NAS configuration](https://www.alibabacloud.com/help/doc-detail/87401.htm) to allow Function Compute Service to access your NAS resources. See `nas_config` below.
|
|
612
|
+
:param pulumi.Input[_builtins.bool] publish: Whether to publish creation/change as new Function Compute Service Version. Defaults to `false`.
|
|
613
|
+
:param pulumi.Input[_builtins.str] role: RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.
|
|
614
|
+
:param pulumi.Input[_builtins.str] service_id: The Function Compute Service ID.
|
|
615
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: Map for tagging resources.
|
|
616
|
+
:param pulumi.Input[Union['ServiceTracingConfigArgs', 'ServiceTracingConfigArgsDict']] tracing_config: Provide this to allow your Function Compute to report tracing information. Fields documented below. See [Function Compute Tracing Config](https://help.aliyun.com/document_detail/189805.html). `tracing_config` requires the following: (**NOTE:** If both `type` and `params` are empty, tracing_config is considered to be empty or unset.). See `tracing_config` below.
|
|
617
|
+
:param pulumi.Input[_builtins.str] version: The latest published version of your Function Compute Service.
|
|
618
|
+
:param pulumi.Input[Union['ServiceVpcConfigArgs', 'ServiceVpcConfigArgsDict']] vpc_config: Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See [Function Compute Service in VPC](https://www.alibabacloud.com/help/faq-detail/72959.htm). `vpc_config` requires the following: (**NOTE:** If both `vswitch_ids` and `security_group_id` are empty, vpc_config is considered to be empty or unset.). See `vpc_config` below.
|
|
448
619
|
"""
|
|
449
620
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
450
621
|
|
|
@@ -469,70 +640,112 @@ class Service(pulumi.CustomResource):
|
|
|
469
640
|
@_builtins.property
|
|
470
641
|
@pulumi.getter
|
|
471
642
|
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
643
|
+
"""
|
|
644
|
+
The Function Compute Service description.
|
|
645
|
+
"""
|
|
472
646
|
return pulumi.get(self, "description")
|
|
473
647
|
|
|
474
648
|
@_builtins.property
|
|
475
649
|
@pulumi.getter(name="internetAccess")
|
|
476
650
|
def internet_access(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
651
|
+
"""
|
|
652
|
+
Whether to allow the Service to access Internet. Default to "true".
|
|
653
|
+
"""
|
|
477
654
|
return pulumi.get(self, "internet_access")
|
|
478
655
|
|
|
479
656
|
@_builtins.property
|
|
480
657
|
@pulumi.getter(name="lastModified")
|
|
481
658
|
def last_modified(self) -> pulumi.Output[_builtins.str]:
|
|
659
|
+
"""
|
|
660
|
+
The date this resource was last modified.
|
|
661
|
+
"""
|
|
482
662
|
return pulumi.get(self, "last_modified")
|
|
483
663
|
|
|
484
664
|
@_builtins.property
|
|
485
665
|
@pulumi.getter(name="logConfig")
|
|
486
666
|
def log_config(self) -> pulumi.Output[Optional['outputs.ServiceLogConfig']]:
|
|
667
|
+
"""
|
|
668
|
+
Provide this to store your Function Compute Service logs. Fields documented below. See [Create a Service](https://www.alibabacloud.com/help/doc-detail/51924.htm). `log_config` requires the following: (**NOTE:** If both `project` and `logstore` are empty, log_config is considered to be empty or unset.). See `log_config` below.
|
|
669
|
+
"""
|
|
487
670
|
return pulumi.get(self, "log_config")
|
|
488
671
|
|
|
489
672
|
@_builtins.property
|
|
490
673
|
@pulumi.getter
|
|
491
674
|
def name(self) -> pulumi.Output[_builtins.str]:
|
|
675
|
+
"""
|
|
676
|
+
The Function Compute Service name. It is the only in one Alicloud account and is conflict with `name_prefix`.
|
|
677
|
+
"""
|
|
492
678
|
return pulumi.get(self, "name")
|
|
493
679
|
|
|
494
680
|
@_builtins.property
|
|
495
681
|
@pulumi.getter(name="namePrefix")
|
|
496
682
|
def name_prefix(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
683
|
+
"""
|
|
684
|
+
Setting a prefix to get a only name. It is conflict with `name`.
|
|
685
|
+
"""
|
|
497
686
|
return pulumi.get(self, "name_prefix")
|
|
498
687
|
|
|
499
688
|
@_builtins.property
|
|
500
689
|
@pulumi.getter(name="nasConfig")
|
|
501
690
|
def nas_config(self) -> pulumi.Output[Optional['outputs.ServiceNasConfig']]:
|
|
691
|
+
"""
|
|
692
|
+
Provide [NAS configuration](https://www.alibabacloud.com/help/doc-detail/87401.htm) to allow Function Compute Service to access your NAS resources. See `nas_config` below.
|
|
693
|
+
"""
|
|
502
694
|
return pulumi.get(self, "nas_config")
|
|
503
695
|
|
|
504
696
|
@_builtins.property
|
|
505
697
|
@pulumi.getter
|
|
506
698
|
def publish(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
699
|
+
"""
|
|
700
|
+
Whether to publish creation/change as new Function Compute Service Version. Defaults to `false`.
|
|
701
|
+
"""
|
|
507
702
|
return pulumi.get(self, "publish")
|
|
508
703
|
|
|
509
704
|
@_builtins.property
|
|
510
705
|
@pulumi.getter
|
|
511
706
|
def role(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
707
|
+
"""
|
|
708
|
+
RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.
|
|
709
|
+
"""
|
|
512
710
|
return pulumi.get(self, "role")
|
|
513
711
|
|
|
514
712
|
@_builtins.property
|
|
515
713
|
@pulumi.getter(name="serviceId")
|
|
516
714
|
def service_id(self) -> pulumi.Output[_builtins.str]:
|
|
715
|
+
"""
|
|
716
|
+
The Function Compute Service ID.
|
|
717
|
+
"""
|
|
517
718
|
return pulumi.get(self, "service_id")
|
|
518
719
|
|
|
519
720
|
@_builtins.property
|
|
520
721
|
@pulumi.getter
|
|
521
722
|
def tags(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
|
723
|
+
"""
|
|
724
|
+
Map for tagging resources.
|
|
725
|
+
"""
|
|
522
726
|
return pulumi.get(self, "tags")
|
|
523
727
|
|
|
524
728
|
@_builtins.property
|
|
525
729
|
@pulumi.getter(name="tracingConfig")
|
|
526
730
|
def tracing_config(self) -> pulumi.Output[Optional['outputs.ServiceTracingConfig']]:
|
|
731
|
+
"""
|
|
732
|
+
Provide this to allow your Function Compute to report tracing information. Fields documented below. See [Function Compute Tracing Config](https://help.aliyun.com/document_detail/189805.html). `tracing_config` requires the following: (**NOTE:** If both `type` and `params` are empty, tracing_config is considered to be empty or unset.). See `tracing_config` below.
|
|
733
|
+
"""
|
|
527
734
|
return pulumi.get(self, "tracing_config")
|
|
528
735
|
|
|
529
736
|
@_builtins.property
|
|
530
737
|
@pulumi.getter
|
|
531
738
|
def version(self) -> pulumi.Output[_builtins.str]:
|
|
739
|
+
"""
|
|
740
|
+
The latest published version of your Function Compute Service.
|
|
741
|
+
"""
|
|
532
742
|
return pulumi.get(self, "version")
|
|
533
743
|
|
|
534
744
|
@_builtins.property
|
|
535
745
|
@pulumi.getter(name="vpcConfig")
|
|
536
746
|
def vpc_config(self) -> pulumi.Output[Optional['outputs.ServiceVpcConfig']]:
|
|
747
|
+
"""
|
|
748
|
+
Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See [Function Compute Service in VPC](https://www.alibabacloud.com/help/faq-detail/72959.htm). `vpc_config` requires the following: (**NOTE:** If both `vswitch_ids` and `security_group_id` are empty, vpc_config is considered to be empty or unset.). See `vpc_config` below.
|
|
749
|
+
"""
|
|
537
750
|
return pulumi.get(self, "vpc_config")
|
|
538
751
|
|