@aws-sdk/client-emr-containers 3.183.0 → 3.186.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 +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/EMRContainers.js +69 -62
- package/dist-es/EMRContainersClient.js +28 -22
- package/dist-es/commands/CancelJobRunCommand.js +28 -21
- package/dist-es/commands/CreateManagedEndpointCommand.js +28 -21
- package/dist-es/commands/CreateVirtualClusterCommand.js +28 -21
- package/dist-es/commands/DeleteManagedEndpointCommand.js +28 -21
- package/dist-es/commands/DeleteVirtualClusterCommand.js +28 -21
- package/dist-es/commands/DescribeJobRunCommand.js +28 -21
- package/dist-es/commands/DescribeManagedEndpointCommand.js +28 -21
- package/dist-es/commands/DescribeVirtualClusterCommand.js +28 -21
- package/dist-es/commands/ListJobRunsCommand.js +28 -21
- package/dist-es/commands/ListManagedEndpointsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ListVirtualClustersCommand.js +28 -21
- package/dist-es/commands/StartJobRunCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/EMRContainersServiceException.js +10 -5
- package/dist-es/models/models_0.js +98 -208
- package/dist-es/pagination/ListJobRunsPaginator.js +68 -25
- package/dist-es/pagination/ListManagedEndpointsPaginator.js +68 -25
- package/dist-es/pagination/ListVirtualClustersPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +1530 -1113
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var UntagResourceCommand = (function (_super) {
|
|
7
|
+
__extends(UntagResourceCommand, _super);
|
|
8
|
+
function UntagResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "EMRContainersClient";
|
|
18
|
+
var commandName = "UntagResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UntagResourceCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1UntagResourceCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
UntagResourceCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1UntagResourceCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return UntagResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UntagResourceCommand };
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
+
var regionHash = {
|
|
3
4
|
"ca-central-1": {
|
|
4
5
|
variants: [
|
|
5
6
|
{
|
|
@@ -41,7 +42,7 @@ const regionHash = {
|
|
|
41
42
|
],
|
|
42
43
|
},
|
|
43
44
|
};
|
|
44
|
-
|
|
45
|
+
var partitionHash = {
|
|
45
46
|
aws: {
|
|
46
47
|
regions: [
|
|
47
48
|
"af-south-1",
|
|
@@ -166,9 +167,8 @@ const partitionHash = {
|
|
|
166
167
|
],
|
|
167
168
|
},
|
|
168
169
|
};
|
|
169
|
-
export
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
});
|
|
170
|
+
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "emr-containers", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
173
|
+
});
|
|
174
|
+
}); };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var EMRContainersServiceException = (function (_super) {
|
|
4
|
+
__extends(EMRContainersServiceException, _super);
|
|
5
|
+
function EMRContainersServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, EMRContainersServiceException.prototype);
|
|
8
|
+
return _this;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return EMRContainersServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { EMRContainersServiceException };
|
|
@@ -1,49 +1,50 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
3
|
import { EMRContainersServiceException as __BaseException } from "./EMRContainersServiceException";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.$fault = "server";
|
|
12
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
4
|
+
var InternalServerException = (function (_super) {
|
|
5
|
+
__extends(InternalServerException, _super);
|
|
6
|
+
function InternalServerException(opts) {
|
|
7
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
8
|
+
_this.name = "InternalServerException";
|
|
9
|
+
_this.$fault = "server";
|
|
10
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
11
|
+
return _this;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
return InternalServerException;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { InternalServerException };
|
|
16
|
+
var ValidationException = (function (_super) {
|
|
17
|
+
__extends(ValidationException, _super);
|
|
18
|
+
function ValidationException(opts) {
|
|
19
|
+
var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
|
|
20
|
+
_this.name = "ValidationException";
|
|
21
|
+
_this.$fault = "client";
|
|
22
|
+
Object.setPrototypeOf(_this, ValidationException.prototype);
|
|
23
|
+
return _this;
|
|
25
24
|
}
|
|
26
|
-
|
|
25
|
+
return ValidationException;
|
|
26
|
+
}(__BaseException));
|
|
27
|
+
export { ValidationException };
|
|
27
28
|
export var PersistentAppUI;
|
|
28
29
|
(function (PersistentAppUI) {
|
|
29
30
|
PersistentAppUI["DISABLED"] = "DISABLED";
|
|
30
31
|
PersistentAppUI["ENABLED"] = "ENABLED";
|
|
31
32
|
})(PersistentAppUI || (PersistentAppUI = {}));
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
this.$fault = "client";
|
|
41
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
33
|
+
var ResourceNotFoundException = (function (_super) {
|
|
34
|
+
__extends(ResourceNotFoundException, _super);
|
|
35
|
+
function ResourceNotFoundException(opts) {
|
|
36
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
37
|
+
_this.name = "ResourceNotFoundException";
|
|
38
|
+
_this.$fault = "client";
|
|
39
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
40
|
+
return _this;
|
|
42
41
|
}
|
|
43
|
-
|
|
42
|
+
return ResourceNotFoundException;
|
|
43
|
+
}(__BaseException));
|
|
44
|
+
export { ResourceNotFoundException };
|
|
44
45
|
export var ContainerInfo;
|
|
45
46
|
(function (ContainerInfo) {
|
|
46
|
-
ContainerInfo.visit = (value, visitor)
|
|
47
|
+
ContainerInfo.visit = function (value, visitor) {
|
|
47
48
|
if (value.eksInfo !== undefined)
|
|
48
49
|
return visitor.eksInfo(value.eksInfo);
|
|
49
50
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -85,181 +86,70 @@ export var VirtualClusterState;
|
|
|
85
86
|
VirtualClusterState["TERMINATED"] = "TERMINATED";
|
|
86
87
|
VirtualClusterState["TERMINATING"] = "TERMINATING";
|
|
87
88
|
})(VirtualClusterState || (VirtualClusterState = {}));
|
|
88
|
-
export
|
|
89
|
-
|
|
90
|
-
});
|
|
91
|
-
export
|
|
92
|
-
|
|
93
|
-
});
|
|
94
|
-
export
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
export const S3MonitoringConfigurationFilterSensitiveLog = (obj) => ({
|
|
98
|
-
...obj,
|
|
99
|
-
});
|
|
100
|
-
export const MonitoringConfigurationFilterSensitiveLog = (obj) => ({
|
|
101
|
-
...obj,
|
|
102
|
-
});
|
|
103
|
-
export const CreateManagedEndpointResponseFilterSensitiveLog = (obj) => ({
|
|
104
|
-
...obj,
|
|
105
|
-
});
|
|
106
|
-
export const EksInfoFilterSensitiveLog = (obj) => ({
|
|
107
|
-
...obj,
|
|
108
|
-
});
|
|
109
|
-
export const ContainerInfoFilterSensitiveLog = (obj) => {
|
|
89
|
+
export var CancelJobRunRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
90
|
+
export var CancelJobRunResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
91
|
+
export var CloudWatchMonitoringConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
92
|
+
export var S3MonitoringConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
93
|
+
export var MonitoringConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
94
|
+
export var CreateManagedEndpointResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
95
|
+
export var EksInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
96
|
+
export var ContainerInfoFilterSensitiveLog = function (obj) {
|
|
97
|
+
var _a;
|
|
110
98
|
if (obj.eksInfo !== undefined)
|
|
111
99
|
return { eksInfo: EksInfoFilterSensitiveLog(obj.eksInfo) };
|
|
112
100
|
if (obj.$unknown !== undefined)
|
|
113
|
-
return { [obj.$unknown[0]]
|
|
101
|
+
return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
|
|
114
102
|
};
|
|
115
|
-
export
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
});
|
|
119
|
-
export
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
});
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
-
})
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
});
|
|
129
|
-
export
|
|
130
|
-
|
|
131
|
-
});
|
|
132
|
-
export
|
|
133
|
-
|
|
134
|
-
});
|
|
135
|
-
export
|
|
136
|
-
|
|
137
|
-
});
|
|
138
|
-
export
|
|
139
|
-
|
|
140
|
-
});
|
|
141
|
-
export
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
});
|
|
146
|
-
export
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
});
|
|
152
|
-
export
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
})
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
})
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
});
|
|
165
|
-
export
|
|
166
|
-
|
|
167
|
-
});
|
|
168
|
-
export const VirtualClusterFilterSensitiveLog = (obj) => ({
|
|
169
|
-
...obj,
|
|
170
|
-
...(obj.containerProvider && { containerProvider: ContainerProviderFilterSensitiveLog(obj.containerProvider) }),
|
|
171
|
-
});
|
|
172
|
-
export const DescribeVirtualClusterResponseFilterSensitiveLog = (obj) => ({
|
|
173
|
-
...obj,
|
|
174
|
-
...(obj.virtualCluster && { virtualCluster: VirtualClusterFilterSensitiveLog(obj.virtualCluster) }),
|
|
175
|
-
});
|
|
176
|
-
export const ListJobRunsRequestFilterSensitiveLog = (obj) => ({
|
|
177
|
-
...obj,
|
|
178
|
-
});
|
|
179
|
-
export const ListManagedEndpointsRequestFilterSensitiveLog = (obj) => ({
|
|
180
|
-
...obj,
|
|
181
|
-
});
|
|
182
|
-
export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
183
|
-
...obj,
|
|
184
|
-
});
|
|
185
|
-
export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
186
|
-
...obj,
|
|
187
|
-
});
|
|
188
|
-
export const ListVirtualClustersRequestFilterSensitiveLog = (obj) => ({
|
|
189
|
-
...obj,
|
|
190
|
-
});
|
|
191
|
-
export const ListVirtualClustersResponseFilterSensitiveLog = (obj) => ({
|
|
192
|
-
...obj,
|
|
193
|
-
...(obj.virtualClusters && {
|
|
194
|
-
virtualClusters: obj.virtualClusters.map((item) => VirtualClusterFilterSensitiveLog(item)),
|
|
195
|
-
}),
|
|
196
|
-
});
|
|
197
|
-
export const StartJobRunResponseFilterSensitiveLog = (obj) => ({
|
|
198
|
-
...obj,
|
|
199
|
-
});
|
|
200
|
-
export const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
201
|
-
...obj,
|
|
202
|
-
});
|
|
203
|
-
export const TagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
204
|
-
...obj,
|
|
205
|
-
});
|
|
206
|
-
export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
207
|
-
...obj,
|
|
208
|
-
});
|
|
209
|
-
export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
210
|
-
...obj,
|
|
211
|
-
});
|
|
212
|
-
export const ConfigurationFilterSensitiveLog = (obj) => ({
|
|
213
|
-
...obj,
|
|
214
|
-
...(obj.properties && { properties: SENSITIVE_STRING }),
|
|
215
|
-
...(obj.configurations && {
|
|
216
|
-
configurations: obj.configurations.map((item) => ConfigurationFilterSensitiveLog(item)),
|
|
217
|
-
}),
|
|
218
|
-
});
|
|
219
|
-
export const ConfigurationOverridesFilterSensitiveLog = (obj) => ({
|
|
220
|
-
...obj,
|
|
221
|
-
...(obj.applicationConfiguration && {
|
|
222
|
-
applicationConfiguration: obj.applicationConfiguration.map((item) => ConfigurationFilterSensitiveLog(item)),
|
|
223
|
-
}),
|
|
224
|
-
});
|
|
225
|
-
export const CreateManagedEndpointRequestFilterSensitiveLog = (obj) => ({
|
|
226
|
-
...obj,
|
|
227
|
-
...(obj.configurationOverrides && {
|
|
228
|
-
configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
|
|
229
|
-
}),
|
|
230
|
-
});
|
|
231
|
-
export const EndpointFilterSensitiveLog = (obj) => ({
|
|
232
|
-
...obj,
|
|
233
|
-
...(obj.configurationOverrides && {
|
|
234
|
-
configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
|
|
235
|
-
}),
|
|
236
|
-
});
|
|
237
|
-
export const JobRunFilterSensitiveLog = (obj) => ({
|
|
238
|
-
...obj,
|
|
239
|
-
...(obj.configurationOverrides && {
|
|
240
|
-
configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
|
|
241
|
-
}),
|
|
242
|
-
...(obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }),
|
|
243
|
-
});
|
|
244
|
-
export const StartJobRunRequestFilterSensitiveLog = (obj) => ({
|
|
245
|
-
...obj,
|
|
246
|
-
...(obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }),
|
|
247
|
-
...(obj.configurationOverrides && {
|
|
248
|
-
configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
|
|
249
|
-
}),
|
|
250
|
-
});
|
|
251
|
-
export const DescribeJobRunResponseFilterSensitiveLog = (obj) => ({
|
|
252
|
-
...obj,
|
|
253
|
-
...(obj.jobRun && { jobRun: JobRunFilterSensitiveLog(obj.jobRun) }),
|
|
254
|
-
});
|
|
255
|
-
export const DescribeManagedEndpointResponseFilterSensitiveLog = (obj) => ({
|
|
256
|
-
...obj,
|
|
257
|
-
...(obj.endpoint && { endpoint: EndpointFilterSensitiveLog(obj.endpoint) }),
|
|
258
|
-
});
|
|
259
|
-
export const ListJobRunsResponseFilterSensitiveLog = (obj) => ({
|
|
260
|
-
...obj,
|
|
261
|
-
...(obj.jobRuns && { jobRuns: obj.jobRuns.map((item) => JobRunFilterSensitiveLog(item)) }),
|
|
262
|
-
});
|
|
263
|
-
export const ListManagedEndpointsResponseFilterSensitiveLog = (obj) => ({
|
|
264
|
-
...obj,
|
|
265
|
-
});
|
|
103
|
+
export var ContainerProviderFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.info && { info: ContainerInfoFilterSensitiveLog(obj.info) }))); };
|
|
104
|
+
export var CreateVirtualClusterRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.containerProvider && { containerProvider: ContainerProviderFilterSensitiveLog(obj.containerProvider) }))); };
|
|
105
|
+
export var CreateVirtualClusterResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
|
+
export var DeleteManagedEndpointRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
107
|
+
export var DeleteManagedEndpointResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
108
|
+
export var DeleteVirtualClusterRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
109
|
+
export var DeleteVirtualClusterResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
110
|
+
export var DescribeJobRunRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
111
|
+
export var SparkSqlJobDriverFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.entryPoint && { entryPoint: SENSITIVE_STRING })), (obj.sparkSqlParameters && { sparkSqlParameters: SENSITIVE_STRING }))); };
|
|
112
|
+
export var SparkSubmitJobDriverFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.entryPoint && { entryPoint: SENSITIVE_STRING })), (obj.entryPointArguments && { entryPointArguments: SENSITIVE_STRING })), (obj.sparkSubmitParameters && { sparkSubmitParameters: SENSITIVE_STRING }))); };
|
|
113
|
+
export var JobDriverFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.sparkSubmitJobDriver && {
|
|
114
|
+
sparkSubmitJobDriver: SparkSubmitJobDriverFilterSensitiveLog(obj.sparkSubmitJobDriver),
|
|
115
|
+
})), (obj.sparkSqlJobDriver && { sparkSqlJobDriver: SparkSqlJobDriverFilterSensitiveLog(obj.sparkSqlJobDriver) }))); };
|
|
116
|
+
export var DescribeManagedEndpointRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
117
|
+
export var CertificateFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
|
+
export var DescribeVirtualClusterRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
119
|
+
export var VirtualClusterFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.containerProvider && { containerProvider: ContainerProviderFilterSensitiveLog(obj.containerProvider) }))); };
|
|
120
|
+
export var DescribeVirtualClusterResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.virtualCluster && { virtualCluster: VirtualClusterFilterSensitiveLog(obj.virtualCluster) }))); };
|
|
121
|
+
export var ListJobRunsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
122
|
+
export var ListManagedEndpointsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
123
|
+
export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
124
|
+
export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
125
|
+
export var ListVirtualClustersRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
126
|
+
export var ListVirtualClustersResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.virtualClusters && {
|
|
127
|
+
virtualClusters: obj.virtualClusters.map(function (item) { return VirtualClusterFilterSensitiveLog(item); }),
|
|
128
|
+
}))); };
|
|
129
|
+
export var StartJobRunResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
130
|
+
export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
131
|
+
export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
132
|
+
export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
133
|
+
export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
134
|
+
export var ConfigurationFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.properties && { properties: SENSITIVE_STRING })), (obj.configurations && {
|
|
135
|
+
configurations: obj.configurations.map(function (item) { return ConfigurationFilterSensitiveLog(item); }),
|
|
136
|
+
}))); };
|
|
137
|
+
export var ConfigurationOverridesFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.applicationConfiguration && {
|
|
138
|
+
applicationConfiguration: obj.applicationConfiguration.map(function (item) { return ConfigurationFilterSensitiveLog(item); }),
|
|
139
|
+
}))); };
|
|
140
|
+
export var CreateManagedEndpointRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.configurationOverrides && {
|
|
141
|
+
configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
|
|
142
|
+
}))); };
|
|
143
|
+
export var EndpointFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.configurationOverrides && {
|
|
144
|
+
configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
|
|
145
|
+
}))); };
|
|
146
|
+
export var JobRunFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.configurationOverrides && {
|
|
147
|
+
configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
|
|
148
|
+
})), (obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }))); };
|
|
149
|
+
export var StartJobRunRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) })), (obj.configurationOverrides && {
|
|
150
|
+
configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
|
|
151
|
+
}))); };
|
|
152
|
+
export var DescribeJobRunResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.jobRun && { jobRun: JobRunFilterSensitiveLog(obj.jobRun) }))); };
|
|
153
|
+
export var DescribeManagedEndpointResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.endpoint && { endpoint: EndpointFilterSensitiveLog(obj.endpoint) }))); };
|
|
154
|
+
export var ListJobRunsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.jobRuns && { jobRuns: obj.jobRuns.map(function (item) { return JobRunFilterSensitiveLog(item); }) }))); };
|
|
155
|
+
export var ListManagedEndpointsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListJobRunsCommand } from "../commands/ListJobRunsCommand";
|
|
2
3
|
import { EMRContainers } from "../EMRContainers";
|
|
3
4
|
import { EMRContainersClient } from "../EMRContainersClient";
|
|
4
|
-
|
|
5
|
-
|
|
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 ListJobRunsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.listJobRuns.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.nextToken = token;
|
|
16
|
-
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof EMRContainers) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof EMRContainersClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected EMRContainers | EMRContainersClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.nextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListJobRuns(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListJobRuns_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 EMRContainers)) 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 EMRContainersClient)) 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 EMRContainers | EMRContainersClient");
|
|
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
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListManagedEndpointsCommand, } from "../commands/ListManagedEndpointsCommand";
|
|
2
3
|
import { EMRContainers } from "../EMRContainers";
|
|
3
4
|
import { EMRContainersClient } from "../EMRContainersClient";
|
|
4
|
-
|
|
5
|
-
|
|
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 ListManagedEndpointsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.listManagedEndpoints.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.nextToken = token;
|
|
16
|
-
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof EMRContainers) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof EMRContainersClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected EMRContainers | EMRContainersClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.nextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListManagedEndpoints(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListManagedEndpoints_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 EMRContainers)) 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 EMRContainersClient)) 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 EMRContainers | EMRContainersClient");
|
|
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
|
+
});
|
|
32
75
|
}
|