@aws-sdk/client-codedeploy 3.29.0 → 3.33.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.
Files changed (132) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/cjs/CodeDeployClient.js +13 -13
  3. package/dist/cjs/CodeDeployClient.js.map +1 -1
  4. package/dist/cjs/commands/AddTagsToOnPremisesInstancesCommand.js +3 -3
  5. package/dist/cjs/commands/AddTagsToOnPremisesInstancesCommand.js.map +1 -1
  6. package/dist/cjs/commands/BatchGetApplicationRevisionsCommand.js +3 -3
  7. package/dist/cjs/commands/BatchGetApplicationRevisionsCommand.js.map +1 -1
  8. package/dist/cjs/commands/BatchGetApplicationsCommand.js +3 -3
  9. package/dist/cjs/commands/BatchGetApplicationsCommand.js.map +1 -1
  10. package/dist/cjs/commands/BatchGetDeploymentGroupsCommand.js +3 -3
  11. package/dist/cjs/commands/BatchGetDeploymentGroupsCommand.js.map +1 -1
  12. package/dist/cjs/commands/BatchGetDeploymentInstancesCommand.js +3 -3
  13. package/dist/cjs/commands/BatchGetDeploymentInstancesCommand.js.map +1 -1
  14. package/dist/cjs/commands/BatchGetDeploymentTargetsCommand.js +3 -3
  15. package/dist/cjs/commands/BatchGetDeploymentTargetsCommand.js.map +1 -1
  16. package/dist/cjs/commands/BatchGetDeploymentsCommand.js +3 -3
  17. package/dist/cjs/commands/BatchGetDeploymentsCommand.js.map +1 -1
  18. package/dist/cjs/commands/BatchGetOnPremisesInstancesCommand.js +3 -3
  19. package/dist/cjs/commands/BatchGetOnPremisesInstancesCommand.js.map +1 -1
  20. package/dist/cjs/commands/ContinueDeploymentCommand.js +3 -3
  21. package/dist/cjs/commands/ContinueDeploymentCommand.js.map +1 -1
  22. package/dist/cjs/commands/CreateApplicationCommand.js +3 -3
  23. package/dist/cjs/commands/CreateApplicationCommand.js.map +1 -1
  24. package/dist/cjs/commands/CreateDeploymentCommand.js +3 -3
  25. package/dist/cjs/commands/CreateDeploymentCommand.js.map +1 -1
  26. package/dist/cjs/commands/CreateDeploymentConfigCommand.js +3 -3
  27. package/dist/cjs/commands/CreateDeploymentConfigCommand.js.map +1 -1
  28. package/dist/cjs/commands/CreateDeploymentGroupCommand.js +3 -3
  29. package/dist/cjs/commands/CreateDeploymentGroupCommand.js.map +1 -1
  30. package/dist/cjs/commands/DeleteApplicationCommand.js +3 -3
  31. package/dist/cjs/commands/DeleteApplicationCommand.js.map +1 -1
  32. package/dist/cjs/commands/DeleteDeploymentConfigCommand.js +3 -3
  33. package/dist/cjs/commands/DeleteDeploymentConfigCommand.js.map +1 -1
  34. package/dist/cjs/commands/DeleteDeploymentGroupCommand.js +3 -3
  35. package/dist/cjs/commands/DeleteDeploymentGroupCommand.js.map +1 -1
  36. package/dist/cjs/commands/DeleteGitHubAccountTokenCommand.js +3 -3
  37. package/dist/cjs/commands/DeleteGitHubAccountTokenCommand.js.map +1 -1
  38. package/dist/cjs/commands/DeleteResourcesByExternalIdCommand.js +3 -3
  39. package/dist/cjs/commands/DeleteResourcesByExternalIdCommand.js.map +1 -1
  40. package/dist/cjs/commands/DeregisterOnPremisesInstanceCommand.js +3 -3
  41. package/dist/cjs/commands/DeregisterOnPremisesInstanceCommand.js.map +1 -1
  42. package/dist/cjs/commands/GetApplicationCommand.js +3 -3
  43. package/dist/cjs/commands/GetApplicationCommand.js.map +1 -1
  44. package/dist/cjs/commands/GetApplicationRevisionCommand.js +3 -3
  45. package/dist/cjs/commands/GetApplicationRevisionCommand.js.map +1 -1
  46. package/dist/cjs/commands/GetDeploymentCommand.js +3 -3
  47. package/dist/cjs/commands/GetDeploymentCommand.js.map +1 -1
  48. package/dist/cjs/commands/GetDeploymentConfigCommand.js +3 -3
  49. package/dist/cjs/commands/GetDeploymentConfigCommand.js.map +1 -1
  50. package/dist/cjs/commands/GetDeploymentGroupCommand.js +3 -3
  51. package/dist/cjs/commands/GetDeploymentGroupCommand.js.map +1 -1
  52. package/dist/cjs/commands/GetDeploymentInstanceCommand.js +3 -3
  53. package/dist/cjs/commands/GetDeploymentInstanceCommand.js.map +1 -1
  54. package/dist/cjs/commands/GetDeploymentTargetCommand.js +3 -3
  55. package/dist/cjs/commands/GetDeploymentTargetCommand.js.map +1 -1
  56. package/dist/cjs/commands/GetOnPremisesInstanceCommand.js +3 -3
  57. package/dist/cjs/commands/GetOnPremisesInstanceCommand.js.map +1 -1
  58. package/dist/cjs/commands/ListApplicationRevisionsCommand.js +3 -3
  59. package/dist/cjs/commands/ListApplicationRevisionsCommand.js.map +1 -1
  60. package/dist/cjs/commands/ListApplicationsCommand.js +3 -3
  61. package/dist/cjs/commands/ListApplicationsCommand.js.map +1 -1
  62. package/dist/cjs/commands/ListDeploymentConfigsCommand.js +3 -3
  63. package/dist/cjs/commands/ListDeploymentConfigsCommand.js.map +1 -1
  64. package/dist/cjs/commands/ListDeploymentGroupsCommand.js +3 -3
  65. package/dist/cjs/commands/ListDeploymentGroupsCommand.js.map +1 -1
  66. package/dist/cjs/commands/ListDeploymentInstancesCommand.js +3 -3
  67. package/dist/cjs/commands/ListDeploymentInstancesCommand.js.map +1 -1
  68. package/dist/cjs/commands/ListDeploymentTargetsCommand.js +3 -3
  69. package/dist/cjs/commands/ListDeploymentTargetsCommand.js.map +1 -1
  70. package/dist/cjs/commands/ListDeploymentsCommand.js +3 -3
  71. package/dist/cjs/commands/ListDeploymentsCommand.js.map +1 -1
  72. package/dist/cjs/commands/ListGitHubAccountTokenNamesCommand.js +3 -3
  73. package/dist/cjs/commands/ListGitHubAccountTokenNamesCommand.js.map +1 -1
  74. package/dist/cjs/commands/ListOnPremisesInstancesCommand.js +3 -3
  75. package/dist/cjs/commands/ListOnPremisesInstancesCommand.js.map +1 -1
  76. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  77. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  78. package/dist/cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js +3 -3
  79. package/dist/cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js.map +1 -1
  80. package/dist/cjs/commands/RegisterApplicationRevisionCommand.js +3 -3
  81. package/dist/cjs/commands/RegisterApplicationRevisionCommand.js.map +1 -1
  82. package/dist/cjs/commands/RegisterOnPremisesInstanceCommand.js +3 -3
  83. package/dist/cjs/commands/RegisterOnPremisesInstanceCommand.js.map +1 -1
  84. package/dist/cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js +3 -3
  85. package/dist/cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js.map +1 -1
  86. package/dist/cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js +3 -3
  87. package/dist/cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js.map +1 -1
  88. package/dist/cjs/commands/StopDeploymentCommand.js +3 -3
  89. package/dist/cjs/commands/StopDeploymentCommand.js.map +1 -1
  90. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  91. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  92. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  93. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  94. package/dist/cjs/commands/UpdateApplicationCommand.js +3 -3
  95. package/dist/cjs/commands/UpdateApplicationCommand.js.map +1 -1
  96. package/dist/cjs/commands/UpdateDeploymentGroupCommand.js +3 -3
  97. package/dist/cjs/commands/UpdateDeploymentGroupCommand.js.map +1 -1
  98. package/dist/cjs/endpoints.js +1 -1
  99. package/dist/cjs/endpoints.js.map +1 -1
  100. package/dist/cjs/index.js +58 -58
  101. package/dist/cjs/index.js.map +1 -1
  102. package/dist/cjs/models/index.js +1 -1
  103. package/dist/cjs/models/index.js.map +1 -1
  104. package/dist/cjs/package.json +32 -32
  105. package/dist/cjs/protocols/Aws_json1_1.js +304 -300
  106. package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
  107. package/dist/cjs/runtimeConfig.browser.js +4 -4
  108. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  109. package/dist/cjs/runtimeConfig.js +8 -8
  110. package/dist/cjs/runtimeConfig.js.map +1 -1
  111. package/dist/cjs/runtimeConfig.native.js +1 -1
  112. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  113. package/dist/cjs/waiters/waitForDeploymentSuccessful.js +3 -3
  114. package/dist/cjs/waiters/waitForDeploymentSuccessful.js.map +1 -1
  115. package/dist/es/package.json +32 -32
  116. package/dist/es/pagination/ListApplicationRevisionsPaginator.js +4 -4
  117. package/dist/es/pagination/ListApplicationRevisionsPaginator.js.map +1 -1
  118. package/dist/es/pagination/ListApplicationsPaginator.js +4 -4
  119. package/dist/es/pagination/ListApplicationsPaginator.js.map +1 -1
  120. package/dist/es/pagination/ListDeploymentConfigsPaginator.js +4 -4
  121. package/dist/es/pagination/ListDeploymentConfigsPaginator.js.map +1 -1
  122. package/dist/es/pagination/ListDeploymentGroupsPaginator.js +4 -4
  123. package/dist/es/pagination/ListDeploymentGroupsPaginator.js.map +1 -1
  124. package/dist/es/pagination/ListDeploymentInstancesPaginator.js +4 -4
  125. package/dist/es/pagination/ListDeploymentInstancesPaginator.js.map +1 -1
  126. package/dist/es/pagination/ListDeploymentsPaginator.js +4 -4
  127. package/dist/es/pagination/ListDeploymentsPaginator.js.map +1 -1
  128. package/dist/es/protocols/Aws_json1_1.js +24 -20
  129. package/dist/es/protocols/Aws_json1_1.js.map +1 -1
  130. package/package.json +32 -32
  131. package/protocols/Aws_json1_1.ts +26 -19
  132. package/tsconfig.json +1 -2
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectString as __expectString, limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_json1_1AddTagsToOnPremisesInstancesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var headers, body;
6
6
  return __generator(this, function (_a) {
@@ -7193,7 +7193,7 @@ var deserializeAws_json1_1ApplicationInfo = function (output, context) {
7193
7193
  applicationName: __expectString(output.applicationName),
7194
7194
  computePlatform: __expectString(output.computePlatform),
7195
7195
  createTime: output.createTime !== undefined && output.createTime !== null
7196
- ? new Date(Math.round(output.createTime * 1000))
7196
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime)))
7197
7197
  : undefined,
