list_aliases
async
¶
list_aliases(
function_name: FunctionName,
*,
config_overrides: Optional[AsyncLambdaClientConfig] = None,
function_version: Optional[VersionWithLatestPublished] = None,
marker: Optional[String] = None,
max_items: Optional[MaxListItems] = None,
) -> ListAliasesResponse
Returns a list of aliases for a Lambda Event Function.
Parameters:
-
function_name(FunctionName) –The name or ARN of the Lambda function.
Name formats
-
Function name -
MyFunction. -
Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. -
Partial ARN -
123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
-
-
function_version(Optional[VersionWithLatestPublished], default:None) –Specify a function version to only list aliases that invoke that version.
-
marker(Optional[String], default:None) –Specify the pagination token that's returned by a previous request to retrieve the next page of results.
-
max_items(Optional[MaxListItems], default:None) –Limit the number of aliases returned.
Raises:
-
InvalidParameterValueException–One of the parameters in the request is not valid.
-
ResourceNotFoundException–The resource specified in the request does not exist.
-
ServiceException–The Lambda service encountered an internal error.
-
TooManyRequestsException–The request throughput limit was exceeded. For more information, see Lambda quotas.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list a function's aliases The following example returns a list of aliases for a function named my-function.
Source code in docs_src/capo_lambda/_services/async__lambda.py
5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 | |