@aws-sdk/client-proton 3.99.0 → 3.105.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 (96) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/Proton.js +120 -0
  3. package/dist-cjs/ProtonClient.js +2 -0
  4. package/dist-cjs/commands/CancelComponentDeploymentCommand.js +36 -0
  5. package/dist-cjs/commands/CreateComponentCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteComponentCommand.js +36 -0
  7. package/dist-cjs/commands/GetComponentCommand.js +36 -0
  8. package/dist-cjs/commands/ListComponentOutputsCommand.js +36 -0
  9. package/dist-cjs/commands/ListComponentProvisionedResourcesCommand.js +36 -0
  10. package/dist-cjs/commands/ListComponentsCommand.js +36 -0
  11. package/dist-cjs/commands/UpdateComponentCommand.js +36 -0
  12. package/dist-cjs/commands/index.js +8 -0
  13. package/dist-cjs/models/models_0.js +169 -33
  14. package/dist-cjs/pagination/ListComponentOutputsPaginator.js +35 -0
  15. package/dist-cjs/pagination/ListComponentProvisionedResourcesPaginator.js +35 -0
  16. package/dist-cjs/pagination/ListComponentsPaginator.js +36 -0
  17. package/dist-cjs/pagination/index.js +3 -0
  18. package/dist-cjs/protocols/Aws_json1_0.js +741 -34
  19. package/dist-cjs/waiters/index.js +2 -0
  20. package/dist-cjs/waiters/waitForComponentDeleted.js +39 -0
  21. package/dist-cjs/waiters/waitForComponentDeployed.js +45 -0
  22. package/dist-es/Proton.js +120 -0
  23. package/dist-es/ProtonClient.js +2 -0
  24. package/dist-es/commands/CancelComponentDeploymentCommand.js +39 -0
  25. package/dist-es/commands/CreateComponentCommand.js +39 -0
  26. package/dist-es/commands/DeleteComponentCommand.js +39 -0
  27. package/dist-es/commands/GetComponentCommand.js +39 -0
  28. package/dist-es/commands/ListComponentOutputsCommand.js +39 -0
  29. package/dist-es/commands/ListComponentProvisionedResourcesCommand.js +39 -0
  30. package/dist-es/commands/ListComponentsCommand.js +39 -0
  31. package/dist-es/commands/UpdateComponentCommand.js +39 -0
  32. package/dist-es/commands/index.js +8 -0
  33. package/dist-es/models/models_0.js +106 -25
  34. package/dist-es/pagination/ListComponentOutputsPaginator.js +74 -0
  35. package/dist-es/pagination/ListComponentProvisionedResourcesPaginator.js +74 -0
  36. package/dist-es/pagination/ListComponentsPaginator.js +75 -0
  37. package/dist-es/pagination/index.js +3 -0
  38. package/dist-es/protocols/Aws_json1_0.js +899 -77
  39. package/dist-es/waiters/index.js +2 -0
  40. package/dist-es/waiters/waitForComponentDeleted.js +54 -0
  41. package/dist-es/waiters/waitForComponentDeployed.js +60 -0
  42. package/dist-types/Proton.d.ts +117 -46
  43. package/dist-types/ProtonClient.d.ts +10 -2
  44. package/dist-types/commands/CancelComponentDeploymentCommand.d.ts +38 -0
  45. package/dist-types/commands/CreateComponentCommand.d.ts +38 -0
  46. package/dist-types/commands/DeleteComponentCommand.d.ts +38 -0
  47. package/dist-types/commands/DeleteServiceCommand.d.ts +7 -1
  48. package/dist-types/commands/GetComponentCommand.d.ts +38 -0
  49. package/dist-types/commands/GetEnvironmentAccountConnectionCommand.d.ts +1 -1
  50. package/dist-types/commands/GetEnvironmentCommand.d.ts +1 -1
  51. package/dist-types/commands/GetEnvironmentTemplateCommand.d.ts +1 -1
  52. package/dist-types/commands/GetEnvironmentTemplateVersionCommand.d.ts +1 -1
  53. package/dist-types/commands/GetServiceCommand.d.ts +1 -1
  54. package/dist-types/commands/GetServiceInstanceCommand.d.ts +1 -1
  55. package/dist-types/commands/GetServiceTemplateCommand.d.ts +1 -1
  56. package/dist-types/commands/GetServiceTemplateVersionCommand.d.ts +1 -1
  57. package/dist-types/commands/ListComponentOutputsCommand.d.ts +38 -0
  58. package/dist-types/commands/ListComponentProvisionedResourcesCommand.d.ts +38 -0
  59. package/dist-types/commands/ListComponentsCommand.d.ts +38 -0
  60. package/dist-types/commands/ListServiceInstanceOutputsCommand.d.ts +1 -1
  61. package/dist-types/commands/ListServiceInstancesCommand.d.ts +1 -1
  62. package/dist-types/commands/ListServicePipelineOutputsCommand.d.ts +1 -1
  63. package/dist-types/commands/UpdateComponentCommand.d.ts +43 -0
  64. package/dist-types/commands/UpdateServiceCommand.d.ts +6 -0
  65. package/dist-types/commands/UpdateServiceInstanceCommand.d.ts +8 -34
  66. package/dist-types/commands/index.d.ts +8 -0
  67. package/dist-types/models/models_0.d.ts +683 -124
  68. package/dist-types/pagination/ListComponentOutputsPaginator.d.ts +4 -0
  69. package/dist-types/pagination/ListComponentProvisionedResourcesPaginator.d.ts +4 -0
  70. package/dist-types/pagination/ListComponentsPaginator.d.ts +4 -0
  71. package/dist-types/pagination/index.d.ts +3 -0
  72. package/dist-types/protocols/Aws_json1_0.d.ts +24 -0
  73. package/dist-types/ts3.4/Proton.d.ts +40 -0
  74. package/dist-types/ts3.4/ProtonClient.d.ts +10 -2
  75. package/dist-types/ts3.4/commands/CancelComponentDeploymentCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/CreateComponentCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/DeleteComponentCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/GetComponentCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/ListComponentOutputsCommand.d.ts +17 -0
  80. package/dist-types/ts3.4/commands/ListComponentProvisionedResourcesCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/ListComponentsCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/UpdateComponentCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  84. package/dist-types/ts3.4/models/models_0.d.ts +305 -40
  85. package/dist-types/ts3.4/pagination/ListComponentOutputsPaginator.d.ts +4 -0
  86. package/dist-types/ts3.4/pagination/ListComponentProvisionedResourcesPaginator.d.ts +4 -0
  87. package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +4 -0
  88. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  89. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
  90. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  91. package/dist-types/ts3.4/waiters/waitForComponentDeleted.d.ts +7 -0
  92. package/dist-types/ts3.4/waiters/waitForComponentDeployed.d.ts +7 -0
  93. package/dist-types/waiters/index.d.ts +2 -0
  94. package/dist-types/waiters/waitForComponentDeleted.d.ts +14 -0
  95. package/dist-types/waiters/waitForComponentDeployed.d.ts +14 -0
  96. package/package.json +4 -3
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./waitForComponentDeleted"), exports);
5
+ tslib_1.__exportStar(require("./waitForComponentDeployed"), exports);
4
6
  tslib_1.__exportStar(require("./waitForEnvironmentDeployed"), exports);