7198
7198
  gitHubAccountName: __expectString(output.gitHubAccountName),
7199
7199
  linkedToGitHub: __expectBoolean(output.linkedToGitHub),
@@ -7371,7 +7371,7 @@ var deserializeAws_json1_1CloudFormationTarget = function (output, context) {
7371
7371
  return {
7372
7372
  deploymentId: __expectString(output.deploymentId),
7373
7373
  lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
7374
- ? new Date(Math.round(output.lastUpdatedAt * 1000))
7374
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
7375
7375
  : undefined,
7376
7376
  lifecycleEvents: output.lifecycleEvents !== undefined && output.lifecycleEvents !== null
7377
7377
  ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context)
@@ -7436,7 +7436,7 @@ var deserializeAws_json1_1DeploymentConfigInfo = function (output, context) {
7436
7436
  return {
7437
7437
  computePlatform: __expectString(output.computePlatform),
7438
7438
  createTime: output.createTime !== undefined && output.createTime !== null
7439
- ? new Date(Math.round(output.createTime * 1000))
7439
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime)))
7440
7440
  : undefined,
7441
7441
  deploymentConfigId: __expectString(output.deploymentConfigId),
7442
7442
  deploymentConfigName: __expectString(output.deploymentConfigName),
@@ -7590,11 +7590,11 @@ var deserializeAws_json1_1DeploymentInfo = function (output, context) {
7590
7590
  ? deserializeAws_json1_1BlueGreenDeploymentConfiguration(output.blueGreenDeploymentConfiguration, context)
7591
7591
  : undefined,
7592
7592
  completeTime: output.completeTime !== undefined && output.completeTime !== null
7593
- ? new Date(Math.round(output.completeTime * 1000))
7593
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completeTime)))
7594
7594
  : undefined,
