list_aliases
¶
list_aliases(
function_name: FunctionName,
*,
config_overrides: Optional[LambdaClientConfig] = 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/_lambda.py
5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 | |