@aws-sdk/client-migrationhuborchestrator 3.181.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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +201 -0
- package/README.md +209 -0
- package/dist-cjs/MigrationHubOrchestrator.js +427 -0
- package/dist-cjs/MigrationHubOrchestratorClient.js +37 -0
- package/dist-cjs/commands/CreateWorkflowCommand.js +36 -0
- package/dist-cjs/commands/CreateWorkflowStepCommand.js +36 -0
- package/dist-cjs/commands/CreateWorkflowStepGroupCommand.js +36 -0
- package/dist-cjs/commands/DeleteWorkflowCommand.js +36 -0
- package/dist-cjs/commands/DeleteWorkflowStepCommand.js +36 -0
- package/dist-cjs/commands/DeleteWorkflowStepGroupCommand.js +36 -0
- package/dist-cjs/commands/GetTemplateCommand.js +36 -0
- package/dist-cjs/commands/GetTemplateStepCommand.js +36 -0
- package/dist-cjs/commands/GetTemplateStepGroupCommand.js +36 -0
- package/dist-cjs/commands/GetWorkflowCommand.js +36 -0
- package/dist-cjs/commands/GetWorkflowStepCommand.js +36 -0
- package/dist-cjs/commands/GetWorkflowStepGroupCommand.js +36 -0
- package/dist-cjs/commands/ListPluginsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/ListTemplateStepGroupsCommand.js +36 -0
- package/dist-cjs/commands/ListTemplateStepsCommand.js +36 -0
- package/dist-cjs/commands/ListTemplatesCommand.js +36 -0
- package/dist-cjs/commands/ListWorkflowStepGroupsCommand.js +36 -0
- package/dist-cjs/commands/ListWorkflowStepsCommand.js +36 -0
- package/dist-cjs/commands/ListWorkflowsCommand.js +36 -0
- package/dist-cjs/commands/RetryWorkflowStepCommand.js +36 -0
- package/dist-cjs/commands/StartWorkflowCommand.js +36 -0
- package/dist-cjs/commands/StopWorkflowCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateWorkflowCommand.js +36 -0
- package/dist-cjs/commands/UpdateWorkflowStepCommand.js +36 -0
- package/dist-cjs/commands/UpdateWorkflowStepGroupCommand.js +36 -0
- package/dist-cjs/commands/index.js +31 -0
- package/dist-cjs/endpoints.js +132 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/MigrationHubOrchestratorServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +491 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListPluginsPaginator.js +36 -0
- package/dist-cjs/pagination/ListTemplateStepGroupsPaginator.js +36 -0
- package/dist-cjs/pagination/ListTemplateStepsPaginator.js +36 -0
- package/dist-cjs/pagination/ListTemplatesPaginator.js +36 -0
- package/dist-cjs/pagination/ListWorkflowStepGroupsPaginator.js +36 -0
- package/dist-cjs/pagination/ListWorkflowStepsPaginator.js +36 -0
- package/dist-cjs/pagination/ListWorkflowsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2816 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/MigrationHubOrchestrator.js +430 -0
- package/dist-es/MigrationHubOrchestratorClient.js +39 -0
- package/dist-es/commands/CreateWorkflowCommand.js +39 -0
- package/dist-es/commands/CreateWorkflowStepCommand.js +39 -0
- package/dist-es/commands/CreateWorkflowStepGroupCommand.js +39 -0
- package/dist-es/commands/DeleteWorkflowCommand.js +39 -0
- package/dist-es/commands/DeleteWorkflowStepCommand.js +39 -0
- package/dist-es/commands/DeleteWorkflowStepGroupCommand.js +39 -0
- package/dist-es/commands/GetTemplateCommand.js +39 -0
- package/dist-es/commands/GetTemplateStepCommand.js +39 -0
- package/dist-es/commands/GetTemplateStepGroupCommand.js +39 -0
- package/dist-es/commands/GetWorkflowCommand.js +39 -0
- package/dist-es/commands/GetWorkflowStepCommand.js +39 -0
- package/dist-es/commands/GetWorkflowStepGroupCommand.js +39 -0
- package/dist-es/commands/ListPluginsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/ListTemplateStepGroupsCommand.js +39 -0
- package/dist-es/commands/ListTemplateStepsCommand.js +39 -0
- package/dist-es/commands/ListTemplatesCommand.js +39 -0
- package/dist-es/commands/ListWorkflowStepGroupsCommand.js +39 -0
- package/dist-es/commands/ListWorkflowStepsCommand.js +39 -0
- package/dist-es/commands/ListWorkflowsCommand.js +39 -0
- package/dist-es/commands/RetryWorkflowStepCommand.js +39 -0
- package/dist-es/commands/StartWorkflowCommand.js +39 -0
- package/dist-es/commands/StopWorkflowCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateWorkflowCommand.js +39 -0
- package/dist-es/commands/UpdateWorkflowStepCommand.js +39 -0
- package/dist-es/commands/UpdateWorkflowStepGroupCommand.js +39 -0
- package/dist-es/commands/index.js +28 -0
- package/dist-es/endpoints.js +128 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/MigrationHubOrchestratorServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +261 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListPluginsPaginator.js +75 -0
- package/dist-es/pagination/ListTemplateStepGroupsPaginator.js +75 -0
- package/dist-es/pagination/ListTemplateStepsPaginator.js +75 -0
- package/dist-es/pagination/ListTemplatesPaginator.js +75 -0
- package/dist-es/pagination/ListWorkflowStepGroupsPaginator.js +75 -0
- package/dist-es/pagination/ListWorkflowStepsPaginator.js +75 -0
- package/dist-es/pagination/ListWorkflowsPaginator.js +75 -0
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +3593 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +30 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/MigrationHubOrchestrator.d.ts +209 -0
- package/dist-types/MigrationHubOrchestratorClient.d.ts +176 -0
- package/dist-types/commands/CreateWorkflowCommand.d.ts +35 -0
- package/dist-types/commands/CreateWorkflowStepCommand.d.ts +35 -0
- package/dist-types/commands/CreateWorkflowStepGroupCommand.d.ts +35 -0
- package/dist-types/commands/DeleteWorkflowCommand.d.ts +36 -0
- package/dist-types/commands/DeleteWorkflowStepCommand.d.ts +36 -0
- package/dist-types/commands/DeleteWorkflowStepGroupCommand.d.ts +35 -0
- package/dist-types/commands/GetTemplateCommand.d.ts +35 -0
- package/dist-types/commands/GetTemplateStepCommand.d.ts +35 -0
- package/dist-types/commands/GetTemplateStepGroupCommand.d.ts +35 -0
- package/dist-types/commands/GetWorkflowCommand.d.ts +35 -0
- package/dist-types/commands/GetWorkflowStepCommand.d.ts +35 -0
- package/dist-types/commands/GetWorkflowStepGroupCommand.d.ts +35 -0
- package/dist-types/commands/ListPluginsCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/ListTemplateStepGroupsCommand.d.ts +35 -0
- package/dist-types/commands/ListTemplateStepsCommand.d.ts +35 -0
- package/dist-types/commands/ListTemplatesCommand.d.ts +35 -0
- package/dist-types/commands/ListWorkflowStepGroupsCommand.d.ts +35 -0
- package/dist-types/commands/ListWorkflowStepsCommand.d.ts +35 -0
- package/dist-types/commands/ListWorkflowsCommand.d.ts +35 -0
- package/dist-types/commands/RetryWorkflowStepCommand.d.ts +35 -0
- package/dist-types/commands/StartWorkflowCommand.d.ts +35 -0
- package/dist-types/commands/StopWorkflowCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateWorkflowCommand.d.ts +35 -0
- package/dist-types/commands/UpdateWorkflowStepCommand.d.ts +35 -0
- package/dist-types/commands/UpdateWorkflowStepGroupCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +28 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/MigrationHubOrchestratorServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2063 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListPluginsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTemplateStepGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTemplateStepsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTemplatesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWorkflowStepGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWorkflowStepsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWorkflowsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +86 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/MigrationHubOrchestrator.d.ts +480 -0
- package/dist-types/ts3.4/MigrationHubOrchestratorClient.d.ts +273 -0
- package/dist-types/ts3.4/commands/CreateWorkflowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateWorkflowStepCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateWorkflowStepGroupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteWorkflowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteWorkflowStepCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteWorkflowStepGroupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetTemplateCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetTemplateStepCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetTemplateStepGroupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetWorkflowCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetWorkflowStepCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetWorkflowStepGroupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListPluginsCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListTemplateStepGroupsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTemplateStepsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListTemplatesCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListWorkflowStepGroupsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListWorkflowStepsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/RetryWorkflowStepCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/StartWorkflowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/StopWorkflowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateWorkflowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdateWorkflowStepCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdateWorkflowStepGroupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +28 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/MigrationHubOrchestratorServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +880 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListPluginsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTemplateStepGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTemplateStepsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowStepGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowStepsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +341 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +69 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +69 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +70 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +12 -0
- package/package.json +100 -0
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { MigrationHubOrchestratorServiceException as __BaseException } from "./MigrationHubOrchestratorServiceException";
|
|
4
|
+
var AccessDeniedException = (function (_super) {
|
|
5
|
+
__extends(AccessDeniedException, _super);
|
|
6
|
+
function AccessDeniedException(opts) {
|
|
7
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
8
|
+
_this.name = "AccessDeniedException";
|
|
9
|
+
_this.$fault = "client";
|
|
10
|
+
_this.$retryable = {};
|
|
11
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
12
|
+
return _this;
|
|
13
|
+
}
|
|
14
|
+
return AccessDeniedException;
|
|
15
|
+
}(__BaseException));
|
|
16
|
+
export { AccessDeniedException };
|
|
17
|
+
var ResourceNotFoundException = (function (_super) {
|
|
18
|
+
__extends(ResourceNotFoundException, _super);
|
|
19
|
+
function ResourceNotFoundException(opts) {
|
|
20
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
21
|
+
_this.name = "ResourceNotFoundException";
|
|
22
|
+
_this.$fault = "client";
|
|
23
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
24
|
+
return _this;
|
|
25
|
+
}
|
|
26
|
+
return ResourceNotFoundException;
|
|
27
|
+
}(__BaseException));
|
|
28
|
+
export { ResourceNotFoundException };
|
|
29
|
+
var ValidationException = (function (_super) {
|
|
30
|
+
__extends(ValidationException, _super);
|
|
31
|
+
function ValidationException(opts) {
|
|
32
|
+
var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
|
|
33
|
+
_this.name = "ValidationException";
|
|
34
|
+
_this.$fault = "client";
|
|
35
|
+
_this.$retryable = {};
|
|
36
|
+
Object.setPrototypeOf(_this, ValidationException.prototype);
|
|
37
|
+
return _this;
|
|
38
|
+
}
|
|
39
|
+
return ValidationException;
|
|
40
|
+
}(__BaseException));
|
|
41
|
+
export { ValidationException };
|
|
42
|
+
export var StepInput;
|
|
43
|
+
(function (StepInput) {
|
|
44
|
+
StepInput.visit = function (value, visitor) {
|
|
45
|
+
if (value.integerValue !== undefined)
|
|
46
|
+
return visitor.integerValue(value.integerValue);
|
|
47
|
+
if (value.stringValue !== undefined)
|
|
48
|
+
return visitor.stringValue(value.stringValue);
|
|
49
|
+
if (value.listOfStringsValue !== undefined)
|
|
50
|
+
return visitor.listOfStringsValue(value.listOfStringsValue);
|
|
51
|
+
if (value.mapOfStringValue !== undefined)
|
|
52
|
+
return visitor.mapOfStringValue(value.mapOfStringValue);
|
|
53
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
54
|
+
};
|
|
55
|
+
})(StepInput || (StepInput = {}));
|
|
56
|
+
export var MigrationWorkflowStatusEnum;
|
|
57
|
+
(function (MigrationWorkflowStatusEnum) {
|
|
58
|
+
MigrationWorkflowStatusEnum["COMPLETED"] = "COMPLETED";
|
|
59
|
+
MigrationWorkflowStatusEnum["CREATING"] = "CREATING";
|
|
60
|
+
MigrationWorkflowStatusEnum["CREATION_FAILED"] = "CREATION_FAILED";
|
|
61
|
+
MigrationWorkflowStatusEnum["DELETED"] = "DELETED";
|
|
62
|
+
MigrationWorkflowStatusEnum["DELETING"] = "DELETING";
|
|
63
|
+
MigrationWorkflowStatusEnum["DELETION_FAILED"] = "DELETION_FAILED";
|
|
64
|
+
MigrationWorkflowStatusEnum["IN_PROGRESS"] = "IN_PROGRESS";
|
|
65
|
+
MigrationWorkflowStatusEnum["NOT_STARTED"] = "NOT_STARTED";
|
|
66
|
+
MigrationWorkflowStatusEnum["PAUSED"] = "PAUSED";
|
|
67
|
+
MigrationWorkflowStatusEnum["PAUSING"] = "PAUSING";
|
|
68
|
+
MigrationWorkflowStatusEnum["PAUSING_FAILED"] = "PAUSING_FAILED";
|
|
69
|
+
MigrationWorkflowStatusEnum["STARTING"] = "STARTING";
|
|
70
|
+
MigrationWorkflowStatusEnum["USER_ATTENTION_REQUIRED"] = "USER_ATTENTION_REQUIRED";
|
|
71
|
+
MigrationWorkflowStatusEnum["WORKFLOW_FAILED"] = "WORKFLOW_FAILED";
|
|
72
|
+
})(MigrationWorkflowStatusEnum || (MigrationWorkflowStatusEnum = {}));
|
|
73
|
+
var InternalServerException = (function (_super) {
|
|
74
|
+
__extends(InternalServerException, _super);
|
|
75
|
+
function InternalServerException(opts) {
|
|
76
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
77
|
+
_this.name = "InternalServerException";
|
|
78
|
+
_this.$fault = "server";
|
|
79
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
80
|
+
return _this;
|
|
81
|
+
}
|
|
82
|
+
return InternalServerException;
|
|
83
|
+
}(__BaseException));
|
|
84
|
+
export { InternalServerException };
|
|
85
|
+
var ThrottlingException = (function (_super) {
|
|
86
|
+
__extends(ThrottlingException, _super);
|
|
87
|
+
function ThrottlingException(opts) {
|
|
88
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
89
|
+
_this.name = "ThrottlingException";
|
|
90
|
+
_this.$fault = "client";
|
|
91
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
92
|
+
return _this;
|
|
93
|
+
}
|
|
94
|
+
return ThrottlingException;
|
|
95
|
+
}(__BaseException));
|
|
96
|
+
export { ThrottlingException };
|
|
97
|
+
export var DataType;
|
|
98
|
+
(function (DataType) {
|
|
99
|
+
DataType["INTEGER"] = "INTEGER";
|
|
100
|
+
DataType["STRING"] = "STRING";
|
|
101
|
+
DataType["STRINGLIST"] = "STRINGLIST";
|
|
102
|
+
DataType["STRINGMAP"] = "STRINGMAP";
|
|
103
|
+
})(DataType || (DataType = {}));
|
|
104
|
+
export var TemplateStatus;
|
|
105
|
+
(function (TemplateStatus) {
|
|
106
|
+
TemplateStatus["CREATED"] = "CREATED";
|
|
107
|
+
})(TemplateStatus || (TemplateStatus = {}));
|
|
108
|
+
export var PluginHealth;
|
|
109
|
+
(function (PluginHealth) {
|
|
110
|
+
PluginHealth["PLUGIN_HEALTHY"] = "HEALTHY";
|
|
111
|
+
PluginHealth["PLUGIN_UNHEALTHY"] = "UNHEALTHY";
|
|
112
|
+
})(PluginHealth || (PluginHealth = {}));
|
|
113
|
+
export var StepActionType;
|
|
114
|
+
(function (StepActionType) {
|
|
115
|
+
StepActionType["AUTOMATED"] = "AUTOMATED";
|
|
116
|
+
StepActionType["MANUAL"] = "MANUAL";
|
|
117
|
+
})(StepActionType || (StepActionType = {}));
|
|
118
|
+
export var RunEnvironment;
|
|
119
|
+
(function (RunEnvironment) {
|
|
120
|
+
RunEnvironment["AWS"] = "AWS";
|
|
121
|
+
RunEnvironment["ONPREMISE"] = "ONPREMISE";
|
|
122
|
+
})(RunEnvironment || (RunEnvironment = {}));
|
|
123
|
+
export var TargetType;
|
|
124
|
+
(function (TargetType) {
|
|
125
|
+
TargetType["ALL"] = "ALL";
|
|
126
|
+
TargetType["NONE"] = "NONE";
|
|
127
|
+
TargetType["SINGLE"] = "SINGLE";
|
|
128
|
+
})(TargetType || (TargetType = {}));
|
|
129
|
+
export var Owner;
|
|
130
|
+
(function (Owner) {
|
|
131
|
+
Owner["AWSManaged"] = "AWS_MANAGED";
|
|
132
|
+
Owner["CUSTOM"] = "CUSTOM";
|
|
133
|
+
})(Owner || (Owner = {}));
|
|
134
|
+
export var StepGroupStatus;
|
|
135
|
+
(function (StepGroupStatus) {
|
|
136
|
+
StepGroupStatus["AWAITING_DEPENDENCIES"] = "AWAITING_DEPENDENCIES";
|
|
137
|
+
StepGroupStatus["COMPLETED"] = "COMPLETED";
|
|
138
|
+
StepGroupStatus["FAILED"] = "FAILED";
|
|
139
|
+
StepGroupStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
140
|
+
StepGroupStatus["PAUSED"] = "PAUSED";
|
|
141
|
+
StepGroupStatus["PAUSING"] = "PAUSING";
|
|
142
|
+
StepGroupStatus["READY"] = "READY";
|
|
143
|
+
StepGroupStatus["USER_ATTENTION_REQUIRED"] = "USER_ATTENTION_REQUIRED";
|
|
144
|
+
})(StepGroupStatus || (StepGroupStatus = {}));
|
|
145
|
+
export var WorkflowStepOutputUnion;
|
|
146
|
+
(function (WorkflowStepOutputUnion) {
|
|
147
|
+
WorkflowStepOutputUnion.visit = function (value, visitor) {
|
|
148
|
+
if (value.integerValue !== undefined)
|
|
149
|
+
return visitor.integerValue(value.integerValue);
|
|
150
|
+
if (value.stringValue !== undefined)
|
|
151
|
+
return visitor.stringValue(value.stringValue);
|
|
152
|
+
if (value.listOfStringValue !== undefined)
|
|
153
|
+
return visitor.listOfStringValue(value.listOfStringValue);
|
|
154
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
155
|
+
};
|
|
156
|
+
})(WorkflowStepOutputUnion || (WorkflowStepOutputUnion = {}));
|
|
157
|
+
export var StepStatus;
|
|
158
|
+
(function (StepStatus) {
|
|
159
|
+
StepStatus["AWAITING_DEPENDENCIES"] = "AWAITING_DEPENDENCIES";
|
|
160
|
+
StepStatus["COMPLETED"] = "COMPLETED";
|
|
161
|
+
StepStatus["FAILED"] = "FAILED";
|
|
162
|
+
StepStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
163
|
+
StepStatus["PAUSED"] = "PAUSED";
|
|
164
|
+
StepStatus["READY"] = "READY";
|
|
165
|
+
StepStatus["USER_ATTENTION_REQUIRED"] = "USER_ATTENTION_REQUIRED";
|
|
166
|
+
})(StepStatus || (StepStatus = {}));
|
|
167
|
+
export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
168
|
+
export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
169
|
+
export var StepInputFilterSensitiveLog = function (obj) {
|
|
170
|
+
var _a;
|
|
171
|
+
if (obj.integerValue !== undefined)
|
|
172
|
+
return { integerValue: obj.integerValue };
|
|
173
|
+
if (obj.stringValue !== undefined)
|
|
174
|
+
return { stringValue: obj.stringValue };
|
|
175
|
+
if (obj.listOfStringsValue !== undefined)
|
|
176
|
+
return { listOfStringsValue: obj.listOfStringsValue };
|
|
177
|
+
if (obj.mapOfStringValue !== undefined)
|
|
178
|
+
return { mapOfStringValue: obj.mapOfStringValue };
|
|
179
|
+
if (obj.$unknown !== undefined)
|
|
180
|
+
return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
|
|
181
|
+
};
|
|
182
|
+
export var CreateMigrationWorkflowRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.inputParameters && { inputParameters: SENSITIVE_STRING }))); };
|
|
183
|
+
export var CreateMigrationWorkflowResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.workflowInputs && { workflowInputs: SENSITIVE_STRING }))); };
|
|
184
|
+
export var DeleteMigrationWorkflowRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
185
|
+
export var DeleteMigrationWorkflowResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
186
|
+
export var GetMigrationWorkflowRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
187
|
+
export var ToolFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
188
|
+
export var GetMigrationWorkflowResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.workflowInputs && { workflowInputs: SENSITIVE_STRING }))); };
|
|
189
|
+
export var ListMigrationWorkflowsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
190
|
+
export var MigrationWorkflowSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
191
|
+
export var ListMigrationWorkflowsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
192
|
+
export var StartMigrationWorkflowRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
193
|
+
export var StartMigrationWorkflowResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
194
|
+
export var StopMigrationWorkflowRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
195
|
+
export var StopMigrationWorkflowResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
196
|
+
export var UpdateMigrationWorkflowRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.inputParameters && { inputParameters: SENSITIVE_STRING }))); };
|
|
197
|
+
export var UpdateMigrationWorkflowResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.workflowInputs && { workflowInputs: SENSITIVE_STRING }))); };
|
|
198
|
+
export var GetMigrationWorkflowTemplateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
199
|
+
export var TemplateInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
200
|
+
export var GetMigrationWorkflowTemplateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
201
|
+
export var ListMigrationWorkflowTemplatesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
202
|
+
export var TemplateSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
203
|
+
export var ListMigrationWorkflowTemplatesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
204
|
+
export var ListPluginsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
205
|
+
export var PluginSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
206
|
+
export var ListPluginsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
207
|
+
export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
208
|
+
export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
209
|
+
export var GetTemplateStepRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
210
|
+
export var StepOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
211
|
+
export var PlatformCommandFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
212
|
+
export var PlatformScriptKeyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
213
|
+
export var StepAutomationConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
214
|
+
export var GetTemplateStepResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
215
|
+
export var ListTemplateStepsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
216
|
+
export var TemplateStepSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
217
|
+
export var ListTemplateStepsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
218
|
+
export var GetTemplateStepGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
219
|
+
export var GetTemplateStepGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
220
|
+
export var ListTemplateStepGroupsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
221
|
+
export var TemplateStepGroupSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
222
|
+
export var ListTemplateStepGroupsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
223
|
+
export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
224
|
+
export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
225
|
+
export var WorkflowStepOutputUnionFilterSensitiveLog = function (obj) {
|
|
226
|
+
var _a;
|
|
227
|
+
if (obj.integerValue !== undefined)
|
|
228
|
+
return { integerValue: obj.integerValue };
|
|
229
|
+
if (obj.stringValue !== undefined)
|
|
230
|
+
return { stringValue: obj.stringValue };
|
|
231
|
+
if (obj.listOfStringValue !== undefined)
|
|
232
|
+
return { listOfStringValue: obj.listOfStringValue };
|
|
233
|
+
if (obj.$unknown !== undefined)
|
|
234
|
+
return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
|
|
235
|
+
};
|
|
236
|
+
export var WorkflowStepOutputFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.value && { value: WorkflowStepOutputUnionFilterSensitiveLog(obj.value) }))); };
|
|
237
|
+
export var WorkflowStepAutomationConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
238
|
+
export var CreateWorkflowStepRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.outputs && { outputs: obj.outputs.map(function (item) { return WorkflowStepOutputFilterSensitiveLog(item); }) }))); };
|
|
239
|
+
export var CreateWorkflowStepResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
240
|
+
export var DeleteWorkflowStepRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
241
|
+
export var DeleteWorkflowStepResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
242
|
+
export var GetWorkflowStepRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
243
|
+
export var GetWorkflowStepResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.outputs && { outputs: obj.outputs.map(function (item) { return WorkflowStepOutputFilterSensitiveLog(item); }) }))); };
|
|
244
|
+
export var ListWorkflowStepsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
245
|
+
export var WorkflowStepSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
246
|
+
export var ListWorkflowStepsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
247
|
+
export var RetryWorkflowStepRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
248
|
+
export var RetryWorkflowStepResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
249
|
+
export var UpdateWorkflowStepRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.outputs && { outputs: obj.outputs.map(function (item) { return WorkflowStepOutputFilterSensitiveLog(item); }) }))); };
|
|
250
|
+
export var UpdateWorkflowStepResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
251
|
+
export var CreateWorkflowStepGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
252
|
+
export var CreateWorkflowStepGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
253
|
+
export var DeleteWorkflowStepGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
254
|
+
export var DeleteWorkflowStepGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
255
|
+
export var GetWorkflowStepGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
256
|
+
export var GetWorkflowStepGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
257
|
+
export var ListWorkflowStepGroupsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
258
|
+
export var WorkflowStepGroupSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
259
|
+
export var ListWorkflowStepGroupsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
260
|
+
export var UpdateWorkflowStepGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
261
|
+
export var UpdateWorkflowStepGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListPluginsCommand } from "../commands/ListPluginsCommand";
|
|
3
|
+
import { MigrationHubOrchestrator } from "../MigrationHubOrchestrator";
|
|
4
|
+
import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListPluginsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listPlugins.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListPlugins(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListPlugins_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof MigrationHubOrchestrator)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof MigrationHubOrchestratorClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.nextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListTemplateStepGroupsCommand, } from "../commands/ListTemplateStepGroupsCommand";
|
|
3
|
+
import { MigrationHubOrchestrator } from "../MigrationHubOrchestrator";
|
|
4
|
+
import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTemplateStepGroupsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listTemplateStepGroups.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListTemplateStepGroups(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListTemplateStepGroups_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof MigrationHubOrchestrator)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof MigrationHubOrchestratorClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.nextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListTemplateStepsCommand, } from "../commands/ListTemplateStepsCommand";
|
|
3
|
+
import { MigrationHubOrchestrator } from "../MigrationHubOrchestrator";
|
|
4
|
+
import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTemplateStepsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listTemplateSteps.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListTemplateSteps(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListTemplateSteps_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof MigrationHubOrchestrator)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof MigrationHubOrchestratorClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.nextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListTemplatesCommand, } from "../commands/ListTemplatesCommand";
|
|
3
|
+
import { MigrationHubOrchestrator } from "../MigrationHubOrchestrator";
|
|
4
|
+
import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTemplatesCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listTemplates.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListTemplates(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListTemplates_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof MigrationHubOrchestrator)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof MigrationHubOrchestratorClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.nextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListWorkflowStepGroupsCommand, } from "../commands/ListWorkflowStepGroupsCommand";
|
|
3
|
+
import { MigrationHubOrchestrator } from "../MigrationHubOrchestrator";
|
|
4
|
+
import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListWorkflowStepGroupsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listWorkflowStepGroups.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListWorkflowStepGroups(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListWorkflowStepGroups_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof MigrationHubOrchestrator)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof MigrationHubOrchestratorClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.nextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|