@aws-sdk/client-elastic-load-balancing-v2 3.637.0 → 3.645.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -359,6 +359,14 @@ DescribeAccountLimits
359
359
 
360
360
  [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/)
361
361
 
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
+
362
370
  </details>
363
371
  <details>
364
372
  <summary>
@@ -495,6 +503,14 @@ ModifyListener
495
503
 
496
504
  [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/)
497
505
 
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
+
498
514
  </details>
499
515
  <details>
500
516
  <summary>
package/dist-cjs/index.js CHANGED
@@ -47,6 +47,7 @@ __export(src_exports, {
47
47
  DeleteTrustStoreCommand: () => DeleteTrustStoreCommand,
48
48
  DeregisterTargetsCommand: () => DeregisterTargetsCommand,
49
49
  DescribeAccountLimitsCommand: () => DescribeAccountLimitsCommand,
50
+ DescribeListenerAttributesCommand: () => DescribeListenerAttributesCommand,
50
51
  DescribeListenerCertificatesCommand: () => DescribeListenerCertificatesCommand,
51
52
  DescribeListenersCommand: () => DescribeListenersCommand,
52
53
  DescribeLoadBalancerAttributesCommand: () => DescribeLoadBalancerAttributesCommand,
@@ -90,6 +91,7 @@ __export(src_exports, {
90
91
  LoadBalancerStateEnum: () => LoadBalancerStateEnum,
91
92
  LoadBalancerTypeEnum: () => LoadBalancerTypeEnum,
92
93
  MitigationInEffectEnum: () => MitigationInEffectEnum,
94
+ ModifyListenerAttributesCommand: () => ModifyListenerAttributesCommand,
93
95
  ModifyListenerCommand: () => ModifyListenerCommand,
94
96
  ModifyLoadBalancerAttributesCommand: () => ModifyLoadBalancerAttributesCommand,
95
97
  ModifyRuleCommand: () => ModifyRuleCommand,
@@ -1516,6 +1518,16 @@ var se_DescribeAccountLimitsCommand = /* @__PURE__ */ __name(async (input, conte
1516
1518
  });
1517
1519
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1518
1520
  }, "se_DescribeAccountLimitsCommand");
1521
+ var se_DescribeListenerAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
1522
+ const headers = SHARED_HEADERS;
1523
+ let body;
1524
+ body = buildFormUrlencodedString({
1525
+ ...se_DescribeListenerAttributesInput(input, context),
1526
+ [_A]: _DLA,
1527
+ [_V]: _
1528
+ });
1529
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1530
+ }, "se_DescribeListenerAttributesCommand");
1519
1531
  var se_DescribeListenerCertificatesCommand = /* @__PURE__ */ __name(async (input, context) => {
1520
1532
  const headers = SHARED_HEADERS;
1521
1533
  let body;
@@ -1686,6 +1698,16 @@ var se_ModifyListenerCommand = /* @__PURE__ */ __name(async (input, context) =>
1686
1698
  });
1687
1699
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1688
1700
  }, "se_ModifyListenerCommand");
1701
+ var se_ModifyListenerAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
1702
+ const headers = SHARED_HEADERS;
1703
+ let body;
1704
+ body = buildFormUrlencodedString({
1705
+ ...se_ModifyListenerAttributesInput(input, context),
1706
+ [_A]: _MLA,
1707
+ [_V]: _
1708
+ });
1709
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1710
+ }, "se_ModifyListenerAttributesCommand");
1689
1711
  var se_ModifyLoadBalancerAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
1690
1712
  const headers = SHARED_HEADERS;
1691
1713
  let body;
@@ -2024,6 +2046,19 @@ var de_DescribeAccountLimitsCommand = /* @__PURE__ */ __name(async (output, cont
2024
2046
  };
2025
2047
  return response;
2026
2048
  }, "de_DescribeAccountLimitsCommand");
