@aws-sdk/client-drs 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.
- package/CHANGELOG.md +30 -0
- package/README.md +7 -7
- package/dist-cjs/Drs.js +45 -0
- package/dist-cjs/DrsClient.js +2 -0
- package/dist-cjs/commands/CreateExtendedSourceServerCommand.js +36 -0
- package/dist-cjs/commands/ListExtensibleSourceServersCommand.js +36 -0
- package/dist-cjs/commands/ListStagingAccountsCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +273 -201
- package/dist-cjs/pagination/ListExtensibleSourceServersPaginator.js +36 -0
- package/dist-cjs/pagination/ListStagingAccountsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +353 -2
- package/dist-es/Drs.js +45 -0
- package/dist-es/DrsClient.js +2 -0
- package/dist-es/commands/CreateExtendedSourceServerCommand.js +39 -0
- package/dist-es/commands/ListExtensibleSourceServersCommand.js +39 -0
- package/dist-es/commands/ListStagingAccountsCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +217 -169
- package/dist-es/pagination/ListExtensibleSourceServersPaginator.js +75 -0
- package/dist-es/pagination/ListStagingAccountsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +439 -15
- package/dist-types/Drs.d.ts +24 -0
- package/dist-types/DrsClient.d.ts +5 -2
- package/dist-types/commands/CreateExtendedSourceServerCommand.d.ts +35 -0
- package/dist-types/commands/ListExtensibleSourceServersCommand.d.ts +38 -0
- package/dist-types/commands/ListStagingAccountsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +723 -537
- package/dist-types/pagination/ListExtensibleSourceServersPaginator.d.ts +4 -0
- package/dist-types/pagination/ListStagingAccountsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/Drs.d.ts +15 -0
- package/dist-types/ts3.4/DrsClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/CreateExtendedSourceServerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExtensibleSourceServersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListStagingAccountsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +437 -338
- package/dist-types/ts3.4/pagination/ListExtensibleSourceServersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListStagingAccountsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +4 -3
|
@@ -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 { ListExtensibleSourceServersRequest, ListExtensibleSourceServersResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListExtensibleSourceServersCommand, serializeAws_restJson1ListExtensibleSourceServersCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListExtensibleSourceServersCommand = (function (_super) {
|
|
7
|
+
__extends(ListExtensibleSourceServersCommand, _super);
|
|
8
|
+
function ListExtensibleSourceServersCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListExtensibleSourceServersCommand.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 = "DrsClient";
|
|
18
|
+
var commandName = "ListExtensibleSourceServersCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListExtensibleSourceServersRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListExtensibleSourceServersResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListExtensibleSourceServersCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListExtensibleSourceServersCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListExtensibleSourceServersCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListExtensibleSourceServersCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListExtensibleSourceServersCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListExtensibleSourceServersCommand };
|
|
@@ -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 { ListStagingAccountsRequest, ListStagingAccountsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListStagingAccountsCommand, serializeAws_restJson1ListStagingAccountsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListStagingAccountsCommand = (function (_super) {
|
|
7
|
+
__extends(ListStagingAccountsCommand, _super);
|
|
8
|
+
function ListStagingAccountsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListStagingAccountsCommand.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 = "DrsClient";
|
|
18
|
+
var commandName = "ListStagingAccountsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListStagingAccountsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListStagingAccountsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListStagingAccountsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListStagingAccountsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListStagingAccountsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListStagingAccountsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListStagingAccountsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListStagingAccountsCommand };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./CreateExtendedSourceServerCommand";
|
|
1
2
|
export * from "./CreateReplicationConfigurationTemplateCommand";
|
|
2
3
|
export * from "./DeleteJobCommand";
|
|
3
4
|
export * from "./DeleteRecoveryInstanceCommand";
|
|
@@ -15,6 +16,8 @@ export * from "./GetFailbackReplicationConfigurationCommand";
|
|
|
15
16
|
export * from "./GetLaunchConfigurationCommand";
|
|
16
17
|
export * from "./GetReplicationConfigurationCommand";
|
|
17
18
|
export * from "./InitializeServiceCommand";
|
|
19
|
+
export * from "./ListExtensibleSourceServersCommand";
|
|
20
|
+
export * from "./ListStagingAccountsCommand";
|
|
18
21
|
export * from "./ListTagsForResourceCommand";
|
|
19
22
|
export * from "./RetryDataReplicationCommand";
|
|
20
23
|
export * from "./StartFailbackLaunchCommand";
|
|
@@ -14,6 +14,10 @@ var AccessDeniedException = (function (_super) {
|
|
|
14
14
|
return AccessDeniedException;
|
|
15
15
|
}(__BaseException));
|
|
16
16
|
export { AccessDeniedException };
|
|
17
|
+
export var Account;
|
|
18
|
+
(function (Account) {
|
|
19
|
+
Account.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
20
|
+
})(Account || (Account = {}));
|
|
17
21
|
var ConflictException = (function (_super) {
|
|
18
22
|
__extends(ConflictException, _super);
|
|
19
23
|
function ConflictException(opts) {
|
|
@@ -29,40 +33,152 @@ var ConflictException = (function (_super) {
|
|
|
29
33
|
return ConflictException;
|
|
30
34
|
}(__BaseException));
|
|
31
35
|
export { ConflictException };
|
|
36
|
+
export var ConversionProperties;
|
|
37
|
+
(function (ConversionProperties) {
|
|
38
|
+
ConversionProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
39
|
+
})(ConversionProperties || (ConversionProperties = {}));
|
|
32
40
|
export var CPU;
|
|
33
41
|
(function (CPU) {
|
|
34
42
|
CPU.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
35
43
|
})(CPU || (CPU = {}));
|
|
36
|
-
export var
|
|
37
|
-
(function (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
44
|
+
export var CreateExtendedSourceServerRequest;
|
|
45
|
+
(function (CreateExtendedSourceServerRequest) {
|
|
46
|
+
CreateExtendedSourceServerRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: SENSITIVE_STRING }))); };
|
|
47
|
+
})(CreateExtendedSourceServerRequest || (CreateExtendedSourceServerRequest = {}));
|
|
48
|
+
export var DataReplicationErrorString;
|
|
49
|
+
(function (DataReplicationErrorString) {
|
|
50
|
+
DataReplicationErrorString["AGENT_NOT_SEEN"] = "AGENT_NOT_SEEN";
|
|
51
|
+
DataReplicationErrorString["FAILED_TO_ATTACH_STAGING_DISKS"] = "FAILED_TO_ATTACH_STAGING_DISKS";
|
|
52
|
+
DataReplicationErrorString["FAILED_TO_AUTHENTICATE_WITH_SERVICE"] = "FAILED_TO_AUTHENTICATE_WITH_SERVICE";
|
|
53
|
+
DataReplicationErrorString["FAILED_TO_BOOT_REPLICATION_SERVER"] = "FAILED_TO_BOOT_REPLICATION_SERVER";
|
|
54
|
+
DataReplicationErrorString["FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER"] = "FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER";
|
|
55
|
+
DataReplicationErrorString["FAILED_TO_CREATE_SECURITY_GROUP"] = "FAILED_TO_CREATE_SECURITY_GROUP";
|
|
56
|
+
DataReplicationErrorString["FAILED_TO_CREATE_STAGING_DISKS"] = "FAILED_TO_CREATE_STAGING_DISKS";
|
|
57
|
+
DataReplicationErrorString["FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE"] = "FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE";
|
|
58
|
+
DataReplicationErrorString["FAILED_TO_LAUNCH_REPLICATION_SERVER"] = "FAILED_TO_LAUNCH_REPLICATION_SERVER";
|
|
59
|
+
DataReplicationErrorString["FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT"] = "FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT";
|
|
60
|
+
DataReplicationErrorString["FAILED_TO_START_DATA_TRANSFER"] = "FAILED_TO_START_DATA_TRANSFER";
|
|
61
|
+
DataReplicationErrorString["NOT_CONVERGING"] = "NOT_CONVERGING";
|
|
62
|
+
DataReplicationErrorString["SNAPSHOTS_FAILURE"] = "SNAPSHOTS_FAILURE";
|
|
63
|
+
DataReplicationErrorString["UNSTABLE_NETWORK"] = "UNSTABLE_NETWORK";
|
|
64
|
+
})(DataReplicationErrorString || (DataReplicationErrorString = {}));
|
|
65
|
+
export var DataReplicationError;
|
|
66
|
+
(function (DataReplicationError) {
|
|
67
|
+
DataReplicationError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
68
|
+
})(DataReplicationError || (DataReplicationError = {}));
|
|
69
|
+
export var DataReplicationInitiationStepName;
|
|
70
|
+
(function (DataReplicationInitiationStepName) {
|
|
71
|
+
DataReplicationInitiationStepName["ATTACH_STAGING_DISKS"] = "ATTACH_STAGING_DISKS";
|
|
72
|
+
DataReplicationInitiationStepName["AUTHENTICATE_WITH_SERVICE"] = "AUTHENTICATE_WITH_SERVICE";
|
|
73
|
+
DataReplicationInitiationStepName["BOOT_REPLICATION_SERVER"] = "BOOT_REPLICATION_SERVER";
|
|
74
|
+
DataReplicationInitiationStepName["CONNECT_AGENT_TO_REPLICATION_SERVER"] = "CONNECT_AGENT_TO_REPLICATION_SERVER";
|
|
75
|
+
DataReplicationInitiationStepName["CREATE_SECURITY_GROUP"] = "CREATE_SECURITY_GROUP";
|
|
76
|
+
DataReplicationInitiationStepName["CREATE_STAGING_DISKS"] = "CREATE_STAGING_DISKS";
|
|
77
|
+
DataReplicationInitiationStepName["DOWNLOAD_REPLICATION_SOFTWARE"] = "DOWNLOAD_REPLICATION_SOFTWARE";
|
|
78
|
+
DataReplicationInitiationStepName["LAUNCH_REPLICATION_SERVER"] = "LAUNCH_REPLICATION_SERVER";
|
|
79
|
+
DataReplicationInitiationStepName["PAIR_REPLICATION_SERVER_WITH_AGENT"] = "PAIR_REPLICATION_SERVER_WITH_AGENT";
|
|
80
|
+
DataReplicationInitiationStepName["START_DATA_TRANSFER"] = "START_DATA_TRANSFER";
|
|
81
|
+
DataReplicationInitiationStepName["WAIT"] = "WAIT";
|
|
82
|
+
})(DataReplicationInitiationStepName || (DataReplicationInitiationStepName = {}));
|
|
83
|
+
export var DataReplicationInitiationStepStatus;
|
|
84
|
+
(function (DataReplicationInitiationStepStatus) {
|
|
85
|
+
DataReplicationInitiationStepStatus["FAILED"] = "FAILED";
|
|
86
|
+
DataReplicationInitiationStepStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
87
|
+
DataReplicationInitiationStepStatus["NOT_STARTED"] = "NOT_STARTED";
|
|
88
|
+
DataReplicationInitiationStepStatus["SKIPPED"] = "SKIPPED";
|
|
89
|
+
DataReplicationInitiationStepStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
90
|
+
})(DataReplicationInitiationStepStatus || (DataReplicationInitiationStepStatus = {}));
|
|
91
|
+
export var DataReplicationInitiationStep;
|
|
92
|
+
(function (DataReplicationInitiationStep) {
|
|
93
|
+
DataReplicationInitiationStep.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
94
|
+
})(DataReplicationInitiationStep || (DataReplicationInitiationStep = {}));
|
|
95
|
+
export var DataReplicationInitiation;
|
|
96
|
+
(function (DataReplicationInitiation) {
|
|
97
|
+
DataReplicationInitiation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
98
|
+
})(DataReplicationInitiation || (DataReplicationInitiation = {}));
|
|
99
|
+
export var DataReplicationState;
|
|
100
|
+
(function (DataReplicationState) {
|
|
101
|
+
DataReplicationState["BACKLOG"] = "BACKLOG";
|
|
102
|
+
DataReplicationState["CONTINUOUS"] = "CONTINUOUS";
|
|
103
|
+
DataReplicationState["CREATING_SNAPSHOT"] = "CREATING_SNAPSHOT";
|
|
104
|
+
DataReplicationState["DISCONNECTED"] = "DISCONNECTED";
|
|
105
|
+
DataReplicationState["INITIAL_SYNC"] = "INITIAL_SYNC";
|
|
106
|
+
DataReplicationState["INITIATING"] = "INITIATING";
|
|
107
|
+
DataReplicationState["PAUSED"] = "PAUSED";
|
|
108
|
+
DataReplicationState["RESCAN"] = "RESCAN";
|
|
109
|
+
DataReplicationState["STALLED"] = "STALLED";
|
|
110
|
+
DataReplicationState["STOPPED"] = "STOPPED";
|
|
111
|
+
})(DataReplicationState || (DataReplicationState = {}));
|
|
112
|
+
export var DataReplicationInfoReplicatedDisk;
|
|
113
|
+
(function (DataReplicationInfoReplicatedDisk) {
|
|
114
|
+
DataReplicationInfoReplicatedDisk.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
115
|
+
})(DataReplicationInfoReplicatedDisk || (DataReplicationInfoReplicatedDisk = {}));
|
|
116
|
+
export var DataReplicationInfo;
|
|
117
|
+
(function (DataReplicationInfo) {
|
|
118
|
+
DataReplicationInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
119
|
+
})(DataReplicationInfo || (DataReplicationInfo = {}));
|
|
120
|
+
export var LastLaunchResult;
|
|
121
|
+
(function (LastLaunchResult) {
|
|
122
|
+
LastLaunchResult["FAILED"] = "FAILED";
|
|
123
|
+
LastLaunchResult["NOT_STARTED"] = "NOT_STARTED";
|
|
124
|
+
LastLaunchResult["PENDING"] = "PENDING";
|
|
125
|
+
LastLaunchResult["SUCCEEDED"] = "SUCCEEDED";
|
|
126
|
+
})(LastLaunchResult || (LastLaunchResult = {}));
|
|
127
|
+
export var LastLaunchType;
|
|
128
|
+
(function (LastLaunchType) {
|
|
129
|
+
LastLaunchType["DRILL"] = "DRILL";
|
|
130
|
+
LastLaunchType["RECOVERY"] = "RECOVERY";
|
|
131
|
+
})(LastLaunchType || (LastLaunchType = {}));
|
|
132
|
+
export var LifeCycleLastLaunchInitiated;
|
|
133
|
+
(function (LifeCycleLastLaunchInitiated) {
|
|
134
|
+
LifeCycleLastLaunchInitiated.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
135
|
+
})(LifeCycleLastLaunchInitiated || (LifeCycleLastLaunchInitiated = {}));
|
|
136
|
+
export var LifeCycleLastLaunch;
|
|
137
|
+
(function (LifeCycleLastLaunch) {
|
|
138
|
+
LifeCycleLastLaunch.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
139
|
+
})(LifeCycleLastLaunch || (LifeCycleLastLaunch = {}));
|
|
140
|
+
export var LifeCycle;
|
|
141
|
+
(function (LifeCycle) {
|
|
142
|
+
LifeCycle.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
143
|
+
})(LifeCycle || (LifeCycle = {}));
|
|
144
|
+
export var Disk;
|
|
145
|
+
(function (Disk) {
|
|
146
|
+
Disk.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
147
|
+
})(Disk || (Disk = {}));
|
|
148
|
+
export var IdentificationHints;
|
|
149
|
+
(function (IdentificationHints) {
|
|
150
|
+
IdentificationHints.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
151
|
+
})(IdentificationHints || (IdentificationHints = {}));
|
|
152
|
+
export var NetworkInterface;
|
|
153
|
+
(function (NetworkInterface) {
|
|
154
|
+
NetworkInterface.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
155
|
+
})(NetworkInterface || (NetworkInterface = {}));
|
|
156
|
+
export var OS;
|
|
157
|
+
(function (OS) {
|
|
158
|
+
OS.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
159
|
+
})(OS || (OS = {}));
|
|
160
|
+
export var SourceProperties;
|
|
161
|
+
(function (SourceProperties) {
|
|
162
|
+
SourceProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
163
|
+
})(SourceProperties || (SourceProperties = {}));
|
|
164
|
+
export var ExtensionStatus;
|
|
165
|
+
(function (ExtensionStatus) {
|
|
166
|
+
ExtensionStatus["EXTENDED"] = "EXTENDED";
|
|
167
|
+
ExtensionStatus["EXTENSION_ERROR"] = "EXTENSION_ERROR";
|
|
168
|
+
ExtensionStatus["NOT_EXTENDED"] = "NOT_EXTENDED";
|
|
169
|
+
})(ExtensionStatus || (ExtensionStatus = {}));
|
|
170
|
+
export var StagingArea;
|
|
171
|
+
(function (StagingArea) {
|
|
172
|
+
StagingArea.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
173
|
+
})(StagingArea || (StagingArea = {}));
|
|
174
|
+
export var SourceServer;
|
|
175
|
+
(function (SourceServer) {
|
|
176
|
+
SourceServer.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: SENSITIVE_STRING }))); };
|
|
177
|
+
})(SourceServer || (SourceServer = {}));
|
|
178
|
+
export var CreateExtendedSourceServerResponse;
|
|
179
|
+
(function (CreateExtendedSourceServerResponse) {
|
|
180
|
+
CreateExtendedSourceServerResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.sourceServer && { sourceServer: SourceServer.filterSensitiveLog(obj.sourceServer) }))); };
|
|
181
|
+
})(CreateExtendedSourceServerResponse || (CreateExtendedSourceServerResponse = {}));
|
|
66
182
|
var InternalServerException = (function (_super) {
|
|
67
183
|
__extends(InternalServerException, _super);
|
|
68
184
|
function InternalServerException(opts) {
|
|
@@ -76,10 +192,21 @@ var InternalServerException = (function (_super) {
|
|
|
76
192
|
return InternalServerException;
|
|
77
193
|
}(__BaseException));
|
|
78
194
|
export { InternalServerException };
|
|
79
|
-
|
|
80
|
-
(
|
|
81
|
-
|
|
82
|
-
|
|
195
|
+
var ResourceNotFoundException = (function (_super) {
|
|
196
|
+
__extends(ResourceNotFoundException, _super);
|
|
197
|
+
function ResourceNotFoundException(opts) {
|
|
198
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
199
|
+
_this.name = "ResourceNotFoundException";
|
|
200
|
+
_this.$fault = "client";
|
|
201
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
202
|
+
_this.code = opts.code;
|
|
203
|
+
_this.resourceId = opts.resourceId;
|
|
204
|
+
_this.resourceType = opts.resourceType;
|
|
205
|
+
return _this;
|
|
206
|
+
}
|
|
207
|
+
return ResourceNotFoundException;
|
|
208
|
+
}(__BaseException));
|
|
209
|
+
export { ResourceNotFoundException };
|
|
83
210
|
var ServiceQuotaExceededException = (function (_super) {
|
|
84
211
|
__extends(ServiceQuotaExceededException, _super);
|
|
85
212
|
function ServiceQuotaExceededException(opts) {
|
|
@@ -151,78 +278,40 @@ var ValidationException = (function (_super) {
|
|
|
151
278
|
return ValidationException;
|
|
152
279
|
}(__BaseException));
|
|
153
280
|
export { ValidationException };
|
|
154
|
-
export var
|
|
155
|
-
(function (
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
})(DataReplicationInitiationStepName || (DataReplicationInitiationStepName = {}));
|
|
189
|
-
export var DataReplicationInitiationStepStatus;
|
|
190
|
-
(function (DataReplicationInitiationStepStatus) {
|
|
191
|
-
DataReplicationInitiationStepStatus["FAILED"] = "FAILED";
|
|
192
|
-
DataReplicationInitiationStepStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
193
|
-
DataReplicationInitiationStepStatus["NOT_STARTED"] = "NOT_STARTED";
|
|
194
|
-
DataReplicationInitiationStepStatus["SKIPPED"] = "SKIPPED";
|
|
195
|
-
DataReplicationInitiationStepStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
196
|
-
})(DataReplicationInitiationStepStatus || (DataReplicationInitiationStepStatus = {}));
|
|
197
|
-
export var DataReplicationInitiationStep;
|
|
198
|
-
(function (DataReplicationInitiationStep) {
|
|
199
|
-
DataReplicationInitiationStep.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
200
|
-
})(DataReplicationInitiationStep || (DataReplicationInitiationStep = {}));
|
|
201
|
-
export var DataReplicationInitiation;
|
|
202
|
-
(function (DataReplicationInitiation) {
|
|
203
|
-
DataReplicationInitiation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
204
|
-
})(DataReplicationInitiation || (DataReplicationInitiation = {}));
|
|
205
|
-
export var DataReplicationState;
|
|
206
|
-
(function (DataReplicationState) {
|
|
207
|
-
DataReplicationState["BACKLOG"] = "BACKLOG";
|
|
208
|
-
DataReplicationState["CONTINUOUS"] = "CONTINUOUS";
|
|
209
|
-
DataReplicationState["CREATING_SNAPSHOT"] = "CREATING_SNAPSHOT";
|
|
210
|
-
DataReplicationState["DISCONNECTED"] = "DISCONNECTED";
|
|
211
|
-
DataReplicationState["INITIAL_SYNC"] = "INITIAL_SYNC";
|
|
212
|
-
DataReplicationState["INITIATING"] = "INITIATING";
|
|
213
|
-
DataReplicationState["PAUSED"] = "PAUSED";
|
|
214
|
-
DataReplicationState["RESCAN"] = "RESCAN";
|
|
215
|
-
DataReplicationState["STALLED"] = "STALLED";
|
|
216
|
-
DataReplicationState["STOPPED"] = "STOPPED";
|
|
217
|
-
})(DataReplicationState || (DataReplicationState = {}));
|
|
218
|
-
export var DataReplicationInfoReplicatedDisk;
|
|
219
|
-
(function (DataReplicationInfoReplicatedDisk) {
|
|
220
|
-
DataReplicationInfoReplicatedDisk.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
221
|
-
})(DataReplicationInfoReplicatedDisk || (DataReplicationInfoReplicatedDisk = {}));
|
|
222
|
-
export var DataReplicationInfo;
|
|
223
|
-
(function (DataReplicationInfo) {
|
|
224
|
-
DataReplicationInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
225
|
-
})(DataReplicationInfo || (DataReplicationInfo = {}));
|
|
281
|
+
export var ReplicationConfigurationDataPlaneRouting;
|
|
282
|
+
(function (ReplicationConfigurationDataPlaneRouting) {
|
|
283
|
+
ReplicationConfigurationDataPlaneRouting["PRIVATE_IP"] = "PRIVATE_IP";
|
|
284
|
+
ReplicationConfigurationDataPlaneRouting["PUBLIC_IP"] = "PUBLIC_IP";
|
|
285
|
+
})(ReplicationConfigurationDataPlaneRouting || (ReplicationConfigurationDataPlaneRouting = {}));
|
|
286
|
+
export var ReplicationConfigurationDefaultLargeStagingDiskType;
|
|
287
|
+
(function (ReplicationConfigurationDefaultLargeStagingDiskType) {
|
|
288
|
+
ReplicationConfigurationDefaultLargeStagingDiskType["GP2"] = "GP2";
|
|
289
|
+
ReplicationConfigurationDefaultLargeStagingDiskType["GP3"] = "GP3";
|
|
290
|
+
ReplicationConfigurationDefaultLargeStagingDiskType["ST1"] = "ST1";
|
|
291
|
+
})(ReplicationConfigurationDefaultLargeStagingDiskType || (ReplicationConfigurationDefaultLargeStagingDiskType = {}));
|
|
292
|
+
export var ReplicationConfigurationEbsEncryption;
|
|
293
|
+
(function (ReplicationConfigurationEbsEncryption) {
|
|
294
|
+
ReplicationConfigurationEbsEncryption["CUSTOM"] = "CUSTOM";
|
|
295
|
+
ReplicationConfigurationEbsEncryption["DEFAULT"] = "DEFAULT";
|
|
296
|
+
})(ReplicationConfigurationEbsEncryption || (ReplicationConfigurationEbsEncryption = {}));
|
|
297
|
+
export var PITPolicyRuleUnits;
|
|
298
|
+
(function (PITPolicyRuleUnits) {
|
|
299
|
+
PITPolicyRuleUnits["DAY"] = "DAY";
|
|
300
|
+
PITPolicyRuleUnits["HOUR"] = "HOUR";
|
|
301
|
+
PITPolicyRuleUnits["MINUTE"] = "MINUTE";
|
|
302
|
+
})(PITPolicyRuleUnits || (PITPolicyRuleUnits = {}));
|
|
303
|
+
export var PITPolicyRule;
|
|
304
|
+
(function (PITPolicyRule) {
|
|
305
|
+
PITPolicyRule.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
306
|
+
})(PITPolicyRule || (PITPolicyRule = {}));
|
|
307
|
+
export var CreateReplicationConfigurationTemplateRequest;
|
|
308
|
+
(function (CreateReplicationConfigurationTemplateRequest) {
|
|
309
|
+
CreateReplicationConfigurationTemplateRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.stagingAreaTags && { stagingAreaTags: SENSITIVE_STRING })), (obj.tags && { tags: SENSITIVE_STRING }))); };
|
|
310
|
+
})(CreateReplicationConfigurationTemplateRequest || (CreateReplicationConfigurationTemplateRequest = {}));
|
|
311
|
+
export var ReplicationConfigurationTemplate;
|
|
312
|
+
(function (ReplicationConfigurationTemplate) {
|
|
313
|
+
ReplicationConfigurationTemplate.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.stagingAreaTags && { stagingAreaTags: SENSITIVE_STRING })), (obj.tags && { tags: SENSITIVE_STRING }))); };
|
|
314
|
+
})(ReplicationConfigurationTemplate || (ReplicationConfigurationTemplate = {}));
|
|
226
315
|
export var DeleteJobRequest;
|
|
227
316
|
(function (DeleteJobRequest) {
|
|
228
317
|
DeleteJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -231,21 +320,6 @@ export var DeleteJobResponse;
|
|
|
231
320
|
(function (DeleteJobResponse) {
|
|
232
321
|
DeleteJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
233
322
|
})(DeleteJobResponse || (DeleteJobResponse = {}));
|
|
234
|
-
var ResourceNotFoundException = (function (_super) {
|
|
235
|
-
__extends(ResourceNotFoundException, _super);
|
|
236
|
-
function ResourceNotFoundException(opts) {
|
|
237
|
-
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
238
|
-
_this.name = "ResourceNotFoundException";
|
|
239
|
-
_this.$fault = "client";
|
|
240
|
-
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
241
|
-
_this.code = opts.code;
|
|
242
|
-
_this.resourceId = opts.resourceId;
|
|
243
|
-
_this.resourceType = opts.resourceType;
|
|
244
|
-
return _this;
|
|
245
|
-
}
|
|
246
|
-
return ResourceNotFoundException;
|
|
247
|
-
}(__BaseException));
|
|
248
|
-
export { ResourceNotFoundException };
|
|
249
323
|
export var DeleteRecoveryInstanceRequest;
|
|
250
324
|
(function (DeleteRecoveryInstanceRequest) {
|
|
251
325
|
DeleteRecoveryInstanceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -316,6 +390,7 @@ export var InitiatedBy;
|
|
|
316
390
|
InitiatedBy["FAILBACK"] = "FAILBACK";
|
|
317
391
|
InitiatedBy["START_DRILL"] = "START_DRILL";
|
|
318
392
|
InitiatedBy["START_RECOVERY"] = "START_RECOVERY";
|
|
393
|
+
InitiatedBy["TARGET_ACCOUNT"] = "TARGET_ACCOUNT";
|
|
319
394
|
InitiatedBy["TERMINATE_RECOVERY_INSTANCES"] = "TERMINATE_RECOVERY_INSTANCES";
|
|
320
395
|
})(InitiatedBy || (InitiatedBy = {}));
|
|
321
396
|
export var LaunchStatus;
|
|
@@ -338,6 +413,7 @@ export var JobStatus;
|
|
|
338
413
|
})(JobStatus || (JobStatus = {}));
|
|
339
414
|
export var JobType;
|
|
340
415
|
(function (JobType) {
|
|
416
|
+
JobType["CREATE_CONVERTED_SNAPSHOT"] = "CREATE_CONVERTED_SNAPSHOT";
|
|
341
417
|
JobType["LAUNCH"] = "LAUNCH";
|
|
342
418
|
JobType["TERMINATE"] = "TERMINATE";
|
|
343
419
|
})(JobType || (JobType = {}));
|
|
@@ -446,18 +522,6 @@ export var RecoveryInstanceDisk;
|
|
|
446
522
|
(function (RecoveryInstanceDisk) {
|
|
447
523
|
RecoveryInstanceDisk.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
448
524
|
})(RecoveryInstanceDisk || (RecoveryInstanceDisk = {}));
|
|
449
|
-
export var IdentificationHints;
|
|
450
|
-
(function (IdentificationHints) {
|
|
451
|
-
IdentificationHints.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
452
|
-
})(IdentificationHints || (IdentificationHints = {}));
|
|
453
|
-
export var NetworkInterface;
|
|
454
|
-
(function (NetworkInterface) {
|
|
455
|
-
NetworkInterface.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
456
|
-
})(NetworkInterface || (NetworkInterface = {}));
|
|
457
|
-
export var OS;
|
|
458
|
-
(function (OS) {
|
|
459
|
-
OS.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
460
|
-
})(OS || (OS = {}));
|
|
461
525
|
export var RecoveryInstanceProperties;
|
|
462
526
|
(function (RecoveryInstanceProperties) {
|
|
463
527
|
RecoveryInstanceProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -507,42 +571,6 @@ export var DescribeSourceServersRequest;
|
|
|
507
571
|
(function (DescribeSourceServersRequest) {
|
|
508
572
|
DescribeSourceServersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
509
573
|
})(DescribeSourceServersRequest || (DescribeSourceServersRequest = {}));
|
|
510
|
-
export var LastLaunchResult;
|
|
511
|
-
(function (LastLaunchResult) {
|
|
512
|
-
LastLaunchResult["FAILED"] = "FAILED";
|
|
513
|
-
LastLaunchResult["NOT_STARTED"] = "NOT_STARTED";
|
|
514
|
-
LastLaunchResult["PENDING"] = "PENDING";
|
|
515
|
-
LastLaunchResult["SUCCEEDED"] = "SUCCEEDED";
|
|
516
|
-
})(LastLaunchResult || (LastLaunchResult = {}));
|
|
517
|
-
export var LastLaunchType;
|
|
518
|
-
(function (LastLaunchType) {
|
|
519
|
-
LastLaunchType["DRILL"] = "DRILL";
|
|
520
|
-
LastLaunchType["RECOVERY"] = "RECOVERY";
|
|
521
|
-
})(LastLaunchType || (LastLaunchType = {}));
|
|
522
|
-
export var LifeCycleLastLaunchInitiated;
|
|
523
|
-
(function (LifeCycleLastLaunchInitiated) {
|
|
524
|
-
LifeCycleLastLaunchInitiated.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
525
|
-
})(LifeCycleLastLaunchInitiated || (LifeCycleLastLaunchInitiated = {}));
|
|
526
|
-
export var LifeCycleLastLaunch;
|
|
527
|
-
(function (LifeCycleLastLaunch) {
|
|
528
|
-
LifeCycleLastLaunch.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
529
|
-
})(LifeCycleLastLaunch || (LifeCycleLastLaunch = {}));
|
|
530
|
-
export var LifeCycle;
|
|
531
|
-
(function (LifeCycle) {
|
|
532
|
-
LifeCycle.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
533
|
-
})(LifeCycle || (LifeCycle = {}));
|
|
534
|
-
export var Disk;
|
|
535
|
-
(function (Disk) {
|
|
536
|
-
Disk.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
537
|
-
})(Disk || (Disk = {}));
|
|
538
|
-
export var SourceProperties;
|
|
539
|
-
(function (SourceProperties) {
|
|
540
|
-
SourceProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
541
|
-
})(SourceProperties || (SourceProperties = {}));
|
|
542
|
-
export var SourceServer;
|
|
543
|
-
(function (SourceServer) {
|
|
544
|
-
SourceServer.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: SENSITIVE_STRING }))); };
|
|
545
|
-
})(SourceServer || (SourceServer = {}));
|
|
546
574
|
export var DescribeSourceServersResponse;
|
|
547
575
|
(function (DescribeSourceServersResponse) {
|
|
548
576
|
DescribeSourceServersResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.items && { items: obj.items.map(function (item) { return SourceServer.filterSensitiveLog(item); }) }))); };
|
|
@@ -563,6 +591,26 @@ export var InitializeServiceResponse;
|
|
|
563
591
|
(function (InitializeServiceResponse) {
|
|
564
592
|
InitializeServiceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
565
593
|
})(InitializeServiceResponse || (InitializeServiceResponse = {}));
|
|
594
|
+
export var ListExtensibleSourceServersRequest;
|
|
595
|
+
(function (ListExtensibleSourceServersRequest) {
|
|
596
|
+
ListExtensibleSourceServersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
597
|
+
})(ListExtensibleSourceServersRequest || (ListExtensibleSourceServersRequest = {}));
|
|
598
|
+
export var StagingSourceServer;
|
|
599
|
+
(function (StagingSourceServer) {
|
|
600
|
+
StagingSourceServer.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: SENSITIVE_STRING }))); };
|
|
601
|
+
})(StagingSourceServer || (StagingSourceServer = {}));
|
|
602
|
+
export var ListExtensibleSourceServersResponse;
|
|
603
|
+
(function (ListExtensibleSourceServersResponse) {
|
|
604
|
+
ListExtensibleSourceServersResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.items && { items: obj.items.map(function (item) { return StagingSourceServer.filterSensitiveLog(item); }) }))); };
|
|
605
|
+
})(ListExtensibleSourceServersResponse || (ListExtensibleSourceServersResponse = {}));
|
|
606
|
+
export var ListStagingAccountsRequest;
|
|
607
|
+
(function (ListStagingAccountsRequest) {
|
|
608
|
+
ListStagingAccountsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
609
|
+
})(ListStagingAccountsRequest || (ListStagingAccountsRequest = {}));
|
|
610
|
+
export var ListStagingAccountsResponse;
|
|
611
|
+
(function (ListStagingAccountsResponse) {
|
|
612
|
+
ListStagingAccountsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
613
|
+
})(ListStagingAccountsResponse || (ListStagingAccountsResponse = {}));
|
|
566
614
|
export var ListTagsForResourceRequest;
|
|
567
615
|
(function (ListTagsForResourceRequest) {
|
|
568
616
|
ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListExtensibleSourceServersCommand, } from "../commands/ListExtensibleSourceServersCommand";
|
|
3
|
+
import { Drs } from "../Drs";
|
|
4
|
+
import { DrsClient } from "../DrsClient";
|
|
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 ListExtensibleSourceServersCommand(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.listExtensibleSourceServers.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListExtensibleSourceServers(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 paginateListExtensibleSourceServers_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 Drs)) 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 DrsClient)) 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 Drs | DrsClient");
|
|
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
|
+
}
|