5
7
  tslib_1.__exportStar(require("./waitForEnvironmentTemplateVersionRegistered"), exports);
6
8
  tslib_1.__exportStar(require("./waitForServiceCreated"), exports);
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.waitUntilComponentDeleted = exports.waitForComponentDeleted = void 0;
4
+ const util_waiter_1 = require("@aws-sdk/util-waiter");
5
+ const GetComponentCommand_1 = require("../commands/GetComponentCommand");
6
+ const checkState = async (client, input) => {
7
+ let reason;
8
+ try {
9
+ const result = await client.send(new GetComponentCommand_1.GetComponentCommand(input));
10
+ reason = result;
11
+ try {
12
+ const returnComparator = () => {
13
+ return result.component.deploymentStatus;
14
+ };
15
+ if (returnComparator() === "DELETE_FAILED") {
16
+ return { state: util_waiter_1.WaiterState.FAILURE, reason };
17
+ }
18
+ }
19
+ catch (e) { }
20
+ }
21
+ catch (exception) {
22
+ reason = exception;
23
+ if (exception.name && exception.name == "ResourceNotFoundException") {
24
+ return { state: util_waiter_1.WaiterState.SUCCESS, reason };
25
+ }
26
+ }
27
+ return { state: util_waiter_1.WaiterState.RETRY, reason };
28
+ };
29
+ const waitForComponentDeleted = async (params, input) => {
30
+ const serviceDefaults = { minDelay: 5, maxDelay: 4999 };
31
+ return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
32
+ };
33
+ exports.waitForComponentDeleted = waitForComponentDeleted;
34
+ const waitUntilComponentDeleted = async (params, input) => {
35
+ const serviceDefaults = { minDelay: 5, maxDelay: 4999 };
36
+ const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
37
+ return (0, util_waiter_1.checkExceptions)(result);
38
+ };
39
+ exports.waitUntilComponentDeleted = waitUntilComponentDeleted;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.waitUntilComponentDeployed = exports.waitForComponentDeployed = void 0;
4
+ const util_waiter_1 = require("@aws-sdk/util-waiter");
5
+ const GetComponentCommand_1 = require("../commands/GetComponentCommand");
6
+ const checkState = async (client, input) => {
7
+ let reason;
8
+ try {
9
+ const result = await client.send(new GetComponentCommand_1.GetComponentCommand(input));
10
+ reason = result;
11
+ try {
12
+ const returnComparator = () => {
13
+ return result.component.deploymentStatus;
14
+ };
15
+ if (returnComparator() === "SUCCEEDED") {
16
+ return { state: util_waiter_1.WaiterState.SUCCESS, reason };
17
+ }
18
+ }
19
+ catch (e) { }
20
+ try {
21
+ const returnComparator = () => {
22
+ return result.component.deploymentStatus;
23
+ };
24
+ if (returnComparator() === "FAILED") {
25
+ return { state: util_waiter_1.WaiterState.FAILURE, reason };
26
+ }
27
+ }
28
+ catch (e) { }
29
+ }
30
+ catch (exception) {
31
+ reason = exception;
32
+ }
33
+ return { state: util_waiter_1.WaiterState.RETRY, reason };
34
+ };
35
+ const waitForComponentDeployed = async (params, input) => {
36
+ const serviceDefaults = { minDelay: 5, maxDelay: 4999 };
37
+ return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
38
+ };
39
+ exports.waitForComponentDeployed = waitForComponentDeployed;
40
+ const waitUntilComponentDeployed = async (params, input) => {
41
+ const serviceDefaults = { minDelay: 5, maxDelay: 4999 };
42
+ const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
43
+ return (0, util_waiter_1.checkExceptions)(result);
44
+ };
45
+ exports.waitUntilComponentDeployed = waitUntilComponentDeployed;
package/dist-es/Proton.js CHANGED
@@ -1,8 +1,10 @@
1
1
  import { __extends } from "tslib";
