@aws-sdk/client-amp 3.1068.0 → 3.1069.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/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +226 -246
- package/dist-cjs/models/AmpServiceException.js +4 -8
- package/dist-cjs/models/errors.js +15 -25
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +371 -249
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveHttpAuthSchemeConfig, defaultAmpHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
13
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
14
|
+
const { CreateAlertManagerDefinition$, CreateAnomalyDetector$, CreateLoggingConfiguration$, CreateQueryLoggingConfiguration$, CreateRuleGroupsNamespace$, CreateScraper$, CreateWorkspace$, DeleteAlertManagerDefinition$, DeleteAnomalyDetector$, DeleteLoggingConfiguration$, DeleteQueryLoggingConfiguration$, DeleteResourcePolicy$, DeleteRuleGroupsNamespace$, DeleteScraper$, DeleteScraperLoggingConfiguration$, DeleteWorkspace$, DescribeAlertManagerDefinition$, DescribeAnomalyDetector$, DescribeLoggingConfiguration$, DescribeQueryLoggingConfiguration$, DescribeResourcePolicy$, DescribeRuleGroupsNamespace$, DescribeScraper$, DescribeScraperLoggingConfiguration$, DescribeWorkspace$, DescribeWorkspaceConfiguration$, GetDefaultScraperConfiguration$, ListAnomalyDetectors$, ListRuleGroupsNamespaces$, ListScrapers$, ListTagsForResource$, ListWorkspaces$, PutAlertManagerDefinition$, PutAnomalyDetector$, PutResourcePolicy$, PutRuleGroupsNamespace$, TagResource$, UntagResource$, UpdateLoggingConfiguration$, UpdateQueryLoggingConfiguration$, UpdateScraper$, UpdateScraperLoggingConfiguration$, UpdateWorkspaceAlias$, UpdateWorkspaceConfiguration$ } = require("./schemas/schemas_0");
|
|
15
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
16
|
+
__exportStar(require("./models/errors"), exports);
|
|
17
|
+
const { AmpServiceException } = require("./models/AmpServiceException");
|
|
18
|
+
exports.AmpServiceException = AmpServiceException;
|
|
16
19
|
|
|
17
20
|
const resolveClientEndpointParameters = (options) => {
|
|
18
21
|
return Object.assign(options, {
|
|
@@ -68,593 +71,593 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
68
71
|
};
|
|
69
72
|
|
|
70
73
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
71
|
-
const extensionConfiguration = Object.assign(
|
|
74
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
72
75
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
73
|
-
return Object.assign(runtimeConfig,
|
|
76
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
74
77
|
};
|
|
75
78
|
|
|
76
|
-
class AmpClient extends
|
|
79
|
+
class AmpClient extends Client {
|
|
77
80
|
config;
|
|
78
81
|
constructor(...[configuration]) {
|
|
79
|
-
const _config_0 =
|
|
82
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
80
83
|
super(_config_0);
|
|
81
84
|
this.initConfig = _config_0;
|
|
82
85
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
83
|
-
const _config_2 =
|
|
84
|
-
const _config_3 =
|
|
85
|
-
const _config_4 =
|
|
86
|
-
const _config_5 =
|
|
87
|
-
const _config_6 =
|
|
88
|
-
const _config_7 =
|
|
86
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
89
92
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
90
93
|
this.config = _config_8;
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
httpAuthSchemeParametersProvider:
|
|
100
|
-
identityProviderConfigProvider: async (config) => new
|
|
94
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: defaultAmpHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
101
104
|
"aws.auth#sigv4": config.credentials,
|
|
102
105
|
}),
|
|
103
106
|
}));
|
|
104
|
-
this.middlewareStack.use(
|
|
107
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
105
108
|
}
|
|
106
109
|
destroy() {
|
|
107
110
|
super.destroy();
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
class CreateAlertManagerDefinitionCommand extends
|
|
114
|
+
class CreateAlertManagerDefinitionCommand extends Command
|
|
112
115
|
.classBuilder()
|
|
113
116
|
.ep(commonParams)
|
|
114
117
|
.m(function (Command, cs, config, o) {
|
|
115
|
-
return [
|
|
118
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
116
119
|
})
|
|
117
120
|
.s("AmazonPrometheusService", "CreateAlertManagerDefinition", {})
|
|
118
121
|
.n("AmpClient", "CreateAlertManagerDefinitionCommand")
|
|
119
|
-
.sc(
|
|
122
|
+
.sc(CreateAlertManagerDefinition$)
|
|
120
123
|
.build() {
|
|
121
124
|
}
|
|
122
125
|
|
|
123
|
-
class CreateAnomalyDetectorCommand extends
|
|
126
|
+
class CreateAnomalyDetectorCommand extends Command
|
|
124
127
|
.classBuilder()
|
|
125
128
|
.ep(commonParams)
|
|
126
129
|
.m(function (Command, cs, config, o) {
|
|
127
|
-
return [
|
|
130
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
128
131
|
})
|
|
129
132
|
.s("AmazonPrometheusService", "CreateAnomalyDetector", {})
|
|
130
133
|
.n("AmpClient", "CreateAnomalyDetectorCommand")
|
|
131
|
-
.sc(
|
|
134
|
+
.sc(CreateAnomalyDetector$)
|
|
132
135
|
.build() {
|
|
133
136
|
}
|
|
134
137
|
|
|
135
|
-
class CreateLoggingConfigurationCommand extends
|
|
138
|
+
class CreateLoggingConfigurationCommand extends Command
|
|
136
139
|
.classBuilder()
|
|
137
140
|
.ep(commonParams)
|
|
138
141
|
.m(function (Command, cs, config, o) {
|
|
139
|
-
return [
|
|
142
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
140
143
|
})
|
|
141
144
|
.s("AmazonPrometheusService", "CreateLoggingConfiguration", {})
|
|
142
145
|
.n("AmpClient", "CreateLoggingConfigurationCommand")
|
|
143
|
-
.sc(
|
|
146
|
+
.sc(CreateLoggingConfiguration$)
|
|
144
147
|
.build() {
|
|
145
148
|
}
|
|
146
149
|
|
|
147
|
-
class CreateQueryLoggingConfigurationCommand extends
|
|
150
|
+
class CreateQueryLoggingConfigurationCommand extends Command
|
|
148
151
|
.classBuilder()
|
|
149
152
|
.ep(commonParams)
|
|
150
153
|
.m(function (Command, cs, config, o) {
|
|
151
|
-
return [
|
|
154
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
152
155
|
})
|
|
153
156
|
.s("AmazonPrometheusService", "CreateQueryLoggingConfiguration", {})
|
|
154
157
|
.n("AmpClient", "CreateQueryLoggingConfigurationCommand")
|
|
155
|
-
.sc(
|
|
158
|
+
.sc(CreateQueryLoggingConfiguration$)
|
|
156
159
|
.build() {
|
|
157
160
|
}
|
|
158
161
|
|
|
159
|
-
class CreateRuleGroupsNamespaceCommand extends
|
|
162
|
+
class CreateRuleGroupsNamespaceCommand extends Command
|
|
160
163
|
.classBuilder()
|
|
161
164
|
.ep(commonParams)
|
|
162
165
|
.m(function (Command, cs, config, o) {
|
|
163
|
-
return [
|
|
166
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
164
167
|
})
|
|
165
168
|
.s("AmazonPrometheusService", "CreateRuleGroupsNamespace", {})
|
|
166
169
|
.n("AmpClient", "CreateRuleGroupsNamespaceCommand")
|
|
167
|
-
.sc(
|
|
170
|
+
.sc(CreateRuleGroupsNamespace$)
|
|
168
171
|
.build() {
|
|
169
172
|
}
|
|
170
173
|
|
|
171
|
-
class CreateScraperCommand extends
|
|
174
|
+
class CreateScraperCommand extends Command
|
|
172
175
|
.classBuilder()
|
|
173
176
|
.ep(commonParams)
|
|
174
177
|
.m(function (Command, cs, config, o) {
|
|
175
|
-
return [
|
|
178
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
176
179
|
})
|
|
177
180
|
.s("AmazonPrometheusService", "CreateScraper", {})
|
|
178
181
|
.n("AmpClient", "CreateScraperCommand")
|
|
179
|
-
.sc(
|
|
182
|
+
.sc(CreateScraper$)
|
|
180
183
|
.build() {
|
|
181
184
|
}
|
|
182
185
|
|
|
183
|
-
class CreateWorkspaceCommand extends
|
|
186
|
+
class CreateWorkspaceCommand extends Command
|
|
184
187
|
.classBuilder()
|
|
185
188
|
.ep(commonParams)
|
|
186
189
|
.m(function (Command, cs, config, o) {
|
|
187
|
-
return [
|
|
190
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
188
191
|
})
|
|
189
192
|
.s("AmazonPrometheusService", "CreateWorkspace", {})
|
|
190
193
|
.n("AmpClient", "CreateWorkspaceCommand")
|
|
191
|
-
.sc(
|
|
194
|
+
.sc(CreateWorkspace$)
|
|
192
195
|
.build() {
|
|
193
196
|
}
|
|
194
197
|
|
|
195
|
-
class DeleteAlertManagerDefinitionCommand extends
|
|
198
|
+
class DeleteAlertManagerDefinitionCommand extends Command
|
|
196
199
|
.classBuilder()
|
|
197
200
|
.ep(commonParams)
|
|
198
201
|
.m(function (Command, cs, config, o) {
|
|
199
|
-
return [
|
|
202
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
200
203
|
})
|
|
201
204
|
.s("AmazonPrometheusService", "DeleteAlertManagerDefinition", {})
|
|
202
205
|
.n("AmpClient", "DeleteAlertManagerDefinitionCommand")
|
|
203
|
-
.sc(
|
|
206
|
+
.sc(DeleteAlertManagerDefinition$)
|
|
204
207
|
.build() {
|
|
205
208
|
}
|
|
206
209
|
|
|
207
|
-
class DeleteAnomalyDetectorCommand extends
|
|
210
|
+
class DeleteAnomalyDetectorCommand extends Command
|
|
208
211
|
.classBuilder()
|
|
209
212
|
.ep(commonParams)
|
|
210
213
|
.m(function (Command, cs, config, o) {
|
|
211
|
-
return [
|
|
214
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
212
215
|
})
|
|
213
216
|
.s("AmazonPrometheusService", "DeleteAnomalyDetector", {})
|
|
214
217
|
.n("AmpClient", "DeleteAnomalyDetectorCommand")
|
|
215
|
-
.sc(
|
|
218
|
+
.sc(DeleteAnomalyDetector$)
|
|
216
219
|
.build() {
|
|
217
220
|
}
|
|
218
221
|
|
|
219
|
-
class DeleteLoggingConfigurationCommand extends
|
|
222
|
+
class DeleteLoggingConfigurationCommand extends Command
|
|
220
223
|
.classBuilder()
|
|
221
224
|
.ep(commonParams)
|
|
222
225
|
.m(function (Command, cs, config, o) {
|
|
223
|
-
return [
|
|
226
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
224
227
|
})
|
|
225
228
|
.s("AmazonPrometheusService", "DeleteLoggingConfiguration", {})
|
|
226
229
|
.n("AmpClient", "DeleteLoggingConfigurationCommand")
|
|
227
|
-
.sc(
|
|
230
|
+
.sc(DeleteLoggingConfiguration$)
|
|
228
231
|
.build() {
|
|
229
232
|
}
|
|
230
233
|
|
|
231
|
-
class DeleteQueryLoggingConfigurationCommand extends
|
|
234
|
+
class DeleteQueryLoggingConfigurationCommand extends Command
|
|
232
235
|
.classBuilder()
|
|
233
236
|
.ep(commonParams)
|
|
234
237
|
.m(function (Command, cs, config, o) {
|
|
235
|
-
return [
|
|
238
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
236
239
|
})
|
|
237
240
|
.s("AmazonPrometheusService", "DeleteQueryLoggingConfiguration", {})
|
|
238
241
|
.n("AmpClient", "DeleteQueryLoggingConfigurationCommand")
|
|
239
|
-
.sc(
|
|
242
|
+
.sc(DeleteQueryLoggingConfiguration$)
|
|
240
243
|
.build() {
|
|
241
244
|
}
|
|
242
245
|
|
|
243
|
-
class DeleteResourcePolicyCommand extends
|
|
246
|
+
class DeleteResourcePolicyCommand extends Command
|
|
244
247
|
.classBuilder()
|
|
245
248
|
.ep(commonParams)
|
|
246
249
|
.m(function (Command, cs, config, o) {
|
|
247
|
-
return [
|
|
250
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
248
251
|
})
|
|
249
252
|
.s("AmazonPrometheusService", "DeleteResourcePolicy", {})
|
|
250
253
|
.n("AmpClient", "DeleteResourcePolicyCommand")
|
|
251
|
-
.sc(
|
|
254
|
+
.sc(DeleteResourcePolicy$)
|
|
252
255
|
.build() {
|
|
253
256
|
}
|
|
254
257
|
|
|
255
|
-
class DeleteRuleGroupsNamespaceCommand extends
|
|
258
|
+
class DeleteRuleGroupsNamespaceCommand extends Command
|
|
256
259
|
.classBuilder()
|
|
257
260
|
.ep(commonParams)
|
|
258
261
|
.m(function (Command, cs, config, o) {
|
|
259
|
-
return [
|
|
262
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
260
263
|
})
|
|
261
264
|
.s("AmazonPrometheusService", "DeleteRuleGroupsNamespace", {})
|
|
262
265
|
.n("AmpClient", "DeleteRuleGroupsNamespaceCommand")
|
|
263
|
-
.sc(
|
|
266
|
+
.sc(DeleteRuleGroupsNamespace$)
|
|
264
267
|
.build() {
|
|
265
268
|
}
|
|
266
269
|
|
|
267
|
-
class DeleteScraperCommand extends
|
|
270
|
+
class DeleteScraperCommand extends Command
|
|
268
271
|
.classBuilder()
|
|
269
272
|
.ep(commonParams)
|
|
270
273
|
.m(function (Command, cs, config, o) {
|
|
271
|
-
return [
|
|
274
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
272
275
|
})
|
|
273
276
|
.s("AmazonPrometheusService", "DeleteScraper", {})
|
|
274
277
|
.n("AmpClient", "DeleteScraperCommand")
|
|
275
|
-
.sc(
|
|
278
|
+
.sc(DeleteScraper$)
|
|
276
279
|
.build() {
|
|
277
280
|
}
|
|
278
281
|
|
|
279
|
-
class DeleteScraperLoggingConfigurationCommand extends
|
|
282
|
+
class DeleteScraperLoggingConfigurationCommand extends Command
|
|
280
283
|
.classBuilder()
|
|
281
284
|
.ep(commonParams)
|
|
282
285
|
.m(function (Command, cs, config, o) {
|
|
283
|
-
return [
|
|
286
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
284
287
|
})
|
|
285
288
|
.s("AmazonPrometheusService", "DeleteScraperLoggingConfiguration", {})
|
|
286
289
|
.n("AmpClient", "DeleteScraperLoggingConfigurationCommand")
|
|
287
|
-
.sc(
|
|
290
|
+
.sc(DeleteScraperLoggingConfiguration$)
|
|
288
291
|
.build() {
|
|
289
292
|
}
|
|
290
293
|
|
|
291
|
-
class DeleteWorkspaceCommand extends
|
|
294
|
+
class DeleteWorkspaceCommand extends Command
|
|
292
295
|
.classBuilder()
|
|
293
296
|
.ep(commonParams)
|
|
294
297
|
.m(function (Command, cs, config, o) {
|
|
295
|
-
return [
|
|
298
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
296
299
|
})
|
|
297
300
|
.s("AmazonPrometheusService", "DeleteWorkspace", {})
|
|
298
301
|
.n("AmpClient", "DeleteWorkspaceCommand")
|
|
299
|
-
.sc(
|
|
302
|
+
.sc(DeleteWorkspace$)
|
|
300
303
|
.build() {
|
|
301
304
|
}
|
|
302
305
|
|
|
303
|
-
class DescribeAlertManagerDefinitionCommand extends
|
|
306
|
+
class DescribeAlertManagerDefinitionCommand extends Command
|
|
304
307
|
.classBuilder()
|
|
305
308
|
.ep(commonParams)
|
|
306
309
|
.m(function (Command, cs, config, o) {
|
|
307
|
-
return [
|
|
310
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
308
311
|
})
|
|
309
312
|
.s("AmazonPrometheusService", "DescribeAlertManagerDefinition", {})
|
|
310
313
|
.n("AmpClient", "DescribeAlertManagerDefinitionCommand")
|
|
311
|
-
.sc(
|
|
314
|
+
.sc(DescribeAlertManagerDefinition$)
|
|
312
315
|
.build() {
|
|
313
316
|
}
|
|
314
317
|
|
|
315
|
-
class DescribeAnomalyDetectorCommand extends
|
|
318
|
+
class DescribeAnomalyDetectorCommand extends Command
|
|
316
319
|
.classBuilder()
|
|
317
320
|
.ep(commonParams)
|
|
318
321
|
.m(function (Command, cs, config, o) {
|
|
319
|
-
return [
|
|
322
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
320
323
|
})
|
|
321
324
|
.s("AmazonPrometheusService", "DescribeAnomalyDetector", {})
|
|
322
325
|
.n("AmpClient", "DescribeAnomalyDetectorCommand")
|
|
323
|
-
.sc(
|
|
326
|
+
.sc(DescribeAnomalyDetector$)
|
|
324
327
|
.build() {
|
|
325
328
|
}
|
|
326
329
|
|
|
327
|
-
class DescribeLoggingConfigurationCommand extends
|
|
330
|
+
class DescribeLoggingConfigurationCommand extends Command
|
|
328
331
|
.classBuilder()
|
|
329
332
|
.ep(commonParams)
|
|
330
333
|
.m(function (Command, cs, config, o) {
|
|
331
|
-
return [
|
|
334
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
332
335
|
})
|
|
333
336
|
.s("AmazonPrometheusService", "DescribeLoggingConfiguration", {})
|
|
334
337
|
.n("AmpClient", "DescribeLoggingConfigurationCommand")
|
|
335
|
-
.sc(
|
|
338
|
+
.sc(DescribeLoggingConfiguration$)
|
|
336
339
|
.build() {
|
|
337
340
|
}
|
|
338
341
|
|
|
339
|
-
class DescribeQueryLoggingConfigurationCommand extends
|
|
342
|
+
class DescribeQueryLoggingConfigurationCommand extends Command
|
|
340
343
|
.classBuilder()
|
|
341
344
|
.ep(commonParams)
|
|
342
345
|
.m(function (Command, cs, config, o) {
|
|
343
|
-
return [
|
|
346
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
344
347
|
})
|
|
345
348
|
.s("AmazonPrometheusService", "DescribeQueryLoggingConfiguration", {})
|
|
346
349
|
.n("AmpClient", "DescribeQueryLoggingConfigurationCommand")
|
|
347
|
-
.sc(
|
|
350
|
+
.sc(DescribeQueryLoggingConfiguration$)
|
|
348
351
|
.build() {
|
|
349
352
|
}
|
|
350
353
|
|
|
351
|
-
class DescribeResourcePolicyCommand extends
|
|
354
|
+
class DescribeResourcePolicyCommand extends Command
|
|
352
355
|
.classBuilder()
|
|
353
356
|
.ep(commonParams)
|
|
354
357
|
.m(function (Command, cs, config, o) {
|
|
355
|
-
return [
|
|
358
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
356
359
|
})
|
|
357
360
|
.s("AmazonPrometheusService", "DescribeResourcePolicy", {})
|
|
358
361
|
.n("AmpClient", "DescribeResourcePolicyCommand")
|
|
359
|
-
.sc(
|
|
362
|
+
.sc(DescribeResourcePolicy$)
|
|
360
363
|
.build() {
|
|
361
364
|
}
|
|
362
365
|
|
|
363
|
-
class DescribeRuleGroupsNamespaceCommand extends
|
|
366
|
+
class DescribeRuleGroupsNamespaceCommand extends Command
|
|
364
367
|
.classBuilder()
|
|
365
368
|
.ep(commonParams)
|
|
366
369
|
.m(function (Command, cs, config, o) {
|
|
367
|
-
return [
|
|
370
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
368
371
|
})
|
|
369
372
|
.s("AmazonPrometheusService", "DescribeRuleGroupsNamespace", {})
|
|
370
373
|
.n("AmpClient", "DescribeRuleGroupsNamespaceCommand")
|
|
371
|
-
.sc(
|
|
374
|
+
.sc(DescribeRuleGroupsNamespace$)
|
|
372
375
|
.build() {
|
|
373
376
|
}
|
|
374
377
|
|
|
375
|
-
class DescribeScraperCommand extends
|
|
378
|
+
class DescribeScraperCommand extends Command
|
|
376
379
|
.classBuilder()
|
|
377
380
|
.ep(commonParams)
|
|
378
381
|
.m(function (Command, cs, config, o) {
|
|
379
|
-
return [
|
|
382
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
380
383
|
})
|
|
381
384
|
.s("AmazonPrometheusService", "DescribeScraper", {})
|
|
382
385
|
.n("AmpClient", "DescribeScraperCommand")
|
|
383
|
-
.sc(
|
|
386
|
+
.sc(DescribeScraper$)
|
|
384
387
|
.build() {
|
|
385
388
|
}
|
|
386
389
|
|
|
387
|
-
class DescribeScraperLoggingConfigurationCommand extends
|
|
390
|
+
class DescribeScraperLoggingConfigurationCommand extends Command
|
|
388
391
|
.classBuilder()
|
|
389
392
|
.ep(commonParams)
|
|
390
393
|
.m(function (Command, cs, config, o) {
|
|
391
|
-
return [
|
|
394
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
392
395
|
})
|
|
393
396
|
.s("AmazonPrometheusService", "DescribeScraperLoggingConfiguration", {})
|
|
394
397
|
.n("AmpClient", "DescribeScraperLoggingConfigurationCommand")
|
|
395
|
-
.sc(
|
|
398
|
+
.sc(DescribeScraperLoggingConfiguration$)
|
|
396
399
|
.build() {
|
|
397
400
|
}
|
|
398
401
|
|
|
399
|
-
class DescribeWorkspaceCommand extends
|
|
402
|
+
class DescribeWorkspaceCommand extends Command
|
|
400
403
|
.classBuilder()
|
|
401
404
|
.ep(commonParams)
|
|
402
405
|
.m(function (Command, cs, config, o) {
|
|
403
|
-
return [
|
|
406
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
404
407
|
})
|
|
405
408
|
.s("AmazonPrometheusService", "DescribeWorkspace", {})
|
|
406
409
|
.n("AmpClient", "DescribeWorkspaceCommand")
|
|
407
|
-
.sc(
|
|
410
|
+
.sc(DescribeWorkspace$)
|
|
408
411
|
.build() {
|
|
409
412
|
}
|
|
410
413
|
|
|
411
|
-
class DescribeWorkspaceConfigurationCommand extends
|
|
414
|
+
class DescribeWorkspaceConfigurationCommand extends Command
|
|
412
415
|
.classBuilder()
|
|
413
416
|
.ep(commonParams)
|
|
414
417
|
.m(function (Command, cs, config, o) {
|
|
415
|
-
return [
|
|
418
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
416
419
|
})
|
|
417
420
|
.s("AmazonPrometheusService", "DescribeWorkspaceConfiguration", {})
|
|
418
421
|
.n("AmpClient", "DescribeWorkspaceConfigurationCommand")
|
|
419
|
-
.sc(
|
|
422
|
+
.sc(DescribeWorkspaceConfiguration$)
|
|
420
423
|
.build() {
|
|
421
424
|
}
|
|
422
425
|
|
|
423
|
-
class GetDefaultScraperConfigurationCommand extends
|
|
426
|
+
class GetDefaultScraperConfigurationCommand extends Command
|
|
424
427
|
.classBuilder()
|
|
425
428
|
.ep(commonParams)
|
|
426
429
|
.m(function (Command, cs, config, o) {
|
|
427
|
-
return [
|
|
430
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
428
431
|
})
|
|
429
432
|
.s("AmazonPrometheusService", "GetDefaultScraperConfiguration", {})
|
|
430
433
|
.n("AmpClient", "GetDefaultScraperConfigurationCommand")
|
|
431
|
-
.sc(
|
|
434
|
+
.sc(GetDefaultScraperConfiguration$)
|
|
432
435
|
.build() {
|
|
433
436
|
}
|
|
434
437
|
|
|
435
|
-
class ListAnomalyDetectorsCommand extends
|
|
438
|
+
class ListAnomalyDetectorsCommand extends Command
|
|
436
439
|
.classBuilder()
|
|
437
440
|
.ep(commonParams)
|
|
438
441
|
.m(function (Command, cs, config, o) {
|
|
439
|
-
return [
|
|
442
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
440
443
|
})
|
|
441
444
|
.s("AmazonPrometheusService", "ListAnomalyDetectors", {})
|
|
442
445
|
.n("AmpClient", "ListAnomalyDetectorsCommand")
|
|
443
|
-
.sc(
|
|
446
|
+
.sc(ListAnomalyDetectors$)
|
|
444
447
|
.build() {
|
|
445
448
|
}
|
|
446
449
|
|
|
447
|
-
class ListRuleGroupsNamespacesCommand extends
|
|
450
|
+
class ListRuleGroupsNamespacesCommand extends Command
|
|
448
451
|
.classBuilder()
|
|
449
452
|
.ep(commonParams)
|
|
450
453
|
.m(function (Command, cs, config, o) {
|
|
451
|
-
return [
|
|
454
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
452
455
|
})
|
|
453
456
|
.s("AmazonPrometheusService", "ListRuleGroupsNamespaces", {})
|
|
454
457
|
.n("AmpClient", "ListRuleGroupsNamespacesCommand")
|
|
455
|
-
.sc(
|
|
458
|
+
.sc(ListRuleGroupsNamespaces$)
|
|
456
459
|
.build() {
|
|
457
460
|
}
|
|
458
461
|
|
|
459
|
-
class ListScrapersCommand extends
|
|
462
|
+
class ListScrapersCommand extends Command
|
|
460
463
|
.classBuilder()
|
|
461
464
|
.ep(commonParams)
|
|
462
465
|
.m(function (Command, cs, config, o) {
|
|
463
|
-
return [
|
|
466
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
464
467
|
})
|
|
465
468
|
.s("AmazonPrometheusService", "ListScrapers", {})
|
|
466
469
|
.n("AmpClient", "ListScrapersCommand")
|
|
467
|
-
.sc(
|
|
470
|
+
.sc(ListScrapers$)
|
|
468
471
|
.build() {
|
|
469
472
|
}
|
|
470
473
|
|
|
471
|
-
class ListTagsForResourceCommand extends
|
|
474
|
+
class ListTagsForResourceCommand extends Command
|
|
472
475
|
.classBuilder()
|
|
473
476
|
.ep(commonParams)
|
|
474
477
|
.m(function (Command, cs, config, o) {
|
|
475
|
-
return [
|
|
478
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
476
479
|
})
|
|
477
480
|
.s("AmazonPrometheusService", "ListTagsForResource", {})
|
|
478
481
|
.n("AmpClient", "ListTagsForResourceCommand")
|
|
479
|
-
.sc(
|
|
482
|
+
.sc(ListTagsForResource$)
|
|
480
483
|
.build() {
|
|
481
484
|
}
|
|
482
485
|
|
|
483
|
-
class ListWorkspacesCommand extends
|
|
486
|
+
class ListWorkspacesCommand extends Command
|
|
484
487
|
.classBuilder()
|
|
485
488
|
.ep(commonParams)
|
|
486
489
|
.m(function (Command, cs, config, o) {
|
|
487
|
-
return [
|
|
490
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
488
491
|
})
|
|
489
492
|
.s("AmazonPrometheusService", "ListWorkspaces", {})
|
|
490
493
|
.n("AmpClient", "ListWorkspacesCommand")
|
|
491
|
-
.sc(
|
|
494
|
+
.sc(ListWorkspaces$)
|
|
492
495
|
.build() {
|
|
493
496
|
}
|
|
494
497
|
|
|
495
|
-
class PutAlertManagerDefinitionCommand extends
|
|
498
|
+
class PutAlertManagerDefinitionCommand extends Command
|
|
496
499
|
.classBuilder()
|
|
497
500
|
.ep(commonParams)
|
|
498
501
|
.m(function (Command, cs, config, o) {
|
|
499
|
-
return [
|
|
502
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
500
503
|
})
|
|
501
504
|
.s("AmazonPrometheusService", "PutAlertManagerDefinition", {})
|
|
502
505
|
.n("AmpClient", "PutAlertManagerDefinitionCommand")
|
|
503
|
-
.sc(
|
|
506
|
+
.sc(PutAlertManagerDefinition$)
|
|
504
507
|
.build() {
|
|
505
508
|
}
|
|
506
509
|
|
|
507
|
-
class PutAnomalyDetectorCommand extends
|
|
510
|
+
class PutAnomalyDetectorCommand extends Command
|
|
508
511
|
.classBuilder()
|
|
509
512
|
.ep(commonParams)
|
|
510
513
|
.m(function (Command, cs, config, o) {
|
|
511
|
-
return [
|
|
514
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
512
515
|
})
|
|
513
516
|
.s("AmazonPrometheusService", "PutAnomalyDetector", {})
|
|
514
517
|
.n("AmpClient", "PutAnomalyDetectorCommand")
|
|
515
|
-
.sc(
|
|
518
|
+
.sc(PutAnomalyDetector$)
|
|
516
519
|
.build() {
|
|
517
520
|
}
|
|
518
521
|
|
|
519
|
-
class PutResourcePolicyCommand extends
|
|
522
|
+
class PutResourcePolicyCommand extends Command
|
|
520
523
|
.classBuilder()
|
|
521
524
|
.ep(commonParams)
|
|
522
525
|
.m(function (Command, cs, config, o) {
|
|
523
|
-
return [
|
|
526
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
524
527
|
})
|
|
525
528
|
.s("AmazonPrometheusService", "PutResourcePolicy", {})
|
|
526
529
|
.n("AmpClient", "PutResourcePolicyCommand")
|
|
527
|
-
.sc(
|
|
530
|
+
.sc(PutResourcePolicy$)
|
|
528
531
|
.build() {
|
|
529
532
|
}
|
|
530
533
|
|
|
531
|
-
class PutRuleGroupsNamespaceCommand extends
|
|
534
|
+
class PutRuleGroupsNamespaceCommand extends Command
|
|
532
535
|
.classBuilder()
|
|
533
536
|
.ep(commonParams)
|
|
534
537
|
.m(function (Command, cs, config, o) {
|
|
535
|
-
return [
|
|
538
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
536
539
|
})
|
|
537
540
|
.s("AmazonPrometheusService", "PutRuleGroupsNamespace", {})
|
|
538
541
|
.n("AmpClient", "PutRuleGroupsNamespaceCommand")
|
|
539
|
-
.sc(
|
|
542
|
+
.sc(PutRuleGroupsNamespace$)
|
|
540
543
|
.build() {
|
|
541
544
|
}
|
|
542
545
|
|
|
543
|
-
class TagResourceCommand extends
|
|
546
|
+
class TagResourceCommand extends Command
|
|
544
547
|
.classBuilder()
|
|
545
548
|
.ep(commonParams)
|
|
546
549
|
.m(function (Command, cs, config, o) {
|
|
547
|
-
return [
|
|
550
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
548
551
|
})
|
|
549
552
|
.s("AmazonPrometheusService", "TagResource", {})
|
|
550
553
|
.n("AmpClient", "TagResourceCommand")
|
|
551
|
-
.sc(
|
|
554
|
+
.sc(TagResource$)
|
|
552
555
|
.build() {
|
|
553
556
|
}
|
|
554
557
|
|
|
555
|
-
class UntagResourceCommand extends
|
|
558
|
+
class UntagResourceCommand extends Command
|
|
556
559
|
.classBuilder()
|
|
557
560
|
.ep(commonParams)
|
|
558
561
|
.m(function (Command, cs, config, o) {
|
|
559
|
-
return [
|
|
562
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
560
563
|
})
|
|
561
564
|
.s("AmazonPrometheusService", "UntagResource", {})
|
|
562
565
|
.n("AmpClient", "UntagResourceCommand")
|
|
563
|
-
.sc(
|
|
566
|
+
.sc(UntagResource$)
|
|
564
567
|
.build() {
|
|
565
568
|
}
|
|
566
569
|
|
|
567
|
-
class UpdateLoggingConfigurationCommand extends
|
|
570
|
+
class UpdateLoggingConfigurationCommand extends Command
|
|
568
571
|
.classBuilder()
|
|
569
572
|
.ep(commonParams)
|
|
570
573
|
.m(function (Command, cs, config, o) {
|
|
571
|
-
return [
|
|
574
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
572
575
|
})
|
|
573
576
|
.s("AmazonPrometheusService", "UpdateLoggingConfiguration", {})
|
|
574
577
|
.n("AmpClient", "UpdateLoggingConfigurationCommand")
|
|
575
|
-
.sc(
|
|
578
|
+
.sc(UpdateLoggingConfiguration$)
|
|
576
579
|
.build() {
|
|
577
580
|
}
|
|
578
581
|
|
|
579
|
-
class UpdateQueryLoggingConfigurationCommand extends
|
|
582
|
+
class UpdateQueryLoggingConfigurationCommand extends Command
|
|
580
583
|
.classBuilder()
|
|
581
584
|
.ep(commonParams)
|
|
582
585
|
.m(function (Command, cs, config, o) {
|
|
583
|
-
return [
|
|
586
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
584
587
|
})
|
|
585
588
|
.s("AmazonPrometheusService", "UpdateQueryLoggingConfiguration", {})
|
|
586
589
|
.n("AmpClient", "UpdateQueryLoggingConfigurationCommand")
|
|
587
|
-
.sc(
|
|
590
|
+
.sc(UpdateQueryLoggingConfiguration$)
|
|
588
591
|
.build() {
|
|
589
592
|
}
|
|
590
593
|
|
|
591
|
-
class UpdateScraperCommand extends
|
|
594
|
+
class UpdateScraperCommand extends Command
|
|
592
595
|
.classBuilder()
|
|
593
596
|
.ep(commonParams)
|
|
594
597
|
.m(function (Command, cs, config, o) {
|
|
595
|
-
return [
|
|
598
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
596
599
|
})
|
|
597
600
|
.s("AmazonPrometheusService", "UpdateScraper", {})
|
|
598
601
|
.n("AmpClient", "UpdateScraperCommand")
|
|
599
|
-
.sc(
|
|
602
|
+
.sc(UpdateScraper$)
|
|
600
603
|
.build() {
|
|
601
604
|
}
|
|
602
605
|
|
|
603
|
-
class UpdateScraperLoggingConfigurationCommand extends
|
|
606
|
+
class UpdateScraperLoggingConfigurationCommand extends Command
|
|
604
607
|
.classBuilder()
|
|
605
608
|
.ep(commonParams)
|
|
606
609
|
.m(function (Command, cs, config, o) {
|
|
607
|
-
return [
|
|
610
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
608
611
|
})
|
|
609
612
|
.s("AmazonPrometheusService", "UpdateScraperLoggingConfiguration", {})
|
|
610
613
|
.n("AmpClient", "UpdateScraperLoggingConfigurationCommand")
|
|
611
|
-
.sc(
|
|
614
|
+
.sc(UpdateScraperLoggingConfiguration$)
|
|
612
615
|
.build() {
|
|
613
616
|
}
|
|
614
617
|
|
|
615
|
-
class UpdateWorkspaceAliasCommand extends
|
|
618
|
+
class UpdateWorkspaceAliasCommand extends Command
|
|
616
619
|
.classBuilder()
|
|
617
620
|
.ep(commonParams)
|
|
618
621
|
.m(function (Command, cs, config, o) {
|
|
619
|
-
return [
|
|
622
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
620
623
|
})
|
|
621
624
|
.s("AmazonPrometheusService", "UpdateWorkspaceAlias", {})
|
|
622
625
|
.n("AmpClient", "UpdateWorkspaceAliasCommand")
|
|
623
|
-
.sc(
|
|
626
|
+
.sc(UpdateWorkspaceAlias$)
|
|
624
627
|
.build() {
|
|
625
628
|
}
|
|
626
629
|
|
|
627
|
-
class UpdateWorkspaceConfigurationCommand extends
|
|
630
|
+
class UpdateWorkspaceConfigurationCommand extends Command
|
|
628
631
|
.classBuilder()
|
|
629
632
|
.ep(commonParams)
|
|
630
633
|
.m(function (Command, cs, config, o) {
|
|
631
|
-
return [
|
|
634
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
632
635
|
})
|
|
633
636
|
.s("AmazonPrometheusService", "UpdateWorkspaceConfiguration", {})
|
|
634
637
|
.n("AmpClient", "UpdateWorkspaceConfigurationCommand")
|
|
635
|
-
.sc(
|
|
638
|
+
.sc(UpdateWorkspaceConfiguration$)
|
|
636
639
|
.build() {
|
|
637
640
|
}
|
|
638
641
|
|
|
639
|
-
const paginateListAnomalyDetectors =
|
|
642
|
+
const paginateListAnomalyDetectors = createPaginator(AmpClient, ListAnomalyDetectorsCommand, "nextToken", "nextToken", "maxResults");
|
|
640
643
|
|
|
641
|
-
const paginateListRuleGroupsNamespaces =
|
|
644
|
+
const paginateListRuleGroupsNamespaces = createPaginator(AmpClient, ListRuleGroupsNamespacesCommand, "nextToken", "nextToken", "maxResults");
|
|
642
645
|
|
|
643
|
-
const paginateListScrapers =
|
|
646
|
+
const paginateListScrapers = createPaginator(AmpClient, ListScrapersCommand, "nextToken", "nextToken", "maxResults");
|
|
644
647
|
|
|
645
|
-
const paginateListWorkspaces =
|
|
648
|
+
const paginateListWorkspaces = createPaginator(AmpClient, ListWorkspacesCommand, "nextToken", "nextToken", "maxResults");
|
|
646
649
|
|
|
647
|
-
const checkState$5 = async (client
|
|
650
|
+
const checkState$5 = async (client, input) => {
|
|
648
651
|
let reason;
|
|
649
652
|
try {
|
|
650
|
-
let result = await client
|
|
653
|
+
let result = await client.send(new DescribeAnomalyDetectorCommand(input));
|
|
651
654
|
reason = result;
|
|
652
655
|
try {
|
|
653
656
|
const returnComparator = () => {
|
|
654
657
|
return result.anomalyDetector.status.statusCode;
|
|
655
658
|
};
|
|
656
659
|
if (returnComparator() === "ACTIVE") {
|
|
657
|
-
return { state:
|
|
660
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
658
661
|
}
|
|
659
662
|
}
|
|
660
663
|
catch (e) { }
|
|
@@ -663,7 +666,7 @@ const checkState$5 = async (client$1, input) => {
|
|
|
663
666
|
return result.anomalyDetector.status.statusCode;
|
|
664
667
|
};
|
|
665
668
|
if (returnComparator() === "CREATING") {
|
|
666
|
-
return { state:
|
|
669
|
+
return { state: WaiterState.RETRY, reason };
|
|
667
670
|
}
|
|
668
671
|
}
|
|
669
672
|
catch (e) { }
|
|
@@ -672,7 +675,7 @@ const checkState$5 = async (client$1, input) => {
|
|
|
672
675
|
return result.anomalyDetector.status.statusCode;
|
|
673
676
|
};
|
|
674
677
|
if (returnComparator() === "UPDATING") {
|
|
675
|
-
return { state:
|
|
678
|
+
return { state: WaiterState.RETRY, reason };
|
|
676
679
|
}
|
|
677
680
|
}
|
|
678
681
|
catch (e) { }
|
|
@@ -680,29 +683,29 @@ const checkState$5 = async (client$1, input) => {
|
|
|
680
683
|
catch (exception) {
|
|
681
684
|
reason = exception;
|
|
682
685
|
}
|
|
683
|
-
return { state:
|
|
686
|
+
return { state: WaiterState.RETRY, reason };
|
|
684
687
|
};
|
|
685
688
|
const waitForAnomalyDetectorActive = async (params, input) => {
|
|
686
689
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
687
|
-
return
|
|
690
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
688
691
|
};
|
|
689
692
|
const waitUntilAnomalyDetectorActive = async (params, input) => {
|
|
690
693
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
691
|
-
const result = await
|
|
692
|
-
return
|
|
694
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
695
|
+
return checkExceptions(result);
|
|
693
696
|
};
|
|
694
697
|
|
|
695
|
-
const checkState$4 = async (client
|
|
698
|
+
const checkState$4 = async (client, input) => {
|
|
696
699
|
let reason;
|
|
697
700
|
try {
|
|
698
|
-
let result = await client
|
|
701
|
+
let result = await client.send(new DescribeAnomalyDetectorCommand(input));
|
|
699
702
|
reason = result;
|
|
700
703
|
try {
|
|
701
704
|
const returnComparator = () => {
|
|
702
705
|
return result.anomalyDetector.status.statusCode;
|
|
703
706
|
};
|
|
704
707
|
if (returnComparator() === "DELETING") {
|
|
705
|
-
return { state:
|
|
708
|
+
return { state: WaiterState.RETRY, reason };
|
|
706
709
|
}
|
|
707
710
|
}
|
|
708
711
|
catch (e) { }
|
|
@@ -710,32 +713,32 @@ const checkState$4 = async (client$1, input) => {
|
|
|
710
713
|
catch (exception) {
|
|
711
714
|
reason = exception;
|
|
712
715
|
if (exception.name === "ResourceNotFoundException") {
|
|
713
|
-
return { state:
|
|
716
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
714
717
|
}
|
|
715
718
|
}
|
|
716
|
-
return { state:
|
|
719
|
+
return { state: WaiterState.RETRY, reason };
|
|
717
720
|
};
|
|
718
721
|
const waitForAnomalyDetectorDeleted = async (params, input) => {
|
|
719
722
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
720
|
-
return
|
|
723
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
721
724
|
};
|
|
722
725
|
const waitUntilAnomalyDetectorDeleted = async (params, input) => {
|
|
723
726
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
724
|
-
const result = await
|
|
725
|
-
return
|
|
727
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
728
|
+
return checkExceptions(result);
|
|
726
729
|
};
|
|
727
730
|
|
|
728
|
-
const checkState$3 = async (client
|
|
731
|
+
const checkState$3 = async (client, input) => {
|
|
729
732
|
let reason;
|
|
730
733
|
try {
|
|
731
|
-
let result = await client
|
|
734
|
+
let result = await client.send(new DescribeScraperCommand(input));
|
|
732
735
|
reason = result;
|
|
733
736
|
try {
|
|
734
737
|
const returnComparator = () => {
|
|
735
738
|
return result.scraper.status.statusCode;
|
|
736
739
|
};
|
|
737
740
|
if (returnComparator() === "ACTIVE") {
|
|
738
|
-
return { state:
|
|
741
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
739
742
|
}
|
|
740
743
|
}
|
|
741
744
|
catch (e) { }
|
|
@@ -744,7 +747,7 @@ const checkState$3 = async (client$1, input) => {
|
|
|
744
747
|
return result.scraper.status.statusCode;
|
|
745
748
|
};
|
|
746
749
|
if (returnComparator() === "CREATION_FAILED") {
|
|
747
|
-
return { state:
|
|
750
|
+
return { state: WaiterState.FAILURE, reason };
|
|
748
751
|
}
|
|
749
752
|
}
|
|
750
753
|
catch (e) { }
|
|
@@ -752,29 +755,29 @@ const checkState$3 = async (client$1, input) => {
|
|
|
752
755
|
catch (exception) {
|
|
753
756
|
reason = exception;
|
|
754
757
|
}
|
|
755
|
-
return { state:
|
|
758
|
+
return { state: WaiterState.RETRY, reason };
|
|
756
759
|
};
|
|
757
760
|
const waitForScraperActive = async (params, input) => {
|
|
758
761
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
759
|
-
return
|
|
762
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
760
763
|
};
|
|
761
764
|
const waitUntilScraperActive = async (params, input) => {
|
|
762
765
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
763
|
-
const result = await
|
|
764
|
-
return
|
|
766
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
767
|
+
return checkExceptions(result);
|
|
765
768
|
};
|
|
766
769
|
|
|
767
|
-
const checkState$2 = async (client
|
|
770
|
+
const checkState$2 = async (client, input) => {
|
|
768
771
|
let reason;
|
|
769
772
|
try {
|
|
770
|
-
let result = await client
|
|
773
|
+
let result = await client.send(new DescribeScraperCommand(input));
|
|
771
774
|
reason = result;
|
|
772
775
|
try {
|
|
773
776
|
const returnComparator = () => {
|
|
774
777
|
return result.scraper.status.statusCode;
|
|
775
778
|
};
|
|
776
779
|
if (returnComparator() === "DELETION_FAILED") {
|
|
777
|
-
return { state:
|
|
780
|
+
return { state: WaiterState.FAILURE, reason };
|
|
778
781
|
}
|
|
779
782
|
}
|
|
780
783
|
catch (e) { }
|
|
@@ -782,32 +785,32 @@ const checkState$2 = async (client$1, input) => {
|
|
|
782
785
|
catch (exception) {
|
|
783
786
|
reason = exception;
|
|
784
787
|
if (exception.name === "ResourceNotFoundException") {
|
|
785
|
-
return { state:
|
|
788
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
786
789
|
}
|
|
787
790
|
}
|
|
788
|
-
return { state:
|
|
791
|
+
return { state: WaiterState.RETRY, reason };
|
|
789
792
|
};
|
|
790
793
|
const waitForScraperDeleted = async (params, input) => {
|
|
791
794
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
792
|
-
return
|
|
795
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
793
796
|
};
|
|
794
797
|
const waitUntilScraperDeleted = async (params, input) => {
|
|
795
798
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
796
|
-
const result = await
|
|
797
|
-
return
|
|
799
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
800
|
+
return checkExceptions(result);
|
|
798
801
|
};
|
|
799
802
|
|
|
800
|
-
const checkState$1 = async (client
|
|
803
|
+
const checkState$1 = async (client, input) => {
|
|
801
804
|
let reason;
|
|
802
805
|
try {
|
|
803
|
-
let result = await client
|
|
806
|
+
let result = await client.send(new DescribeWorkspaceCommand(input));
|
|
804
807
|
reason = result;
|
|
805
808
|
try {
|
|
806
809
|
const returnComparator = () => {
|
|
807
810
|
return result.workspace.status.statusCode;
|
|
808
811
|
};
|
|
809
812
|
if (returnComparator() === "ACTIVE") {
|
|
810
|
-
return { state:
|
|
813
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
811
814
|
}
|
|
812
815
|
}
|
|
813
816
|
catch (e) { }
|
|
@@ -816,7 +819,7 @@ const checkState$1 = async (client$1, input) => {
|
|
|
816
819
|
return result.workspace.status.statusCode;
|
|
817
820
|
};
|
|
818
821
|
if (returnComparator() === "UPDATING") {
|
|
819
|
-
return { state:
|
|
822
|
+
return { state: WaiterState.RETRY, reason };
|
|
820
823
|
}
|
|
821
824
|
}
|
|
822
825
|
catch (e) { }
|
|
@@ -825,7 +828,7 @@ const checkState$1 = async (client$1, input) => {
|
|
|
825
828
|
return result.workspace.status.statusCode;
|
|
826
829
|
};
|
|
827
830
|
if (returnComparator() === "CREATING") {
|
|
828
|
-
return { state:
|
|
831
|
+
return { state: WaiterState.RETRY, reason };
|
|
829
832
|
}
|
|
830
833
|
}
|
|
831
834
|
catch (e) { }
|
|
@@ -833,29 +836,29 @@ const checkState$1 = async (client$1, input) => {
|
|
|
833
836
|
catch (exception) {
|
|
834
837
|
reason = exception;
|
|
835
838
|
}
|
|
836
|
-
return { state:
|
|
839
|
+
return { state: WaiterState.RETRY, reason };
|
|
837
840
|
};
|
|
838
841
|
const waitForWorkspaceActive = async (params, input) => {
|
|
839
842
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
840
|
-
return
|
|
843
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
841
844
|
};
|
|
842
845
|
const waitUntilWorkspaceActive = async (params, input) => {
|
|
843
846
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
844
|
-
const result = await
|
|
845
|
-
return
|
|
847
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
848
|
+
return checkExceptions(result);
|
|
846
849
|
};
|
|
847
850
|
|
|
848
|
-
const checkState = async (client
|
|
851
|
+
const checkState = async (client, input) => {
|
|
849
852
|
let reason;
|
|
850
853
|
try {
|
|
851
|
-
let result = await client
|
|
854
|
+
let result = await client.send(new DescribeWorkspaceCommand(input));
|
|
852
855
|
reason = result;
|
|
853
856
|
try {
|
|
854
857
|
const returnComparator = () => {
|
|
855
858
|
return result.workspace.status.statusCode;
|
|
856
859
|
};
|
|
857
860
|
if (returnComparator() === "DELETING") {
|
|
858
|
-
return { state:
|
|
861
|
+
return { state: WaiterState.RETRY, reason };
|
|
859
862
|
}
|
|
860
863
|
}
|
|
861
864
|
catch (e) { }
|
|
@@ -863,19 +866,19 @@ const checkState = async (client$1, input) => {
|
|
|
863
866
|
catch (exception) {
|
|
864
867
|
reason = exception;
|
|
865
868
|
if (exception.name === "ResourceNotFoundException") {
|
|
866
|
-
return { state:
|
|
869
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
867
870
|
}
|
|
868
871
|
}
|
|
869
|
-
return { state:
|
|
872
|
+
return { state: WaiterState.RETRY, reason };
|
|
870
873
|
};
|
|
871
874
|
const waitForWorkspaceDeleted = async (params, input) => {
|
|
872
875
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
873
|
-
return
|
|
876
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
874
877
|
};
|
|
875
878
|
const waitUntilWorkspaceDeleted = async (params, input) => {
|
|
876
879
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
877
|
-
const result = await
|
|
878
|
-
return
|
|
880
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
881
|
+
return checkExceptions(result);
|
|
879
882
|
};
|
|
880
883
|
|
|
881
884
|
const commands = {
|
|
@@ -940,7 +943,7 @@ const waiters = {
|
|
|
940
943
|
};
|
|
941
944
|
class Amp extends AmpClient {
|
|
942
945
|
}
|
|
943
|
-
|
|
946
|
+
createAggregatedClient(commands, Amp, { paginators, waiters });
|
|
944
947
|
|
|
945
948
|
const AlertManagerDefinitionStatusCode = {
|
|
946
949
|
ACTIVE: "ACTIVE",
|
|
@@ -1030,9 +1033,6 @@ const WorkspacePolicyStatusCode = {
|
|
|
1030
1033
|
UPDATING: "UPDATING",
|
|
1031
1034
|
};
|
|
1032
1035
|
|
|
1033
|
-
exports.$Command = client.Command;
|
|
1034
|
-
exports.__Client = client.Client;
|
|
1035
|
-
exports.AmpServiceException = AmpServiceException.AmpServiceException;
|
|
1036
1036
|
exports.AlertManagerDefinitionStatusCode = AlertManagerDefinitionStatusCode;
|
|
1037
1037
|
exports.Amp = Amp;
|
|
1038
1038
|
exports.AmpClient = AmpClient;
|
|
@@ -1107,23 +1107,3 @@ exports.waitUntilScraperActive = waitUntilScraperActive;
|
|
|
1107
1107
|
exports.waitUntilScraperDeleted = waitUntilScraperDeleted;
|
|
1108
1108
|
exports.waitUntilWorkspaceActive = waitUntilWorkspaceActive;
|
|
1109
1109
|
exports.waitUntilWorkspaceDeleted = waitUntilWorkspaceDeleted;
|
|
1110
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
1111
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
1112
|
-
Object.defineProperty(exports, '__proto__', {
|
|
1113
|
-
enumerable: true,
|
|
1114
|
-
value: schemas_0['__proto__']
|
|
1115
|
-
});
|
|
1116
|
-
|
|
1117
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
1118
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
1119
|
-
});
|
|
1120
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
1121
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
1122
|
-
Object.defineProperty(exports, '__proto__', {
|
|
1123
|
-
enumerable: true,
|
|
1124
|
-
value: errors['__proto__']
|
|
1125
|
-
});
|
|
1126
|
-
|
|
1127
|
-
Object.keys(errors).forEach(function (k) {
|
|
1128
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
1129
|
-
});
|