GetFunctionRecursionConfigCommand

Returns your function's recursive loop detection  configuration.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { LambdaClient, GetFunctionRecursionConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
// const { LambdaClient, GetFunctionRecursionConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
const client = new LambdaClient(config);
const input = { // GetFunctionRecursionConfigRequest
  FunctionName: "STRING_VALUE", // required
};
const command = new GetFunctionRecursionConfigCommand(input);
const response = await client.send(command);
// { // GetFunctionRecursionConfigResponse
//   RecursiveLoop: "Allow" || "Terminate",
// };

GetFunctionRecursionConfigCommand Input

Parameter
Type
Description
FunctionName
Required
string | undefined

GetFunctionRecursionConfigCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
RecursiveLoop
RecursiveLoop | undefined

If your function's recursive loop detection configuration is Allow, Lambda doesn't take any action when it detects your function being invoked as part of a recursive loop.

If your function's recursive loop detection configuration is Terminate, Lambda stops your function being invoked and notifies you when it detects your function being invoked as part of a recursive loop.

By default, Lambda sets your function's configuration to Terminate. You can update this configuration using the PutFunctionRecursionConfig action.

Throws

Name
Fault
Details
InvalidParameterValueException
client

One of the parameters in the request is not valid.

ResourceNotFoundException
client

The resource specified in the request does not exist.

ServiceException
server

The Lambda service encountered an internal error.

TooManyRequestsException
client

The request throughput limit was exceeded. For more information, see Lambda quotas .

LambdaServiceException
Base exception class for all service exceptions from Lambda service.