2
2
  import { AcceptEnvironmentAccountConnectionCommand, } from "./commands/AcceptEnvironmentAccountConnectionCommand";
3
+ import { CancelComponentDeploymentCommand, } from "./commands/CancelComponentDeploymentCommand";
3
4
  import { CancelEnvironmentDeploymentCommand, } from "./commands/CancelEnvironmentDeploymentCommand";
4
5
  import { CancelServiceInstanceDeploymentCommand, } from "./commands/CancelServiceInstanceDeploymentCommand";
5
6
  import { CancelServicePipelineDeploymentCommand, } from "./commands/CancelServicePipelineDeploymentCommand";
7
+ import { CreateComponentCommand, } from "./commands/CreateComponentCommand";
6
8
  import { CreateEnvironmentAccountConnectionCommand, } from "./commands/CreateEnvironmentAccountConnectionCommand";
7
9
  import { CreateEnvironmentCommand, } from "./commands/CreateEnvironmentCommand";
8
10
  import { CreateEnvironmentTemplateCommand, } from "./commands/CreateEnvironmentTemplateCommand";
@@ -12,6 +14,7 @@ import { CreateServiceCommand, } from "./commands/CreateServiceCommand";
12
14
  import { CreateServiceTemplateCommand, } from "./commands/CreateServiceTemplateCommand";
13
15
  import { CreateServiceTemplateVersionCommand, } from "./commands/CreateServiceTemplateVersionCommand";
14
16
  import { CreateTemplateSyncConfigCommand, } from "./commands/CreateTemplateSyncConfigCommand";