7595
7595
  computePlatform: __expectString(output.computePlatform),
7596
7596
  createTime: output.createTime !== undefined && output.createTime !== null
7597
- ? new Date(Math.round(output.createTime * 1000))
7597
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime)))
7598
7598
  : undefined,
7599
7599
  creator: __expectString(output.creator),
7600
7600
  deploymentConfigName: __expectString(output.deploymentConfigName),
@@ -7633,7 +7633,7 @@ var deserializeAws_json1_1DeploymentInfo = function (output, context) {
7633
7633
  ? deserializeAws_json1_1RollbackInfo(output.rollbackInfo, context)
7634
7634
  : undefined,
7635
7635
  startTime: output.startTime !== undefined && output.startTime !== null
7636
- ? new Date(Math.round(output.startTime * 1000))
7636
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
7637
7637
  : undefined,
7638
7638
  status: __expectString(output.status),
7639
7639
  targetInstances: output.targetInstances !== undefined && output.targetInstances !== null
@@ -7823,7 +7823,7 @@ var deserializeAws_json1_1ECSTarget = function (output, context) {
7823
7823
  return {
7824
7824
  deploymentId: __expectString(output.deploymentId),
7825
7825
  lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
7826
- ? new Date(Math.round(output.lastUpdatedAt * 1000))
7826
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
7827
7827
  : undefined,
7828
7828
  lifecycleEvents: output.lifecycleEvents !== undefined && output.lifecycleEvents !== null
7829
7829
  ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context)
@@ -7888,13 +7888,13 @@ var deserializeAws_json1_1GenericRevisionInfo = function (output, context) {
7888
7888
  : undefined,
7889
7889
  description: __expectString(output.description),
7890
7890
  firstUsedTime: output.firstUsedTime !== undefined && output.firstUsedTime !== null
7891
- ? new Date(Math.round(output.firstUsedTime * 1000))
7891
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstUsedTime)))
7892
7892
  : undefined,
