@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.
Files changed (60) hide show
  1. package/README.md +68 -28
  2. package/dist-cjs/Amp.js +10 -0
  3. package/dist-cjs/commands/CreateScraperCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteScraperCommand.js +51 -0
  5. package/dist-cjs/commands/DescribeScraperCommand.js +51 -0
  6. package/dist-cjs/commands/GetDefaultScraperConfigurationCommand.js +51 -0
  7. package/dist-cjs/commands/ListScrapersCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +32 -1
  10. package/dist-cjs/pagination/ListScrapersPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +396 -1
  13. package/dist-cjs/waiters/index.js +2 -0
  14. package/dist-cjs/waiters/waitForScraperActive.js +45 -0
  15. package/dist-cjs/waiters/waitForScraperDeleted.js +39 -0
  16. package/dist-es/Amp.js +10 -0
  17. package/dist-es/commands/CreateScraperCommand.js +47 -0
  18. package/dist-es/commands/DeleteScraperCommand.js +47 -0
  19. package/dist-es/commands/DescribeScraperCommand.js +47 -0
  20. package/dist-es/commands/GetDefaultScraperConfigurationCommand.js +47 -0
  21. package/dist-es/commands/ListScrapersCommand.js +47 -0
  22. package/dist-es/commands/index.js +5 -0
  23. package/dist-es/models/models_0.js +31 -0
  24. package/dist-es/pagination/ListScrapersPaginator.js +25 -0
  25. package/dist-es/pagination/index.js +1 -0
  26. package/dist-es/protocols/Aws_restJson1.js +386 -2
  27. package/dist-es/waiters/index.js +2 -0
  28. package/dist-es/waiters/waitForScraperActive.js +40 -0
  29. package/dist-es/waiters/waitForScraperDeleted.js +34 -0
  30. package/dist-types/Amp.d.ts +35 -0
  31. package/dist-types/AmpClient.d.ts +7 -2
  32. package/dist-types/commands/CreateScraperCommand.d.ts +124 -0
  33. package/dist-types/commands/DeleteScraperCommand.d.ts +95 -0
  34. package/dist-types/commands/DescribeScraperCommand.d.ts +121 -0
  35. package/dist-types/commands/GetDefaultScraperConfigurationCommand.d.ts +80 -0
  36. package/dist-types/commands/ListScrapersCommand.d.ts +124 -0
  37. package/dist-types/commands/index.d.ts +5 -0
  38. package/dist-types/models/models_0.d.ts +460 -0
  39. package/dist-types/pagination/ListScrapersPaginator.d.ts +7 -0
  40. package/dist-types/pagination/index.d.ts +1 -0
  41. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  42. package/dist-types/ts3.4/Amp.d.ts +85 -0
  43. package/dist-types/ts3.4/AmpClient.d.ts +30 -0
  44. package/dist-types/ts3.4/commands/CreateScraperCommand.d.ts +38 -0
  45. package/dist-types/ts3.4/commands/DeleteScraperCommand.d.ts +38 -0
  46. package/dist-types/ts3.4/commands/DescribeScraperCommand.d.ts +38 -0
  47. package/dist-types/ts3.4/commands/GetDefaultScraperConfigurationCommand.d.ts +42 -0
  48. package/dist-types/ts3.4/commands/ListScrapersCommand.d.ts +35 -0
  49. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  50. package/dist-types/ts3.4/models/models_0.d.ts +140 -0
  51. package/dist-types/ts3.4/pagination/ListScrapersPaginator.d.ts +11 -0
  52. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  53. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  54. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  55. package/dist-types/ts3.4/waiters/waitForScraperActive.d.ts +11 -0
  56. package/dist-types/ts3.4/waiters/waitForScraperDeleted.d.ts +11 -0
  57. package/dist-types/waiters/index.d.ts +2 -0
  58. package/dist-types/waiters/waitForScraperActive.d.ts +14 -0
  59. package/dist-types/waiters/waitForScraperDeleted.d.ts +14 -0
  60. package/package.json +12 -12
@@ -15,6 +15,10 @@ import {
15
15
  CreateRuleGroupsNamespaceCommandInput,
16
16
  CreateRuleGroupsNamespaceCommandOutput,
17
17
  } from "../commands/CreateRuleGroupsNamespaceCommand";
