Skip to content

Commit 594c589

Browse files
author
awstools
committed
feat(client-elastic-load-balancing-v2): This release adds support for configuring TCP idle timeout on NLB and GWLB listeners.
1 parent 7f6b5df commit 594c589

File tree

9 files changed

+721
-4
lines changed

9 files changed

+721
-4
lines changed

clients/client-elastic-load-balancing-v2/README.md

+16
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,14 @@ DescribeAccountLimits
359359

360360
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/elastic-load-balancing-v2/command/DescribeAccountLimitsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/DescribeAccountLimitsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/DescribeAccountLimitsCommandOutput/)
361361

362+
</details>
363+
<details>
364+
<summary>
365+
DescribeListenerAttributes
366+
</summary>
367+
368+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/elastic-load-balancing-v2/command/DescribeListenerAttributesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/DescribeListenerAttributesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/DescribeListenerAttributesCommandOutput/)
369+
362370
</details>
363371
<details>
364372
<summary>
@@ -495,6 +503,14 @@ ModifyListener
495503

496504
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/elastic-load-balancing-v2/command/ModifyListenerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/ModifyListenerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/ModifyListenerCommandOutput/)
497505

506+
</details>
507+
<details>
508+
<summary>
509+
ModifyListenerAttributes
510+
</summary>
511+
512+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/elastic-load-balancing-v2/command/ModifyListenerAttributesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/ModifyListenerAttributesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/ModifyListenerAttributesCommandOutput/)
513+
498514
</details>
499515
<details>
500516
<summary>

clients/client-elastic-load-balancing-v2/src/ElasticLoadBalancingV2.ts