17
+ import { DeleteComponentCommand, } from "./commands/DeleteComponentCommand";
15
18
  import { DeleteEnvironmentAccountConnectionCommand, } from "./commands/DeleteEnvironmentAccountConnectionCommand";
16
19
  import { DeleteEnvironmentCommand, } from "./commands/DeleteEnvironmentCommand";
17
20
  import { DeleteEnvironmentTemplateCommand, } from "./commands/DeleteEnvironmentTemplateCommand";
@@ -22,6 +25,7 @@ import { DeleteServiceTemplateCommand, } from "./commands/DeleteServiceTemplateC
22
25
  import { DeleteServiceTemplateVersionCommand, } from "./commands/DeleteServiceTemplateVersionCommand";
23
26
  import { DeleteTemplateSyncConfigCommand, } from "./commands/DeleteTemplateSyncConfigCommand";
24
27
  import { GetAccountSettingsCommand, } from "./commands/GetAccountSettingsCommand";
28
+ import { GetComponentCommand, } from "./commands/GetComponentCommand";
25
29
  import { GetEnvironmentAccountConnectionCommand, } from "./commands/GetEnvironmentAccountConnectionCommand";
26
30
  import { GetEnvironmentCommand, } from "./commands/GetEnvironmentCommand";
27
31
  import { GetEnvironmentTemplateCommand, } from "./commands/GetEnvironmentTemplateCommand";
@@ -34,6 +38,9 @@ import { GetServiceTemplateCommand, } from "./commands/GetServiceTemplateCommand
34
38
  import { GetServiceTemplateVersionCommand, } from "./commands/GetServiceTemplateVersionCommand";
35
39
  import { GetTemplateSyncConfigCommand, } from "./commands/GetTemplateSyncConfigCommand";
36
40
  import { GetTemplateSyncStatusCommand, } from "./commands/GetTemplateSyncStatusCommand";
41
+ import { ListComponentOutputsCommand, } from "./commands/ListComponentOutputsCommand";
42
+ import { ListComponentProvisionedResourcesCommand, } from "./commands/ListComponentProvisionedResourcesCommand";
43
+ import { ListComponentsCommand, } from "./commands/ListComponentsCommand";
37
44
  import { ListEnvironmentAccountConnectionsCommand, } from "./commands/ListEnvironmentAccountConnectionsCommand";
38
45
  import { ListEnvironmentOutputsCommand, } from "./commands/ListEnvironmentOutputsCommand";
39
46
  import { ListEnvironmentProvisionedResourcesCommand, } from "./commands/ListEnvironmentProvisionedResourcesCommand";
@@ -56,6 +63,7 @@ import { RejectEnvironmentAccountConnectionCommand, } from "./commands/RejectEnv
56
63
  import { TagResourceCommand } from "./commands/TagResourceCommand";
57
64
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
58
65
  import { UpdateAccountSettingsCommand, } from "./commands/UpdateAccountSettingsCommand";
66
+ import { UpdateComponentCommand, } from "./commands/UpdateComponentCommand";
59
67
  import { UpdateEnvironmentAccountConnectionCommand, } from "./commands/UpdateEnvironmentAccountConnectionCommand";
60
68
  import { UpdateEnvironmentCommand, } from "./commands/UpdateEnvironmentCommand";
61
69
  import { UpdateEnvironmentTemplateCommand, } from "./commands/UpdateEnvironmentTemplateCommand";
@@ -86,6 +94,20 @@ var Proton = (function (_super) {
86
94
  return this.send(command, optionsOrCb);
87
95
  }
88
96
  };
