get_provisioned_concurrency_config
¶
get_provisioned_concurrency_config(
function_name: FunctionName,
qualifier: Qualifier,
*,
config_overrides: Optional[LambdaClientConfig] = None,
) -> GetProvisionedConcurrencyConfigResponse
Retrieves the provisioned concurrency configuration for a function's alias or version.
Parameters:
-
function_name(FunctionName) –The name or ARN of the Lambda function.
Name formats
-
Function name –
my-function. -
Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function. -
Partial ARN –
123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
-
-
qualifier(Qualifier) –The version number or alias name.
Raises:
-
InvalidParameterValueException–One of the parameters in the request is not valid.
-
ProvisionedConcurrencyConfigNotFoundException–The specified configuration does not exist.
-
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 get a provisioned concurrency configuration The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified function.
>>> client.get_provisioned_concurrency_config(function_name='my-function', qualifier='BLUE')
To view a provisioned concurrency configuration
The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified function.
Source code in docs_src/capo_lambda/_services/_lambda.py
6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 | |