Skip to content

Commit

Permalink
feat(client-elastic-load-balancing-v2): This release adds support for…
Browse files Browse the repository at this point in the history
… configuring TCP idle timeout on NLB and GWLB listeners.
  • Loading branch information
awstools committed Sep 3, 2024
1 parent 7f6b5df commit 594c589
Show file tree
Hide file tree
Showing 9 changed files with 721 additions and 4 deletions.
16 changes: 16 additions & 0 deletions clients/client-elastic-load-balancing-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,14 @@ DescribeAccountLimits

[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/)

</details>
<details>
<summary>
DescribeListenerAttributes
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -495,6 +503,14 @@ ModifyListener

[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/)

</details>
<details>
<summary>
ModifyListenerAttributes
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ import {
DescribeAccountLimitsCommandInput,
DescribeAccountLimitsCommandOutput,
} from "./commands/DescribeAccountLimitsCommand";
import {
DescribeListenerAttributesCommand,
DescribeListenerAttributesCommandInput,
DescribeListenerAttributesCommandOutput,
} from "./commands/DescribeListenerAttributesCommand";
import {
DescribeListenerCertificatesCommand,
DescribeListenerCertificatesCommandInput,
Expand Down Expand Up @@ -150,6 +155,11 @@ import {
GetTrustStoreRevocationContentCommandInput,
GetTrustStoreRevocationContentCommandOutput,
} from "./commands/GetTrustStoreRevocationContentCommand";
import {
ModifyListenerAttributesCommand,
ModifyListenerAttributesCommandInput,
ModifyListenerAttributesCommandOutput,
} from "./commands/ModifyListenerAttributesCommand";
import {
ModifyListenerCommand,
ModifyListenerCommandInput,
Expand Down Expand Up @@ -227,6 +237,7 @@ const commands = {
DeleteTrustStoreCommand,
DeregisterTargetsCommand,
DescribeAccountLimitsCommand,
DescribeListenerAttributesCommand,
DescribeListenerCertificatesCommand,
DescribeListenersCommand,
DescribeLoadBalancerAttributesCommand,
Expand All @@ -244,6 +255,7 @@ const commands = {
GetTrustStoreCaCertificatesBundleCommand,
GetTrustStoreRevocationContentCommand,
ModifyListenerCommand,
ModifyListenerAttributesCommand,
ModifyLoadBalancerAttributesCommand,
ModifyRuleCommand,
ModifyTargetGroupCommand,
Expand Down Expand Up @@ -509,6 +521,23 @@ export interface ElasticLoadBalancingV2 {
cb: (err: any, data?: DescribeAccountLimitsCommandOutput) => void
): void;

/**
* @see {@link DescribeListenerAttributesCommand}
*/
describeListenerAttributes(
args: DescribeListenerAttributesCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeListenerAttributesCommandOutput>;
describeListenerAttributes(
args: DescribeListenerAttributesCommandInput,
cb: (err: any, data?: DescribeListenerAttributesCommandOutput) => void
): void;
describeListenerAttributes(
args: DescribeListenerAttributesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeListenerAttributesCommandOutput) => void
): void;

/**
* @see {@link DescribeListenerCertificatesCommand}
*/
Expand Down Expand Up @@ -789,6 +818,23 @@ export interface ElasticLoadBalancingV2 {
cb: (err: any, data?: ModifyListenerCommandOutput) => void
): void;

/**
* @see {@link ModifyListenerAttributesCommand}
*/
modifyListenerAttributes(
args: ModifyListenerAttributesCommandInput,
options?: __HttpHandlerOptions
): Promise<ModifyListenerAttributesCommandOutput>;
modifyListenerAttributes(
args: ModifyListenerAttributesCommandInput,
cb: (err: any, data?: ModifyListenerAttributesCommandOutput) => void
): void;
modifyListenerAttributes(
args: ModifyListenerAttributesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ModifyListenerAttributesCommandOutput) => void
): void;

/**
* @see {@link ModifyLoadBalancerAttributesCommand}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ import {
DescribeAccountLimitsCommandInput,
DescribeAccountLimitsCommandOutput,
} from "./commands/DescribeAccountLimitsCommand";
import {
DescribeListenerAttributesCommandInput,
DescribeListenerAttributesCommandOutput,
} from "./commands/DescribeListenerAttributesCommand";
import {
DescribeListenerCertificatesCommandInput,
DescribeListenerCertificatesCommandOutput,
Expand Down Expand Up @@ -133,6 +137,10 @@ import {
GetTrustStoreRevocationContentCommandInput,
GetTrustStoreRevocationContentCommandOutput,
} from "./commands/GetTrustStoreRevocationContentCommand";
import {
ModifyListenerAttributesCommandInput,
ModifyListenerAttributesCommandOutput,
} from "./commands/ModifyListenerAttributesCommand";
import { ModifyListenerCommandInput, ModifyListenerCommandOutput } from "./commands/ModifyListenerCommand";
import {
ModifyLoadBalancerAttributesCommandInput,
Expand Down Expand Up @@ -190,6 +198,7 @@ export type ServiceInputTypes =
| DeleteTrustStoreCommandInput
| DeregisterTargetsCommandInput
| DescribeAccountLimitsCommandInput
| DescribeListenerAttributesCommandInput
| DescribeListenerCertificatesCommandInput
| DescribeListenersCommandInput
| DescribeLoadBalancerAttributesCommandInput
Expand All @@ -206,6 +215,7 @@ export type ServiceInputTypes =
| GetResourcePolicyCommandInput
| GetTrustStoreCaCertificatesBundleCommandInput
| GetTrustStoreRevocationContentCommandInput
| ModifyListenerAttributesCommandInput
| ModifyListenerCommandInput
| ModifyLoadBalancerAttributesCommandInput
| ModifyRuleCommandInput
Expand Down Expand Up @@ -241,6 +251,7 @@ export type ServiceOutputTypes =
| DeleteTrustStoreCommandOutput
| DeregisterTargetsCommandOutput
| DescribeAccountLimitsCommandOutput
| DescribeListenerAttributesCommandOutput
| DescribeListenerCertificatesCommandOutput
| DescribeListenersCommandOutput
| DescribeLoadBalancerAttributesCommandOutput
Expand All @@ -257,6 +268,7 @@ export type ServiceOutputTypes =
| GetResourcePolicyCommandOutput
| GetTrustStoreCaCertificatesBundleCommandOutput
| GetTrustStoreRevocationContentCommandOutput
| ModifyListenerAttributesCommandOutput
| ModifyListenerCommandOutput
| ModifyLoadBalancerAttributesCommandOutput
| ModifyRuleCommandOutput
Expand Down
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() {}
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() {}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export * from "./DeleteTargetGroupCommand";
export * from "./DeleteTrustStoreCommand";
export * from "./DeregisterTargetsCommand";
export * from "./DescribeAccountLimitsCommand";
export * from "./DescribeListenerAttributesCommand";
export * from "./DescribeListenerCertificatesCommand";
export * from "./DescribeListenersCommand";
export * from "./DescribeLoadBalancerAttributesCommand";
Expand All @@ -31,6 +32,7 @@ export * from "./DescribeTrustStoresCommand";
export * from "./GetResourcePolicyCommand";
export * from "./GetTrustStoreCaCertificatesBundleCommand";
export * from "./GetTrustStoreRevocationContentCommand";
export * from "./ModifyListenerAttributesCommand";
export * from "./ModifyListenerCommand";
export * from "./ModifyLoadBalancerAttributesCommand";
export * from "./ModifyRuleCommand";
Expand Down
Loading

0 comments on commit 594c589

Please sign in to comment.