Skip to main content

function_versions_by_capacity_providers

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

Overview

Namefunction_versions_by_capacity_providers
TypeResource
Idaws.lambda.function_versions_by_capacity_providers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
function_arnstringThe 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>)
statestringThe current state of the function version. (Pending, Active, Inactive, Failed, Deactivating, Deactivated, ActiveNonInvocable, Deleting)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_function_versions_by_capacity_providerselectcapacity_provider_name, regionMarker, MaxItemsReturns 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.

NameDatatypeDescription
capacity_provider_namestringThe name of the capacity provider to list function versions for.
regionstringAWS region (default: us-east-1)
MarkerstringSpecify the pagination token that's returned by a previous request to retrieve the next page of results.
MaxItemsintegerThe maximum number of function versions to return in the response.

SELECT examples

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 }}'
;