2049
+ var de_DescribeListenerAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
2050
+ if (output.statusCode >= 300) {
2051
+ return de_CommandError(output, context);
2052
+ }
2053
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
2054
+ let contents = {};
2055
+ contents = de_DescribeListenerAttributesOutput(data.DescribeListenerAttributesResult, context);
2056
+ const response = {
2057
+ $metadata: deserializeMetadata(output),
2058
+ ...contents
2059
+ };
2060
+ return response;
2061
+ }, "de_DescribeListenerAttributesCommand");
2027
2062
  var de_DescribeListenerCertificatesCommand = /* @__PURE__ */ __name(async (output, context) => {
2028
2063
  if (output.statusCode >= 300) {
2029
2064
  return de_CommandError(output, context);
@@ -2245,6 +2280,19 @@ var de_ModifyListenerCommand = /* @__PURE__ */ __name(async (output, context) =>
2245
2280
  };
2246
2281
  return response;
2247
2282
  }, "de_ModifyListenerCommand");
2283
+ var de_ModifyListenerAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
2284
+ if (output.statusCode >= 300) {
2285
+ return de_CommandError(output, context);
2286
+ }
2287
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
2288
+ let contents = {};
2289
+ contents = de_ModifyListenerAttributesOutput(data.ModifyListenerAttributesResult, context);
2290
+ const response = {
2291
+ $metadata: deserializeMetadata(output),
2292
+ ...contents
2293
+ };
2294
+ return response;
2295
+ }, "de_ModifyListenerAttributesCommand");
2248
2296
  var de_ModifyLoadBalancerAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
2249
2297
  if (output.statusCode >= 300) {
2250
2298
  return de_CommandError(output, context);
@@ -3631,6 +3679,13 @@ var se_DescribeAccountLimitsInput = /* @__PURE__ */ __name((input, context) => {
3631
3679
  }
3632
3680
  return entries;
3633
3681
  }, "se_DescribeAccountLimitsInput");
