@aws-sdk/client-elastic-load-balancing 3.408.0 → 3.410.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.
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const s = "required", t = "fn", u = "argv", v = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "getAttr", f = { [s]: false, "type": "String" }, g = { [s]: true, "default": false, "type": "Boolean" }, h = { [v]: "Endpoint" }, i = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, k = {}, l = { [t]: "booleanEquals", [u]: [true, { [t]: e, [u]: [{ [v]: a }, "supportsFIPS"] }] }, m = { [v]: a }, n = { [t]: "booleanEquals", [u]: [true, { [t]: e, [u]: [m, "supportsDualStack"] }] }, o = { "url": "https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, p = [h], q = [i], r = [j];
6
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [t]: "aws.partition", [u]: [{ [v]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [t]: "isSet", [u]: p }, { [t]: "parseURL", [u]: p, assign: "url" }], type: b, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { conditions: [i, j], type: b, rules: [{ conditions: [l, n], type: b, rules: [{ endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: e, [u]: [m, "name"] }] }], endpoint: o, type: d }, { endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [n], type: b, rules: [{ endpoint: { url: "https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: o, type: d }] }] };
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://elasticloadbalancing.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -1,16 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveRuntimeExtensions = void 0;
4
+ const protocol_http_1 = require("@smithy/protocol-http");
4
5
  const smithy_client_1 = require("@smithy/smithy-client");
5
6
  const asPartial = (t) => t;
6
7
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
8
  const extensionConfiguration = {
8
9
  ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
10
+ ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
9
11
  };
10
12
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
11
13
  return {
12
14
  ...runtimeConfig,
13
15
  ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
16
+ ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
14
17
  };
15
18
  };
16
19
  exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -2,3 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./waitForAnyInstanceInService"), exports);
5
+ tslib_1.__exportStar(require("./waitForInstanceDeregistered"), exports);
6
+ tslib_1.__exportStar(require("./waitForInstanceInService"), exports);
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.waitUntilInstanceDeregistered = exports.waitForInstanceDeregistered = void 0;
4
+ const util_waiter_1 = require("@smithy/util-waiter");
5
+ const DescribeInstanceHealthCommand_1 = require("../commands/DescribeInstanceHealthCommand");
6
+ const checkState = async (client, input) => {
7
+ let reason;
8
+ try {
9
+ const result = await client.send(new DescribeInstanceHealthCommand_1.DescribeInstanceHealthCommand(input));
10
+ reason = result;
11
+ try {
12
+ const returnComparator = () => {
13
+ const flat_1 = [].concat(...result.InstanceStates);
14
+ const projection_3 = flat_1.map((element_2) => {
15
+ return element_2.State;
16
+ });
17
+ return projection_3;
18
+ };
19
+ let allStringEq_5 = returnComparator().length > 0;
20
+ for (const element_4 of returnComparator()) {
21
+ allStringEq_5 = allStringEq_5 && element_4 == "OutOfService";
22
+ }
23
+ if (allStringEq_5) {
24
+ return { state: util_waiter_1.WaiterState.SUCCESS, reason };
25
+ }
26
+ }
27
+ catch (e) { }
28
+ }
29
+ catch (exception) {
30
+ reason = exception;
31
+ if (exception.name && exception.name == "InvalidInstance") {
32
+ return { state: util_waiter_1.WaiterState.SUCCESS, reason };
33
+ }
34
+ }
35
+ return { state: util_waiter_1.WaiterState.RETRY, reason };
36
+ };
37
+ const waitForInstanceDeregistered = async (params, input) => {
38
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
39
+ return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
40
+ };
41
+ exports.waitForInstanceDeregistered = waitForInstanceDeregistered;
42
+ const waitUntilInstanceDeregistered = async (params, input) => {
43
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
44
+ const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
45
+ return (0, util_waiter_1.checkExceptions)(result);
46
+ };
47
+ exports.waitUntilInstanceDeregistered = waitUntilInstanceDeregistered;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.waitUntilInstanceInService = exports.waitForInstanceInService = void 0;
4
+ const util_waiter_1 = require("@smithy/util-waiter");
5
+ const DescribeInstanceHealthCommand_1 = require("../commands/DescribeInstanceHealthCommand");
6
+ const checkState = async (client, input) => {
7
+ let reason;
8
+ try {
9
+ const result = await client.send(new DescribeInstanceHealthCommand_1.DescribeInstanceHealthCommand(input));
10
+ reason = result;
11
+ try {
12
+ const returnComparator = () => {
13
+ const flat_1 = [].concat(...result.InstanceStates);
14
+ const projection_3 = flat_1.map((element_2) => {
15
+ return element_2.State;
16
+ });
17
+ return projection_3;
18
+ };
19
+ let allStringEq_5 = returnComparator().length > 0;
20
+ for (const element_4 of returnComparator()) {
21
+ allStringEq_5 = allStringEq_5 && element_4 == "InService";
22
+ }
23
+ if (allStringEq_5) {
24
+ return { state: util_waiter_1.WaiterState.SUCCESS, reason };
25
+ }
26
+ }
27
+ catch (e) { }
28
+ }
29
+ catch (exception) {
30
+ reason = exception;
31
+ if (exception.name && exception.name == "InvalidInstance") {
32
+ return { state: util_waiter_1.WaiterState.RETRY, reason };
33
+ }
34
+ }
35
+ return { state: util_waiter_1.WaiterState.RETRY, reason };
36
+ };
37
+ const waitForInstanceInService = async (params, input) => {
38
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
39
+ return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
40
+ };
41
+ exports.waitForInstanceInService = waitForInstanceInService;
42
+ const waitUntilInstanceInService = async (params, input) => {
43
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
44
+ const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
45
+ return (0, util_waiter_1.checkExceptions)(result);
46
+ };
47
+ exports.waitUntilInstanceInService = waitUntilInstanceInService;
@@ -1,4 +1,4 @@
1
1
  const s = "required", t = "fn", u = "argv", v = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "getAttr", f = { [s]: false, "type": "String" }, g = { [s]: true, "default": false, "type": "Boolean" }, h = { [v]: "Endpoint" }, i = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, k = {}, l = { [t]: "booleanEquals", [u]: [true, { [t]: e, [u]: [{ [v]: a }, "supportsFIPS"] }] }, m = { [v]: a }, n = { [t]: "booleanEquals", [u]: [true, { [t]: e, [u]: [m, "supportsDualStack"] }] }, o = { "url": "https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, p = [h], q = [i], r = [j];
3
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [t]: "aws.partition", [u]: [{ [v]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [t]: "isSet", [u]: p }, { [t]: "parseURL", [u]: p, assign: "url" }], type: b, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { conditions: [i, j], type: b, rules: [{ conditions: [l, n], type: b, rules: [{ endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: e, [u]: [m, "name"] }] }], endpoint: o, type: d }, { endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [n], type: b, rules: [{ endpoint: { url: "https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: o, type: d }] }] };
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://elasticloadbalancing.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
4
  export const ruleSet = _data;
@@ -1,12 +1,15 @@
1
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
1
2
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
2
3
  const asPartial = (t) => t;
3
4
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
4
5
  const extensionConfiguration = {
5
6
  ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
7
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
6
8
  };
7
9
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
8
10
  return {
9
11
  ...runtimeConfig,
10
12
  ...resolveDefaultRuntimeConfig(extensionConfiguration),
13
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
11
14
  };
12
15
  };
@@ -1 +1,3 @@
1
1
  export * from "./waitForAnyInstanceInService";
2
+ export * from "./waitForInstanceDeregistered";
3
+ export * from "./waitForInstanceInService";
@@ -0,0 +1,42 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { DescribeInstanceHealthCommand, } from "../commands/DescribeInstanceHealthCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new DescribeInstanceHealthCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ const flat_1 = [].concat(...result.InstanceStates);
11
+ const projection_3 = flat_1.map((element_2) => {
12
+ return element_2.State;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = returnComparator().length > 0;
17
+ for (const element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && element_4 == "OutOfService";
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ }
26
+ catch (exception) {
27
+ reason = exception;
28
+ if (exception.name && exception.name == "InvalidInstance") {
29
+ return { state: WaiterState.SUCCESS, reason };
30
+ }
31
+ }
32
+ return { state: WaiterState.RETRY, reason };
33
+ };
34
+ export const waitForInstanceDeregistered = async (params, input) => {
35
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
36
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
37
+ };
38
+ export const waitUntilInstanceDeregistered = async (params, input) => {
39
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
40
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
41
+ return checkExceptions(result);
42
+ };
@@ -0,0 +1,42 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { DescribeInstanceHealthCommand, } from "../commands/DescribeInstanceHealthCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new DescribeInstanceHealthCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ const flat_1 = [].concat(...result.InstanceStates);
11
+ const projection_3 = flat_1.map((element_2) => {
12
+ return element_2.State;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = returnComparator().length > 0;
17
+ for (const element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && element_4 == "InService";
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ }
26
+ catch (exception) {
27
+ reason = exception;
28
+ if (exception.name && exception.name == "InvalidInstance") {
29
+ return { state: WaiterState.RETRY, reason };
30
+ }
31
+ }
32
+ return { state: WaiterState.RETRY, reason };
33
+ };
34
+ export const waitForInstanceInService = async (params, input) => {
35
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
36
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
37
+ };
38
+ export const waitUntilInstanceInService = async (params, input) => {
39
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
40
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
41
+ return checkExceptions(result);
42
+ };
@@ -1,6 +1,7 @@
1
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
1
2
  import { DefaultExtensionConfiguration } from "@smithy/types";
2
3
  /**
3
4
  * @internal
4
5
  */
5
- export interface ElasticLoadBalancingExtensionConfiguration extends DefaultExtensionConfiguration {
6
+ export interface ElasticLoadBalancingExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
6
7
  }
@@ -11,7 +11,10 @@ export declare const getRuntimeConfig: (config: ElasticLoadBalancingClientConfig
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
14
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
14
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
15
+ updateHttpClientConfig(key: never, value: never): void;
16
+ httpHandlerConfigs(): {};
17
+ }) | RequestHandler;
15
18
  retryMode: string | import("@smithy/types").Provider<string>;
16
19
  sha256: import("@smithy/types").HashConstructor;
17
20
  streamCollector: import("@smithy/types").StreamCollector;
@@ -11,7 +11,10 @@ export declare const getRuntimeConfig: (config: ElasticLoadBalancingClientConfig
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
14
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
14
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
15
+ updateHttpClientConfig(key: never, value: never): void;
16
+ httpHandlerConfigs(): {};
17
+ }) | RequestHandler;
15
18
  retryMode: string | import("@smithy/types").Provider<string>;
16
19
  sha256: import("@smithy/types").HashConstructor;
17
20
  streamCollector: import("@smithy/types").StreamCollector;
@@ -5,7 +5,10 @@ import { ElasticLoadBalancingClientConfig } from "./ElasticLoadBalancingClient";
5
5
  export declare const getRuntimeConfig: (config: ElasticLoadBalancingClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | import("@smithy/fetch-http-handler").FetchHttpHandler;
8
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
9
+ updateHttpClientConfig(key: never, value: never): void;
10
+ httpHandlerConfigs(): {};
11
+ }) | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
12
  apiVersion: string;
10
13
  urlParser: import("@smithy/types").UrlParser;
11
14
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
@@ -3,7 +3,7 @@ import { ElasticLoadBalancingExtensionConfiguration } from "./extensionConfigura
3
3
  * @public
4
4
  */
5
5
  export interface RuntimeExtension {
6
- configure(clientConfiguration: ElasticLoadBalancingExtensionConfiguration): void;
6
+ configure(extensionConfiguration: ElasticLoadBalancingExtensionConfiguration): void;
7
7
  }
8
8
  /**
9
9
  * @public
@@ -1,3 +1,5 @@
1
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
1
2
  import { DefaultExtensionConfiguration } from "@smithy/types";
2
3
  export interface ElasticLoadBalancingExtensionConfiguration
3
- extends DefaultExtensionConfiguration {}
4
+ extends HttpHandlerExtensionConfiguration,
5
+ DefaultExtensionConfiguration {}
@@ -22,7 +22,14 @@ export declare const getRuntimeConfig: (
22
22
  any,
23
23
  import("@smithy/types").HttpHandlerOptions
24
24
  > &
25
- import("@smithy/protocol-http").HttpHandler)
25
+ import("@smithy/types").RequestHandler<
26
+ import("@smithy/protocol-http").HttpRequest,
27
+ import("@smithy/protocol-http").HttpResponse,
28
+ import("@smithy/types").HttpHandlerOptions
29
+ > & {
30
+ updateHttpClientConfig(key: never, value: never): void;
31
+ httpHandlerConfigs(): {};
32
+ })
26
33
  | RequestHandler;
27
34
  retryMode: string | import("@smithy/types").Provider<string>;
28
35
  sha256: import("@smithy/types").HashConstructor;
@@ -22,7 +22,14 @@ export declare const getRuntimeConfig: (
22
22
  any,
23
23
  import("@smithy/types").HttpHandlerOptions
24
24
  > &
25
- import("@smithy/protocol-http").HttpHandler)
25
+ import("@smithy/types").RequestHandler<
26
+ import("@smithy/protocol-http").HttpRequest,
27
+ import("@smithy/protocol-http").HttpResponse,
28
+ import("@smithy/types").HttpHandlerOptions
29
+ > & {
30
+ updateHttpClientConfig(key: never, value: never): void;
31
+ httpHandlerConfigs(): {};
32
+ })
26
33
  | RequestHandler;
27
34
  retryMode: string | import("@smithy/types").Provider<string>;
28
35
  sha256: import("@smithy/types").HashConstructor;
@@ -10,7 +10,14 @@ export declare const getRuntimeConfig: (
10
10
  any,
11
11
  import("@smithy/types").HttpHandlerOptions
12
12
  > &
13
- import("@smithy/protocol-http").HttpHandler)
13
+ import("@smithy/types").RequestHandler<
14
+ import("@smithy/protocol-http").HttpRequest,
15
+ import("@smithy/protocol-http").HttpResponse,
16
+ import("@smithy/types").HttpHandlerOptions
17
+ > & {
18
+ updateHttpClientConfig(key: never, value: never): void;
19
+ httpHandlerConfigs(): {};
20
+ })
14
21
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
15
22
  apiVersion: string;
16
23
  urlParser: import("@smithy/types").UrlParser;
@@ -1,7 +1,7 @@
1
1
  import { ElasticLoadBalancingExtensionConfiguration } from "./extensionConfiguration";
2
2
  export interface RuntimeExtension {
3
3
  configure(
4
- clientConfiguration: ElasticLoadBalancingExtensionConfiguration
4
+ extensionConfiguration: ElasticLoadBalancingExtensionConfiguration
5
5
  ): void;
6
6
  }
7
7
  export interface RuntimeExtensionsConfig {
@@ -1 +1,3 @@
1
1
  export * from "./waitForAnyInstanceInService";
2
+ export * from "./waitForInstanceDeregistered";
3
+ export * from "./waitForInstanceInService";
@@ -0,0 +1,11 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
+ import { DescribeInstanceHealthCommandInput } from "../commands/DescribeInstanceHealthCommand";
3
+ import { ElasticLoadBalancingClient } from "../ElasticLoadBalancingClient";
4
+ export declare const waitForInstanceDeregistered: (
5
+ params: WaiterConfiguration<ElasticLoadBalancingClient>,
6
+ input: DescribeInstanceHealthCommandInput
7
+ ) => Promise<WaiterResult>;
8
+ export declare const waitUntilInstanceDeregistered: (
9
+ params: WaiterConfiguration<ElasticLoadBalancingClient>,
10
+ input: DescribeInstanceHealthCommandInput
11
+ ) => Promise<WaiterResult>;
@@ -0,0 +1,11 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
+ import { DescribeInstanceHealthCommandInput } from "../commands/DescribeInstanceHealthCommand";
3
+ import { ElasticLoadBalancingClient } from "../ElasticLoadBalancingClient";
4
+ export declare const waitForInstanceInService: (
5
+ params: WaiterConfiguration<ElasticLoadBalancingClient>,
6
+ input: DescribeInstanceHealthCommandInput
7
+ ) => Promise<WaiterResult>;
8
+ export declare const waitUntilInstanceInService: (
9
+ params: WaiterConfiguration<ElasticLoadBalancingClient>,
10
+ input: DescribeInstanceHealthCommandInput
11
+ ) => Promise<WaiterResult>;
@@ -1 +1,3 @@
1
1
  export * from "./waitForAnyInstanceInService";
2
+ export * from "./waitForInstanceDeregistered";
3
+ export * from "./waitForInstanceInService";
@@ -0,0 +1,14 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
+ import { DescribeInstanceHealthCommandInput } from "../commands/DescribeInstanceHealthCommand";
3
+ import { ElasticLoadBalancingClient } from "../ElasticLoadBalancingClient";
4
+ /**
5
+ *
6
+ * @deprecated Use waitUntilInstanceDeregistered instead. waitForInstanceDeregistered does not throw error in non-success cases.
7
+ */
8
+ export declare const waitForInstanceDeregistered: (params: WaiterConfiguration<ElasticLoadBalancingClient>, input: DescribeInstanceHealthCommandInput) => Promise<WaiterResult>;
9
+ /**
10
+ *
11
+ * @param params - Waiter configuration options.
12
+ * @param input - The input to DescribeInstanceHealthCommand for polling.
13
+ */
14
+ export declare const waitUntilInstanceDeregistered: (params: WaiterConfiguration<ElasticLoadBalancingClient>, input: DescribeInstanceHealthCommandInput) => Promise<WaiterResult>;
@@ -0,0 +1,14 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
+ import { DescribeInstanceHealthCommandInput } from "../commands/DescribeInstanceHealthCommand";
3
+ import { ElasticLoadBalancingClient } from "../ElasticLoadBalancingClient";
4
+ /**
5
+ *
6
+ * @deprecated Use waitUntilInstanceInService instead. waitForInstanceInService does not throw error in non-success cases.
7
+ */
8
+ export declare const waitForInstanceInService: (params: WaiterConfiguration<ElasticLoadBalancingClient>, input: DescribeInstanceHealthCommandInput) => Promise<WaiterResult>;
9
+ /**
10
+ *
11
+ * @param params - Waiter configuration options.
12
+ * @param input - The input to DescribeInstanceHealthCommand for polling.
13
+ */
14
+ export declare const waitUntilInstanceInService: (params: WaiterConfiguration<ElasticLoadBalancingClient>, input: DescribeInstanceHealthCommandInput) => Promise<WaiterResult>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elastic-load-balancing",
3
3
  "description": "AWS SDK for JavaScript Elastic Load Balancing Client for Node.js, Browser and React Native",
4
- "version": "3.408.0",
4
+ "version": "3.410.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,40 +21,40 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.408.0",
25
- "@aws-sdk/credential-provider-node": "3.408.0",
26
- "@aws-sdk/middleware-host-header": "3.408.0",
27
- "@aws-sdk/middleware-logger": "3.408.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.408.0",
29
- "@aws-sdk/middleware-signing": "3.408.0",
30
- "@aws-sdk/middleware-user-agent": "3.408.0",
31
- "@aws-sdk/types": "3.408.0",
32
- "@aws-sdk/util-endpoints": "3.408.0",
33
- "@aws-sdk/util-user-agent-browser": "3.408.0",
34
- "@aws-sdk/util-user-agent-node": "3.408.0",
35
- "@smithy/config-resolver": "^2.0.5",
36
- "@smithy/fetch-http-handler": "^2.0.5",
37
- "@smithy/hash-node": "^2.0.5",
38
- "@smithy/invalid-dependency": "^2.0.5",
39
- "@smithy/middleware-content-length": "^2.0.5",
40
- "@smithy/middleware-endpoint": "^2.0.5",
41
- "@smithy/middleware-retry": "^2.0.5",
42
- "@smithy/middleware-serde": "^2.0.5",
24
+ "@aws-sdk/client-sts": "3.410.0",
25
+ "@aws-sdk/credential-provider-node": "3.410.0",
26
+ "@aws-sdk/middleware-host-header": "3.410.0",
27
+ "@aws-sdk/middleware-logger": "3.410.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.410.0",
29
+ "@aws-sdk/middleware-signing": "3.410.0",
30
+ "@aws-sdk/middleware-user-agent": "3.410.0",
31
+ "@aws-sdk/types": "3.410.0",
32
+ "@aws-sdk/util-endpoints": "3.410.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.410.0",
34
+ "@aws-sdk/util-user-agent-node": "3.410.0",
35
+ "@smithy/config-resolver": "^2.0.7",
36
+ "@smithy/fetch-http-handler": "^2.1.2",
37
+ "@smithy/hash-node": "^2.0.6",
38
+ "@smithy/invalid-dependency": "^2.0.6",
39
+ "@smithy/middleware-content-length": "^2.0.8",
40
+ "@smithy/middleware-endpoint": "^2.0.6",
41
+ "@smithy/middleware-retry": "^2.0.9",
42
+ "@smithy/middleware-serde": "^2.0.6",
43
43
  "@smithy/middleware-stack": "^2.0.0",
44
- "@smithy/node-config-provider": "^2.0.6",
45
- "@smithy/node-http-handler": "^2.0.5",
46
- "@smithy/protocol-http": "^2.0.5",
47
- "@smithy/smithy-client": "^2.0.5",
48
- "@smithy/types": "^2.2.2",
49
- "@smithy/url-parser": "^2.0.5",
44
+ "@smithy/node-config-provider": "^2.0.9",
45
+ "@smithy/node-http-handler": "^2.1.2",
46
+ "@smithy/protocol-http": "^3.0.2",
47
+ "@smithy/smithy-client": "^2.1.3",
48
+ "@smithy/types": "^2.3.0",
49
+ "@smithy/url-parser": "^2.0.6",
50
50
  "@smithy/util-base64": "^2.0.0",
51
51
  "@smithy/util-body-length-browser": "^2.0.0",
52
52
  "@smithy/util-body-length-node": "^2.1.0",
53
- "@smithy/util-defaults-mode-browser": "^2.0.6",
54
- "@smithy/util-defaults-mode-node": "^2.0.6",
53
+ "@smithy/util-defaults-mode-browser": "^2.0.7",
54
+ "@smithy/util-defaults-mode-node": "^2.0.9",
55
55
  "@smithy/util-retry": "^2.0.0",
56
56
  "@smithy/util-utf8": "^2.0.0",
57
- "@smithy/util-waiter": "^2.0.5",
57
+ "@smithy/util-waiter": "^2.0.6",
58
58
  "fast-xml-parser": "4.2.5",
59
59
  "tslib": "^2.5.0"
60
60
  },