event_invoke_configs
Creates, updates, deletes or gets an event_invoke_config
resource or lists event_invoke_configs
in a region
Overview
Name | event_invoke_configs |
Type | Resource |
Description | The AWS::Lambda::EventInvokeConfig resource configures options for asynchronous invocation on a version or an alias. |
Id | aws.lambda.event_invoke_configs |
Fields
Name | Datatype | Description |
---|---|---|
destination_config | object | A configuration object that specifies the destination of an event after Lambda processes it. |
function_name | string | The name of the Lambda function. |
maximum_event_age_in_seconds | integer | The maximum age of a request that Lambda sends to a function for processing. |
maximum_retry_attempts | integer | The maximum number of times to retry when the function returns an error. |
qualifier | string | The identifier of a version or alias. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | FunctionName, Qualifier, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all event_invoke_configs
in a region.
SELECT
region,
destination_config,
function_name,
maximum_event_age_in_seconds,
maximum_retry_attempts,
qualifier
FROM aws.lambda.event_invoke_configs
WHERE region = 'us-east-1';
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 aws.lambda.event_invoke_configs
WHERE region = 'us-east-1' AND data__Identifier = '<FunctionName>|<Qualifier>';
INSERT
example
Use the following StackQL query and manifest file to create a new event_invoke_config
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.lambda.event_invoke_configs (
FunctionName,
Qualifier,
region
)
SELECT
'{{ FunctionName }}',
'{{ Qualifier }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.lambda.event_invoke_configs (
DestinationConfig,
FunctionName,
MaximumEventAgeInSeconds,
MaximumRetryAttempts,
Qualifier,
region
)
SELECT
'{{ DestinationConfig }}',
'{{ FunctionName }}',
'{{ MaximumEventAgeInSeconds }}',
'{{ MaximumRetryAttempts }}',
'{{ Qualifier }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: event_invoke_config
props:
- name: DestinationConfig
value:
OnFailure:
Destination: '{{ Destination }}'
- name: FunctionName
value: '{{ FunctionName }}'
- name: MaximumEventAgeInSeconds
value: '{{ MaximumEventAgeInSeconds }}'
- name: MaximumRetryAttempts
value: '{{ MaximumRetryAttempts }}'
- name: Qualifier
value: '{{ Qualifier }}'
DELETE
example
/*+ delete */
DELETE FROM aws.lambda.event_invoke_configs
WHERE data__Identifier = '<FunctionName|Qualifier>'
AND region = 'us-east-1';
Permissions
To operate on the event_invoke_configs
resource, the following permissions are required:
Create
lambda:PutFunctionEventInvokeConfig
Read
lambda:GetFunctionEventInvokeConfig
Update
lambda:UpdateFunctionEventInvokeConfig
Delete
lambda:DeleteFunctionEventInvokeConfig
List
lambda:ListFunctionEventInvokeConfigs