3682
+ var se_DescribeListenerAttributesInput = /* @__PURE__ */ __name((input, context) => {
3683
+ const entries = {};
3684
+ if (input[_LA] != null) {
3685
+ entries[_LA] = input[_LA];
3686
+ }
3687
+ return entries;
3688
+ }, "se_DescribeListenerAttributesInput");
3634
3689
  var se_DescribeListenerCertificatesInput = /* @__PURE__ */ __name((input, context) => {
3635
3690
  const entries = {};
3636
3691
  if (input[_LA] != null) {
@@ -4025,6 +4080,31 @@ var se_ListenerArns = /* @__PURE__ */ __name((input, context) => {
4025
4080
  }
4026
4081
  return entries;
4027
4082
  }, "se_ListenerArns");
4083
+ var se_ListenerAttribute = /* @__PURE__ */ __name((input, context) => {
4084
+ const entries = {};
4085
+ if (input[_K] != null) {
4086
+ entries[_K] = input[_K];
4087
+ }
4088
+ if (input[_Val] != null) {
4089
+ entries[_Val] = input[_Val];
4090
+ }
4091
+ return entries;
4092
+ }, "se_ListenerAttribute");
4093
+ var se_ListenerAttributes = /* @__PURE__ */ __name((input, context) => {
4094
+ const entries = {};
4095
+ let counter = 1;
4096
+ for (const entry of input) {
4097
+ if (entry === null) {
4098
+ continue;
4099
+ }
4100
+ const memberEntries = se_ListenerAttribute(entry, context);
4101
+ Object.entries(memberEntries).forEach(([key, value]) => {
4102
+ entries[`member.${counter}.${key}`] = value;
4103
+ });
4104
+ counter++;
4105
+ }
4106
+ return entries;
4107
+ }, "se_ListenerAttributes");
4028
4108
  var se_ListOfDescribeTargetHealthIncludeOptions = /* @__PURE__ */ __name((input, context) => {
4029
4109
  const entries = {};
4030
4110
  let counter = 1;
@@ -4108,6 +4188,24 @@ var se_Matcher = /* @__PURE__ */ __name((input, context) => {
4108
4188
  }
4109
4189
  return entries;
4110
4190
  }, "se_Matcher");
4191
+ var se_ModifyListenerAttributesInput = /* @__PURE__ */ __name((input, context) => {
4192
+ var _a;
4193
+ const entries = {};
4194
+ if (input[_LA] != null) {
4195
+ entries[_LA] = input[_LA];
4196
+ }
4197
+ if (input[_At] != null) {
4198
+ const memberEntries = se_ListenerAttributes(input[_At], context);
4199
+ if (((_a = input[_At]) == null ? void 0 : _a.length) === 0) {
4200
+ entries.Attributes = [];
4201
+ }
4202
+ Object.entries(memberEntries).forEach(([key, value]) => {
4203
+ const loc = `Attributes.${key}`;
4204
+ entries[loc] = value;
4205
+ });
4206
+ }
4207
+ return entries;
4208
+ }, "se_ModifyListenerAttributesInput");
4111
4209
  var se_ModifyListenerInput = /* @__PURE__ */ __name((input, context) => {
4112
4210
  var _a, _b, _c;
4113
4211
  const entries = {};
@@ -5297,6 +5395,15 @@ var de_DescribeAccountLimitsOutput = /* @__PURE__ */ __name((output, context) =>
5297
5395
  }
5298
5396
  return contents;
5299
5397
  }, "de_DescribeAccountLimitsOutput");
5398
+ var de_DescribeListenerAttributesOutput = /* @__PURE__ */ __name((output, context) => {
5399
+ const contents = {};
5400
+ if (output.Attributes === "") {
5401
+ contents[_At] = [];
5402
+ } else if (output[_At] != null && output[_At][_m] != null) {
5403
+ contents[_At] = de_ListenerAttributes((0, import_smithy_client.getArrayIfSingleItem)(output[_At][_m]), context);
5404
+ }
5405
+ return contents;
5406
+ }, "de_DescribeListenerAttributesOutput");
5300
5407
  var de_DescribeListenerCertificatesOutput = /* @__PURE__ */ __name((output, context) => {
5301
5408
  const contents = {};
5302
5409
  if (output.Certificates === "") {
@@ -5695,6 +5802,21 @@ var de_Listener = /* @__PURE__ */ __name((output, context) => {
5695
5802
  }
5696
5803
  return contents;
5697
5804
  }, "de_Listener");
5805
+ var de_ListenerAttribute = /* @__PURE__ */ __name((output, context) => {
5806
+ const contents = {};
5807
+ if (output[_K] != null) {
5808
+ contents[_K] = (0, import_smithy_client.expectString)(output[_K]);
5809
+ }
5810
+ if (output[_Val] != null) {
5811
+ contents[_Val] = (0, import_smithy_client.expectString)(output[_Val]);
5812
+ }
5813
+ return contents;
5814
+ }, "de_ListenerAttribute");
5815
+ var de_ListenerAttributes = /* @__PURE__ */ __name((output, context) => {
5816
+ return (output || []).filter((e) => e != null).map((entry) => {
5817
+ return de_ListenerAttribute(entry, context);
5818
+ });
5819
+ }, "de_ListenerAttributes");
5698
5820
  var de_ListenerNotFoundException = /* @__PURE__ */ __name((output, context) => {
5699
5821
  const contents = {};
5700
5822
  if (output[_Me] != null) {
@@ -5835,6 +5957,15 @@ var de_Matcher = /* @__PURE__ */ __name((output, context) => {
5835
5957
  }
5836
5958
  return contents;
5837
5959
  }, "de_Matcher");
5960
+ var de_ModifyListenerAttributesOutput = /* @__PURE__ */ __name((output, context) => {
5961
+ const contents = {};
5962
+ if (output.Attributes === "") {
5963
+ contents[_At] = [];
5964
+ } else if (output[_At] != null && output[_At][_m] != null) {
5965
+ contents[_At] = de_ListenerAttributes((0, import_smithy_client.getArrayIfSingleItem)(output[_At][_m]), context);
5966
+ }
5967
+ return contents;
5968
+ }, "de_ModifyListenerAttributesOutput");
5838
5969
  var de_ModifyListenerOutput = /* @__PURE__ */ __name((output, context) => {
5839
5970
  const contents = {};
5840
5971
  if (output.Listeners === "") {
@@ -6629,6 +6760,7 @@ var _D = "Description";
6629
6760
  var _DA = "DefaultActions";
6630
6761
  var _DAL = "DescribeAccountLimits";
6631
6762
  var _DL = "DeleteListener";
6763
+ var _DLA = "DescribeListenerAttributes";
6632
6764
  var _DLB = "DeleteLoadBalancer";
6633
6765
  var _DLBA = "DescribeLoadBalancerAttributes";
6634
6766
  var _DLBe = "DescribeLoadBalancers";
@@ -6697,6 +6829,7 @@ var _MA = "MutualAuthentication";
6697
6829
  var _MB = "MessageBody";
6698
6830
  var _MIE = "MitigationInEffect";
6699
6831
  var _ML = "ModifyListener";
6832
+ var _MLA = "ModifyListenerAttributes";
6700
6833
  var _MLBA = "ModifyLoadBalancerAttributes";
6701
6834
  var _MR = "ModifyRule";
6702
6835
  var _MTG = "ModifyTargetGroup";
@@ -7066,6 +7199,22 @@ var _DescribeAccountLimitsCommand = class _DescribeAccountLimitsCommand extends
7066
7199
  __name(_DescribeAccountLimitsCommand, "DescribeAccountLimitsCommand");
7067
7200
  var DescribeAccountLimitsCommand = _DescribeAccountLimitsCommand;
7068
7201
 
7202
+ // src/commands/DescribeListenerAttributesCommand.ts
7203
+
7204
+
7205
+
7206
+ var _DescribeListenerAttributesCommand = class _DescribeListenerAttributesCommand extends import_smithy_client.Command.classBuilder().ep({
7207
+ ...commonParams
7208
+ }).m(function(Command, cs, config, o) {
7209
+ return [
7210
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
7211
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
7212
+ ];
7213
+ }).s("ElasticLoadBalancing_v10", "DescribeListenerAttributes", {}).n("ElasticLoadBalancingV2Client", "DescribeListenerAttributesCommand").f(void 0, void 0).ser(se_DescribeListenerAttributesCommand).de(de_DescribeListenerAttributesCommand).build() {
7214
+ };
7215
+ __name(_DescribeListenerAttributesCommand, "DescribeListenerAttributesCommand");
7216
+ var DescribeListenerAttributesCommand = _DescribeListenerAttributesCommand;
7217
+
7069
7218
  // src/commands/DescribeListenerCertificatesCommand.ts
7070
7219
 
7071
7220
 
@@ -7322,6 +7471,22 @@ var _GetTrustStoreRevocationContentCommand = class _GetTrustStoreRevocationConte
7322
7471
  __name(_GetTrustStoreRevocationContentCommand, "GetTrustStoreRevocationContentCommand");
7323
7472
  var GetTrustStoreRevocationContentCommand = _GetTrustStoreRevocationContentCommand;
7324
7473
 
7474
+ // src/commands/ModifyListenerAttributesCommand.ts
7475
+
7476
+
7477
+
7478
+ var _ModifyListenerAttributesCommand = class _ModifyListenerAttributesCommand extends import_smithy_client.Command.classBuilder().ep({
7479
+ ...commonParams
7480
+ }).m(function(Command, cs, config, o) {
7481
+ return [
7482
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
7483
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
7484
+ ];
7485
+ }).s("ElasticLoadBalancing_v10", "ModifyListenerAttributes", {}).n("ElasticLoadBalancingV2Client", "ModifyListenerAttributesCommand").f(void 0, void 0).ser(se_ModifyListenerAttributesCommand).de(de_ModifyListenerAttributesCommand).build() {
7486
+ };
7487
+ __name(_ModifyListenerAttributesCommand, "ModifyListenerAttributesCommand");
7488
+ var ModifyListenerAttributesCommand = _ModifyListenerAttributesCommand;
7489
+
7325
7490
  // src/commands/ModifyListenerCommand.ts
7326
7491
 
7327
7492
 
@@ -7564,6 +7729,7 @@ var commands = {
7564
7729
  DeleteTrustStoreCommand,
7565
7730
  DeregisterTargetsCommand,
7566
7731
  DescribeAccountLimitsCommand,
7732
+ DescribeListenerAttributesCommand,
7567
7733
  DescribeListenerCertificatesCommand,
7568
7734
  DescribeListenersCommand,
7569
7735
  DescribeLoadBalancerAttributesCommand,
@@ -7581,6 +7747,7 @@ var commands = {
7581
7747
  GetTrustStoreCaCertificatesBundleCommand,
7582
7748
  GetTrustStoreRevocationContentCommand,
7583
7749
  ModifyListenerCommand,
7750
+ ModifyListenerAttributesCommand,
7584
7751
  ModifyLoadBalancerAttributesCommand,
7585
7752
  ModifyRuleCommand,
7586
7753
  ModifyTargetGroupCommand,
@@ -7857,6 +8024,7 @@ var waitUntilTargetInService = /* @__PURE__ */ __name(async (params, input) => {
7857
8024
  DeleteTrustStoreCommand,
7858
8025
  DeregisterTargetsCommand,
7859
8026
  DescribeAccountLimitsCommand,
8027
+ DescribeListenerAttributesCommand,
7860
8028
  DescribeListenerCertificatesCommand,
7861
8029
  DescribeListenersCommand,
7862
8030
  DescribeLoadBalancerAttributesCommand,
@@ -7873,6 +8041,7 @@ var waitUntilTargetInService = /* @__PURE__ */ __name(async (params, input) => {
7873
8041
  GetResourcePolicyCommand,
7874
8042
  GetTrustStoreCaCertificatesBundleCommand,
7875
8043
  GetTrustStoreRevocationContentCommand,
8044
+ ModifyListenerAttributesCommand,
7876
8045
  ModifyListenerCommand,
7877
8046
  ModifyLoadBalancerAttributesCommand,
7878
8047
  ModifyRuleCommand,
@@ -15,6 +15,7 @@ import { DeleteTargetGroupCommand, } from "./commands/DeleteTargetGroupCommand";
15
15
  import { DeleteTrustStoreCommand, } from "./commands/DeleteTrustStoreCommand";
16
16
  import { DeregisterTargetsCommand, } from "./commands/DeregisterTargetsCommand";
17
17
  import { DescribeAccountLimitsCommand, } from "./commands/DescribeAccountLimitsCommand";
18
+ import { DescribeListenerAttributesCommand, } from "./commands/DescribeListenerAttributesCommand";
18
19
  import { DescribeListenerCertificatesCommand, } from "./commands/DescribeListenerCertificatesCommand";
19
20
  import { DescribeListenersCommand, } from "./commands/DescribeListenersCommand";
20
21
  import { DescribeLoadBalancerAttributesCommand, } from "./commands/DescribeLoadBalancerAttributesCommand";
@@ -31,6 +32,7 @@ import { DescribeTrustStoresCommand, } from "./commands/DescribeTrustStoresComma
31
32
  import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
32
33
  import { GetTrustStoreCaCertificatesBundleCommand, } from "./commands/GetTrustStoreCaCertificatesBundleCommand";
33
34
  import { GetTrustStoreRevocationContentCommand, } from "./commands/GetTrustStoreRevocationContentCommand";
35
+ import { ModifyListenerAttributesCommand, } from "./commands/ModifyListenerAttributesCommand";
34
36
  import { ModifyListenerCommand, } from "./commands/ModifyListenerCommand";
35
37
  import { ModifyLoadBalancerAttributesCommand, } from "./commands/ModifyLoadBalancerAttributesCommand";
36
38
  import { ModifyRuleCommand } from "./commands/ModifyRuleCommand";
@@ -63,6 +65,7 @@ const commands = {
63
65
  DeleteTrustStoreCommand,
64
66
  DeregisterTargetsCommand,
65
67
  DescribeAccountLimitsCommand,
68
+ DescribeListenerAttributesCommand,
66
69
  DescribeListenerCertificatesCommand,
67
70
  DescribeListenersCommand,
68
71
  DescribeLoadBalancerAttributesCommand,
@@ -80,6 +83,7 @@ const commands = {
80
83
  GetTrustStoreCaCertificatesBundleCommand,
81
84
  GetTrustStoreRevocationContentCommand,
82
85
  ModifyListenerCommand,
86
+ ModifyListenerAttributesCommand,
83
87
  ModifyLoadBalancerAttributesCommand,
84
88
  ModifyRuleCommand,
85
89
  ModifyTargetGroupCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DescribeListenerAttributesCommand, se_DescribeListenerAttributesCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class DescribeListenerAttributesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("ElasticLoadBalancing_v10", "DescribeListenerAttributes", {})
19
+ .n("ElasticLoadBalancingV2Client", "DescribeListenerAttributesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeListenerAttributesCommand)
22
+ .de(de_DescribeListenerAttributesCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ModifyListenerAttributesCommand, se_ModifyListenerAttributesCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class ModifyListenerAttributesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("ElasticLoadBalancing_v10", "ModifyListenerAttributes", {})
19
+ .n("ElasticLoadBalancingV2Client", "ModifyListenerAttributesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ModifyListenerAttributesCommand)
22
+ .de(de_ModifyListenerAttributesCommand)
23
+ .build() {
24
+ }
@@ -14,6 +14,7 @@ export * from "./DeleteTargetGroupCommand";
14
14
  export * from "./DeleteTrustStoreCommand";
15
15
  export * from "./DeregisterTargetsCommand";
16
16
  export * from "./DescribeAccountLimitsCommand";
17
+ export * from "./DescribeListenerAttributesCommand";
17
18
  export * from "./DescribeListenerCertificatesCommand";
18
19
  export * from "./DescribeListenersCommand";
19
20
  export * from "./DescribeLoadBalancerAttributesCommand";
@@ -30,6 +31,7 @@ export * from "./DescribeTrustStoresCommand";
30
31
  export * from "./GetResourcePolicyCommand";
31
32
  export * from "./GetTrustStoreCaCertificatesBundleCommand";
32
33
  export * from "./GetTrustStoreRevocationContentCommand";
34
+ export * from "./ModifyListenerAttributesCommand";
33
35
  export * from "./ModifyListenerCommand";
34
36
  export * from "./ModifyLoadBalancerAttributesCommand";
35
37
  export * from "./ModifyRuleCommand";
@@ -163,6 +163,16 @@ export const se_DescribeAccountLimitsCommand = async (input, context) => {
163
163
  });
164
164
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
165
165
  };
166
+ export const se_DescribeListenerAttributesCommand = async (input, context) => {
167
+ const headers = SHARED_HEADERS;
168
+ let body;
169
+ body = buildFormUrlencodedString({
170
+ ...se_DescribeListenerAttributesInput(input, context),
171
+ [_A]: _DLA,
172
+ [_V]: _,
173
+ });
174
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
+ };
166
176
  export const se_DescribeListenerCertificatesCommand = async (input, context) => {
167
177
  const headers = SHARED_HEADERS;
168
178
  let body;
@@ -333,6 +343,16 @@ export const se_ModifyListenerCommand = async (input, context) => {
333
343
  });
334
344
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
335
345
  };
346
+ export const se_ModifyListenerAttributesCommand = async (input, context) => {
347
+ const headers = SHARED_HEADERS;
348
+ let body;
349
+ body = buildFormUrlencodedString({
350
+ ...se_ModifyListenerAttributesInput(input, context),
351
+ [_A]: _MLA,
352
+ [_V]: _,
353
+ });
354
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
355
+ };
336
356
  export const se_ModifyLoadBalancerAttributesCommand = async (input, context) => {
337
357
  const headers = SHARED_HEADERS;
338
358
  let body;
@@ -671,6 +691,19 @@ export const de_DescribeAccountLimitsCommand = async (output, context) => {
671
691
  };
672
692
  return response;
673
693
  };
694
+ export const de_DescribeListenerAttributesCommand = async (output, context) => {
695
+ if (output.statusCode >= 300) {
696
+ return de_CommandError(output, context);
697
+ }
698
+ const data = await parseBody(output.body, context);
699
+ let contents = {};
700
+ contents = de_DescribeListenerAttributesOutput(data.DescribeListenerAttributesResult, context);
701
+ const response = {
702
+ $metadata: deserializeMetadata(output),
703
+ ...contents,
704
+ };
705
+ return response;
706
+ };
674
707
  export const de_DescribeListenerCertificatesCommand = async (output, context) => {
675
708
  if (output.statusCode >= 300) {
676
709
  return de_CommandError(output, context);
@@ -892,6 +925,19 @@ export const de_ModifyListenerCommand = async (output, context) => {
892
925
  };
893
926
  return response;
894
927
  };
928
+ export const de_ModifyListenerAttributesCommand = async (output, context) => {
929
+ if (output.statusCode >= 300) {
930
+ return de_CommandError(output, context);
931
+ }
932
+ const data = await parseBody(output.body, context);
933
+ let contents = {};
934
+ contents = de_ModifyListenerAttributesOutput(data.ModifyListenerAttributesResult, context);
935
+ const response = {
936
+ $metadata: deserializeMetadata(output),
937
+ ...contents,
938
+ };
939
+ return response;
940
+ };
895
941
  export const de_ModifyLoadBalancerAttributesCommand = async (output, context) => {
896
942
  if (output.statusCode >= 300) {
897
943
  return de_CommandError(output, context);
@@ -2273,6 +2319,13 @@ const se_DescribeAccountLimitsInput = (input, context) => {
2273
2319
  }
2274
2320
  return entries;
2275
2321
  };
2322
+ const se_DescribeListenerAttributesInput = (input, context) => {
2323
+ const entries = {};
2324
+ if (input[_LA] != null) {
2325
+ entries[_LA] = input[_LA];
2326
+ }
2327
+ return entries;
2328
+ };
2276
2329
  const se_DescribeListenerCertificatesInput = (input, context) => {
2277
2330
  const entries = {};
2278
2331
  if (input[_LA] != null) {
@@ -2654,6 +2707,31 @@ const se_ListenerArns = (input, context) => {
2654
2707
  }
2655
2708
  return entries;
2656
2709
  };
2710
+ const se_ListenerAttribute = (input, context) => {
2711
+ const entries = {};
2712
+ if (input[_K] != null) {
2713
+ entries[_K] = input[_K];
2714
+ }
2715
+ if (input[_Val] != null) {
2716
+ entries[_Val] = input[_Val];
2717
+ }
2718
+ return entries;
2719
+ };
2720
+ const se_ListenerAttributes = (input, context) => {
2721
+ const entries = {};
2722
+ let counter = 1;
2723
+ for (const entry of input) {
2724
+ if (entry === null) {
2725
+ continue;
2726
+ }
2727
+ const memberEntries = se_ListenerAttribute(entry, context);
2728
+ Object.entries(memberEntries).forEach(([key, value]) => {
2729
+ entries[`member.${counter}.${key}`] = value;
2730
+ });
2731
+ counter++;
2732
+ }
2733
+ return entries;
2734
+ };
2657
2735
  const se_ListOfDescribeTargetHealthIncludeOptions = (input, context) => {
2658
2736
  const entries = {};
2659
2737
  let counter = 1;
@@ -2737,6 +2815,23 @@ const se_Matcher = (input, context) => {
2737
2815
  }
2738
2816
  return entries;
2739
2817
  };
2818
+ const se_ModifyListenerAttributesInput = (input, context) => {
2819
+ const entries = {};
2820
+ if (input[_LA] != null) {
2821
+ entries[_LA] = input[_LA];
2822
+ }
2823
+ if (input[_At] != null) {
2824
+ const memberEntries = se_ListenerAttributes(input[_At], context);
2825
+ if (input[_At]?.length === 0) {
2826
+ entries.Attributes = [];
2827
+ }
2828
+ Object.entries(memberEntries).forEach(([key, value]) => {
2829
+ const loc = `Attributes.${key}`;
2830
+ entries[loc] = value;
2831
+ });
2832
+ }
2833
+ return entries;
2834
+ };
2740
2835
  const se_ModifyListenerInput = (input, context) => {
2741
2836
  const entries = {};
2742
2837
  if (input[_LA] != null) {
@@ -3926,6 +4021,16 @@ const de_DescribeAccountLimitsOutput = (output, context) => {
3926
4021
  }
3927
4022
  return contents;
3928
4023
  };
4024
+ const de_DescribeListenerAttributesOutput = (output, context) => {
4025
+ const contents = {};
4026
+ if (output.Attributes === "") {
4027
+ contents[_At] = [];
4028
+ }
4029
+ else if (output[_At] != null && output[_At][_m] != null) {
4030
+ contents[_At] = de_ListenerAttributes(__getArrayIfSingleItem(output[_At][_m]), context);
4031
+ }
4032
+ return contents;
4033
+ };
3929
4034
  const de_DescribeListenerCertificatesOutput = (output, context) => {
3930
4035
  const contents = {};
3931
4036
  if (output.Certificates === "") {
@@ -4348,6 +4453,23 @@ const de_Listener = (output, context) => {
4348
4453
  }
4349
4454
  return contents;
4350
4455
  };
4456
+ const de_ListenerAttribute = (output, context) => {
4457
+ const contents = {};
4458
+ if (output[_K] != null) {
4459
+ contents[_K] = __expectString(output[_K]);
4460
+ }
4461
+ if (output[_Val] != null) {
4462
+ contents[_Val] = __expectString(output[_Val]);
4463
+ }
4464
+ return contents;
4465
+ };
4466
+ const de_ListenerAttributes = (output, context) => {
4467
+ return (output || [])
4468
+ .filter((e) => e != null)
4469
+ .map((entry) => {
4470
+ return de_ListenerAttribute(entry, context);
4471
+ });
4472
+ };
4351
4473
  const de_ListenerNotFoundException = (output, context) => {
4352
4474
  const contents = {};
4353
4475
  if (output[_Me] != null) {
@@ -4502,6 +4624,16 @@ const de_Matcher = (output, context) => {
4502
4624
  }
4503
4625
  return contents;
4504
4626
  };
4627
+ const de_ModifyListenerAttributesOutput = (output, context) => {
4628
+ const contents = {};
4629
+ if (output.Attributes === "") {
4630
+ contents[_At] = [];
4631
+ }
4632
+ else if (output[_At] != null && output[_At][_m] != null) {
4633
+ contents[_At] = de_ListenerAttributes(__getArrayIfSingleItem(output[_At][_m]), context);
4634
+ }
4635
+ return contents;
4636
+ };
4505
4637
  const de_ModifyListenerOutput = (output, context) => {
4506
4638
  const contents = {};
4507
4639
  if (output.Listeners === "") {
@@ -5347,6 +5479,7 @@ const _D = "Description";
5347
5479
  const _DA = "DefaultActions";
5348
5480
  const _DAL = "DescribeAccountLimits";
5349
5481
  const _DL = "DeleteListener";
5482
+ const _DLA = "DescribeListenerAttributes";
5350
5483
  const _DLB = "DeleteLoadBalancer";
5351
5484
  const _DLBA = "DescribeLoadBalancerAttributes";
5352
5485
  const _DLBe = "DescribeLoadBalancers";
@@ -5415,6 +5548,7 @@ const _MA = "MutualAuthentication";
5415
5548
  const _MB = "MessageBody";
5416
5549
  const _MIE = "MitigationInEffect";
5417
5550
  const _ML = "ModifyListener";
5551
+ const _MLA = "ModifyListenerAttributes";
5418
5552
  const _MLBA = "ModifyLoadBalancerAttributes";
5419
5553
  const _MR = "ModifyRule";
5420
5554
  const _MTG = "ModifyTargetGroup";