@aws-sdk/client-codedeploy 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.
@@ -339,7 +339,7 @@ const de_AddTagsToOnPremisesInstancesCommand = async (output, context) => {
339
339
  if (output.statusCode >= 300) {
340
340
  return de_AddTagsToOnPremisesInstancesCommandError(output, context);
341
341
  }
342
- await collectBody(output.body, context);
342
+ await (0, smithy_client_1.collectBody)(output.body, context);
343
343
  const response = {
344
344
  $metadata: deserializeMetadata(output),
345
345
  };
@@ -714,7 +714,7 @@ const de_ContinueDeploymentCommand = async (output, context) => {
714
714
  if (output.statusCode >= 300) {
715
715
  return de_ContinueDeploymentCommandError(output, context);
716
716
  }
717
- await collectBody(output.body, context);
717
+ await (0, smithy_client_1.collectBody)(output.body, context);
718
718
  const response = {
719
719
  $metadata: deserializeMetadata(output),
720
720
  };
@@ -1101,7 +1101,7 @@ const de_DeleteApplicationCommand = async (output, context) => {
1101
1101
  if (output.statusCode >= 300) {
1102
1102
  return de_DeleteApplicationCommandError(output, context);
1103
1103
  }
1104
- await collectBody(output.body, context);
1104
+ await (0, smithy_client_1.collectBody)(output.body, context);
1105
1105
  const response = {
1106
1106
  $metadata: deserializeMetadata(output),
1107
1107
  };
@@ -1137,7 +1137,7 @@ const de_DeleteDeploymentConfigCommand = async (output, context) => {
1137
1137
  if (output.statusCode >= 300) {
1138
1138
  return de_DeleteDeploymentConfigCommandError(output, context);
1139
1139
  }
1140
- await collectBody(output.body, context);
1140
+ await (0, smithy_client_1.collectBody)(output.body, context);
1141
1141
  const response = {
1142
1142
  $metadata: deserializeMetadata(output),
1143
1143
  };
@@ -1293,7 +1293,7 @@ const de_DeregisterOnPremisesInstanceCommand = async (output, context) => {
1293
1293
  if (output.statusCode >= 300) {
1294
1294
  return de_DeregisterOnPremisesInstanceCommandError(output, context);
1295
1295
  }
1296
- await collectBody(output.body, context);
1296
+ await (0, smithy_client_1.collectBody)(output.body, context);
1297
1297
  const response = {
1298
1298
  $metadata: deserializeMetadata(output),
1299
1299
  };
@@ -2202,7 +2202,7 @@ const de_RegisterApplicationRevisionCommand = async (output, context) => {
2202
2202
  if (output.statusCode >= 300) {
2203
2203
  return de_RegisterApplicationRevisionCommandError(output, context);
2204
2204
  }
2205
- await collectBody(output.body, context);
2205
+ await (0, smithy_client_1.collectBody)(output.body, context);
2206
2206
  const response = {
2207
2207
  $metadata: deserializeMetadata(output),
2208
2208
  };
@@ -2247,7 +2247,7 @@ const de_RegisterOnPremisesInstanceCommand = async (output, context) => {
2247
2247
  if (output.statusCode >= 300) {
2248
2248
  return de_RegisterOnPremisesInstanceCommandError(output, context);
2249
2249
  }
2250
- await collectBody(output.body, context);
2250
+ await (0, smithy_client_1.collectBody)(output.body, context);
2251
2251
  const response = {
2252
2252
  $metadata: deserializeMetadata(output),
2253
2253
  };
@@ -2304,7 +2304,7 @@ const de_RemoveTagsFromOnPremisesInstancesCommand = async (output, context) => {
2304
2304
  if (output.statusCode >= 300) {
2305
2305
  return de_RemoveTagsFromOnPremisesInstancesCommandError(output, context);
2306
2306
  }
2307
- await collectBody(output.body, context);
2307
+ await (0, smithy_client_1.collectBody)(output.body, context);
2308
2308
  const response = {
2309
2309
  $metadata: deserializeMetadata(output),
2310
2310
  };
@@ -2352,7 +2352,7 @@ const de_SkipWaitTimeForInstanceTerminationCommand = async (output, context) =>
2352
2352
  if (output.statusCode >= 300) {
2353
2353
  return de_SkipWaitTimeForInstanceTerminationCommandError(output, context);
2354
2354
  }
2355
- await collectBody(output.body, context);
2355
+ await (0, smithy_client_1.collectBody)(output.body, context);
2356
2356
  const response = {
2357
2357
  $metadata: deserializeMetadata(output),
2358
2358
  };
@@ -2553,7 +2553,7 @@ const de_UpdateApplicationCommand = async (output, context) => {
2553
2553
  if (output.statusCode >= 300) {
2554
2554
  return de_UpdateApplicationCommandError(output, context);
2555
2555
  }
2556
- await collectBody(output.body, context);
2556
+ await (0, smithy_client_1.collectBody)(output.body, context);
2557
2557
  const response = {
2558
2558
  $metadata: deserializeMetadata(output),
2559
2559
  };
@@ -4074,13 +4074,7 @@ const deserializeMetadata = (output) => ({
4074
4074
  extendedRequestId: output.headers["x-amz-id-2"],
4075
4075
  cfId: output.headers["x-amz-cf-id"],
4076
4076
  });
4077
- const collectBody = (streamBody = new Uint8Array(), context) => {
4078
- if (streamBody instanceof Uint8Array) {
4079
- return Promise.resolve(streamBody);
4080
- }
4081
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4082
- };
4083
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
4077
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
4084
4078
  const throwDefaultError = (0, smithy_client_1.withBaseException)(CodeDeployServiceException_1.CodeDeployServiceException);
4085
4079
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4086
4080
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { CodeDeployServiceException as __BaseException } from "../models/CodeDeployServiceException";
4
4
  import { AlarmsLimitExceededException, ApplicationAlreadyExistsException, ApplicationDoesNotExistException, ApplicationLimitExceededException, ApplicationNameRequiredException, ArnNotSupportedException, BatchLimitExceededException, BucketNameFilterRequiredException, DeploymentAlreadyCompletedException, DeploymentConfigAlreadyExistsException, DeploymentConfigDoesNotExistException, DeploymentConfigInUseException, DeploymentConfigLimitExceededException, DeploymentConfigNameRequiredException, DeploymentDoesNotExistException, DeploymentGroupAlreadyExistsException, DeploymentGroupDoesNotExistException, DeploymentGroupLimitExceededException, DeploymentGroupNameRequiredException, DeploymentIdRequiredException, DeploymentIsNotInReadyStateException, DeploymentLimitExceededException, DeploymentNotStartedException, DeploymentTargetDoesNotExistException, DeploymentTargetIdRequiredException, DeploymentTargetListSizeExceededException, DescriptionTooLongException, ECSServiceMappingLimitExceededException, GitHubAccountTokenDoesNotExistException, GitHubAccountTokenNameRequiredException, IamArnRequiredException, IamSessionArnAlreadyRegisteredException, IamUserArnAlreadyRegisteredException, IamUserArnRequiredException, InstanceDoesNotExistException, InstanceIdRequiredException, InstanceLimitExceededException, InstanceNameAlreadyRegisteredException, InstanceNameRequiredException, InstanceNotRegisteredException, InvalidAlarmConfigException, InvalidApplicationNameException, InvalidArnException, InvalidAutoRollbackConfigException, InvalidAutoScalingGroupException, InvalidBlueGreenDeploymentConfigurationException, InvalidBucketNameFilterException, InvalidComputePlatformException, InvalidDeployedStateFilterException, InvalidDeploymentConfigNameException, InvalidDeploymentGroupNameException, InvalidDeploymentIdException, InvalidDeploymentInstanceTypeException, InvalidDeploymentStatusException, InvalidDeploymentStyleException, InvalidDeploymentTargetIdException, InvalidDeploymentWaitTypeException, InvalidEC2TagCombinationException, InvalidEC2TagException, InvalidECSServiceException, InvalidExternalIdException, InvalidFileExistsBehaviorException, InvalidGitHubAccountTokenException, InvalidGitHubAccountTokenNameException, InvalidIamSessionArnException, InvalidIamUserArnException, InvalidIgnoreApplicationStopFailuresValueException, InvalidInputException, InvalidInstanceNameException, InvalidInstanceStatusException, InvalidInstanceTypeException, InvalidKeyPrefixFilterException, InvalidLifecycleEventHookExecutionIdException, InvalidLifecycleEventHookExecutionStatusException, InvalidLoadBalancerInfoException, InvalidMinimumHealthyHostValueException, InvalidNextTokenException, InvalidOnPremisesTagCombinationException, InvalidOperationException, InvalidRegistrationStatusException, InvalidRevisionException, InvalidRoleException, InvalidSortByException, InvalidSortOrderException, InvalidTagException, InvalidTagFilterException, InvalidTagsToAddException, InvalidTargetFilterNameException, InvalidTargetGroupPairException, InvalidTargetInstancesException, InvalidTimeRangeException, InvalidTrafficRoutingConfigurationException, InvalidTriggerConfigException, InvalidUpdateOutdatedInstancesOnlyValueException, LifecycleEventAlreadyCompletedException, LifecycleHookLimitExceededException, MultipleIamArnsProvidedException, OperationNotSupportedException, ResourceArnRequiredException, ResourceValidationException, RevisionDoesNotExistException, RevisionRequiredException, RoleRequiredException, TagLimitExceededException, TagRequiredException, TagSetListLimitExceededException, ThrottlingException, TriggerTargetsLimitExceededException, UnsupportedActionForDeploymentTypeException, } from "../models/models_0";
@@ -3976,12 +3976,6 @@ const deserializeMetadata = (output) => ({
3976
3976
  extendedRequestId: output.headers["x-amz-id-2"],
3977
3977
  cfId: output.headers["x-amz-cf-id"],
3978
3978
  });
3979
- const collectBody = (streamBody = new Uint8Array(), context) => {
3980
- if (streamBody instanceof Uint8Array) {
3981
- return Promise.resolve(streamBody);
3982
- }
3983
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3984
- };
3985
3979
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3986
3980
  const throwDefaultError = withBaseException(__BaseException);
3987
3981
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
@@ -120,7 +120,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
120
120
  */
121
121
  runtime?: string;
122
122
  /**
123
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
123
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
124
124
  * trait of an operation.
125
125
  */
126
126
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codedeploy",
3
3
  "description": "AWS SDK for JavaScript Codedeploy 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
  "tslib": "^2.5.0"