7893
7893
  lastUsedTime: output.lastUsedTime !== undefined && output.lastUsedTime !== null
7894
- ? new Date(Math.round(output.lastUsedTime * 1000))
7894
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUsedTime)))
7895
7895
  : undefined,
7896
7896
  registerTime: output.registerTime !== undefined && output.registerTime !== null
7897
- ? new Date(Math.round(output.registerTime * 1000))
7897
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registerTime)))
7898
7898
  : undefined,
7899
7899
  };
7900
7900
  };
@@ -8022,14 +8022,14 @@ var deserializeAws_json1_1InstanceIdRequiredException = function (output, contex
8022
8022
  var deserializeAws_json1_1InstanceInfo = function (output, context) {
8023
8023
  return {
8024
8024
  deregisterTime: output.deregisterTime !== undefined && output.deregisterTime !== null
8025
- ? new Date(Math.round(output.deregisterTime * 1000))
8025
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.deregisterTime)))
8026
8026
  : undefined,
8027
8027
  iamSessionArn: __expectString(output.iamSessionArn),
8028
8028
  iamUserArn: __expectString(output.iamUserArn),
8029
8029
  instanceArn: __expectString(output.instanceArn),
8030
8030
  instanceName: __expectString(output.instanceName),
8031
8031
  registerTime: output.registerTime !== undefined && output.registerTime !== null
