LambdaCore / Client / restore_runtime
restore_runtime¶
- LambdaCore.Client.restore_runtime(**kwargs)¶
Cancels a pending scheduled deletion, returning the resource to the ACTIVE state. Scope is determined by the RuntimeName path parameter plus an optional, mutually exclusive RuntimeVersion or RuntimeAlias query parameter: with neither, the runtime itself is restored; with RuntimeVersion, the named runtime version; with RuntimeAlias, the named runtime alias. Restoring a resource that is already ACTIVE is a no-op success. Restore only works while the target is PENDING_DELETION; once the scheduled deletion has begun executing (DELETING) or has completed, the call fails.
See also: AWS API Documentation
Request Syntax
response = client.restore_runtime( RuntimeName='string', RuntimeVersion='string', RuntimeAlias='string' )
- Parameters:
RuntimeName (string) –
[REQUIRED]
The name or ARN of the runtime to restore. When RuntimeVersion or RuntimeAlias is specified, the runtime that owns the runtime version or runtime alias to restore.
RuntimeVersion (string) – Optional. Restores the named RuntimeVersion under RuntimeName. Mutually exclusive with RuntimeAlias; supplying both is rejected with InvalidParameterValueException.
RuntimeAlias (string) – Optional. Restores the named RuntimeAlias under RuntimeName. Mutually exclusive with RuntimeVersion; supplying both is rejected with InvalidParameterValueException.
- Return type:
dict
- Returns:
Response Syntax
{ 'RuntimeName': 'string', 'RuntimeVersion': 'string', 'RuntimeAlias': 'string', 'Arn': 'string', 'State': 'ACTIVE'|'PENDING_DELETION'|'DELETING'|'FAILED', 'LastModified': 'string' }
Response Structure
(dict) –
RuntimeName (string) –
The name or ARN of the runtime.
RuntimeVersion (string) –
Echoed back only when the request supplied a RuntimeVersion qualifier.
RuntimeAlias (string) –
Echoed back only when the request supplied a RuntimeAlias qualifier.
Arn (string) –
The fully qualified ARN of the resource that was restored (runtime, version, or alias).
State (string) –
The state of the restored resource, ACTIVE on success.
LastModified (string) –
The date and time when the restored resource was last modified.
Exceptions