LambdaCore / Client / create_runtime_alias
create_runtime_alias¶
- LambdaCore.Client.create_runtime_alias(**kwargs)¶
Creates a new customer-managed runtime alias. The alias is a named pointer to a runtime version. Functions consume the customer-managed runtime through the runtime alias.
See also: AWS API Documentation
Request Syntax
response = client.create_runtime_alias( RuntimeName='string', RuntimeVersion='string', Name='string', Description='string', ReleaseLifecycle={ 'ReleaseState': 'PREVIEW'|'GA'|'DEPRECATED', 'DeprecationDate': 'string', 'FunctionCreateBlockDate': 'string', 'FunctionUpdateBlockDate': 'string' } )
- Parameters:
RuntimeName (string) –
[REQUIRED]
The name or ARN of the runtime to create an alias for.
RuntimeVersion (string) –
[REQUIRED]
The name of the runtime version the alias points to.
Name (string) –
[REQUIRED]
The name to assign to the new runtime alias.
Description (string) – A description of the runtime alias.
ReleaseLifecycle (dict) –
The runtime lifecycle for the alias. By default, this is inherited from the runtime lifecycle. Optionally, you can override the lifecycle information at the alias level, if required.
ReleaseState (string) –
Optional, with no default applied. DEPRECATED requires a DeprecationDate on or before today (UTC); PREVIEW and GA require a later one, or none. Reads report DEPRECATED once DeprecationDate is reached.
DeprecationDate (string) –
The date (UTC) on which the runtime or alias becomes deprecated.
FunctionCreateBlockDate (string) –
The date (UTC) on which creating new functions that use this runtime or alias is blocked.
FunctionUpdateBlockDate (string) –
The date (UTC) on which updating existing functions that use this runtime or alias is blocked.
- Return type:
dict
- Returns:
Response Syntax
{ 'Name': 'string', 'Arn': 'string', 'RuntimeVersion': 'string', 'RuntimeVersionArn': 'string', 'State': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'PENDING_DELETION', 'Description': 'string', 'ReleaseLifecycle': { 'ReleaseState': 'PREVIEW'|'GA'|'DEPRECATED', 'DeprecationDate': 'string', 'FunctionCreateBlockDate': 'string', 'FunctionUpdateBlockDate': 'string' }, 'Created': 'string', 'LastModified': 'string' }
Response Structure
(dict) –
Name (string) –
The name of the runtime alias.
Arn (string) –
The Amazon Resource Name (ARN) of the runtime alias.
RuntimeVersion (string) –
The name of the runtime version the alias points to.
RuntimeVersionArn (string) –
The Amazon Resource Name (ARN) of the runtime version the alias points to.
State (string) –
The current state of the runtime alias.
Description (string) –
A description of the runtime alias.
ReleaseLifecycle (dict) –
The runtime lifecycle for the alias. By default, this is inherited from the runtime lifecycle. Optionally, you can override the lifecycle information at the alias level, if required.
ReleaseState (string) –
Optional, with no default applied. DEPRECATED requires a DeprecationDate on or before today (UTC); PREVIEW and GA require a later one, or none. Reads report DEPRECATED once DeprecationDate is reached.
DeprecationDate (string) –
The date (UTC) on which the runtime or alias becomes deprecated.
FunctionCreateBlockDate (string) –
The date (UTC) on which creating new functions that use this runtime or alias is blocked.
FunctionUpdateBlockDate (string) –
The date (UTC) on which updating existing functions that use this runtime or alias is blocked.
Created (string) –
The date and time when the runtime alias was created.
LastModified (string) –
The date and time when the runtime alias was last modified.
Exceptions