18
+ import {
19
+ CreateScraperCommandInput,
20
+ CreateScraperCommandOutput,
21
+ } from "../commands/CreateScraperCommand";
18
22
  import {
19
23
  CreateWorkspaceCommandInput,
20
24
  CreateWorkspaceCommandOutput,
@@ -31,6 +35,10 @@ import {
31
35
  DeleteRuleGroupsNamespaceCommandInput,
32
36
  DeleteRuleGroupsNamespaceCommandOutput,
33
37
  } from "../commands/DeleteRuleGroupsNamespaceCommand";
38
+ import {
39
+ DeleteScraperCommandInput,
40
+ DeleteScraperCommandOutput,
41
+ } from "../commands/DeleteScraperCommand";
34
42
  import {
35
43
  DeleteWorkspaceCommandInput,
36
44
  DeleteWorkspaceCommandOutput,
@@ -47,14 +55,26 @@ import {
47
55
  DescribeRuleGroupsNamespaceCommandInput,
48
56
  DescribeRuleGroupsNamespaceCommandOutput,
49
57
  } from "../commands/DescribeRuleGroupsNamespaceCommand";
58
+ import {
59
+ DescribeScraperCommandInput,
60
+ DescribeScraperCommandOutput,
61
+ } from "../commands/DescribeScraperCommand";
50
62
  import {
51
63
  DescribeWorkspaceCommandInput,
52
64
  DescribeWorkspaceCommandOutput,
53
65
  } from "../commands/DescribeWorkspaceCommand";
66
+ import {
67
+ GetDefaultScraperConfigurationCommandInput,
68
+ GetDefaultScraperConfigurationCommandOutput,
69
+ } from "../commands/GetDefaultScraperConfigurationCommand";
54
70
  import {
55
71
  ListRuleGroupsNamespacesCommandInput,
56
72
  ListRuleGroupsNamespacesCommandOutput,
57
73
  } from "../commands/ListRuleGroupsNamespacesCommand";
74
+ import {
75
+ ListScrapersCommandInput,
76
+ ListScrapersCommandOutput,
77
+ } from "../commands/ListScrapersCommand";
58
78
  import {
59
79
  ListTagsForResourceCommandInput,
60
80
  ListTagsForResourceCommandOutput,
@@ -99,6 +119,10 @@ export declare const se_CreateRuleGroupsNamespaceCommand: (
99
119
  input: CreateRuleGroupsNamespaceCommandInput,
100
120
  context: __SerdeContext
101
121
  ) => Promise<__HttpRequest>;
122
+ export declare const se_CreateScraperCommand: (
123
+ input: CreateScraperCommandInput,
124
+ context: __SerdeContext
125
+ ) => Promise<__HttpRequest>;
102
126
  export declare const se_CreateWorkspaceCommand: (
103
127
  input: CreateWorkspaceCommandInput,
104
128
  context: __SerdeContext
@@ -115,6 +139,10 @@ export declare const se_DeleteRuleGroupsNamespaceCommand: (
115
139
  input: DeleteRuleGroupsNamespaceCommandInput,
116
140
  context: __SerdeContext
117
141
  ) => Promise<__HttpRequest>;
142
+ export declare const se_DeleteScraperCommand: (
143
+ input: DeleteScraperCommandInput,
144
+ context: __SerdeContext
145
+ ) => Promise<__HttpRequest>;
118
146
  export declare const se_DeleteWorkspaceCommand: (
119
147
  input: DeleteWorkspaceCommandInput,
120
148
  context: __SerdeContext
@@ -131,14 +159,26 @@ export declare const se_DescribeRuleGroupsNamespaceCommand: (
131
159
  input: DescribeRuleGroupsNamespaceCommandInput,
132
160
  context: __SerdeContext
133
161
  ) => Promise<__HttpRequest>;
162
+ export declare const se_DescribeScraperCommand: (
163
+ input: DescribeScraperCommandInput,
164
+ context: __SerdeContext
165
+ ) => Promise<__HttpRequest>;
134
166
  export declare const se_DescribeWorkspaceCommand: (
135
167
  input: DescribeWorkspaceCommandInput,
136
168
  context: __SerdeContext
137
169
  ) => Promise<__HttpRequest>;
170
+ export declare const se_GetDefaultScraperConfigurationCommand: (
171
+ input: GetDefaultScraperConfigurationCommandInput,
172
+ context: __SerdeContext
173
+ ) => Promise<__HttpRequest>;
138
174
  export declare const se_ListRuleGroupsNamespacesCommand: (
139
175
  input: ListRuleGroupsNamespacesCommandInput,
140
176
  context: __SerdeContext
141
177
  ) => Promise<__HttpRequest>;
178
+ export declare const se_ListScrapersCommand: (
179
+ input: ListScrapersCommandInput,
180
+ context: __SerdeContext
181
+ ) => Promise<__HttpRequest>;
142
182
  export declare const se_ListTagsForResourceCommand: (
143
183
  input: ListTagsForResourceCommandInput,
144
184
  context: __SerdeContext
@@ -183,6 +223,10 @@ export declare const de_CreateRuleGroupsNamespaceCommand: (
183
223
  output: __HttpResponse,
184
224
  context: __SerdeContext
185
225
  ) => Promise<CreateRuleGroupsNamespaceCommandOutput>;
226
+ export declare const de_CreateScraperCommand: (
227
+ output: __HttpResponse,
228
+ context: __SerdeContext
229
+ ) => Promise<CreateScraperCommandOutput>;
186
230
  export declare const de_CreateWorkspaceCommand: (
187
231
  output: __HttpResponse,
188
232
  context: __SerdeContext
@@ -199,6 +243,10 @@ export declare const de_DeleteRuleGroupsNamespaceCommand: (
199
243
  output: __HttpResponse,
200
244
  context: __SerdeContext
201
245
  ) => Promise<DeleteRuleGroupsNamespaceCommandOutput>;
246
+ export declare const de_DeleteScraperCommand: (
247
+ output: __HttpResponse,
248
+ context: __SerdeContext
249
+ ) => Promise<DeleteScraperCommandOutput>;
202
250
  export declare const de_DeleteWorkspaceCommand: (
203
251
  output: __HttpResponse,
204
252
  context: __SerdeContext
@@ -215,14 +263,26 @@ export declare const de_DescribeRuleGroupsNamespaceCommand: (
215
263
  output: __HttpResponse,
216
264
  context: __SerdeContext
217
265
  ) => Promise<DescribeRuleGroupsNamespaceCommandOutput>;
266
+ export declare const de_DescribeScraperCommand: (
267
+ output: __HttpResponse,
268
+ context: __SerdeContext
269
+ ) => Promise<DescribeScraperCommandOutput>;
218
270
  export declare const de_DescribeWorkspaceCommand: (
219
271
  output: __HttpResponse,
220
272
  context: __SerdeContext
221
273
  ) => Promise<DescribeWorkspaceCommandOutput>;
274
+ export declare const de_GetDefaultScraperConfigurationCommand: (
275
+ output: __HttpResponse,
276
+ context: __SerdeContext
277
+ ) => Promise<GetDefaultScraperConfigurationCommandOutput>;
222
278
  export declare const de_ListRuleGroupsNamespacesCommand: (
223
279
  output: __HttpResponse,
224
280
  context: __SerdeContext
225
281
  ) => Promise<ListRuleGroupsNamespacesCommandOutput>;
282
+ export declare const de_ListScrapersCommand: (
283
+ output: __HttpResponse,
284
+ context: __SerdeContext
285
+ ) => Promise<ListScrapersCommandOutput>;
226
286
  export declare const de_ListTagsForResourceCommand: (
227
287
  output: __HttpResponse,
228
288
  context: __SerdeContext
@@ -1,2 +1,4 @@
1
+ export * from "./waitForScraperActive";
2
+ export * from "./waitForScraperDeleted";
1
3
  export * from "./waitForWorkspaceActive";
2
4
  export * from "./waitForWorkspaceDeleted";
@@ -0,0 +1,11 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
+ import { AmpClient } from "../AmpClient";
3
+ import { DescribeScraperCommandInput } from "../commands/DescribeScraperCommand";
4
+ export declare const waitForScraperActive: (
5
+ params: WaiterConfiguration<AmpClient>,
6
+ input: DescribeScraperCommandInput
7
+ ) => Promise<WaiterResult>;
8
+ export declare const waitUntilScraperActive: (
9
+ params: WaiterConfiguration<AmpClient>,
10
+ input: DescribeScraperCommandInput
11
+ ) => Promise<WaiterResult>;
@@ -0,0 +1,11 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
+ import { AmpClient } from "../AmpClient";
3
+ import { DescribeScraperCommandInput } from "../commands/DescribeScraperCommand";
4
+ export declare const waitForScraperDeleted: (
5
+ params: WaiterConfiguration<AmpClient>,
6
+ input: DescribeScraperCommandInput
7
+ ) => Promise<WaiterResult>;
8
+ export declare const waitUntilScraperDeleted: (
9
+ params: WaiterConfiguration<AmpClient>,
10
+ input: DescribeScraperCommandInput
11
+ ) => Promise<WaiterResult>;
@@ -1,2 +1,4 @@
1
+ export * from "./waitForScraperActive";
2
+ export * from "./waitForScraperDeleted";
1
3
  export * from "./waitForWorkspaceActive";
2
4
  export * from "./waitForWorkspaceDeleted";
@@ -0,0 +1,14 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
+ import { AmpClient } from "../AmpClient";
3
+ import { DescribeScraperCommandInput } from "../commands/DescribeScraperCommand";
4
+ /**
5
+ * Wait until a scraper reaches ACTIVE status
6
+ * @deprecated Use waitUntilScraperActive instead. waitForScraperActive does not throw error in non-success cases.
7
+ */
8
+ export declare const waitForScraperActive: (params: WaiterConfiguration<AmpClient>, input: DescribeScraperCommandInput) => Promise<WaiterResult>;
9
+ /**
10
+ * Wait until a scraper reaches ACTIVE status
11
+ * @param params - Waiter configuration options.
12
+ * @param input - The input to DescribeScraperCommand for polling.
13
+ */
14
+ export declare const waitUntilScraperActive: (params: WaiterConfiguration<AmpClient>, input: DescribeScraperCommandInput) => Promise<WaiterResult>;
@@ -0,0 +1,14 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
+ import { AmpClient } from "../AmpClient";
3
+ import { DescribeScraperCommandInput } from "../commands/DescribeScraperCommand";
4
+ /**
5
+ * Wait until a scraper reaches DELETED status
6
+ * @deprecated Use waitUntilScraperDeleted instead. waitForScraperDeleted does not throw error in non-success cases.
7
+ */
8
+ export declare const waitForScraperDeleted: (params: WaiterConfiguration<AmpClient>, input: DescribeScraperCommandInput) => Promise<WaiterResult>;
9
+ /**
10
+ * Wait until a scraper reaches DELETED status
11
+ * @param params - Waiter configuration options.
12
+ * @param input - The input to DescribeScraperCommand for polling.
13
+ */
14
+ export declare const waitUntilScraperDeleted: (params: WaiterConfiguration<AmpClient>, input: DescribeScraperCommandInput) => Promise<WaiterResult>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amp",
3
3
  "description": "AWS SDK for JavaScript Amp Client for Node.js, Browser and React Native",
4
- "version": "3.454.0",
4
+ "version": "3.460.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,19 +21,19 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.454.0",
24
+ "@aws-sdk/client-sts": "3.460.0",
25
25
  "@aws-sdk/core": "3.451.0",
26
- "@aws-sdk/credential-provider-node": "3.451.0",
27
- "@aws-sdk/middleware-host-header": "3.451.0",
28
- "@aws-sdk/middleware-logger": "3.451.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.451.0",
30
- "@aws-sdk/middleware-signing": "3.451.0",
31
- "@aws-sdk/middleware-user-agent": "3.451.0",
26
+ "@aws-sdk/credential-provider-node": "3.460.0",
27
+ "@aws-sdk/middleware-host-header": "3.460.0",
28
+ "@aws-sdk/middleware-logger": "3.460.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.460.0",
30
+ "@aws-sdk/middleware-signing": "3.460.0",
31
+ "@aws-sdk/middleware-user-agent": "3.460.0",
32
32
  "@aws-sdk/region-config-resolver": "3.451.0",
33
- "@aws-sdk/types": "3.451.0",
34
- "@aws-sdk/util-endpoints": "3.451.0",
35
- "@aws-sdk/util-user-agent-browser": "3.451.0",
36
- "@aws-sdk/util-user-agent-node": "3.451.0",
33
+ "@aws-sdk/types": "3.460.0",
34
+ "@aws-sdk/util-endpoints": "3.460.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.460.0",
36
+ "@aws-sdk/util-user-agent-node": "3.460.0",
37
37
  "@smithy/config-resolver": "^2.0.18",
38
38
  "@smithy/fetch-http-handler": "^2.2.6",
39
39
  "@smithy/hash-node": "^2.0.15",