97
+ Proton.prototype.cancelComponentDeployment = function (args, optionsOrCb, cb) {
98
+ var command = new CancelComponentDeploymentCommand(args);
99
+ if (typeof optionsOrCb === "function") {
100
+ this.send(command, optionsOrCb);
101
+ }
102
+ else if (typeof cb === "function") {
103
+ if (typeof optionsOrCb !== "object")
104
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
105
+ this.send(command, optionsOrCb || {}, cb);
106
+ }
107
+ else {
108
+ return this.send(command, optionsOrCb);
109
+ }
110
+ };
89
111
  Proton.prototype.cancelEnvironmentDeployment = function (args, optionsOrCb, cb) {
90
112
  var command = new CancelEnvironmentDeploymentCommand(args);
91
113
  if (typeof optionsOrCb === "function") {
@@ -128,6 +150,20 @@ var Proton = (function (_super) {
128
150
  return this.send(command, optionsOrCb);
129
151
  }
130
152
  };
153
+ Proton.prototype.createComponent = function (args, optionsOrCb, cb) {
154
+ var command = new CreateComponentCommand(args);
155
+ if (typeof optionsOrCb === "function") {
156
+ this.send(command, optionsOrCb);
157
+ }
158
+ else if (typeof cb === "function") {
159
+ if (typeof optionsOrCb !== "object")
160
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
161
+ this.send(command, optionsOrCb || {}, cb);
162
+ }
163
+ else {
164
+ return this.send(command, optionsOrCb);
165
+ }
166
+ };
131
167
  Proton.prototype.createEnvironment = function (args, optionsOrCb, cb) {
132
168
  var command = new CreateEnvironmentCommand(args);
133
169
  if (typeof optionsOrCb === "function") {
@@ -254,6 +290,20 @@ var Proton = (function (_super) {
254
290
  return this.send(command, optionsOrCb);
255
291
  }
256
292
  };
293
+ Proton.prototype.deleteComponent = function (args, optionsOrCb, cb) {
294
+ var command = new DeleteComponentCommand(args);
295
+ if (typeof optionsOrCb === "function") {
296
+ this.send(command, optionsOrCb);
297
+ }
298
+ else if (typeof cb === "function") {
299
+ if (typeof optionsOrCb !== "object")
300
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
301
+ this.send(command, optionsOrCb || {}, cb);
302
+ }
303
+ else {
304
+ return this.send(command, optionsOrCb);
305
+ }
306
+ };
257
307
  Proton.prototype.deleteEnvironment = function (args, optionsOrCb, cb) {
258
308
  var command = new DeleteEnvironmentCommand(args);
259
309
  if (typeof optionsOrCb === "function") {
@@ -394,6 +444,20 @@ var Proton = (function (_super) {
394
444
  return this.send(command, optionsOrCb);
395
445
  }
396
446
  };
447
+ Proton.prototype.getComponent = function (args, optionsOrCb, cb) {
448
+ var command = new GetComponentCommand(args);
449
+ if (typeof optionsOrCb === "function") {
450
+ this.send(command, optionsOrCb);
451
+ }
452
+ else if (typeof cb === "function") {
453
+ if (typeof optionsOrCb !== "object")
454
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
455
+ this.send(command, optionsOrCb || {}, cb);
456
+ }
457
+ else {
458
+ return this.send(command, optionsOrCb);
459
+ }
460
+ };
397
461
  Proton.prototype.getEnvironment = function (args, optionsOrCb, cb) {
398
462
  var command = new GetEnvironmentCommand(args);
399
463
  if (typeof optionsOrCb === "function") {
@@ -562,6 +626,48 @@ var Proton = (function (_super) {
562
626
  return this.send(command, optionsOrCb);
563
627
  }
564
628
  };
629
+ Proton.prototype.listComponentOutputs = function (args, optionsOrCb, cb) {
630
+ var command = new ListComponentOutputsCommand(args);
631
+ if (typeof optionsOrCb === "function") {
632
+ this.send(command, optionsOrCb);
633
+ }
634
+ else if (typeof cb === "function") {
635
+ if (typeof optionsOrCb !== "object")
636
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
637
+ this.send(command, optionsOrCb || {}, cb);
638
+ }
639
+ else {
640
+ return this.send(command, optionsOrCb);
641
+ }
642
+ };
643
+ Proton.prototype.listComponentProvisionedResources = function (args, optionsOrCb, cb) {
644
+ var command = new ListComponentProvisionedResourcesCommand(args);
645
+ if (typeof optionsOrCb === "function") {
646
+ this.send(command, optionsOrCb);
647
+ }
648
+ else if (typeof cb === "function") {
649
+ if (typeof optionsOrCb !== "object")
650
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
651
+ this.send(command, optionsOrCb || {}, cb);
652
+ }
653
+ else {
654
+ return this.send(command, optionsOrCb);
655
+ }
656
+ };
657
+ Proton.prototype.listComponents = function (args, optionsOrCb, cb) {
658
+ var command = new ListComponentsCommand(args);
659
+ if (typeof optionsOrCb === "function") {
660
+ this.send(command, optionsOrCb);
661
+ }
662
+ else if (typeof cb === "function") {
663
+ if (typeof optionsOrCb !== "object")
664
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
665
+ this.send(command, optionsOrCb || {}, cb);
666
+ }
667
+ else {
668
+ return this.send(command, optionsOrCb);
669
+ }
670
+ };
565
671
  Proton.prototype.listEnvironmentAccountConnections = function (args, optionsOrCb, cb) {
566
672
  var command = new ListEnvironmentAccountConnectionsCommand(args);
567
673
  if (typeof optionsOrCb === "function") {
@@ -870,6 +976,20 @@ var Proton = (function (_super) {
870
976
  return this.send(command, optionsOrCb);
871
977
  }
872
978
  };
979
+ Proton.prototype.updateComponent = function (args, optionsOrCb, cb) {
980
+ var command = new UpdateComponentCommand(args);
981
+ if (typeof optionsOrCb === "function") {
982
+ this.send(command, optionsOrCb);
983
+ }
984
+ else if (typeof cb === "function") {
985
+ if (typeof optionsOrCb !== "object")
986
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
987
+ this.send(command, optionsOrCb || {}, cb);
988
+ }
989
+ else {
990
+ return this.send(command, optionsOrCb);
991
+ }
992
+ };
873
993
  Proton.prototype.updateEnvironment = function (args, optionsOrCb, cb) {
874
994
  var command = new UpdateEnvironmentCommand(args);
875
995
  if (typeof optionsOrCb === "function") {
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
3
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
6
7
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
@@ -25,6 +26,7 @@ var ProtonClient = (function (_super) {
25
26
  _this.middlewareStack.use(getContentLengthPlugin(_this.config));
26
27
  _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
27
28
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
28
30
  _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
29
31
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
30
32
  return _this;
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CancelComponentDeploymentInput, CancelComponentDeploymentOutput } from "../models/models_0";
5
+ import { deserializeAws_json1_0CancelComponentDeploymentCommand, serializeAws_json1_0CancelComponentDeploymentCommand, } from "../protocols/Aws_json1_0";
6
+ var CancelComponentDeploymentCommand = (function (_super) {
7
+ __extends(CancelComponentDeploymentCommand, _super);
8
+ function CancelComponentDeploymentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CancelComponentDeploymentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ProtonClient";
18
+ var commandName = "CancelComponentDeploymentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CancelComponentDeploymentInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CancelComponentDeploymentOutput.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CancelComponentDeploymentCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_0CancelComponentDeploymentCommand(input, context);
33
+ };
34
+ CancelComponentDeploymentCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_0CancelComponentDeploymentCommand(output, context);
36
+ };
37
+ return CancelComponentDeploymentCommand;
38
+ }($Command));
39
+ export { CancelComponentDeploymentCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateComponentInput, CreateComponentOutput } from "../models/models_0";
5
+ import { deserializeAws_json1_0CreateComponentCommand, serializeAws_json1_0CreateComponentCommand, } from "../protocols/Aws_json1_0";
6
+ var CreateComponentCommand = (function (_super) {
7
+ __extends(CreateComponentCommand, _super);
8
+ function CreateComponentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateComponentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ProtonClient";
18
+ var commandName = "CreateComponentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateComponentInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateComponentOutput.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateComponentCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_0CreateComponentCommand(input, context);
33
+ };
34
+ CreateComponentCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_0CreateComponentCommand(output, context);
36
+ };
37
+ return CreateComponentCommand;
38
+ }($Command));
39
+ export { CreateComponentCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteComponentInput, DeleteComponentOutput } from "../models/models_0";
5
+ import { deserializeAws_json1_0DeleteComponentCommand, serializeAws_json1_0DeleteComponentCommand, } from "../protocols/Aws_json1_0";
6
+ var DeleteComponentCommand = (function (_super) {
7
+ __extends(DeleteComponentCommand, _super);
8
+ function DeleteComponentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteComponentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ProtonClient";
18
+ var commandName = "DeleteComponentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteComponentInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteComponentOutput.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteComponentCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_0DeleteComponentCommand(input, context);
33
+ };
34
+ DeleteComponentCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_0DeleteComponentCommand(output, context);
36
+ };
37
+ return DeleteComponentCommand;
38
+ }($Command));
39
+ export { DeleteComponentCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetComponentInput, GetComponentOutput } from "../models/models_0";
5
+ import { deserializeAws_json1_0GetComponentCommand, serializeAws_json1_0GetComponentCommand, } from "../protocols/Aws_json1_0";
6
+ var GetComponentCommand = (function (_super) {
7
+ __extends(GetComponentCommand, _super);
8
+ function GetComponentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetComponentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ProtonClient";
18
+ var commandName = "GetComponentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetComponentInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetComponentOutput.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetComponentCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_0GetComponentCommand(input, context);
33
+ };
34
+ GetComponentCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_0GetComponentCommand(output, context);
36
+ };
37
+ return GetComponentCommand;
38
+ }($Command));
39
+ export { GetComponentCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListComponentOutputsInput, ListComponentOutputsOutput } from "../models/models_0";
5
+ import { deserializeAws_json1_0ListComponentOutputsCommand, serializeAws_json1_0ListComponentOutputsCommand, } from "../protocols/Aws_json1_0";
6
+ var ListComponentOutputsCommand = (function (_super) {
7
+ __extends(ListComponentOutputsCommand, _super);
8
+ function ListComponentOutputsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListComponentOutputsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ProtonClient";
18
+ var commandName = "ListComponentOutputsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListComponentOutputsInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListComponentOutputsOutput.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListComponentOutputsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_0ListComponentOutputsCommand(input, context);
33
+ };
34
+ ListComponentOutputsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_0ListComponentOutputsCommand(output, context);
36
+ };
37
+ return ListComponentOutputsCommand;
38
+ }($Command));
39
+ export { ListComponentOutputsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListComponentProvisionedResourcesInput, ListComponentProvisionedResourcesOutput } from "../models/models_0";
5
+ import { deserializeAws_json1_0ListComponentProvisionedResourcesCommand, serializeAws_json1_0ListComponentProvisionedResourcesCommand, } from "../protocols/Aws_json1_0";
6
+ var ListComponentProvisionedResourcesCommand = (function (_super) {
7
+ __extends(ListComponentProvisionedResourcesCommand, _super);
8
+ function ListComponentProvisionedResourcesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListComponentProvisionedResourcesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ProtonClient";
18
+ var commandName = "ListComponentProvisionedResourcesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListComponentProvisionedResourcesInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListComponentProvisionedResourcesOutput.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListComponentProvisionedResourcesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_0ListComponentProvisionedResourcesCommand(input, context);
33
+ };
34
+ ListComponentProvisionedResourcesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_0ListComponentProvisionedResourcesCommand(output, context);
36
+ };
37
+ return ListComponentProvisionedResourcesCommand;
38
+ }($Command));
39
+ export { ListComponentProvisionedResourcesCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListComponentsInput, ListComponentsOutput } from "../models/models_0";
5
+ import { deserializeAws_json1_0ListComponentsCommand, serializeAws_json1_0ListComponentsCommand, } from "../protocols/Aws_json1_0";
6
+ var ListComponentsCommand = (function (_super) {
7
+ __extends(ListComponentsCommand, _super);
8
+ function ListComponentsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListComponentsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ProtonClient";
18
+ var commandName = "ListComponentsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListComponentsInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListComponentsOutput.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListComponentsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_0ListComponentsCommand(input, context);
33
+ };
34
+ ListComponentsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_0ListComponentsCommand(output, context);
36
+ };
37
+ return ListComponentsCommand;
38
+ }($Command));
39
+ export { ListComponentsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateComponentInput, UpdateComponentOutput } from "../models/models_0";
5
+ import { deserializeAws_json1_0UpdateComponentCommand, serializeAws_json1_0UpdateComponentCommand, } from "../protocols/Aws_json1_0";
6
+ var UpdateComponentCommand = (function (_super) {
7
+ __extends(UpdateComponentCommand, _super);
8
+ function UpdateComponentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateComponentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ProtonClient";
18
+ var commandName = "UpdateComponentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateComponentInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateComponentOutput.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateComponentCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_0UpdateComponentCommand(input, context);
33
+ };
34
+ UpdateComponentCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_0UpdateComponentCommand(output, context);
36
+ };
37
+ return UpdateComponentCommand;
38
+ }($Command));
39
+ export { UpdateComponentCommand };