@aws-sdk/client-amp 3.454.0 → 3.458.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/README.md +68 -28
- package/dist-cjs/Amp.js +10 -0
- package/dist-cjs/commands/CreateScraperCommand.js +51 -0
- package/dist-cjs/commands/DeleteScraperCommand.js +51 -0
- package/dist-cjs/commands/DescribeScraperCommand.js +51 -0
- package/dist-cjs/commands/GetDefaultScraperConfigurationCommand.js +51 -0
- package/dist-cjs/commands/ListScrapersCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +32 -1
- package/dist-cjs/pagination/ListScrapersPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +396 -1
- package/dist-cjs/waiters/index.js +2 -0
- package/dist-cjs/waiters/waitForScraperActive.js +45 -0
- package/dist-cjs/waiters/waitForScraperDeleted.js +39 -0
- package/dist-es/Amp.js +10 -0
- package/dist-es/commands/CreateScraperCommand.js +47 -0
- package/dist-es/commands/DeleteScraperCommand.js +47 -0
- package/dist-es/commands/DescribeScraperCommand.js +47 -0
- package/dist-es/commands/GetDefaultScraperConfigurationCommand.js +47 -0
- package/dist-es/commands/ListScrapersCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +31 -0
- package/dist-es/pagination/ListScrapersPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +386 -2
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForScraperActive.js +40 -0
- package/dist-es/waiters/waitForScraperDeleted.js +34 -0
- package/dist-types/Amp.d.ts +35 -0
- package/dist-types/AmpClient.d.ts +7 -2
- package/dist-types/commands/CreateScraperCommand.d.ts +124 -0
- package/dist-types/commands/DeleteScraperCommand.d.ts +95 -0
- package/dist-types/commands/DescribeScraperCommand.d.ts +121 -0
- package/dist-types/commands/GetDefaultScraperConfigurationCommand.d.ts +80 -0
- package/dist-types/commands/ListScrapersCommand.d.ts +124 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +460 -0
- package/dist-types/pagination/ListScrapersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/Amp.d.ts +85 -0
- package/dist-types/ts3.4/AmpClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateScraperCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteScraperCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeScraperCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetDefaultScraperConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListScrapersCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +140 -0
- package/dist-types/ts3.4/pagination/ListScrapersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForScraperActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForScraperDeleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForScraperActive.d.ts +14 -0
- package/dist-types/waiters/waitForScraperDeleted.d.ts +14 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -23,16 +23,16 @@ using your favorite package manager:
|
|
|
23
23
|
|
|
24
24
|
The AWS SDK is modulized by clients and commands.
|
|
25
25
|
To send a request, you only need to import the `AmpClient` and
|
|
26
|
-
the commands you need, for example `
|
|
26
|
+
the commands you need, for example `ListScrapersCommand`:
|
|
27
27
|
|
|
28
28
|
```js
|
|
29
29
|
// ES5 example
|
|
30
|
-
const { AmpClient,
|
|
30
|
+
const { AmpClient, ListScrapersCommand } = require("@aws-sdk/client-amp");
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
```ts
|
|
34
34
|
// ES6+ example
|
|
35
|
-
import { AmpClient,
|
|
35
|
+
import { AmpClient, ListScrapersCommand } from "@aws-sdk/client-amp";
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
### Usage
|
|
@@ -51,7 +51,7 @@ const client = new AmpClient({ region: "REGION" });
|
|
|
51
51
|
const params = {
|
|
52
52
|
/** input parameters */
|
|
53
53
|
};
|
|
54
|
-
const command = new
|
|
54
|
+
const command = new ListScrapersCommand(params);
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
#### Async/await
|
|
@@ -130,7 +130,7 @@ const client = new AWS.Amp({ region: "REGION" });
|
|
|
130
130
|
|
|
131
131
|
// async/await.
|
|
132
132
|
try {
|
|
133
|
-
const data = await client.
|
|
133
|
+
const data = await client.listScrapers(params);
|
|
134
134
|
// process data.
|
|
135
135
|
} catch (error) {
|
|
136
136
|
// error handling.
|
|
@@ -138,7 +138,7 @@ try {
|
|
|
138
138
|
|
|
139
139
|
// Promises.
|
|
140
140
|
client
|
|
141
|
-
.
|
|
141
|
+
.listScrapers(params)
|
|
142
142
|
.then((data) => {
|
|
143
143
|
// process data.
|
|
144
144
|
})
|
|
@@ -147,7 +147,7 @@ client
|
|
|
147
147
|
});
|
|
148
148
|
|
|
149
149
|
// callbacks.
|
|
150
|
-
client.
|
|
150
|
+
client.listScrapers(params, (err, data) => {
|
|
151
151
|
// process err and data.
|
|
152
152
|
});
|
|
153
153
|
```
|
|
@@ -208,7 +208,7 @@ see LICENSE for more information.
|
|
|
208
208
|
CreateAlertManagerDefinition
|
|
209
209
|
</summary>
|
|
210
210
|
|
|
211
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
211
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/CreateAlertManagerDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateAlertManagerDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateAlertManagerDefinitionCommandOutput/)
|
|
212
212
|
|
|
213
213
|
</details>
|
|
214
214
|
<details>
|
|
@@ -216,7 +216,7 @@ CreateAlertManagerDefinition
|
|
|
216
216
|
CreateLoggingConfiguration
|
|
217
217
|
</summary>
|
|
218
218
|
|
|
219
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
219
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/CreateLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateLoggingConfigurationCommandOutput/)
|
|
220
220
|
|
|
221
221
|
</details>
|
|
222
222
|
<details>
|
|
@@ -224,7 +224,15 @@ CreateLoggingConfiguration
|
|
|
224
224
|
CreateRuleGroupsNamespace
|
|
225
225
|
</summary>
|
|
226
226
|
|
|
227
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
227
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/CreateRuleGroupsNamespaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateRuleGroupsNamespaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateRuleGroupsNamespaceCommandOutput/)
|
|
228
|
+
|
|
229
|
+
</details>
|
|
230
|
+
<details>
|
|
231
|
+
<summary>
|
|
232
|
+
CreateScraper
|
|
233
|
+
</summary>
|
|
234
|
+
|
|
235
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/CreateScraperCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateScraperCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateScraperCommandOutput/)
|
|
228
236
|
|
|
229
237
|
</details>
|
|
230
238
|
<details>
|
|
@@ -232,7 +240,7 @@ CreateRuleGroupsNamespace
|
|
|
232
240
|
CreateWorkspace
|
|
233
241
|
</summary>
|
|
234
242
|
|
|
235
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
243
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/CreateWorkspaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateWorkspaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateWorkspaceCommandOutput/)
|
|
236
244
|
|
|
237
245
|
</details>
|
|
238
246
|
<details>
|
|
@@ -240,7 +248,7 @@ CreateWorkspace
|
|
|
240
248
|
DeleteAlertManagerDefinition
|
|
241
249
|
</summary>
|
|
242
250
|
|
|
243
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
251
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DeleteAlertManagerDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteAlertManagerDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteAlertManagerDefinitionCommandOutput/)
|
|
244
252
|
|
|
245
253
|
</details>
|
|
246
254
|
<details>
|
|
@@ -248,7 +256,7 @@ DeleteAlertManagerDefinition
|
|
|
248
256
|
DeleteLoggingConfiguration
|
|
249
257
|
</summary>
|
|
250
258
|
|
|
251
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
259
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DeleteLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteLoggingConfigurationCommandOutput/)
|
|
252
260
|
|
|
253
261
|
</details>
|
|
254
262
|
<details>
|
|
@@ -256,7 +264,15 @@ DeleteLoggingConfiguration
|
|
|
256
264
|
DeleteRuleGroupsNamespace
|
|
257
265
|
</summary>
|
|
258
266
|
|
|
259
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
267
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DeleteRuleGroupsNamespaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteRuleGroupsNamespaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteRuleGroupsNamespaceCommandOutput/)
|
|
268
|
+
|
|
269
|
+
</details>
|
|
270
|
+
<details>
|
|
271
|
+
<summary>
|
|
272
|
+
DeleteScraper
|
|
273
|
+
</summary>
|
|
274
|
+
|
|
275
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DeleteScraperCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteScraperCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteScraperCommandOutput/)
|
|
260
276
|
|
|
261
277
|
</details>
|
|
262
278
|
<details>
|
|
@@ -264,7 +280,7 @@ DeleteRuleGroupsNamespace
|
|
|
264
280
|
DeleteWorkspace
|
|
265
281
|
</summary>
|
|
266
282
|
|
|
267
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
283
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DeleteWorkspaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteWorkspaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteWorkspaceCommandOutput/)
|
|
268
284
|
|
|
269
285
|
</details>
|
|
270
286
|
<details>
|
|
@@ -272,7 +288,7 @@ DeleteWorkspace
|
|
|
272
288
|
DescribeAlertManagerDefinition
|
|
273
289
|
</summary>
|
|
274
290
|
|
|
275
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
291
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DescribeAlertManagerDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeAlertManagerDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeAlertManagerDefinitionCommandOutput/)
|
|
276
292
|
|
|
277
293
|
</details>
|
|
278
294
|
<details>
|
|
@@ -280,7 +296,7 @@ DescribeAlertManagerDefinition
|
|
|
280
296
|
DescribeLoggingConfiguration
|
|
281
297
|
</summary>
|
|
282
298
|
|
|
283
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
299
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DescribeLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeLoggingConfigurationCommandOutput/)
|
|
284
300
|
|
|
285
301
|
</details>
|
|
286
302
|
<details>
|
|
@@ -288,7 +304,15 @@ DescribeLoggingConfiguration
|
|
|
288
304
|
DescribeRuleGroupsNamespace
|
|
289
305
|
</summary>
|
|
290
306
|
|
|
291
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
307
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DescribeRuleGroupsNamespaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeRuleGroupsNamespaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeRuleGroupsNamespaceCommandOutput/)
|
|
308
|
+
|
|
309
|
+
</details>
|
|
310
|
+
<details>
|
|
311
|
+
<summary>
|
|
312
|
+
DescribeScraper
|
|
313
|
+
</summary>
|
|
314
|
+
|
|
315
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DescribeScraperCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeScraperCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeScraperCommandOutput/)
|
|
292
316
|
|
|
293
317
|
</details>
|
|
294
318
|
<details>
|
|
@@ -296,7 +320,15 @@ DescribeRuleGroupsNamespace
|
|
|
296
320
|
DescribeWorkspace
|
|
297
321
|
</summary>
|
|
298
322
|
|
|
299
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
323
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DescribeWorkspaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeWorkspaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeWorkspaceCommandOutput/)
|
|
324
|
+
|
|
325
|
+
</details>
|
|
326
|
+
<details>
|
|
327
|
+
<summary>
|
|
328
|
+
GetDefaultScraperConfiguration
|
|
329
|
+
</summary>
|
|
330
|
+
|
|
331
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/GetDefaultScraperConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/GetDefaultScraperConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/GetDefaultScraperConfigurationCommandOutput/)
|
|
300
332
|
|
|
301
333
|
</details>
|
|
302
334
|
<details>
|
|
@@ -304,7 +336,15 @@ DescribeWorkspace
|
|
|
304
336
|
ListRuleGroupsNamespaces
|
|
305
337
|
</summary>
|
|
306
338
|
|
|
307
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
339
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/ListRuleGroupsNamespacesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/ListRuleGroupsNamespacesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/ListRuleGroupsNamespacesCommandOutput/)
|
|
340
|
+
|
|
341
|
+
</details>
|
|
342
|
+
<details>
|
|
343
|
+
<summary>
|
|
344
|
+
ListScrapers
|
|
345
|
+
</summary>
|
|
346
|
+
|
|
347
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/ListScrapersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/ListScrapersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/ListScrapersCommandOutput/)
|
|
308
348
|
|
|
309
349
|
</details>
|
|
310
350
|
<details>
|
|
@@ -312,7 +352,7 @@ ListRuleGroupsNamespaces
|
|
|
312
352
|
ListTagsForResource
|
|
313
353
|
</summary>
|
|
314
354
|
|
|
315
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
355
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/ListTagsForResourceCommandOutput/)
|
|
316
356
|
|
|
317
357
|
</details>
|
|
318
358
|
<details>
|
|
@@ -320,7 +360,7 @@ ListTagsForResource
|
|
|
320
360
|
ListWorkspaces
|
|
321
361
|
</summary>
|
|
322
362
|
|
|
323
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
363
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/ListWorkspacesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/ListWorkspacesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/ListWorkspacesCommandOutput/)
|
|
324
364
|
|
|
325
365
|
</details>
|
|
326
366
|
<details>
|
|
@@ -328,7 +368,7 @@ ListWorkspaces
|
|
|
328
368
|
PutAlertManagerDefinition
|
|
329
369
|
</summary>
|
|
330
370
|
|
|
331
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
371
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/PutAlertManagerDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/PutAlertManagerDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/PutAlertManagerDefinitionCommandOutput/)
|
|
332
372
|
|
|
333
373
|
</details>
|
|
334
374
|
<details>
|
|
@@ -336,7 +376,7 @@ PutAlertManagerDefinition
|
|
|
336
376
|
PutRuleGroupsNamespace
|
|
337
377
|
</summary>
|
|
338
378
|
|
|
339
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
379
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/PutRuleGroupsNamespaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/PutRuleGroupsNamespaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/PutRuleGroupsNamespaceCommandOutput/)
|
|
340
380
|
|
|
341
381
|
</details>
|
|
342
382
|
<details>
|
|
@@ -344,7 +384,7 @@ PutRuleGroupsNamespace
|
|
|
344
384
|
TagResource
|
|
345
385
|
</summary>
|
|
346
386
|
|
|
347
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
387
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/TagResourceCommandOutput/)
|
|
348
388
|
|
|
349
389
|
</details>
|
|
350
390
|
<details>
|
|
@@ -352,7 +392,7 @@ TagResource
|
|
|
352
392
|
UntagResource
|
|
353
393
|
</summary>
|
|
354
394
|
|
|
355
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
395
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UntagResourceCommandOutput/)
|
|
356
396
|
|
|
357
397
|
</details>
|
|
358
398
|
<details>
|
|
@@ -360,7 +400,7 @@ UntagResource
|
|
|
360
400
|
UpdateLoggingConfiguration
|
|
361
401
|
</summary>
|
|
362
402
|
|
|
363
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
403
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/UpdateLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateLoggingConfigurationCommandOutput/)
|
|
364
404
|
|
|
365
405
|
</details>
|
|
366
406
|
<details>
|
|
@@ -368,6 +408,6 @@ UpdateLoggingConfiguration
|
|
|
368
408
|
UpdateWorkspaceAlias
|
|
369
409
|
</summary>
|
|
370
410
|
|
|
371
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
411
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/UpdateWorkspaceAliasCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateWorkspaceAliasCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateWorkspaceAliasCommandOutput/)
|
|
372
412
|
|
|
373
413
|
</details>
|
package/dist-cjs/Amp.js
CHANGED
|
@@ -6,16 +6,21 @@ const AmpClient_1 = require("./AmpClient");
|
|
|
6
6
|
const CreateAlertManagerDefinitionCommand_1 = require("./commands/CreateAlertManagerDefinitionCommand");
|
|
7
7
|
const CreateLoggingConfigurationCommand_1 = require("./commands/CreateLoggingConfigurationCommand");
|
|
8
8
|
const CreateRuleGroupsNamespaceCommand_1 = require("./commands/CreateRuleGroupsNamespaceCommand");
|
|
9
|
+
const CreateScraperCommand_1 = require("./commands/CreateScraperCommand");
|
|
9
10
|
const CreateWorkspaceCommand_1 = require("./commands/CreateWorkspaceCommand");
|
|
10
11
|
const DeleteAlertManagerDefinitionCommand_1 = require("./commands/DeleteAlertManagerDefinitionCommand");
|
|
11
12
|
const DeleteLoggingConfigurationCommand_1 = require("./commands/DeleteLoggingConfigurationCommand");
|
|
12
13
|
const DeleteRuleGroupsNamespaceCommand_1 = require("./commands/DeleteRuleGroupsNamespaceCommand");
|
|
14
|
+
const DeleteScraperCommand_1 = require("./commands/DeleteScraperCommand");
|
|
13
15
|
const DeleteWorkspaceCommand_1 = require("./commands/DeleteWorkspaceCommand");
|
|
14
16
|
const DescribeAlertManagerDefinitionCommand_1 = require("./commands/DescribeAlertManagerDefinitionCommand");
|
|
15
17
|
const DescribeLoggingConfigurationCommand_1 = require("./commands/DescribeLoggingConfigurationCommand");
|
|
16
18
|
const DescribeRuleGroupsNamespaceCommand_1 = require("./commands/DescribeRuleGroupsNamespaceCommand");
|
|
19
|
+
const DescribeScraperCommand_1 = require("./commands/DescribeScraperCommand");
|
|
17
20
|
const DescribeWorkspaceCommand_1 = require("./commands/DescribeWorkspaceCommand");
|
|
21
|
+
const GetDefaultScraperConfigurationCommand_1 = require("./commands/GetDefaultScraperConfigurationCommand");
|
|
18
22
|
const ListRuleGroupsNamespacesCommand_1 = require("./commands/ListRuleGroupsNamespacesCommand");
|
|
23
|
+
const ListScrapersCommand_1 = require("./commands/ListScrapersCommand");
|
|
19
24
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
20
25
|
const ListWorkspacesCommand_1 = require("./commands/ListWorkspacesCommand");
|
|
21
26
|
const PutAlertManagerDefinitionCommand_1 = require("./commands/PutAlertManagerDefinitionCommand");
|
|
@@ -28,16 +33,21 @@ const commands = {
|
|
|
28
33
|
CreateAlertManagerDefinitionCommand: CreateAlertManagerDefinitionCommand_1.CreateAlertManagerDefinitionCommand,
|
|
29
34
|
CreateLoggingConfigurationCommand: CreateLoggingConfigurationCommand_1.CreateLoggingConfigurationCommand,
|
|
30
35
|
CreateRuleGroupsNamespaceCommand: CreateRuleGroupsNamespaceCommand_1.CreateRuleGroupsNamespaceCommand,
|
|
36
|
+
CreateScraperCommand: CreateScraperCommand_1.CreateScraperCommand,
|
|
31
37
|
CreateWorkspaceCommand: CreateWorkspaceCommand_1.CreateWorkspaceCommand,
|
|
32
38
|
DeleteAlertManagerDefinitionCommand: DeleteAlertManagerDefinitionCommand_1.DeleteAlertManagerDefinitionCommand,
|
|
33
39
|
DeleteLoggingConfigurationCommand: DeleteLoggingConfigurationCommand_1.DeleteLoggingConfigurationCommand,
|
|
34
40
|
DeleteRuleGroupsNamespaceCommand: DeleteRuleGroupsNamespaceCommand_1.DeleteRuleGroupsNamespaceCommand,
|
|
41
|
+
DeleteScraperCommand: DeleteScraperCommand_1.DeleteScraperCommand,
|
|
35
42
|
DeleteWorkspaceCommand: DeleteWorkspaceCommand_1.DeleteWorkspaceCommand,
|
|
36
43
|
DescribeAlertManagerDefinitionCommand: DescribeAlertManagerDefinitionCommand_1.DescribeAlertManagerDefinitionCommand,
|
|
37
44
|
DescribeLoggingConfigurationCommand: DescribeLoggingConfigurationCommand_1.DescribeLoggingConfigurationCommand,
|
|
38
45
|
DescribeRuleGroupsNamespaceCommand: DescribeRuleGroupsNamespaceCommand_1.DescribeRuleGroupsNamespaceCommand,
|
|
46
|
+
DescribeScraperCommand: DescribeScraperCommand_1.DescribeScraperCommand,
|
|
39
47
|
DescribeWorkspaceCommand: DescribeWorkspaceCommand_1.DescribeWorkspaceCommand,
|
|
48
|
+
GetDefaultScraperConfigurationCommand: GetDefaultScraperConfigurationCommand_1.GetDefaultScraperConfigurationCommand,
|
|
40
49
|
ListRuleGroupsNamespacesCommand: ListRuleGroupsNamespacesCommand_1.ListRuleGroupsNamespacesCommand,
|
|
50
|
+
ListScrapersCommand: ListScrapersCommand_1.ListScrapersCommand,
|
|
41
51
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
42
52
|
ListWorkspacesCommand: ListWorkspacesCommand_1.ListWorkspacesCommand,
|
|
43
53
|
PutAlertManagerDefinitionCommand: PutAlertManagerDefinitionCommand_1.PutAlertManagerDefinitionCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateScraperCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class CreateScraperCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateScraperCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "AmpClient";
|
|
29
|
+
const commandName = "CreateScraperCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonPrometheusService",
|
|
38
|
+
operation: "CreateScraper",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_CreateScraperCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_CreateScraperCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.CreateScraperCommand = CreateScraperCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteScraperCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class DeleteScraperCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteScraperCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "AmpClient";
|
|
29
|
+
const commandName = "DeleteScraperCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonPrometheusService",
|
|
38
|
+
operation: "DeleteScraper",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_DeleteScraperCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_DeleteScraperCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.DeleteScraperCommand = DeleteScraperCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeScraperCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class DescribeScraperCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeScraperCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "AmpClient";
|
|
29
|
+
const commandName = "DescribeScraperCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonPrometheusService",
|
|
38
|
+
operation: "DescribeScraper",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_DescribeScraperCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_DescribeScraperCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.DescribeScraperCommand = DescribeScraperCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetDefaultScraperConfigurationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class GetDefaultScraperConfigurationCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDefaultScraperConfigurationCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "AmpClient";
|
|
29
|
+
const commandName = "GetDefaultScraperConfigurationCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonPrometheusService",
|
|
38
|
+
operation: "GetDefaultScraperConfiguration",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_GetDefaultScraperConfigurationCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_GetDefaultScraperConfigurationCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.GetDefaultScraperConfigurationCommand = GetDefaultScraperConfigurationCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListScrapersCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class ListScrapersCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListScrapersCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "AmpClient";
|
|
29
|
+
const commandName = "ListScrapersCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonPrometheusService",
|
|
38
|
+
operation: "ListScrapers",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_ListScrapersCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_ListScrapersCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.ListScrapersCommand = ListScrapersCommand;
|
|
@@ -4,16 +4,21 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./CreateAlertManagerDefinitionCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./CreateLoggingConfigurationCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./CreateRuleGroupsNamespaceCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./CreateScraperCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./CreateWorkspaceCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./DeleteAlertManagerDefinitionCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./DeleteLoggingConfigurationCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DeleteRuleGroupsNamespaceCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./DeleteScraperCommand"), exports);
|
|
11
13
|
tslib_1.__exportStar(require("./DeleteWorkspaceCommand"), exports);
|
|
12
14
|
tslib_1.__exportStar(require("./DescribeAlertManagerDefinitionCommand"), exports);
|
|
13
15
|
tslib_1.__exportStar(require("./DescribeLoggingConfigurationCommand"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./DescribeRuleGroupsNamespaceCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./DescribeScraperCommand"), exports);
|
|
15
18
|
tslib_1.__exportStar(require("./DescribeWorkspaceCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./GetDefaultScraperConfigurationCommand"), exports);
|
|
16
20
|
tslib_1.__exportStar(require("./ListRuleGroupsNamespacesCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./ListScrapersCommand"), exports);
|
|
17
22
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
18
23
|
tslib_1.__exportStar(require("./ListWorkspacesCommand"), exports);
|
|
19
24
|
tslib_1.__exportStar(require("./PutAlertManagerDefinitionCommand"), exports);
|