Skip to main content

event_invoke_configs

Creates, updates, deletes or gets an event_invoke_config resource or lists event_invoke_configs in a region

Overview

Nameevent_invoke_configs
TypeResource
DescriptionThe AWS::Lambda::EventInvokeConfig resource configures options for asynchronous invocation on a version or an alias.
Idawscc.lambda.event_invoke_configs

Fields

NameDatatypeDescription
destination_configobjectA configuration object that specifies the destination of an event after Lambda processes it. For more information, see [Adding a destination](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-async-destinations).
function_namestringThe name of the Lambda function.
maximum_event_age_in_secondsintegerThe maximum age of a request that Lambda sends to a function for processing.
maximum_retry_attemptsintegerThe maximum number of times to retry when the function returns an error.
qualifierstringThe identifier of a version or alias.
regionstringAWS region.

For more information, see AWS::Lambda::EventInvokeConfig.

Methods

NameResourceAccessible byRequired Params
create_resourceevent_invoke_configsINSERTFunctionName, Qualifier, region
delete_resourceevent_invoke_configsDELETEIdentifier, region
update_resourceevent_invoke_configsUPDATEIdentifier, PatchDocument, region
list_resourcesevent_invoke_configs_list_onlySELECTregion
get_resourceevent_invoke_configsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual event_invoke_config.

SELECT
region,
destination_config,
function_name,
maximum_event_age_in_seconds,
maximum_retry_attempts,
qualifier
FROM awscc.lambda.event_invoke_configs
WHERE
region = 'us-east-1' AND
Identifier = '{{ function_name }}|{{ qualifier }}';

INSERT example

Use the following StackQL query and manifest file to create a new event_invoke_config resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.lambda.event_invoke_configs (
FunctionName,
Qualifier,
region
)
SELECT
'{{ function_name }}',
'{{ qualifier }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a event_invoke_config resource, using stack-deploy.

/*+ update */
UPDATE awscc.lambda.event_invoke_configs
SET PatchDocument = string('{{ {
"DestinationConfig": destination_config,
"MaximumEventAgeInSeconds": maximum_event_age_in_seconds,
"MaximumRetryAttempts": maximum_retry_attempts
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ function_name }}|{{ qualifier }}';

DELETE example

/*+ delete */
DELETE FROM awscc.lambda.event_invoke_configs
WHERE
Identifier = '{{ function_name }}|{{ qualifier }}' AND
region = 'us-east-1';

Permissions

To operate on the event_invoke_configs resource, the following permissions are required:

lambda:PutFunctionEventInvokeConfig