@aws-sdk/client-auto-scaling 3.353.0 → 3.357.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.
@@ -713,7 +713,7 @@ const de_AttachInstancesCommand = async (output, context) => {
713
713
  if (output.statusCode >= 300) {
714
714
  return de_AttachInstancesCommandError(output, context);
715
715
  }
716
- await collectBody(output.body, context);
716
+ await (0, smithy_client_1.collectBody)(output.body, context);
717
717
  const response = {
718
718
  $metadata: deserializeMetadata(output),
719
719
  };
@@ -998,7 +998,7 @@ const de_CreateAutoScalingGroupCommand = async (output, context) => {
998
998
  if (output.statusCode >= 300) {
999
999
  return de_CreateAutoScalingGroupCommandError(output, context);
1000
1000
  }
1001
- await collectBody(output.body, context);
1001
+ await (0, smithy_client_1.collectBody)(output.body, context);
1002
1002
  const response = {
1003
1003
  $metadata: deserializeMetadata(output),
1004
1004
  };
@@ -1037,7 +1037,7 @@ const de_CreateLaunchConfigurationCommand = async (output, context) => {
1037
1037
  if (output.statusCode >= 300) {
1038
1038
  return de_CreateLaunchConfigurationCommandError(output, context);
1039
1039
  }
1040
- await collectBody(output.body, context);
1040
+ await (0, smithy_client_1.collectBody)(output.body, context);
1041
1041
  const response = {
1042
1042
  $metadata: deserializeMetadata(output),
1043
1043
  };
@@ -1073,7 +1073,7 @@ const de_CreateOrUpdateTagsCommand = async (output, context) => {
1073
1073
  if (output.statusCode >= 300) {
1074
1074
  return de_CreateOrUpdateTagsCommandError(output, context);
1075
1075
  }
1076
- await collectBody(output.body, context);
1076
+ await (0, smithy_client_1.collectBody)(output.body, context);
1077
1077
  const response = {
1078
1078
  $metadata: deserializeMetadata(output),
1079
1079
  };
@@ -1112,7 +1112,7 @@ const de_DeleteAutoScalingGroupCommand = async (output, context) => {
1112
1112
  if (output.statusCode >= 300) {
1113
1113
  return de_DeleteAutoScalingGroupCommandError(output, context);
1114
1114
  }
1115
- await collectBody(output.body, context);
1115
+ await (0, smithy_client_1.collectBody)(output.body, context);
1116
1116
  const response = {
1117
1117
  $metadata: deserializeMetadata(output),
1118
1118
  };
@@ -1148,7 +1148,7 @@ const de_DeleteLaunchConfigurationCommand = async (output, context) => {
1148
1148
  if (output.statusCode >= 300) {
1149
1149
  return de_DeleteLaunchConfigurationCommandError(output, context);
1150
1150
  }
1151
- await collectBody(output.body, context);
1151
+ await (0, smithy_client_1.collectBody)(output.body, context);
1152
1152
  const response = {
1153
1153
  $metadata: deserializeMetadata(output),
1154
1154
  };
@@ -1214,7 +1214,7 @@ const de_DeleteNotificationConfigurationCommand = async (output, context) => {
1214
1214
  if (output.statusCode >= 300) {
1215
1215
  return de_DeleteNotificationConfigurationCommandError(output, context);
1216
1216
  }
1217
- await collectBody(output.body, context);
1217
+ await (0, smithy_client_1.collectBody)(output.body, context);
1218
1218
  const response = {
1219
1219
  $metadata: deserializeMetadata(output),
1220
1220
  };
@@ -1244,7 +1244,7 @@ const de_DeletePolicyCommand = async (output, context) => {
1244
1244
  if (output.statusCode >= 300) {
1245
1245
  return de_DeletePolicyCommandError(output, context);
1246
1246
  }
1247
- await collectBody(output.body, context);
1247
+ await (0, smithy_client_1.collectBody)(output.body, context);
1248
1248
  const response = {
1249
1249
  $metadata: deserializeMetadata(output),
1250
1250
  };
@@ -1277,7 +1277,7 @@ const de_DeleteScheduledActionCommand = async (output, context) => {
1277
1277
  if (output.statusCode >= 300) {
1278
1278
  return de_DeleteScheduledActionCommandError(output, context);
1279
1279
  }
1280
- await collectBody(output.body, context);
1280
+ await (0, smithy_client_1.collectBody)(output.body, context);
1281
1281
  const response = {
1282
1282
  $metadata: deserializeMetadata(output),
1283
1283
  };
@@ -1307,7 +1307,7 @@ const de_DeleteTagsCommand = async (output, context) => {
1307
1307
  if (output.statusCode >= 300) {
1308
1308
  return de_DeleteTagsCommandError(output, context);
1309
1309
  }
1310
- await collectBody(output.body, context);
1310
+ await (0, smithy_client_1.collectBody)(output.body, context);
1311
1311
  const response = {
1312
1312
  $metadata: deserializeMetadata(output),
1313
1313
  };
@@ -2252,7 +2252,7 @@ const de_DisableMetricsCollectionCommand = async (output, context) => {
2252
2252
  if (output.statusCode >= 300) {
2253
2253
  return de_DisableMetricsCollectionCommandError(output, context);
2254
2254
  }
2255
- await collectBody(output.body, context);
2255
+ await (0, smithy_client_1.collectBody)(output.body, context);
2256
2256
  const response = {
2257
2257
  $metadata: deserializeMetadata(output),
2258
2258
  };
@@ -2282,7 +2282,7 @@ const de_EnableMetricsCollectionCommand = async (output, context) => {
2282
2282
  if (output.statusCode >= 300) {
2283
2283
  return de_EnableMetricsCollectionCommandError(output, context);
2284
2284
  }
2285
- await collectBody(output.body, context);
2285
+ await (0, smithy_client_1.collectBody)(output.body, context);
2286
2286
  const response = {
2287
2287
  $metadata: deserializeMetadata(output),
2288
2288
  };
@@ -2345,7 +2345,7 @@ const de_ExecutePolicyCommand = async (output, context) => {
2345
2345
  if (output.statusCode >= 300) {
2346
2346
  return de_ExecutePolicyCommandError(output, context);
2347
2347
  }
2348
- await collectBody(output.body, context);
2348
+ await (0, smithy_client_1.collectBody)(output.body, context);
2349
2349
  const response = {
2350
2350
  $metadata: deserializeMetadata(output),
2351
2351
  };
@@ -2480,7 +2480,7 @@ const de_PutNotificationConfigurationCommand = async (output, context) => {
2480
2480
  if (output.statusCode >= 300) {
2481
2481
  return de_PutNotificationConfigurationCommandError(output, context);
2482
2482
  }
2483
- await collectBody(output.body, context);
2483
+ await (0, smithy_client_1.collectBody)(output.body, context);
2484
2484
  const response = {
2485
2485
  $metadata: deserializeMetadata(output),
2486
2486
  };
@@ -2555,7 +2555,7 @@ const de_PutScheduledUpdateGroupActionCommand = async (output, context) => {
2555
2555
  if (output.statusCode >= 300) {
2556
2556
  return de_PutScheduledUpdateGroupActionCommandError(output, context);
2557
2557
  }
2558
- await collectBody(output.body, context);
2558
+ await (0, smithy_client_1.collectBody)(output.body, context);
2559
2559
  const response = {
2560
2560
  $metadata: deserializeMetadata(output),
2561
2561
  };
@@ -2660,7 +2660,7 @@ const de_ResumeProcessesCommand = async (output, context) => {
2660
2660
  if (output.statusCode >= 300) {
2661
2661
  return de_ResumeProcessesCommandError(output, context);
2662
2662
  }
2663
- await collectBody(output.body, context);
2663
+ await (0, smithy_client_1.collectBody)(output.body, context);
2664
2664
  const response = {
2665
2665
  $metadata: deserializeMetadata(output),
2666
2666
  };
@@ -2735,7 +2735,7 @@ const de_SetDesiredCapacityCommand = async (output, context) => {
2735
2735
  if (output.statusCode >= 300) {
2736
2736
  return de_SetDesiredCapacityCommandError(output, context);
2737
2737
  }
2738
- await collectBody(output.body, context);
2738
+ await (0, smithy_client_1.collectBody)(output.body, context);
2739
2739
  const response = {
2740
2740
  $metadata: deserializeMetadata(output),
2741
2741
  };
@@ -2768,7 +2768,7 @@ const de_SetInstanceHealthCommand = async (output, context) => {
2768
2768
  if (output.statusCode >= 300) {
2769
2769
  return de_SetInstanceHealthCommandError(output, context);
2770
2770
  }
2771
- await collectBody(output.body, context);
2771
+ await (0, smithy_client_1.collectBody)(output.body, context);
2772
2772
  const response = {
2773
2773
  $metadata: deserializeMetadata(output),
2774
2774
  };
@@ -2873,7 +2873,7 @@ const de_SuspendProcessesCommand = async (output, context) => {
2873
2873
  if (output.statusCode >= 300) {
2874
2874
  return de_SuspendProcessesCommandError(output, context);
2875
2875
  }
2876
- await collectBody(output.body, context);
2876
+ await (0, smithy_client_1.collectBody)(output.body, context);
2877
2877
  const response = {
2878
2878
  $metadata: deserializeMetadata(output),
2879
2879
  };
@@ -2942,7 +2942,7 @@ const de_UpdateAutoScalingGroupCommand = async (output, context) => {
2942
2942
  if (output.statusCode >= 300) {
2943
2943
  return de_UpdateAutoScalingGroupCommandError(output, context);
2944
2944
  }
2945
- await collectBody(output.body, context);
2945
+ await (0, smithy_client_1.collectBody)(output.body, context);
2946
2946
  const response = {
2947
2947
  $metadata: deserializeMetadata(output),
2948
2948
  };
@@ -8014,13 +8014,7 @@ const deserializeMetadata = (output) => ({
8014
8014
  extendedRequestId: output.headers["x-amz-id-2"],
8015
8015
  cfId: output.headers["x-amz-cf-id"],
8016
8016
  });
8017
- const collectBody = (streamBody = new Uint8Array(), context) => {
8018
- if (streamBody instanceof Uint8Array) {
8019
- return Promise.resolve(streamBody);
8020
- }
8021
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
8022
- };
8023
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
8017
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
8024
8018
  const throwDefaultError = (0, smithy_client_1.withBaseException)(AutoScalingServiceException_1.AutoScalingServiceException);
8025
8019
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
8026
8020
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1,4 +1,4 @@
1
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { AutoScalingServiceException as __BaseException } from "../models/AutoScalingServiceException";
@@ -7879,12 +7879,6 @@ const deserializeMetadata = (output) => ({
7879
7879
  extendedRequestId: output.headers["x-amz-id-2"],
7880
7880
  cfId: output.headers["x-amz-cf-id"],
7881
7881
  });
7882
- const collectBody = (streamBody = new Uint8Array(), context) => {
7883
- if (streamBody instanceof Uint8Array) {
7884
- return Promise.resolve(streamBody);
7885
- }
7886
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
7887
- };
7888
7882
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
7889
7883
  const throwDefaultError = withBaseException(__BaseException);
7890
7884
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
@@ -138,7 +138,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
138
138
  */
139
139
  runtime?: string;
140
140
  /**
141
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
141
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
142
142
  * trait of an operation.
143
143
  */
144
144
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-auto-scaling",
3
3
  "description": "AWS SDK for JavaScript Auto Scaling Client for Node.js, Browser and React Native",
4
- "version": "3.353.0",
4
+ "version": "3.357.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,38 +21,38 @@
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.353.0",
25
- "@aws-sdk/config-resolver": "3.353.0",
26
- "@aws-sdk/credential-provider-node": "3.353.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.353.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.353.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.353.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.357.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.353.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.353.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
53
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
- "@aws-sdk/util-waiter": "3.347.0",
55
+ "@aws-sdk/util-waiter": "3.357.0",
56
56
  "@smithy/protocol-http": "^1.0.1",
57
57
  "@smithy/types": "^1.0.0",
58
58
  "fast-xml-parser": "4.2.4",