Skip to main content

provisioned_concurrency_configs

Creates, updates, deletes, gets or lists a provisioned_concurrency_configs resource.

Overview

Nameprovisioned_concurrency_configs
TypeResource
Idaws.lambda.provisioned_concurrency_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
allocated_provisioned_concurrent_executionsintegerThe amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the function versions.
available_provisioned_concurrent_executionsintegerThe amount of provisioned concurrency available.
last_modifiedstringThe date and time that a user last updated the configuration, in ISO 8601 format. (pattern: <code>.*</code>)
requested_provisioned_concurrent_executionsintegerThe amount of provisioned concurrency requested.
statusstringThe status of the allocation process. (IN_PROGRESS, READY, FAILED)
status_reasonstringFor failed allocations, the reason that provisioned concurrency could not be allocated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_provisioned_concurrency_configselectfunction_name, Qualifier, regionRetrieves the provisioned concurrency configuration for a function's alias or version.
list_provisioned_concurrency_configsselectfunction_name, regionMarker, MaxItemsRetrieves a list of provisioned concurrency configurations for a function.
put_provisioned_concurrency_configreplacefunction_name, Qualifier, region, ProvisionedConcurrentExecutionsAdds a provisioned concurrency configuration to a function's alias or version.
delete_provisioned_concurrency_configdeletefunction_name, Qualifier, regionDeletes the provisioned concurrency configuration for a function.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
QualifierstringThe version number or alias name.
function_namestringThe 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.
regionstringAWS region (default: us-east-1)
MarkerstringSpecify the pagination token that's returned by a previous request to retrieve the next page of results.
MaxItemsintegerSpecify a number to limit the number of configurations returned.

SELECT examples

Retrieves the provisioned concurrency configuration for a function's alias or version.

SELECT
allocated_provisioned_concurrent_executions,
available_provisioned_concurrent_executions,
last_modified,
requested_provisioned_concurrent_executions,
status,
status_reason
FROM aws.lambda.provisioned_concurrency_configs
WHERE function_name = '{{ function_name }}' -- required
AND Qualifier = '{{ Qualifier }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Adds a provisioned concurrency configuration to a function's alias or version.

REPLACE aws.lambda.provisioned_concurrency_configs
SET
ProvisionedConcurrentExecutions = {{ ProvisionedConcurrentExecutions }}
WHERE
function_name = '{{ function_name }}' --required
AND Qualifier = '{{ Qualifier }}' --required
AND region = '{{ region }}' --required
AND ProvisionedConcurrentExecutions = '{{ ProvisionedConcurrentExecutions }}' --required
RETURNING
allocated_provisioned_concurrent_executions,
available_provisioned_concurrent_executions,
last_modified,
requested_provisioned_concurrent_executions,
status,
status_reason;

DELETE examples

Deletes the provisioned concurrency configuration for a function.

DELETE FROM aws.lambda.provisioned_concurrency_configs
WHERE function_name = '{{ function_name }}' --required
AND Qualifier = '{{ Qualifier }}' --required
AND region = '{{ region }}' --required
;