8032
- ? new Date(Math.round(output.registerTime * 1000))
8032
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registerTime)))
8033
8033
  : undefined,
8034
8034
  tags: output.tags !== undefined && output.tags !== null
8035
8035
  ? deserializeAws_json1_1TagList(output.tags, context)
@@ -8092,7 +8092,7 @@ var deserializeAws_json1_1InstanceSummary = function (output, context) {
8092
8092
  instanceId: __expectString(output.instanceId),
8093
8093
  instanceType: __expectString(output.instanceType),
8094
8094
  lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
8095
- ? new Date(Math.round(output.lastUpdatedAt * 1000))
8095
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
8096
8096
  : undefined,
8097
8097
  lifecycleEvents: output.lifecycleEvents !== undefined && output.lifecycleEvents !== null
8098
8098
  ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context)
@@ -8115,7 +8115,7 @@ var deserializeAws_json1_1InstanceTarget = function (output, context) {
8115
8115
  deploymentId: __expectString(output.deploymentId),
8116
8116
  instanceLabel: __expectString(output.instanceLabel),
8117
8117
  lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
8118
- ? new Date(Math.round(output.lastUpdatedAt * 1000))
8118
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
8119
8119
  : undefined,
8120
8120
  lifecycleEvents: output.lifecycleEvents !== undefined && output.lifecycleEvents !== null
8121
8121
  ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context)
@@ -8411,7 +8411,7 @@ var deserializeAws_json1_1LambdaTarget = function (output, context) {
8411
8411
  ? deserializeAws_json1_1LambdaFunctionInfo(output.lambdaFunctionInfo, context)
8412
8412
  : undefined,
8413
8413
  lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
8414
- ? new Date(Math.round(output.lastUpdatedAt * 1000))
8414
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
8415
8415
  : undefined,
8416
8416
  lifecycleEvents: output.lifecycleEvents !== undefined && output.lifecycleEvents !== null
8417
8417
  ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context)
@@ -8424,10 +8424,12 @@ var deserializeAws_json1_1LambdaTarget = function (output, context) {
8424
8424
  var deserializeAws_json1_1LastDeploymentInfo = function (output, context) {
8425
8425
  return {
8426
8426
  createTime: output.createTime !== undefined && output.createTime !== null
8427
- ? new Date(Math.round(output.createTime * 1000))
8427
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime)))
8428
8428
  : undefined,
8429
8429
  deploymentId: __expectString(output.deploymentId),
8430
- endTime: output.endTime !== undefined && output.endTime !== null ? new Date(Math.round(output.endTime * 1000)) : undefined,
8430
+ endTime: output.endTime !== undefined && output.endTime !== null
8431
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
8432
+ : undefined,
8431
8433
  status: __expectString(output.status),
8432
8434
  };
8433
8435
  };
@@ -8436,10 +8438,12 @@ var deserializeAws_json1_1LifecycleEvent = function (output, context) {
8436
8438
  diagnostics: output.diagnostics !== undefined && output.diagnostics !== null
8437
8439
  ? deserializeAws_json1_1Diagnostics(output.diagnostics, context)
8438
8440
  : undefined,
8439
- endTime: output.endTime !== undefined && output.endTime !== null ? new Date(Math.round(output.endTime * 1000)) : undefined,
8441
+ endTime: output.endTime !== undefined && output.endTime !== null
8442
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
8443
+ : undefined,
8440
8444
  lifecycleEventName: __expectString(output.lifecycleEventName),
8441
8445
  startTime: output.startTime !== undefined && output.startTime !== null
8442
- ? new Date(Math.round(output.startTime * 1000))
8446
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
8443
8447
  : undefined,
8444
8448
  status: __expectString(output.status),
8445
8449
  };