Creates or updates the asynchronous invocation configuration for a function.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:PutFunctionAsyncInvokeConfig |
create |
*All Resource
|
None | None |
Request syntax
PUT /2023-03-30/functions/{functionName}/async-invoke-config HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
Yes |
The function name. |
my-func |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body | PutAsyncInvokeConfigInput |
Yes |
The asynchronous invocation configuration of the function. |
|
| qualifier |
string |
No |
The function version or alias. |
LATEST |
Response elements
|
Element |
Type |
Description |
Example |
| AsyncConfig |
The information about the asynchronous invocation configuration of the function. |
Examples
Success response
JSON format
{
"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
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.