-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-lambda): Release Lambda FunctionRecursiveConfig, enabling…
… customers to turn recursive loop detection on or off on individual functions. This release adds two new APIs, GetFunctionRecursionConfig and PutFunctionRecursionConfig.
- Loading branch information
awstools
committed
Aug 19, 2024
1 parent
d9a4bcc
commit 30b277c
Showing
17 changed files
with
793 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
clients/client-lambda/src/commands/GetFunctionRecursionConfigCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient"; | ||
import { GetFunctionRecursionConfigRequest, GetFunctionRecursionConfigResponse } from "../models/models_0"; | ||
import { de_GetFunctionRecursionConfigCommand, se_GetFunctionRecursionConfigCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link GetFunctionRecursionConfigCommand}. | ||
*/ | ||
export interface GetFunctionRecursionConfigCommandInput extends GetFunctionRecursionConfigRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link GetFunctionRecursionConfigCommand}. | ||
*/ | ||
export interface GetFunctionRecursionConfigCommandOutput extends GetFunctionRecursionConfigResponse, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Returns your function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-recursion.html">recursive loop detection</a> configuration. | ||
* </p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* 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", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param GetFunctionRecursionConfigCommandInput - {@link GetFunctionRecursionConfigCommandInput} | ||
* @returns {@link GetFunctionRecursionConfigCommandOutput} | ||
* @see {@link GetFunctionRecursionConfigCommandInput} for command's `input` shape. | ||
* @see {@link GetFunctionRecursionConfigCommandOutput} for command's `response` shape. | ||
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape. | ||
* | ||
* @throws {@link InvalidParameterValueException} (client fault) | ||
* <p>One of the parameters in the request is not valid.</p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p>The resource specified in the request does not exist.</p> | ||
* | ||
* @throws {@link ServiceException} (server fault) | ||
* <p>The Lambda service encountered an internal error.</p> | ||
* | ||
* @throws {@link TooManyRequestsException} (client fault) | ||
* <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p> | ||
* | ||
* @throws {@link LambdaServiceException} | ||
* <p>Base exception class for all service exceptions from Lambda service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class GetFunctionRecursionConfigCommand extends $Command | ||
.classBuilder< | ||
GetFunctionRecursionConfigCommandInput, | ||
GetFunctionRecursionConfigCommandOutput, | ||
LambdaClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: LambdaClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("AWSGirApiService", "GetFunctionRecursionConfig", {}) | ||
.n("LambdaClient", "GetFunctionRecursionConfigCommand") | ||
.f(void 0, void 0) | ||
.ser(se_GetFunctionRecursionConfigCommand) | ||
.de(de_GetFunctionRecursionConfigCommand) | ||
.build() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.