@aws-sdk/client-amp 3.454.0 → 3.460.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 +12 -12
|
@@ -12,6 +12,10 @@ import {
|
|
|
12
12
|
CreateRuleGroupsNamespaceCommandInput,
|
|
13
13
|
CreateRuleGroupsNamespaceCommandOutput,
|
|
14
14
|
} from "./commands/CreateRuleGroupsNamespaceCommand";
|
|
15
|
+
import {
|
|
16
|
+
CreateScraperCommandInput,
|
|
17
|
+
CreateScraperCommandOutput,
|
|
18
|
+
} from "./commands/CreateScraperCommand";
|
|
15
19
|
import {
|
|
16
20
|
CreateWorkspaceCommandInput,
|
|
17
21
|
CreateWorkspaceCommandOutput,
|
|
@@ -28,6 +32,10 @@ import {
|
|
|
28
32
|
DeleteRuleGroupsNamespaceCommandInput,
|
|
29
33
|
DeleteRuleGroupsNamespaceCommandOutput,
|
|
30
34
|
} from "./commands/DeleteRuleGroupsNamespaceCommand";
|
|
35
|
+
import {
|
|
36
|
+
DeleteScraperCommandInput,
|
|
37
|
+
DeleteScraperCommandOutput,
|
|
38
|
+
} from "./commands/DeleteScraperCommand";
|
|
31
39
|
import {
|
|
32
40
|
DeleteWorkspaceCommandInput,
|
|
33
41
|
DeleteWorkspaceCommandOutput,
|
|
@@ -44,14 +52,26 @@ import {
|
|
|
44
52
|
DescribeRuleGroupsNamespaceCommandInput,
|
|
45
53
|
DescribeRuleGroupsNamespaceCommandOutput,
|
|
46
54
|
} from "./commands/DescribeRuleGroupsNamespaceCommand";
|
|
55
|
+
import {
|
|
56
|
+
DescribeScraperCommandInput,
|
|
57
|
+
DescribeScraperCommandOutput,
|
|
58
|
+
} from "./commands/DescribeScraperCommand";
|
|
47
59
|
import {
|
|
48
60
|
DescribeWorkspaceCommandInput,
|
|
49
61
|
DescribeWorkspaceCommandOutput,
|
|
50
62
|
} from "./commands/DescribeWorkspaceCommand";
|
|
63
|
+
import {
|
|
64
|
+
GetDefaultScraperConfigurationCommandInput,
|
|
65
|
+
GetDefaultScraperConfigurationCommandOutput,
|
|
66
|
+
} from "./commands/GetDefaultScraperConfigurationCommand";
|
|
51
67
|
import {
|
|
52
68
|
ListRuleGroupsNamespacesCommandInput,
|
|
53
69
|
ListRuleGroupsNamespacesCommandOutput,
|
|
54
70
|
} from "./commands/ListRuleGroupsNamespacesCommand";
|
|
71
|
+
import {
|
|
72
|
+
ListScrapersCommandInput,
|
|
73
|
+
ListScrapersCommandOutput,
|
|
74
|
+
} from "./commands/ListScrapersCommand";
|
|
55
75
|
import {
|
|
56
76
|
ListTagsForResourceCommandInput,
|
|
57
77
|
ListTagsForResourceCommandOutput,
|
|
@@ -124,6 +144,19 @@ export interface Amp {
|
|
|
124
144
|
options: __HttpHandlerOptions,
|
|
125
145
|
cb: (err: any, data?: CreateRuleGroupsNamespaceCommandOutput) => void
|
|
126
146
|
): void;
|
|
147
|
+
createScraper(
|
|
148
|
+
args: CreateScraperCommandInput,
|
|
149
|
+
options?: __HttpHandlerOptions
|
|
150
|
+
): Promise<CreateScraperCommandOutput>;
|
|
151
|
+
createScraper(
|
|
152
|
+
args: CreateScraperCommandInput,
|
|
153
|
+
cb: (err: any, data?: CreateScraperCommandOutput) => void
|
|
154
|
+
): void;
|
|
155
|
+
createScraper(
|
|
156
|
+
args: CreateScraperCommandInput,
|
|
157
|
+
options: __HttpHandlerOptions,
|
|
158
|
+
cb: (err: any, data?: CreateScraperCommandOutput) => void
|
|
159
|
+
): void;
|
|
127
160
|
createWorkspace(
|
|
128
161
|
args: CreateWorkspaceCommandInput,
|
|
129
162
|
options?: __HttpHandlerOptions
|
|
@@ -176,6 +209,19 @@ export interface Amp {
|
|
|
176
209
|
options: __HttpHandlerOptions,
|
|
177
210
|
cb: (err: any, data?: DeleteRuleGroupsNamespaceCommandOutput) => void
|
|
178
211
|
): void;
|
|
212
|
+
deleteScraper(
|
|
213
|
+
args: DeleteScraperCommandInput,
|
|
214
|
+
options?: __HttpHandlerOptions
|
|
215
|
+
): Promise<DeleteScraperCommandOutput>;
|
|
216
|
+
deleteScraper(
|
|
217
|
+
args: DeleteScraperCommandInput,
|
|
218
|
+
cb: (err: any, data?: DeleteScraperCommandOutput) => void
|
|
219
|
+
): void;
|
|
220
|
+
deleteScraper(
|
|
221
|
+
args: DeleteScraperCommandInput,
|
|
222
|
+
options: __HttpHandlerOptions,
|
|
223
|
+
cb: (err: any, data?: DeleteScraperCommandOutput) => void
|
|
224
|
+
): void;
|
|
179
225
|
deleteWorkspace(
|
|
180
226
|
args: DeleteWorkspaceCommandInput,
|
|
181
227
|
options?: __HttpHandlerOptions
|
|
@@ -228,6 +274,19 @@ export interface Amp {
|
|
|
228
274
|
options: __HttpHandlerOptions,
|
|
229
275
|
cb: (err: any, data?: DescribeRuleGroupsNamespaceCommandOutput) => void
|
|
230
276
|
): void;
|
|
277
|
+
describeScraper(
|
|
278
|
+
args: DescribeScraperCommandInput,
|
|
279
|
+
options?: __HttpHandlerOptions
|
|
280
|
+
): Promise<DescribeScraperCommandOutput>;
|
|
281
|
+
describeScraper(
|
|
282
|
+
args: DescribeScraperCommandInput,
|
|
283
|
+
cb: (err: any, data?: DescribeScraperCommandOutput) => void
|
|
284
|
+
): void;
|
|
285
|
+
describeScraper(
|
|
286
|
+
args: DescribeScraperCommandInput,
|
|
287
|
+
options: __HttpHandlerOptions,
|
|
288
|
+
cb: (err: any, data?: DescribeScraperCommandOutput) => void
|
|
289
|
+
): void;
|
|
231
290
|
describeWorkspace(
|
|
232
291
|
args: DescribeWorkspaceCommandInput,
|
|
233
292
|
options?: __HttpHandlerOptions
|
|
@@ -241,6 +300,19 @@ export interface Amp {
|
|
|
241
300
|
options: __HttpHandlerOptions,
|
|
242
301
|
cb: (err: any, data?: DescribeWorkspaceCommandOutput) => void
|
|
243
302
|
): void;
|
|
303
|
+
getDefaultScraperConfiguration(
|
|
304
|
+
args: GetDefaultScraperConfigurationCommandInput,
|
|
305
|
+
options?: __HttpHandlerOptions
|
|
306
|
+
): Promise<GetDefaultScraperConfigurationCommandOutput>;
|
|
307
|
+
getDefaultScraperConfiguration(
|
|
308
|
+
args: GetDefaultScraperConfigurationCommandInput,
|
|
309
|
+
cb: (err: any, data?: GetDefaultScraperConfigurationCommandOutput) => void
|
|
310
|
+
): void;
|
|
311
|
+
getDefaultScraperConfiguration(
|
|
312
|
+
args: GetDefaultScraperConfigurationCommandInput,
|
|
313
|
+
options: __HttpHandlerOptions,
|
|
314
|
+
cb: (err: any, data?: GetDefaultScraperConfigurationCommandOutput) => void
|
|
315
|
+
): void;
|
|
244
316
|
listRuleGroupsNamespaces(
|
|
245
317
|
args: ListRuleGroupsNamespacesCommandInput,
|
|
246
318
|
options?: __HttpHandlerOptions
|
|
@@ -254,6 +326,19 @@ export interface Amp {
|
|
|
254
326
|
options: __HttpHandlerOptions,
|
|
255
327
|
cb: (err: any, data?: ListRuleGroupsNamespacesCommandOutput) => void
|
|
256
328
|
): void;
|
|
329
|
+
listScrapers(
|
|
330
|
+
args: ListScrapersCommandInput,
|
|
331
|
+
options?: __HttpHandlerOptions
|
|
332
|
+
): Promise<ListScrapersCommandOutput>;
|
|
333
|
+
listScrapers(
|
|
334
|
+
args: ListScrapersCommandInput,
|
|
335
|
+
cb: (err: any, data?: ListScrapersCommandOutput) => void
|
|
336
|
+
): void;
|
|
337
|
+
listScrapers(
|
|
338
|
+
args: ListScrapersCommandInput,
|
|
339
|
+
options: __HttpHandlerOptions,
|
|
340
|
+
cb: (err: any, data?: ListScrapersCommandOutput) => void
|
|
341
|
+
): void;
|
|
257
342
|
listTagsForResource(
|
|
258
343
|
args: ListTagsForResourceCommandInput,
|
|
259
344
|
options?: __HttpHandlerOptions
|
|
@@ -57,6 +57,10 @@ import {
|
|
|
57
57
|
CreateRuleGroupsNamespaceCommandInput,
|
|
58
58
|
CreateRuleGroupsNamespaceCommandOutput,
|
|
59
59
|
} from "./commands/CreateRuleGroupsNamespaceCommand";
|
|
60
|
+
import {
|
|
61
|
+
CreateScraperCommandInput,
|
|
62
|
+
CreateScraperCommandOutput,
|
|
63
|
+
} from "./commands/CreateScraperCommand";
|
|
60
64
|
import {
|
|
61
65
|
CreateWorkspaceCommandInput,
|
|
62
66
|
CreateWorkspaceCommandOutput,
|
|
@@ -73,6 +77,10 @@ import {
|
|
|
73
77
|
DeleteRuleGroupsNamespaceCommandInput,
|
|
74
78
|
DeleteRuleGroupsNamespaceCommandOutput,
|
|
75
79
|
} from "./commands/DeleteRuleGroupsNamespaceCommand";
|
|
80
|
+
import {
|
|
81
|
+
DeleteScraperCommandInput,
|
|
82
|
+
DeleteScraperCommandOutput,
|
|
83
|
+
} from "./commands/DeleteScraperCommand";
|
|
76
84
|
import {
|
|
77
85
|
DeleteWorkspaceCommandInput,
|
|
78
86
|
DeleteWorkspaceCommandOutput,
|
|
@@ -89,14 +97,26 @@ import {
|
|
|
89
97
|
DescribeRuleGroupsNamespaceCommandInput,
|
|
90
98
|
DescribeRuleGroupsNamespaceCommandOutput,
|
|
91
99
|
} from "./commands/DescribeRuleGroupsNamespaceCommand";
|
|
100
|
+
import {
|
|
101
|
+
DescribeScraperCommandInput,
|
|
102
|
+
DescribeScraperCommandOutput,
|
|
103
|
+
} from "./commands/DescribeScraperCommand";
|
|
92
104
|
import {
|
|
93
105
|
DescribeWorkspaceCommandInput,
|
|
94
106
|
DescribeWorkspaceCommandOutput,
|
|
95
107
|
} from "./commands/DescribeWorkspaceCommand";
|
|
108
|
+
import {
|
|
109
|
+
GetDefaultScraperConfigurationCommandInput,
|
|
110
|
+
GetDefaultScraperConfigurationCommandOutput,
|
|
111
|
+
} from "./commands/GetDefaultScraperConfigurationCommand";
|
|
96
112
|
import {
|
|
97
113
|
ListRuleGroupsNamespacesCommandInput,
|
|
98
114
|
ListRuleGroupsNamespacesCommandOutput,
|
|
99
115
|
} from "./commands/ListRuleGroupsNamespacesCommand";
|
|
116
|
+
import {
|
|
117
|
+
ListScrapersCommandInput,
|
|
118
|
+
ListScrapersCommandOutput,
|
|
119
|
+
} from "./commands/ListScrapersCommand";
|
|
100
120
|
import {
|
|
101
121
|
ListTagsForResourceCommandInput,
|
|
102
122
|
ListTagsForResourceCommandOutput,
|
|
@@ -140,16 +160,21 @@ export type ServiceInputTypes =
|
|
|
140
160
|
| CreateAlertManagerDefinitionCommandInput
|
|
141
161
|
| CreateLoggingConfigurationCommandInput
|
|
142
162
|
| CreateRuleGroupsNamespaceCommandInput
|
|
163
|
+
| CreateScraperCommandInput
|
|
143
164
|
| CreateWorkspaceCommandInput
|
|
144
165
|
| DeleteAlertManagerDefinitionCommandInput
|
|
145
166
|
| DeleteLoggingConfigurationCommandInput
|
|
146
167
|
| DeleteRuleGroupsNamespaceCommandInput
|
|
168
|
+
| DeleteScraperCommandInput
|
|
147
169
|
| DeleteWorkspaceCommandInput
|
|
148
170
|
| DescribeAlertManagerDefinitionCommandInput
|
|
149
171
|
| DescribeLoggingConfigurationCommandInput
|
|
150
172
|
| DescribeRuleGroupsNamespaceCommandInput
|
|
173
|
+
| DescribeScraperCommandInput
|
|
151
174
|
| DescribeWorkspaceCommandInput
|
|
175
|
+
| GetDefaultScraperConfigurationCommandInput
|
|
152
176
|
| ListRuleGroupsNamespacesCommandInput
|
|
177
|
+
| ListScrapersCommandInput
|
|
153
178
|
| ListTagsForResourceCommandInput
|
|
154
179
|
| ListWorkspacesCommandInput
|
|
155
180
|
| PutAlertManagerDefinitionCommandInput
|
|
@@ -162,16 +187,21 @@ export type ServiceOutputTypes =
|
|
|
162
187
|
| CreateAlertManagerDefinitionCommandOutput
|
|
163
188
|
| CreateLoggingConfigurationCommandOutput
|
|
164
189
|
| CreateRuleGroupsNamespaceCommandOutput
|
|
190
|
+
| CreateScraperCommandOutput
|
|
165
191
|
| CreateWorkspaceCommandOutput
|
|
166
192
|
| DeleteAlertManagerDefinitionCommandOutput
|
|
167
193
|
| DeleteLoggingConfigurationCommandOutput
|
|
168
194
|
| DeleteRuleGroupsNamespaceCommandOutput
|
|
195
|
+
| DeleteScraperCommandOutput
|
|
169
196
|
| DeleteWorkspaceCommandOutput
|
|
170
197
|
| DescribeAlertManagerDefinitionCommandOutput
|
|
171
198
|
| DescribeLoggingConfigurationCommandOutput
|
|
172
199
|
| DescribeRuleGroupsNamespaceCommandOutput
|
|
200
|
+
| DescribeScraperCommandOutput
|
|
173
201
|
| DescribeWorkspaceCommandOutput
|
|
202
|
+
| GetDefaultScraperConfigurationCommandOutput
|
|
174
203
|
| ListRuleGroupsNamespacesCommandOutput
|
|
204
|
+
| ListScrapersCommandOutput
|
|
175
205
|
| ListTagsForResourceCommandOutput
|
|
176
206
|
| ListWorkspacesCommandOutput
|
|
177
207
|
| PutAlertManagerDefinitionCommandOutput
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
AmpClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../AmpClient";
|
|
14
|
+
import {
|
|
15
|
+
CreateScraperRequest,
|
|
16
|
+
CreateScraperResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface CreateScraperCommandInput extends CreateScraperRequest {}
|
|
20
|
+
export interface CreateScraperCommandOutput
|
|
21
|
+
extends CreateScraperResponse,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class CreateScraperCommand extends $Command<
|
|
24
|
+
CreateScraperCommandInput,
|
|
25
|
+
CreateScraperCommandOutput,
|
|
26
|
+
AmpClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: CreateScraperCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: CreateScraperCommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: AmpClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<CreateScraperCommandInput, CreateScraperCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
AmpClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../AmpClient";
|
|
14
|
+
import {
|
|
15
|
+
DeleteScraperRequest,
|
|
16
|
+
DeleteScraperResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface DeleteScraperCommandInput extends DeleteScraperRequest {}
|
|
20
|
+
export interface DeleteScraperCommandOutput
|
|
21
|
+
extends DeleteScraperResponse,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class DeleteScraperCommand extends $Command<
|
|
24
|
+
DeleteScraperCommandInput,
|
|
25
|
+
DeleteScraperCommandOutput,
|
|
26
|
+
AmpClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: DeleteScraperCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: DeleteScraperCommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: AmpClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<DeleteScraperCommandInput, DeleteScraperCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
AmpClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../AmpClient";
|
|
14
|
+
import {
|
|
15
|
+
DescribeScraperRequest,
|
|
16
|
+
DescribeScraperResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface DescribeScraperCommandInput extends DescribeScraperRequest {}
|
|
20
|
+
export interface DescribeScraperCommandOutput
|
|
21
|
+
extends DescribeScraperResponse,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class DescribeScraperCommand extends $Command<
|
|
24
|
+
DescribeScraperCommandInput,
|
|
25
|
+
DescribeScraperCommandOutput,
|
|
26
|
+
AmpClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: DescribeScraperCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: DescribeScraperCommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: AmpClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<DescribeScraperCommandInput, DescribeScraperCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
AmpClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../AmpClient";
|
|
14
|
+
import {
|
|
15
|
+
GetDefaultScraperConfigurationRequest,
|
|
16
|
+
GetDefaultScraperConfigurationResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface GetDefaultScraperConfigurationCommandInput
|
|
20
|
+
extends GetDefaultScraperConfigurationRequest {}
|
|
21
|
+
export interface GetDefaultScraperConfigurationCommandOutput
|
|
22
|
+
extends GetDefaultScraperConfigurationResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class GetDefaultScraperConfigurationCommand extends $Command<
|
|
25
|
+
GetDefaultScraperConfigurationCommandInput,
|
|
26
|
+
GetDefaultScraperConfigurationCommandOutput,
|
|
27
|
+
AmpClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: GetDefaultScraperConfigurationCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: GetDefaultScraperConfigurationCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: AmpClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
GetDefaultScraperConfigurationCommandInput,
|
|
38
|
+
GetDefaultScraperConfigurationCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
AmpClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../AmpClient";
|
|
14
|
+
import { ListScrapersRequest, ListScrapersResponse } from "../models/models_0";
|
|
15
|
+
export { __MetadataBearer, $Command };
|
|
16
|
+
export interface ListScrapersCommandInput extends ListScrapersRequest {}
|
|
17
|
+
export interface ListScrapersCommandOutput
|
|
18
|
+
extends ListScrapersResponse,
|
|
19
|
+
__MetadataBearer {}
|
|
20
|
+
export declare class ListScrapersCommand extends $Command<
|
|
21
|
+
ListScrapersCommandInput,
|
|
22
|
+
ListScrapersCommandOutput,
|
|
23
|
+
AmpClientResolvedConfig
|
|
24
|
+
> {
|
|
25
|
+
readonly input: ListScrapersCommandInput;
|
|
26
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
27
|
+
constructor(input: ListScrapersCommandInput);
|
|
28
|
+
resolveMiddleware(
|
|
29
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
30
|
+
configuration: AmpClientResolvedConfig,
|
|
31
|
+
options?: __HttpHandlerOptions
|
|
32
|
+
): Handler<ListScrapersCommandInput, ListScrapersCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
export * from "./CreateAlertManagerDefinitionCommand";
|
|
2
2
|
export * from "./CreateLoggingConfigurationCommand";
|
|
3
3
|
export * from "./CreateRuleGroupsNamespaceCommand";
|
|
4
|
+
export * from "./CreateScraperCommand";
|
|
4
5
|
export * from "./CreateWorkspaceCommand";
|
|
5
6
|
export * from "./DeleteAlertManagerDefinitionCommand";
|
|
6
7
|
export * from "./DeleteLoggingConfigurationCommand";
|
|
7
8
|
export * from "./DeleteRuleGroupsNamespaceCommand";
|
|
9
|
+
export * from "./DeleteScraperCommand";
|
|
8
10
|
export * from "./DeleteWorkspaceCommand";
|
|
9
11
|
export * from "./DescribeAlertManagerDefinitionCommand";
|
|
10
12
|
export * from "./DescribeLoggingConfigurationCommand";
|
|
11
13
|
export * from "./DescribeRuleGroupsNamespaceCommand";
|
|
14
|
+
export * from "./DescribeScraperCommand";
|
|
12
15
|
export * from "./DescribeWorkspaceCommand";
|
|
16
|
+
export * from "./GetDefaultScraperConfigurationCommand";
|
|
13
17
|
export * from "./ListRuleGroupsNamespacesCommand";
|
|
18
|
+
export * from "./ListScrapersCommand";
|
|
14
19
|
export * from "./ListTagsForResourceCommand";
|
|
15
20
|
export * from "./ListWorkspacesCommand";
|
|
16
21
|
export * from "./PutAlertManagerDefinitionCommand";
|
|
@@ -121,12 +121,152 @@ export interface PutAlertManagerDefinitionRequest {
|
|
|
121
121
|
export interface PutAlertManagerDefinitionResponse {
|
|
122
122
|
status: AlertManagerDefinitionStatus | undefined;
|
|
123
123
|
}
|
|
124
|
+
export interface GetDefaultScraperConfigurationRequest {}
|
|
125
|
+
export interface GetDefaultScraperConfigurationResponse {
|
|
126
|
+
configuration: Uint8Array | undefined;
|
|
127
|
+
}
|
|
124
128
|
export interface ListTagsForResourceRequest {
|
|
125
129
|
resourceArn: string | undefined;
|
|
126
130
|
}
|
|
127
131
|
export interface ListTagsForResourceResponse {
|
|
128
132
|
tags?: Record<string, string>;
|
|
129
133
|
}
|
|
134
|
+
export interface AmpConfiguration {
|
|
135
|
+
workspaceArn: string | undefined;
|
|
136
|
+
}
|
|
137
|
+
export type Destination =
|
|
138
|
+
| Destination.AmpConfigurationMember
|
|
139
|
+
| Destination.$UnknownMember;
|
|
140
|
+
export declare namespace Destination {
|
|
141
|
+
interface AmpConfigurationMember {
|
|
142
|
+
ampConfiguration: AmpConfiguration;
|
|
143
|
+
$unknown?: never;
|
|
144
|
+
}
|
|
145
|
+
interface $UnknownMember {
|
|
146
|
+
ampConfiguration?: never;
|
|
147
|
+
$unknown: [string, any];
|
|
148
|
+
}
|
|
149
|
+
interface Visitor<T> {
|
|
150
|
+
ampConfiguration: (value: AmpConfiguration) => T;
|
|
151
|
+
_: (name: string, value: any) => T;
|
|
152
|
+
}
|
|
153
|
+
const visit: <T>(value: Destination, visitor: Visitor<T>) => T;
|
|
154
|
+
}
|
|
155
|
+
export type ScrapeConfiguration =
|
|
156
|
+
| ScrapeConfiguration.ConfigurationBlobMember
|
|
157
|
+
| ScrapeConfiguration.$UnknownMember;
|
|
158
|
+
export declare namespace ScrapeConfiguration {
|
|
159
|
+
interface ConfigurationBlobMember {
|
|
160
|
+
configurationBlob: Uint8Array;
|
|
161
|
+
$unknown?: never;
|
|
162
|
+
}
|
|
163
|
+
interface $UnknownMember {
|
|
164
|
+
configurationBlob?: never;
|
|
165
|
+
$unknown: [string, any];
|
|
166
|
+
}
|
|
167
|
+
interface Visitor<T> {
|
|
168
|
+
configurationBlob: (value: Uint8Array) => T;
|
|
169
|
+
_: (name: string, value: any) => T;
|
|
170
|
+
}
|
|
171
|
+
const visit: <T>(value: ScrapeConfiguration, visitor: Visitor<T>) => T;
|
|
172
|
+
}
|
|
173
|
+
export interface EksConfiguration {
|
|
174
|
+
clusterArn: string | undefined;
|
|
175
|
+
securityGroupIds?: string[];
|
|
176
|
+
subnetIds: string[] | undefined;
|
|
177
|
+
}
|
|
178
|
+
export type Source = Source.EksConfigurationMember | Source.$UnknownMember;
|
|
179
|
+
export declare namespace Source {
|
|
180
|
+
interface EksConfigurationMember {
|
|
181
|
+
eksConfiguration: EksConfiguration;
|
|
182
|
+
$unknown?: never;
|
|
183
|
+
}
|
|
184
|
+
interface $UnknownMember {
|
|
185
|
+
eksConfiguration?: never;
|
|
186
|
+
$unknown: [string, any];
|
|
187
|
+
}
|
|
188
|
+
interface Visitor<T> {
|
|
189
|
+
eksConfiguration: (value: EksConfiguration) => T;
|
|
190
|
+
_: (name: string, value: any) => T;
|
|
191
|
+
}
|
|
192
|
+
const visit: <T>(value: Source, visitor: Visitor<T>) => T;
|
|
193
|
+
}
|
|
194
|
+
export interface CreateScraperRequest {
|
|
195
|
+
alias?: string;
|
|
196
|
+
scrapeConfiguration: ScrapeConfiguration | undefined;
|
|
197
|
+
source: Source | undefined;
|
|
198
|
+
destination: Destination | undefined;
|
|
199
|
+
clientToken?: string;
|
|
200
|
+
tags?: Record<string, string>;
|
|
201
|
+
}
|
|
202
|
+
export declare const ScraperStatusCode: {
|
|
203
|
+
readonly ACTIVE: "ACTIVE";
|
|
204
|
+
readonly CREATING: "CREATING";
|
|
205
|
+
readonly CREATION_FAILED: "CREATION_FAILED";
|
|
206
|
+
readonly DELETING: "DELETING";
|
|
207
|
+
readonly DELETION_FAILED: "DELETION_FAILED";
|
|
208
|
+
};
|
|
209
|
+
export type ScraperStatusCode =
|
|
210
|
+
(typeof ScraperStatusCode)[keyof typeof ScraperStatusCode];
|
|
211
|
+
export interface ScraperStatus {
|
|
212
|
+
statusCode: ScraperStatusCode | undefined;
|
|
213
|
+
}
|
|
214
|
+
export interface CreateScraperResponse {
|
|
215
|
+
scraperId: string | undefined;
|
|
216
|
+
arn: string | undefined;
|
|
217
|
+
status: ScraperStatus | undefined;
|
|
218
|
+
tags?: Record<string, string>;
|
|
219
|
+
}
|
|
220
|
+
export interface DeleteScraperRequest {
|
|
221
|
+
scraperId: string | undefined;
|
|
222
|
+
clientToken?: string;
|
|
223
|
+
}
|
|
224
|
+
export interface DeleteScraperResponse {
|
|
225
|
+
scraperId: string | undefined;
|
|
226
|
+
status: ScraperStatus | undefined;
|
|
227
|
+
}
|
|
228
|
+
export interface DescribeScraperRequest {
|
|
229
|
+
scraperId: string | undefined;
|
|
230
|
+
}
|
|
231
|
+
export interface ScraperDescription {
|
|
232
|
+
alias?: string;
|
|
233
|
+
scraperId: string | undefined;
|
|
234
|
+
arn: string | undefined;
|
|
235
|
+
roleArn: string | undefined;
|
|
236
|
+
status: ScraperStatus | undefined;
|
|
237
|
+
createdAt: Date | undefined;
|
|
238
|
+
lastModifiedAt: Date | undefined;
|
|
239
|
+
tags?: Record<string, string>;
|
|
240
|
+
statusReason?: string;
|
|
241
|
+
scrapeConfiguration: ScrapeConfiguration | undefined;
|
|
242
|
+
source: Source | undefined;
|
|
243
|
+
destination: Destination | undefined;
|
|
244
|
+
}
|
|
245
|
+
export interface DescribeScraperResponse {
|
|
246
|
+
scraper: ScraperDescription | undefined;
|
|
247
|
+
}
|
|
248
|
+
export interface ListScrapersRequest {
|
|
249
|
+
filters?: Record<string, string[]>;
|
|
250
|
+
nextToken?: string;
|
|
251
|
+
maxResults?: number;
|
|
252
|
+
}
|
|
253
|
+
export interface ScraperSummary {
|
|
254
|
+
alias?: string;
|
|
255
|
+
scraperId: string | undefined;
|
|
256
|
+
arn: string | undefined;
|
|
257
|
+
roleArn: string | undefined;
|
|
258
|
+
status: ScraperStatus | undefined;
|
|
259
|
+
createdAt: Date | undefined;
|
|
260
|
+
lastModifiedAt: Date | undefined;
|
|
261
|
+
tags?: Record<string, string>;
|
|
262
|
+
statusReason?: string;
|
|
263
|
+
source: Source | undefined;
|
|
264
|
+
destination: Destination | undefined;
|
|
265
|
+
}
|
|
266
|
+
export interface ListScrapersResponse {
|
|
267
|
+
scrapers: ScraperSummary[] | undefined;
|
|
268
|
+
nextToken?: string;
|
|
269
|
+
}
|
|
130
270
|
export interface TagResourceRequest {
|
|
131
271
|
resourceArn: string | undefined;
|
|
132
272
|
tags: Record<string, string> | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListScrapersCommandInput,
|
|
4
|
+
ListScrapersCommandOutput,
|
|
5
|
+
} from "../commands/ListScrapersCommand";
|
|
6
|
+
import { AmpPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare function paginateListScrapers(
|
|
8
|
+
config: AmpPaginationConfiguration,
|
|
9
|
+
input: ListScrapersCommandInput,
|
|
10
|
+
...additionalArguments: any
|
|
11
|
+
): Paginator<ListScrapersCommandOutput>;
|