Membuat atau memperbarui konfigurasi pemanggilan asinkron untuk suatu fungsi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:PutFunctionAsyncInvokeConfig |
create |
*全部资源
|
None | None |
Sintaks permintaan
PUT /2023-03-30/functions/{functionName}/async-invoke-config HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
Yes |
Nama fungsi. |
my-func |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body | PutAsyncInvokeConfigInput |
Yes |
Konfigurasi pemanggilan asinkron dari fungsi tersebut. |
|
| qualifier |
string |
No |
Versi atau alias fungsi. |
LATEST |
Elemen respons
|
Element |
Type |
Description |
Example |
| AsyncConfig |
Informasi mengenai konfigurasi pemanggilan asinkron dari fungsi tersebut. |
Contoh
Respons sukses
JSONformat
{
"asyncTask": true,
"createdTime": "2006-01-02T15:04:05Z07:00",
"destinationConfig": {
"onFailure": {
"destination": "acs:fc:cn-shanghai:xxx:functions/f1"
},
"onSuccess": {
"destination": "acs:fc:cn-shanghai:xxx:functions/f1"
}
},
"functionArn": "acs:fc:cn-shanghai:1234/functions/my-func",
"lastModifiedTime": "2006-01-02T15:04:05Z07:00",
"maxAsyncEventAgeInSeconds": 3600,
"maxAsyncRetryAttempts": 3
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.