function_versions_by_capacity_providers
Creates, updates, deletes, gets or lists a function_versions_by_capacity_providers resource.
Overview
| Name | function_versions_by_capacity_providers |
| Type | Resource |
| Id | aws.lambda.function_versions_by_capacity_providers |
Fields
The following fields are returned by SELECT queries:
- list_function_versions_by_capacity_provider
| Name | Datatype | Description |
|---|---|---|
function_arn | string | The Amazon Resource Name (ARN) of the function version. (pattern: <code>arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-.]+(:($LATEST(.PUBLISHED)?|[a-zA-Z0-9-]+))?</code>) |
state | string | The current state of the function version. (Pending, Active, Inactive, Failed, Deactivating, Deactivated, ActiveNonInvocable, Deleting) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_function_versions_by_capacity_provider | select | capacity_provider_name, region | Marker, MaxItems | Returns a list of function versions that are configured to use a specific capacity provider. |
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.
| Name | Datatype | Description |
|---|---|---|
capacity_provider_name | string | The name of the capacity provider to list function versions for. |
region | string | AWS region (default: us-east-1) |
Marker | string | Specify the pagination token that's returned by a previous request to retrieve the next page of results. |
MaxItems | integer | The maximum number of function versions to return in the response. |
SELECT examples
- list_function_versions_by_capacity_provider
Returns a list of function versions that are configured to use a specific capacity provider.
SELECT
function_arn,
state
FROM aws.lambda.function_versions_by_capacity_providers
WHERE capacity_provider_name = '{{ capacity_provider_name }}' -- required
AND region = '{{ region }}' -- required
AND Marker = '{{ Marker }}'
AND MaxItems = '{{ MaxItems }}'
;