LambdaClient.put_function_recursion_config
rboto-lambda==0.4.0 · Service index · Types
Model summary (excerpt): Sets the recursive loop detection configuration for a Lambda Event Function. When you configure a Lambda function to output to the same service or resource that invokes the function, it's possible to create an infinite recursive loop. For example, a Lambda function might write a message to an Amazon Simple Queue Service (Amazon SQS) queue, which then invokes the same function. This invocation...
Install and imports
from rboto import LambdaClient
from rboto_lambda.types import (
PutFunctionRecursionConfigOutput,
RecursiveLoop,
)
Signature
async def put_function_recursion_config(
*,
function_name: str,
recursive_loop: RecursiveLoop,
) -> PutFunctionRecursionConfigOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
function_name |
Yes | The 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. |
recursive_loop |
Yes | If you set your function's recursive loop detection configuration to Allow , Lambda doesn't take any action when it detects your function being invoked as part of a recursive loop. We recommend that you only use this setting if your design intentionally uses a Lambda function to write data back to the same Amazon Web Services resource that invokes it. If you set your function's recursive loop... |
Output
PutFunctionRecursionConfigOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
recursive_loop |
RecursiveLoopOutput | None |
Always present | RecursiveLoopOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
PutFunctionRecursionConfigOutput, RecursiveLoop
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_lambda.exceptions:
InvalidParameterValueError, ResourceConflictError, ResourceNotFoundError, ServiceError, TooManyRequestsError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.