put_provisioned_concurrency_config
async
¶
put_provisioned_concurrency_config(
function_name: FunctionName,
qualifier: Qualifier,
provisioned_concurrent_executions: PositiveInteger,
*,
config_overrides: Optional[AsyncLambdaClientConfig] = None,
) -> PutProvisionedConcurrencyConfigResponse
Adds a provisioned concurrency configuration to 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.
-
provisioned_concurrent_executions(PositiveInteger) –The amount of provisioned concurrency to allocate for the version or alias.
Raises:
-
InvalidParameterValueException–One of the parameters in the request is not valid.
-
ResourceConflictException–The resource already exists, or another operation is in progress.
-
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 allocate provisioned concurrency The following example allocates 100 provisioned concurrency for the BLUE alias of the specified function.
>>> await client.put_provisioned_concurrency_config(function_name='my-function', provisioned_concurrent_executions=100, qualifier='BLUE')
Source code in docs_src/capo_lambda/_services/async__lambda.py
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 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 | |