-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-elastic-load-balancing-v2): This release adds support for…
… configuring TCP idle timeout on NLB and GWLB listeners.
- Loading branch information
awstools
committed
Sep 3, 2024
1 parent
7f6b5df
commit 594c589
Showing
9 changed files
with
721 additions
and
4 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
94 changes: 94 additions & 0 deletions
94
clients/client-elastic-load-balancing-v2/src/commands/DescribeListenerAttributesCommand.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,94 @@ | ||
// 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 { | ||
ElasticLoadBalancingV2ClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../ElasticLoadBalancingV2Client"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { DescribeListenerAttributesInput, DescribeListenerAttributesOutput } from "../models/models_0"; | ||
import { de_DescribeListenerAttributesCommand, se_DescribeListenerAttributesCommand } from "../protocols/Aws_query"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link DescribeListenerAttributesCommand}. | ||
*/ | ||
export interface DescribeListenerAttributesCommandInput extends DescribeListenerAttributesInput {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link DescribeListenerAttributesCommand}. | ||
*/ | ||
export interface DescribeListenerAttributesCommandOutput extends DescribeListenerAttributesOutput, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Describes the attributes for the specified listener.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { ElasticLoadBalancingV2Client, DescribeListenerAttributesCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; // ES Modules import | ||
* // const { ElasticLoadBalancingV2Client, DescribeListenerAttributesCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); // CommonJS import | ||
* const client = new ElasticLoadBalancingV2Client(config); | ||
* const input = { // DescribeListenerAttributesInput | ||
* ListenerArn: "STRING_VALUE", // required | ||
* }; | ||
* const command = new DescribeListenerAttributesCommand(input); | ||
* const response = await client.send(command); | ||
* // { // DescribeListenerAttributesOutput | ||
* // Attributes: [ // ListenerAttributes | ||
* // { // ListenerAttribute | ||
* // Key: "STRING_VALUE", | ||
* // Value: "STRING_VALUE", | ||
* // }, | ||
* // ], | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param DescribeListenerAttributesCommandInput - {@link DescribeListenerAttributesCommandInput} | ||
* @returns {@link DescribeListenerAttributesCommandOutput} | ||
* @see {@link DescribeListenerAttributesCommandInput} for command's `input` shape. | ||
* @see {@link DescribeListenerAttributesCommandOutput} for command's `response` shape. | ||
* @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape. | ||
* | ||
* @throws {@link ListenerNotFoundException} (client fault) | ||
* <p>The specified listener does not exist.</p> | ||
* | ||
* @throws {@link ElasticLoadBalancingV2ServiceException} | ||
* <p>Base exception class for all service exceptions from ElasticLoadBalancingV2 service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class DescribeListenerAttributesCommand extends $Command | ||
.classBuilder< | ||
DescribeListenerAttributesCommandInput, | ||
DescribeListenerAttributesCommandOutput, | ||
ElasticLoadBalancingV2ClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: ElasticLoadBalancingV2ClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("ElasticLoadBalancing_v10", "DescribeListenerAttributes", {}) | ||
.n("ElasticLoadBalancingV2Client", "DescribeListenerAttributesCommand") | ||
.f(void 0, void 0) | ||
.ser(se_DescribeListenerAttributesCommand) | ||
.de(de_DescribeListenerAttributesCommand) | ||
.build() {} |
103 changes: 103 additions & 0 deletions
103
clients/client-elastic-load-balancing-v2/src/commands/ModifyListenerAttributesCommand.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,103 @@ | ||
// 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 { | ||
ElasticLoadBalancingV2ClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../ElasticLoadBalancingV2Client"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { ModifyListenerAttributesInput, ModifyListenerAttributesOutput } from "../models/models_0"; | ||
import { de_ModifyListenerAttributesCommand, se_ModifyListenerAttributesCommand } from "../protocols/Aws_query"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link ModifyListenerAttributesCommand}. | ||
*/ | ||
export interface ModifyListenerAttributesCommandInput extends ModifyListenerAttributesInput {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link ModifyListenerAttributesCommand}. | ||
*/ | ||
export interface ModifyListenerAttributesCommandOutput extends ModifyListenerAttributesOutput, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Modifies the specified attributes of the specified listener.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { ElasticLoadBalancingV2Client, ModifyListenerAttributesCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; // ES Modules import | ||
* // const { ElasticLoadBalancingV2Client, ModifyListenerAttributesCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); // CommonJS import | ||
* const client = new ElasticLoadBalancingV2Client(config); | ||
* const input = { // ModifyListenerAttributesInput | ||
* ListenerArn: "STRING_VALUE", // required | ||
* Attributes: [ // ListenerAttributes // required | ||
* { // ListenerAttribute | ||
* Key: "STRING_VALUE", | ||
* Value: "STRING_VALUE", | ||
* }, | ||
* ], | ||
* }; | ||
* const command = new ModifyListenerAttributesCommand(input); | ||
* const response = await client.send(command); | ||
* // { // ModifyListenerAttributesOutput | ||
* // Attributes: [ // ListenerAttributes | ||
* // { // ListenerAttribute | ||
* // Key: "STRING_VALUE", | ||
* // Value: "STRING_VALUE", | ||
* // }, | ||
* // ], | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param ModifyListenerAttributesCommandInput - {@link ModifyListenerAttributesCommandInput} | ||
* @returns {@link ModifyListenerAttributesCommandOutput} | ||
* @see {@link ModifyListenerAttributesCommandInput} for command's `input` shape. | ||
* @see {@link ModifyListenerAttributesCommandOutput} for command's `response` shape. | ||
* @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape. | ||
* | ||
* @throws {@link InvalidConfigurationRequestException} (client fault) | ||
* <p>The requested configuration is not valid.</p> | ||
* | ||
* @throws {@link ListenerNotFoundException} (client fault) | ||
* <p>The specified listener does not exist.</p> | ||
* | ||
* @throws {@link ElasticLoadBalancingV2ServiceException} | ||
* <p>Base exception class for all service exceptions from ElasticLoadBalancingV2 service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class ModifyListenerAttributesCommand extends $Command | ||
.classBuilder< | ||
ModifyListenerAttributesCommandInput, | ||
ModifyListenerAttributesCommandOutput, | ||
ElasticLoadBalancingV2ClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: ElasticLoadBalancingV2ClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("ElasticLoadBalancing_v10", "ModifyListenerAttributes", {}) | ||
.n("ElasticLoadBalancingV2Client", "ModifyListenerAttributesCommand") | ||
.f(void 0, void 0) | ||
.ser(se_ModifyListenerAttributesCommand) | ||
.de(de_ModifyListenerAttributesCommand) | ||
.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.