Updates session configurations while the session is in the Active state, such as lifecycle parameters (e.g., SessionTTLInSeconds and SessionIdleTimeoutInSeconds). After the update takes effect, LastModifiedTime is automatically refreshed. These updates can be used to extend or shorten the validity period of a session and enable dynamic management without changing the execution environment bound to the session.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:UpdateSession |
update |
*All Resource
|
None | None |
Request syntax
PUT /2023-03-30/functions/{functionName}/sessions/{sessionId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
No |
The name of the function to which the session belongs. |
my-func |
| sessionId |
string |
No |
The ID of the session to be updated. |
test-sessionid-1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| qualifier |
string |
No |
The function alias or version associated with the session to be updated. |
aliasName1 |
| body | UpdateSessionInput |
No |
The session update configuration. |
Response elements
|
Element |
Type |
Description |
Example |
| Session |
The updated session information. |
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.