get_provisioned_concurrency_config
async
¶
get_provisioned_concurrency_config(
function_name: FunctionName,
qualifier: Qualifier,
*,
config_overrides: Optional[AsyncLambdaClientConfig] = 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.
>>> await 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/async__lambda.py
6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 | |