+46
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ import {
7070
DescribeAccountLimitsCommandInput,
7171
DescribeAccountLimitsCommandOutput,
7272
} from "./commands/DescribeAccountLimitsCommand";
73+
import {
74+
DescribeListenerAttributesCommand,
75+
DescribeListenerAttributesCommandInput,
76+
DescribeListenerAttributesCommandOutput,
77+
} from "./commands/DescribeListenerAttributesCommand";
7378
import {
7479
DescribeListenerCertificatesCommand,
7580
DescribeListenerCertificatesCommandInput,
@@ -150,6 +155,11 @@ import {
150155
GetTrustStoreRevocationContentCommandInput,
151156
GetTrustStoreRevocationContentCommandOutput,
152157
} from "./commands/GetTrustStoreRevocationContentCommand";
158+
import {
159+
ModifyListenerAttributesCommand,
160+
ModifyListenerAttributesCommandInput,
161+
ModifyListenerAttributesCommandOutput,
162+
} from "./commands/ModifyListenerAttributesCommand";
153163
import {
154164
ModifyListenerCommand,
155165
ModifyListenerCommandInput,
@@ -227,6 +237,7 @@ const commands = {
227237
DeleteTrustStoreCommand,
228238
DeregisterTargetsCommand,
229239
DescribeAccountLimitsCommand,
240+
DescribeListenerAttributesCommand,
230241
DescribeListenerCertificatesCommand,
231242
DescribeListenersCommand,
232243
DescribeLoadBalancerAttributesCommand,
@@ -244,6 +255,7 @@ const commands = {
244255
GetTrustStoreCaCertificatesBundleCommand,
245256
GetTrustStoreRevocationContentCommand,
246257
ModifyListenerCommand,
258+
ModifyListenerAttributesCommand,
247259
ModifyLoadBalancerAttributesCommand,
248260
ModifyRuleCommand,
249261
ModifyTargetGroupCommand,
@@ -509,6 +521,23 @@ export interface ElasticLoadBalancingV2 {
509521
cb: (err: any, data?: DescribeAccountLimitsCommandOutput) => void
510522
): void;
511523

524+
/**
525+
* @see {@link DescribeListenerAttributesCommand}
526+
*/
527+
describeListenerAttributes(
528+
args: DescribeListenerAttributesCommandInput,
529+
options?: __HttpHandlerOptions
530+
): Promise<DescribeListenerAttributesCommandOutput>;
531+
describeListenerAttributes(
532+
args: DescribeListenerAttributesCommandInput,
533+
cb: (err: any, data?: DescribeListenerAttributesCommandOutput) => void
534+
): void;
535+
describeListenerAttributes(
536+
args: DescribeListenerAttributesCommandInput,
537+
options: __HttpHandlerOptions,
538+
cb: (err: any, data?: DescribeListenerAttributesCommandOutput) => void
539+
): void;
540+
512541
/**
513542
* @see {@link DescribeListenerCertificatesCommand}
514543
*/
@@ -789,6 +818,23 @@ export interface ElasticLoadBalancingV2 {
789818
cb: (err: any, data?: ModifyListenerCommandOutput) => void
790819
): void;
791820

821+
/**
822+
* @see {@link ModifyListenerAttributesCommand}
823+
*/
824+
modifyListenerAttributes(
825+
args: ModifyListenerAttributesCommandInput,
826+
options?: __HttpHandlerOptions
827+
): Promise<ModifyListenerAttributesCommandOutput>;
828+
modifyListenerAttributes(
829+
args: ModifyListenerAttributesCommandInput,
830+
cb: (err: any, data?: ModifyListenerAttributesCommandOutput) => void
831+
): void;
832+
modifyListenerAttributes(
833+
args: ModifyListenerAttributesCommandInput,
834+
options: __HttpHandlerOptions,
835+
cb: (err: any, data?: ModifyListenerAttributesCommandOutput) => void
836+
): void;
837+
792838
/**
793839
* @see {@link ModifyLoadBalancerAttributesCommand}
794840
*/

clients/client-elastic-load-balancing-v2/src/ElasticLoadBalancingV2Client.ts

+12
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ import {
8181
DescribeAccountLimitsCommandInput,
8282
DescribeAccountLimitsCommandOutput,
8383
} from "./commands/DescribeAccountLimitsCommand";
84+
import {
85+
DescribeListenerAttributesCommandInput,
86+
DescribeListenerAttributesCommandOutput,
87+
} from "./commands/DescribeListenerAttributesCommand";
8488
import {
8589
DescribeListenerCertificatesCommandInput,
8690
DescribeListenerCertificatesCommandOutput,
@@ -133,6 +137,10 @@ import {
133137
GetTrustStoreRevocationContentCommandInput,
134138
GetTrustStoreRevocationContentCommandOutput,
135139
} from "./commands/GetTrustStoreRevocationContentCommand";
140+
import {
141+
ModifyListenerAttributesCommandInput,
142+
ModifyListenerAttributesCommandOutput,
143+
} from "./commands/ModifyListenerAttributesCommand";
136144
import { ModifyListenerCommandInput, ModifyListenerCommandOutput } from "./commands/ModifyListenerCommand";
137145
import {
138146
ModifyLoadBalancerAttributesCommandInput,
@@ -190,6 +198,7 @@ export type ServiceInputTypes =
190198
| DeleteTrustStoreCommandInput
191199
| DeregisterTargetsCommandInput
192200
| DescribeAccountLimitsCommandInput
201+
| DescribeListenerAttributesCommandInput
193202
| DescribeListenerCertificatesCommandInput
194203
| DescribeListenersCommandInput
195204
| DescribeLoadBalancerAttributesCommandInput
@@ -206,6 +215,7 @@ export type ServiceInputTypes =
206215
| GetResourcePolicyCommandInput
207216
| GetTrustStoreCaCertificatesBundleCommandInput
208217
| GetTrustStoreRevocationContentCommandInput
218+
| ModifyListenerAttributesCommandInput
209219
| ModifyListenerCommandInput
210220
| ModifyLoadBalancerAttributesCommandInput
211221
| ModifyRuleCommandInput
@@ -241,6 +251,7 @@ export type ServiceOutputTypes =
241251
| DeleteTrustStoreCommandOutput
242252
| DeregisterTargetsCommandOutput
243253
| DescribeAccountLimitsCommandOutput
254+
| DescribeListenerAttributesCommandOutput
244255
| DescribeListenerCertificatesCommandOutput
245256
| DescribeListenersCommandOutput
246257
| DescribeLoadBalancerAttributesCommandOutput
@@ -257,6 +268,7 @@ export type ServiceOutputTypes =
257268
| GetResourcePolicyCommandOutput
258269
| GetTrustStoreCaCertificatesBundleCommandOutput
259270
| GetTrustStoreRevocationContentCommandOutput
271+
| ModifyListenerAttributesCommandOutput
260272
| ModifyListenerCommandOutput
261273
| ModifyLoadBalancerAttributesCommandOutput
262274
| ModifyRuleCommandOutput
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import {
8+
ElasticLoadBalancingV2ClientResolvedConfig,
9+
ServiceInputTypes,
10+
ServiceOutputTypes,
11+
} from "../ElasticLoadBalancingV2Client";
12+
import { commonParams } from "../endpoint/EndpointParameters";
13+
import { DescribeListenerAttributesInput, DescribeListenerAttributesOutput } from "../models/models_0";
14+
import { de_DescribeListenerAttributesCommand, se_DescribeListenerAttributesCommand } from "../protocols/Aws_query";
15+
16+
/**
17+
* @public
18+
*/
19+
export type { __MetadataBearer };
20+
export { $Command };
21+
/**
22+
* @public
23+
*
24+
* The input for {@link DescribeListenerAttributesCommand}.
25+
*/
26+
export interface DescribeListenerAttributesCommandInput extends DescribeListenerAttributesInput {}
27+
/**
28+
* @public
29+
*
30+
* The output of {@link DescribeListenerAttributesCommand}.
31+
*/
32+
export interface DescribeListenerAttributesCommandOutput extends DescribeListenerAttributesOutput, __MetadataBearer {}
33+
34+
/**
35+
* <p>Describes the attributes for the specified listener.</p>
36+
* @example
37+
* Use a bare-bones client and the command you need to make an API call.
38+
* ```javascript
39+
* import { ElasticLoadBalancingV2Client, DescribeListenerAttributesCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; // ES Modules import
40+
* // const { ElasticLoadBalancingV2Client, DescribeListenerAttributesCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); // CommonJS import
41+
* const client = new ElasticLoadBalancingV2Client(config);
42+
* const input = { // DescribeListenerAttributesInput
43+
* ListenerArn: "STRING_VALUE", // required
44+
* };
45+
* const command = new DescribeListenerAttributesCommand(input);
46+
* const response = await client.send(command);
47+
* // { // DescribeListenerAttributesOutput
48+
* // Attributes: [ // ListenerAttributes
49+
* // { // ListenerAttribute
50+
* // Key: "STRING_VALUE",
51+
* // Value: "STRING_VALUE",
52+
* // },
53+
* // ],
54+
* // };
55+
*
56+
* ```
57+
*
58+
* @param DescribeListenerAttributesCommandInput - {@link DescribeListenerAttributesCommandInput}
59+
* @returns {@link DescribeListenerAttributesCommandOutput}
60+
* @see {@link DescribeListenerAttributesCommandInput} for command's `input` shape.
61+
* @see {@link DescribeListenerAttributesCommandOutput} for command's `response` shape.
62+
* @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
63+
*
64+
* @throws {@link ListenerNotFoundException} (client fault)
65+
* <p>The specified listener does not exist.</p>
66+
*
67+
* @throws {@link ElasticLoadBalancingV2ServiceException}
68+
* <p>Base exception class for all service exceptions from ElasticLoadBalancingV2 service.</p>
69+
*
70+
* @public
71+
*/
72+
export class DescribeListenerAttributesCommand extends $Command
73+
.classBuilder<
74+
DescribeListenerAttributesCommandInput,
75+
DescribeListenerAttributesCommandOutput,
76+
ElasticLoadBalancingV2ClientResolvedConfig,
77+
ServiceInputTypes,
78+
ServiceOutputTypes
79+
>()
80+
.ep({
81+
...commonParams,
82+
})
83+
.m(function (this: any, Command: any, cs: any, config: ElasticLoadBalancingV2ClientResolvedConfig, o: any) {
84+
return [
85+
getSerdePlugin(config, this.serialize, this.deserialize),
86+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
87+
];
88+
})
89+
.s("ElasticLoadBalancing_v10", "DescribeListenerAttributes", {})
90+
.n("ElasticLoadBalancingV2Client", "DescribeListenerAttributesCommand")
91+
.f(void 0, void 0)
92+
.ser(se_DescribeListenerAttributesCommand)
93+
.de(de_DescribeListenerAttributesCommand)
94+
.build() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import {
8+
ElasticLoadBalancingV2ClientResolvedConfig,
9+
ServiceInputTypes,
10+
ServiceOutputTypes,
11+
} from "../ElasticLoadBalancingV2Client";
12+
import { commonParams } from "../endpoint/EndpointParameters";
13+
import { ModifyListenerAttributesInput, ModifyListenerAttributesOutput } from "../models/models_0";
14+
import { de_ModifyListenerAttributesCommand, se_ModifyListenerAttributesCommand } from "../protocols/Aws_query";
15+
16+
/**
17+
* @public
18+
*/
19+
export type { __MetadataBearer };
20+
export { $Command };
21+
/**
22+
* @public
23+
*
24+
* The input for {@link ModifyListenerAttributesCommand}.
25+
*/
26+
export interface ModifyListenerAttributesCommandInput extends ModifyListenerAttributesInput {}
27+
/**
28+
* @public
29+
*
30+
* The output of {@link ModifyListenerAttributesCommand}.
31+
*/
32+
export interface ModifyListenerAttributesCommandOutput extends ModifyListenerAttributesOutput, __MetadataBearer {}
33+
34+
/**
35+
* <p>Modifies the specified attributes of the specified listener.</p>
36+
* @example
37+
* Use a bare-bones client and the command you need to make an API call.
38+
* ```javascript
39+
* import { ElasticLoadBalancingV2Client, ModifyListenerAttributesCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; // ES Modules import
40+
* // const { ElasticLoadBalancingV2Client, ModifyListenerAttributesCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); // CommonJS import
41+
* const client = new ElasticLoadBalancingV2Client(config);
42+
* const input = { // ModifyListenerAttributesInput
43+
* ListenerArn: "STRING_VALUE", // required
44+
* Attributes: [ // ListenerAttributes // required
45+
* { // ListenerAttribute
46+
* Key: "STRING_VALUE",
47+
* Value: "STRING_VALUE",
48+
* },
49+
* ],
50+
* };
51+
* const command = new ModifyListenerAttributesCommand(input);
52+
* const response = await client.send(command);
53+
* // { // ModifyListenerAttributesOutput
54+
* // Attributes: [ // ListenerAttributes
55+
* // { // ListenerAttribute
56+
* // Key: "STRING_VALUE",
57+
* // Value: "STRING_VALUE",
58+
* // },
59+
* // ],
60+
* // };
61+
*
62+
* ```
63+
*
64+
* @param ModifyListenerAttributesCommandInput - {@link ModifyListenerAttributesCommandInput}
65+
* @returns {@link ModifyListenerAttributesCommandOutput}
66+
* @see {@link ModifyListenerAttributesCommandInput} for command's `input` shape.
67+
* @see {@link ModifyListenerAttributesCommandOutput} for command's `response` shape.
68+
* @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
69+
*
70+
* @throws {@link InvalidConfigurationRequestException} (client fault)
71+
* <p>The requested configuration is not valid.</p>
72+
*
73+
* @throws {@link ListenerNotFoundException} (client fault)
74+
* <p>The specified listener does not exist.</p>
75+
*
76+
* @throws {@link ElasticLoadBalancingV2ServiceException}
77+
* <p>Base exception class for all service exceptions from ElasticLoadBalancingV2 service.</p>
78+
*
79+
* @public
80+
*/
81+
export class ModifyListenerAttributesCommand extends $Command
82+
.classBuilder<
83+
ModifyListenerAttributesCommandInput,
84+
ModifyListenerAttributesCommandOutput,
85+
ElasticLoadBalancingV2ClientResolvedConfig,
86+
ServiceInputTypes,
87+
ServiceOutputTypes
88+
>()
89+
.ep({
90+
...commonParams,
91+
})
92+
.m(function (this: any, Command: any, cs: any, config: ElasticLoadBalancingV2ClientResolvedConfig, o: any) {
93+
return [
94+
getSerdePlugin(config, this.serialize, this.deserialize),
95+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
96+
];
97+
})
98+
.s("ElasticLoadBalancing_v10", "ModifyListenerAttributes", {})
99+
.n("ElasticLoadBalancingV2Client", "ModifyListenerAttributesCommand")
100+
.f(void 0, void 0)
101+
.ser(se_ModifyListenerAttributesCommand)
102+
.de(de_ModifyListenerAttributesCommand)
103+
.build() {}

clients/client-elastic-load-balancing-v2/src/commands/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export * from "./DeleteTargetGroupCommand";
1515
export * from "./DeleteTrustStoreCommand";
1616
export * from "./DeregisterTargetsCommand";
1717
export * from "./DescribeAccountLimitsCommand";
18+
export * from "./DescribeListenerAttributesCommand";
1819
export * from "./DescribeListenerCertificatesCommand";
1920
export * from "./DescribeListenersCommand";
2021
export * from "./DescribeLoadBalancerAttributesCommand";
@@ -31,6 +32,7 @@ export * from "./DescribeTrustStoresCommand";
3132
export * from "./GetResourcePolicyCommand";
3233
export * from "./GetTrustStoreCaCertificatesBundleCommand";
3334
export * from "./GetTrustStoreRevocationContentCommand";
35+
export * from "./ModifyListenerAttributesCommand";
3436
export * from "./ModifyListenerCommand";
3537
export * from "./ModifyLoadBalancerAttributesCommand";
3638
export * from "./ModifyRuleCommand";

0 commit comments

Comments
 (0)