@aws-sdk/client-amp 3.883.0 → 3.887.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 +24 -0
- package/dist-cjs/index.js +187 -0
- package/dist-es/Amp.js +6 -0
- package/dist-es/commands/DeleteScraperLoggingConfigurationCommand.js +22 -0
- package/dist-es/commands/DescribeScraperLoggingConfigurationCommand.js +22 -0
- package/dist-es/commands/UpdateScraperLoggingConfigurationCommand.js +22 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +21 -0
- package/dist-es/protocols/Aws_restJson1.js +78 -0
- package/dist-types/Amp.d.ts +21 -0
- package/dist-types/AmpClient.d.ts +5 -2
- package/dist-types/commands/DeleteScraperLoggingConfigurationCommand.d.ts +86 -0
- package/dist-types/commands/DescribeScraperLoggingConfigurationCommand.d.ts +104 -0
- package/dist-types/commands/UpdateScraperLoggingConfigurationCommand.d.ts +105 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +225 -11
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/Amp.d.ts +69 -0
- package/dist-types/ts3.4/AmpClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteScraperLoggingConfigurationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DescribeScraperLoggingConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateScraperLoggingConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +71 -3
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +38 -38
package/README.md
CHANGED
|
@@ -298,6 +298,14 @@ DeleteScraper
|
|
|
298
298
|
|
|
299
299
|
[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/)
|
|
300
300
|
|
|
301
|
+
</details>
|
|
302
|
+
<details>
|
|
303
|
+
<summary>
|
|
304
|
+
DeleteScraperLoggingConfiguration
|
|
305
|
+
</summary>
|
|
306
|
+
|
|
307
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DeleteScraperLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteScraperLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteScraperLoggingConfigurationCommandOutput/)
|
|
308
|
+
|
|
301
309
|
</details>
|
|
302
310
|
<details>
|
|
303
311
|
<summary>
|
|
@@ -354,6 +362,14 @@ DescribeScraper
|
|
|
354
362
|
|
|
355
363
|
[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/)
|
|
356
364
|
|
|
365
|
+
</details>
|
|
366
|
+
<details>
|
|
367
|
+
<summary>
|
|
368
|
+
DescribeScraperLoggingConfiguration
|
|
369
|
+
</summary>
|
|
370
|
+
|
|
371
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DescribeScraperLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeScraperLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeScraperLoggingConfigurationCommandOutput/)
|
|
372
|
+
|
|
357
373
|
</details>
|
|
358
374
|
<details>
|
|
359
375
|
<summary>
|
|
@@ -474,6 +490,14 @@ UpdateScraper
|
|
|
474
490
|
|
|
475
491
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/UpdateScraperCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateScraperCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateScraperCommandOutput/)
|
|
476
492
|
|
|
493
|
+
</details>
|
|
494
|
+
<details>
|
|
495
|
+
<summary>
|
|
496
|
+
UpdateScraperLoggingConfiguration
|
|
497
|
+
</summary>
|
|
498
|
+
|
|
499
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/UpdateScraperLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateScraperLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateScraperLoggingConfigurationCommandOutput/)
|
|
500
|
+
|
|
477
501
|
</details>
|
|
478
502
|
<details>
|
|
479
503
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __export(index_exports, {
|
|
|
39
39
|
DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
|
|
40
40
|
DeleteRuleGroupsNamespaceCommand: () => DeleteRuleGroupsNamespaceCommand,
|
|
41
41
|
DeleteScraperCommand: () => DeleteScraperCommand,
|
|
42
|
+
DeleteScraperLoggingConfigurationCommand: () => DeleteScraperLoggingConfigurationCommand,
|
|
42
43
|
DeleteWorkspaceCommand: () => DeleteWorkspaceCommand,
|
|
43
44
|
DescribeAlertManagerDefinitionCommand: () => DescribeAlertManagerDefinitionCommand,
|
|
44
45
|
DescribeLoggingConfigurationCommand: () => DescribeLoggingConfigurationCommand,
|
|
@@ -46,6 +47,7 @@ __export(index_exports, {
|
|
|
46
47
|
DescribeResourcePolicyCommand: () => DescribeResourcePolicyCommand,
|
|
47
48
|
DescribeRuleGroupsNamespaceCommand: () => DescribeRuleGroupsNamespaceCommand,
|
|
48
49
|
DescribeScraperCommand: () => DescribeScraperCommand,
|
|
50
|
+
DescribeScraperLoggingConfigurationCommand: () => DescribeScraperLoggingConfigurationCommand,
|
|
49
51
|
DescribeWorkspaceCommand: () => DescribeWorkspaceCommand,
|
|
50
52
|
DescribeWorkspaceConfigurationCommand: () => DescribeWorkspaceConfigurationCommand,
|
|
51
53
|
Destination: () => Destination,
|
|
@@ -63,6 +65,9 @@ __export(index_exports, {
|
|
|
63
65
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
64
66
|
RuleGroupsNamespaceStatusCode: () => RuleGroupsNamespaceStatusCode,
|
|
65
67
|
ScrapeConfiguration: () => ScrapeConfiguration,
|
|
68
|
+
ScraperComponentType: () => ScraperComponentType,
|
|
69
|
+
ScraperLoggingConfigurationStatusCode: () => ScraperLoggingConfigurationStatusCode,
|
|
70
|
+
ScraperLoggingDestination: () => ScraperLoggingDestination,
|
|
66
71
|
ScraperStatusCode: () => ScraperStatusCode,
|
|
67
72
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
68
73
|
Source: () => Source,
|
|
@@ -72,6 +77,7 @@ __export(index_exports, {
|
|
|
72
77
|
UpdateLoggingConfigurationCommand: () => UpdateLoggingConfigurationCommand,
|
|
73
78
|
UpdateQueryLoggingConfigurationCommand: () => UpdateQueryLoggingConfigurationCommand,
|
|
74
79
|
UpdateScraperCommand: () => UpdateScraperCommand,
|
|
80
|
+
UpdateScraperLoggingConfigurationCommand: () => UpdateScraperLoggingConfigurationCommand,
|
|
75
81
|
UpdateWorkspaceAliasCommand: () => UpdateWorkspaceAliasCommand,
|
|
76
82
|
UpdateWorkspaceConfigurationCommand: () => UpdateWorkspaceConfigurationCommand,
|
|
77
83
|
ValidationException: () => ValidationException,
|
|
@@ -560,6 +566,53 @@ var ScraperStatusCode = {
|
|
|
560
566
|
*/
|
|
561
567
|
UPDATING: "UPDATING"
|
|
562
568
|
};
|
|
569
|
+
var ScraperLoggingDestination;
|
|
570
|
+
((ScraperLoggingDestination3) => {
|
|
571
|
+
ScraperLoggingDestination3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
572
|
+
if (value.cloudWatchLogs !== void 0) return visitor.cloudWatchLogs(value.cloudWatchLogs);
|
|
573
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
574
|
+
}, "visit");
|
|
575
|
+
})(ScraperLoggingDestination || (ScraperLoggingDestination = {}));
|
|
576
|
+
var ScraperComponentType = {
|
|
577
|
+
/**
|
|
578
|
+
* Scraper collector component
|
|
579
|
+
*/
|
|
580
|
+
COLLECTOR: "COLLECTOR",
|
|
581
|
+
/**
|
|
582
|
+
* Scraper exporter component
|
|
583
|
+
*/
|
|
584
|
+
EXPORTER: "EXPORTER",
|
|
585
|
+
/**
|
|
586
|
+
* Scraper service discoverer component
|
|
587
|
+
*/
|
|
588
|
+
SERVICE_DISCOVERY: "SERVICE_DISCOVERY"
|
|
589
|
+
};
|
|
590
|
+
var ScraperLoggingConfigurationStatusCode = {
|
|
591
|
+
/**
|
|
592
|
+
* Scraper logging configuration is active.
|
|
593
|
+
*/
|
|
594
|
+
ACTIVE: "ACTIVE",
|
|
595
|
+
/**
|
|
596
|
+
* Scraper logging configuration is being created.
|
|
597
|
+
*/
|
|
598
|
+
CREATING: "CREATING",
|
|
599
|
+
/**
|
|
600
|
+
* Scraper logging configuration creation failed.
|
|
601
|
+
*/
|
|
602
|
+
CREATION_FAILED: "CREATION_FAILED",
|
|
603
|
+
/**
|
|
604
|
+
* Scraper logging configuration is being deleted.
|
|
605
|
+
*/
|
|
606
|
+
DELETING: "DELETING",
|
|
607
|
+
/**
|
|
608
|
+
* Scraper logging configuration update failed.
|
|
609
|
+
*/
|
|
610
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
611
|
+
/**
|
|
612
|
+
* Scraper logging configuration is being updated.
|
|
613
|
+
*/
|
|
614
|
+
UPDATING: "UPDATING"
|
|
615
|
+
};
|
|
563
616
|
var WorkspaceStatusCode = {
|
|
564
617
|
/**
|
|
565
618
|
* Workspace has been created and is usable.
|
|
@@ -877,6 +930,18 @@ var se_DeleteScraperCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
877
930
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
878
931
|
return b.build();
|
|
879
932
|
}, "se_DeleteScraperCommand");
|
|
933
|
+
var se_DeleteScraperLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
934
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
935
|
+
const headers = {};
|
|
936
|
+
b.bp("/scrapers/{scraperId}/logging-configuration");
|
|
937
|
+
b.p("scraperId", () => input.scraperId, "{scraperId}", false);
|
|
938
|
+
const query = (0, import_smithy_client.map)({
|
|
939
|
+
[_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
|
|
940
|
+
});
|
|
941
|
+
let body;
|
|
942
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
943
|
+
return b.build();
|
|
944
|
+
}, "se_DeleteScraperLoggingConfigurationCommand");
|
|
880
945
|
var se_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
881
946
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
882
947
|
const headers = {};
|
|
@@ -944,6 +1009,15 @@ var se_DescribeScraperCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
944
1009
|
b.m("GET").h(headers).b(body);
|
|
945
1010
|
return b.build();
|
|
946
1011
|
}, "se_DescribeScraperCommand");
|
|
1012
|
+
var se_DescribeScraperLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1013
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1014
|
+
const headers = {};
|
|
1015
|
+
b.bp("/scrapers/{scraperId}/logging-configuration");
|
|
1016
|
+
b.p("scraperId", () => input.scraperId, "{scraperId}", false);
|
|
1017
|
+
let body;
|
|
1018
|
+
b.m("GET").h(headers).b(body);
|
|
1019
|
+
return b.build();
|
|
1020
|
+
}, "se_DescribeScraperLoggingConfigurationCommand");
|
|
947
1021
|
var se_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
948
1022
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
949
1023
|
const headers = {};
|
|
@@ -1154,6 +1228,23 @@ var se_UpdateScraperCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1154
1228
|
b.m("PUT").h(headers).b(body);
|
|
1155
1229
|
return b.build();
|
|
1156
1230
|
}, "se_UpdateScraperCommand");
|
|
1231
|
+
var se_UpdateScraperLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1232
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1233
|
+
const headers = {
|
|
1234
|
+
"content-type": "application/json"
|
|
1235
|
+
};
|
|
1236
|
+
b.bp("/scrapers/{scraperId}/logging-configuration");
|
|
1237
|
+
b.p("scraperId", () => input.scraperId, "{scraperId}", false);
|
|
1238
|
+
let body;
|
|
1239
|
+
body = JSON.stringify(
|
|
1240
|
+
(0, import_smithy_client.take)(input, {
|
|
1241
|
+
loggingDestination: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "loggingDestination"),
|
|
1242
|
+
scraperComponents: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "scraperComponents")
|
|
1243
|
+
})
|
|
1244
|
+
);
|
|
1245
|
+
b.m("PUT").h(headers).b(body);
|
|
1246
|
+
return b.build();
|
|
1247
|
+
}, "se_UpdateScraperLoggingConfigurationCommand");
|
|
1157
1248
|
var se_UpdateWorkspaceAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1158
1249
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1159
1250
|
const headers = {
|
|
@@ -1348,6 +1439,16 @@ var de_DeleteScraperCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1348
1439
|
Object.assign(contents, doc);
|
|
1349
1440
|
return contents;
|
|
1350
1441
|
}, "de_DeleteScraperCommand");
|
|
1442
|
+
var de_DeleteScraperLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1443
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1444
|
+
return de_CommandError(output, context);
|
|
1445
|
+
}
|
|
1446
|
+
const contents = (0, import_smithy_client.map)({
|
|
1447
|
+
$metadata: deserializeMetadata(output)
|
|
1448
|
+
});
|
|
1449
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1450
|
+
return contents;
|
|
1451
|
+
}, "de_DeleteScraperLoggingConfigurationCommand");
|
|
1351
1452
|
var de_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1352
1453
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1353
1454
|
return de_CommandError(output, context);
|
|
@@ -1444,6 +1545,24 @@ var de_DescribeScraperCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1444
1545
|
Object.assign(contents, doc);
|
|
1445
1546
|
return contents;
|
|
1446
1547
|
}, "de_DescribeScraperCommand");
|
|
1548
|
+
var de_DescribeScraperLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1549
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1550
|
+
return de_CommandError(output, context);
|
|
1551
|
+
}
|
|
1552
|
+
const contents = (0, import_smithy_client.map)({
|
|
1553
|
+
$metadata: deserializeMetadata(output)
|
|
1554
|
+
});
|
|
1555
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1556
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1557
|
+
loggingDestination: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "loggingDestination"),
|
|
1558
|
+
modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modifiedAt"),
|
|
1559
|
+
scraperComponents: import_smithy_client._json,
|
|
1560
|
+
scraperId: import_smithy_client.expectString,
|
|
1561
|
+
status: import_smithy_client._json
|
|
1562
|
+
});
|
|
1563
|
+
Object.assign(contents, doc);
|
|
1564
|
+
return contents;
|
|
1565
|
+
}, "de_DescribeScraperLoggingConfigurationCommand");
|
|
1447
1566
|
var de_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1448
1567
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1449
1568
|
return de_CommandError(output, context);
|
|
@@ -1656,6 +1775,20 @@ var de_UpdateScraperCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1656
1775
|
Object.assign(contents, doc);
|
|
1657
1776
|
return contents;
|
|
1658
1777
|
}, "de_UpdateScraperCommand");
|
|
1778
|
+
var de_UpdateScraperLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1779
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1780
|
+
return de_CommandError(output, context);
|
|
1781
|
+
}
|
|
1782
|
+
const contents = (0, import_smithy_client.map)({
|
|
1783
|
+
$metadata: deserializeMetadata(output)
|
|
1784
|
+
});
|
|
1785
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1786
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1787
|
+
status: import_smithy_client._json
|
|
1788
|
+
});
|
|
1789
|
+
Object.assign(contents, doc);
|
|
1790
|
+
return contents;
|
|
1791
|
+
}, "de_UpdateScraperLoggingConfigurationCommand");
|
|
1659
1792
|
var de_UpdateWorkspaceAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1660
1793
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1661
1794
|
return de_CommandError(output, context);
|
|
@@ -2153,6 +2286,21 @@ var DeleteScraperCommand = class extends import_smithy_client.Command.classBuild
|
|
|
2153
2286
|
}
|
|
2154
2287
|
};
|
|
2155
2288
|
|
|
2289
|
+
// src/commands/DeleteScraperLoggingConfigurationCommand.ts
|
|
2290
|
+
|
|
2291
|
+
|
|
2292
|
+
|
|
2293
|
+
var DeleteScraperLoggingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2294
|
+
return [
|
|
2295
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2296
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2297
|
+
];
|
|
2298
|
+
}).s("AmazonPrometheusService", "DeleteScraperLoggingConfiguration", {}).n("AmpClient", "DeleteScraperLoggingConfigurationCommand").f(void 0, void 0).ser(se_DeleteScraperLoggingConfigurationCommand).de(de_DeleteScraperLoggingConfigurationCommand).build() {
|
|
2299
|
+
static {
|
|
2300
|
+
__name(this, "DeleteScraperLoggingConfigurationCommand");
|
|
2301
|
+
}
|
|
2302
|
+
};
|
|
2303
|
+
|
|
2156
2304
|
// src/commands/DeleteWorkspaceCommand.ts
|
|
2157
2305
|
|
|
2158
2306
|
|
|
@@ -2258,6 +2406,21 @@ var DescribeScraperCommand = class extends import_smithy_client.Command.classBui
|
|
|
2258
2406
|
}
|
|
2259
2407
|
};
|
|
2260
2408
|
|
|
2409
|
+
// src/commands/DescribeScraperLoggingConfigurationCommand.ts
|
|
2410
|
+
|
|
2411
|
+
|
|
2412
|
+
|
|
2413
|
+
var DescribeScraperLoggingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2414
|
+
return [
|
|
2415
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2416
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2417
|
+
];
|
|
2418
|
+
}).s("AmazonPrometheusService", "DescribeScraperLoggingConfiguration", {}).n("AmpClient", "DescribeScraperLoggingConfigurationCommand").f(void 0, void 0).ser(se_DescribeScraperLoggingConfigurationCommand).de(de_DescribeScraperLoggingConfigurationCommand).build() {
|
|
2419
|
+
static {
|
|
2420
|
+
__name(this, "DescribeScraperLoggingConfigurationCommand");
|
|
2421
|
+
}
|
|
2422
|
+
};
|
|
2423
|
+
|
|
2261
2424
|
// src/commands/DescribeWorkspaceCommand.ts
|
|
2262
2425
|
|
|
2263
2426
|
|
|
@@ -2483,6 +2646,21 @@ var UpdateScraperCommand = class extends import_smithy_client.Command.classBuild
|
|
|
2483
2646
|
}
|
|
2484
2647
|
};
|
|
2485
2648
|
|
|
2649
|
+
// src/commands/UpdateScraperLoggingConfigurationCommand.ts
|
|
2650
|
+
|
|
2651
|
+
|
|
2652
|
+
|
|
2653
|
+
var UpdateScraperLoggingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2654
|
+
return [
|
|
2655
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2656
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2657
|
+
];
|
|
2658
|
+
}).s("AmazonPrometheusService", "UpdateScraperLoggingConfiguration", {}).n("AmpClient", "UpdateScraperLoggingConfigurationCommand").f(void 0, void 0).ser(se_UpdateScraperLoggingConfigurationCommand).de(de_UpdateScraperLoggingConfigurationCommand).build() {
|
|
2659
|
+
static {
|
|
2660
|
+
__name(this, "UpdateScraperLoggingConfigurationCommand");
|
|
2661
|
+
}
|
|
2662
|
+
};
|
|
2663
|
+
|
|
2486
2664
|
// src/commands/UpdateWorkspaceAliasCommand.ts
|
|
2487
2665
|
|
|
2488
2666
|
|
|
@@ -2527,6 +2705,7 @@ var commands = {
|
|
|
2527
2705
|
DeleteResourcePolicyCommand,
|
|
2528
2706
|
DeleteRuleGroupsNamespaceCommand,
|
|
2529
2707
|
DeleteScraperCommand,
|
|
2708
|
+
DeleteScraperLoggingConfigurationCommand,
|
|
2530
2709
|
DeleteWorkspaceCommand,
|
|
2531
2710
|
DescribeAlertManagerDefinitionCommand,
|
|
2532
2711
|
DescribeLoggingConfigurationCommand,
|
|
@@ -2534,6 +2713,7 @@ var commands = {
|
|
|
2534
2713
|
DescribeResourcePolicyCommand,
|
|
2535
2714
|
DescribeRuleGroupsNamespaceCommand,
|
|
2536
2715
|
DescribeScraperCommand,
|
|
2716
|
+
DescribeScraperLoggingConfigurationCommand,
|
|
2537
2717
|
DescribeWorkspaceCommand,
|
|
2538
2718
|
DescribeWorkspaceConfigurationCommand,
|
|
2539
2719
|
GetDefaultScraperConfigurationCommand,
|
|
@@ -2549,6 +2729,7 @@ var commands = {
|
|
|
2549
2729
|
UpdateLoggingConfigurationCommand,
|
|
2550
2730
|
UpdateQueryLoggingConfigurationCommand,
|
|
2551
2731
|
UpdateScraperCommand,
|
|
2732
|
+
UpdateScraperLoggingConfigurationCommand,
|
|
2552
2733
|
UpdateWorkspaceAliasCommand,
|
|
2553
2734
|
UpdateWorkspaceConfigurationCommand
|
|
2554
2735
|
};
|
|
@@ -2747,6 +2928,7 @@ var waitUntilWorkspaceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
2747
2928
|
DeleteResourcePolicyCommand,
|
|
2748
2929
|
DeleteRuleGroupsNamespaceCommand,
|
|
2749
2930
|
DeleteScraperCommand,
|
|
2931
|
+
DeleteScraperLoggingConfigurationCommand,
|
|
2750
2932
|
DeleteWorkspaceCommand,
|
|
2751
2933
|
DescribeAlertManagerDefinitionCommand,
|
|
2752
2934
|
DescribeLoggingConfigurationCommand,
|
|
@@ -2754,6 +2936,7 @@ var waitUntilWorkspaceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
2754
2936
|
DescribeResourcePolicyCommand,
|
|
2755
2937
|
DescribeRuleGroupsNamespaceCommand,
|
|
2756
2938
|
DescribeScraperCommand,
|
|
2939
|
+
DescribeScraperLoggingConfigurationCommand,
|
|
2757
2940
|
DescribeWorkspaceCommand,
|
|
2758
2941
|
DescribeWorkspaceConfigurationCommand,
|
|
2759
2942
|
GetDefaultScraperConfigurationCommand,
|
|
@@ -2769,6 +2952,7 @@ var waitUntilWorkspaceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
2769
2952
|
UpdateLoggingConfigurationCommand,
|
|
2770
2953
|
UpdateQueryLoggingConfigurationCommand,
|
|
2771
2954
|
UpdateScraperCommand,
|
|
2955
|
+
UpdateScraperLoggingConfigurationCommand,
|
|
2772
2956
|
UpdateWorkspaceAliasCommand,
|
|
2773
2957
|
UpdateWorkspaceConfigurationCommand,
|
|
2774
2958
|
paginateListRuleGroupsNamespaces,
|
|
@@ -2795,6 +2979,9 @@ var waitUntilWorkspaceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
2795
2979
|
ScrapeConfiguration,
|
|
2796
2980
|
Source,
|
|
2797
2981
|
ScraperStatusCode,
|
|
2982
|
+
ScraperLoggingDestination,
|
|
2983
|
+
ScraperComponentType,
|
|
2984
|
+
ScraperLoggingConfigurationStatusCode,
|
|
2798
2985
|
WorkspaceStatusCode,
|
|
2799
2986
|
LoggingConfigurationStatusCode,
|
|
2800
2987
|
QueryLoggingConfigurationStatusCode,
|
package/dist-es/Amp.js
CHANGED
|
@@ -12,6 +12,7 @@ import { DeleteQueryLoggingConfigurationCommand, } from "./commands/DeleteQueryL
|
|
|
12
12
|
import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
|
|
13
13
|
import { DeleteRuleGroupsNamespaceCommand, } from "./commands/DeleteRuleGroupsNamespaceCommand";
|
|
14
14
|
import { DeleteScraperCommand, } from "./commands/DeleteScraperCommand";
|
|
15
|
+
import { DeleteScraperLoggingConfigurationCommand, } from "./commands/DeleteScraperLoggingConfigurationCommand";
|
|
15
16
|
import { DeleteWorkspaceCommand, } from "./commands/DeleteWorkspaceCommand";
|
|
16
17
|
import { DescribeAlertManagerDefinitionCommand, } from "./commands/DescribeAlertManagerDefinitionCommand";
|
|
17
18
|
import { DescribeLoggingConfigurationCommand, } from "./commands/DescribeLoggingConfigurationCommand";
|
|
@@ -19,6 +20,7 @@ import { DescribeQueryLoggingConfigurationCommand, } from "./commands/DescribeQu
|
|
|
19
20
|
import { DescribeResourcePolicyCommand, } from "./commands/DescribeResourcePolicyCommand";
|
|
20
21
|
import { DescribeRuleGroupsNamespaceCommand, } from "./commands/DescribeRuleGroupsNamespaceCommand";
|
|
21
22
|
import { DescribeScraperCommand, } from "./commands/DescribeScraperCommand";
|
|
23
|
+
import { DescribeScraperLoggingConfigurationCommand, } from "./commands/DescribeScraperLoggingConfigurationCommand";
|
|
22
24
|
import { DescribeWorkspaceCommand, } from "./commands/DescribeWorkspaceCommand";
|
|
23
25
|
import { DescribeWorkspaceConfigurationCommand, } from "./commands/DescribeWorkspaceConfigurationCommand";
|
|
24
26
|
import { GetDefaultScraperConfigurationCommand, } from "./commands/GetDefaultScraperConfigurationCommand";
|
|
@@ -34,6 +36,7 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
34
36
|
import { UpdateLoggingConfigurationCommand, } from "./commands/UpdateLoggingConfigurationCommand";
|
|
35
37
|
import { UpdateQueryLoggingConfigurationCommand, } from "./commands/UpdateQueryLoggingConfigurationCommand";
|
|
36
38
|
import { UpdateScraperCommand, } from "./commands/UpdateScraperCommand";
|
|
39
|
+
import { UpdateScraperLoggingConfigurationCommand, } from "./commands/UpdateScraperLoggingConfigurationCommand";
|
|
37
40
|
import { UpdateWorkspaceAliasCommand, } from "./commands/UpdateWorkspaceAliasCommand";
|
|
38
41
|
import { UpdateWorkspaceConfigurationCommand, } from "./commands/UpdateWorkspaceConfigurationCommand";
|
|
39
42
|
const commands = {
|
|
@@ -49,6 +52,7 @@ const commands = {
|
|
|
49
52
|
DeleteResourcePolicyCommand,
|
|
50
53
|
DeleteRuleGroupsNamespaceCommand,
|
|
51
54
|
DeleteScraperCommand,
|
|
55
|
+
DeleteScraperLoggingConfigurationCommand,
|
|
52
56
|
DeleteWorkspaceCommand,
|
|
53
57
|
DescribeAlertManagerDefinitionCommand,
|
|
54
58
|
DescribeLoggingConfigurationCommand,
|
|
@@ -56,6 +60,7 @@ const commands = {
|
|
|
56
60
|
DescribeResourcePolicyCommand,
|
|
57
61
|
DescribeRuleGroupsNamespaceCommand,
|
|
58
62
|
DescribeScraperCommand,
|
|
63
|
+
DescribeScraperLoggingConfigurationCommand,
|
|
59
64
|
DescribeWorkspaceCommand,
|
|
60
65
|
DescribeWorkspaceConfigurationCommand,
|
|
61
66
|
GetDefaultScraperConfigurationCommand,
|
|
@@ -71,6 +76,7 @@ const commands = {
|
|
|
71
76
|
UpdateLoggingConfigurationCommand,
|
|
72
77
|
UpdateQueryLoggingConfigurationCommand,
|
|
73
78
|
UpdateScraperCommand,
|
|
79
|
+
UpdateScraperLoggingConfigurationCommand,
|
|
74
80
|
UpdateWorkspaceAliasCommand,
|
|
75
81
|
UpdateWorkspaceConfigurationCommand,
|
|
76
82
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DeleteScraperLoggingConfigurationCommand, se_DeleteScraperLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteScraperLoggingConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonPrometheusService", "DeleteScraperLoggingConfiguration", {})
|
|
17
|
+
.n("AmpClient", "DeleteScraperLoggingConfigurationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DeleteScraperLoggingConfigurationCommand)
|
|
20
|
+
.de(de_DeleteScraperLoggingConfigurationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DescribeScraperLoggingConfigurationCommand, se_DescribeScraperLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DescribeScraperLoggingConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonPrometheusService", "DescribeScraperLoggingConfiguration", {})
|
|
17
|
+
.n("AmpClient", "DescribeScraperLoggingConfigurationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DescribeScraperLoggingConfigurationCommand)
|
|
20
|
+
.de(de_DescribeScraperLoggingConfigurationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_UpdateScraperLoggingConfigurationCommand, se_UpdateScraperLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateScraperLoggingConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonPrometheusService", "UpdateScraperLoggingConfiguration", {})
|
|
17
|
+
.n("AmpClient", "UpdateScraperLoggingConfigurationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_UpdateScraperLoggingConfigurationCommand)
|
|
20
|
+
.de(de_UpdateScraperLoggingConfigurationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -10,6 +10,7 @@ export * from "./DeleteQueryLoggingConfigurationCommand";
|
|
|
10
10
|
export * from "./DeleteResourcePolicyCommand";
|
|
11
11
|
export * from "./DeleteRuleGroupsNamespaceCommand";
|
|
12
12
|
export * from "./DeleteScraperCommand";
|
|
13
|
+
export * from "./DeleteScraperLoggingConfigurationCommand";
|
|
13
14
|
export * from "./DeleteWorkspaceCommand";
|
|
14
15
|
export * from "./DescribeAlertManagerDefinitionCommand";
|
|
15
16
|
export * from "./DescribeLoggingConfigurationCommand";
|
|
@@ -17,6 +18,7 @@ export * from "./DescribeQueryLoggingConfigurationCommand";
|
|
|
17
18
|
export * from "./DescribeResourcePolicyCommand";
|
|
18
19
|
export * from "./DescribeRuleGroupsNamespaceCommand";
|
|
19
20
|
export * from "./DescribeScraperCommand";
|
|
21
|
+
export * from "./DescribeScraperLoggingConfigurationCommand";
|
|
20
22
|
export * from "./DescribeWorkspaceCommand";
|
|
21
23
|
export * from "./DescribeWorkspaceConfigurationCommand";
|
|
22
24
|
export * from "./GetDefaultScraperConfigurationCommand";
|
|
@@ -32,5 +34,6 @@ export * from "./UntagResourceCommand";
|
|
|
32
34
|
export * from "./UpdateLoggingConfigurationCommand";
|
|
33
35
|
export * from "./UpdateQueryLoggingConfigurationCommand";
|
|
34
36
|
export * from "./UpdateScraperCommand";
|
|
37
|
+
export * from "./UpdateScraperLoggingConfigurationCommand";
|
|
35
38
|
export * from "./UpdateWorkspaceAliasCommand";
|
|
36
39
|
export * from "./UpdateWorkspaceConfigurationCommand";
|
|
@@ -160,6 +160,27 @@ export const ScraperStatusCode = {
|
|
|
160
160
|
UPDATE_FAILED: "UPDATE_FAILED",
|
|
161
161
|
UPDATING: "UPDATING",
|
|
162
162
|
};
|
|
163
|
+
export var ScraperLoggingDestination;
|
|
164
|
+
(function (ScraperLoggingDestination) {
|
|
165
|
+
ScraperLoggingDestination.visit = (value, visitor) => {
|
|
166
|
+
if (value.cloudWatchLogs !== undefined)
|
|
167
|
+
return visitor.cloudWatchLogs(value.cloudWatchLogs);
|
|
168
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
169
|
+
};
|
|
170
|
+
})(ScraperLoggingDestination || (ScraperLoggingDestination = {}));
|
|
171
|
+
export const ScraperComponentType = {
|
|
172
|
+
COLLECTOR: "COLLECTOR",
|
|
173
|
+
EXPORTER: "EXPORTER",
|
|
174
|
+
SERVICE_DISCOVERY: "SERVICE_DISCOVERY",
|
|
175
|
+
};
|
|
176
|
+
export const ScraperLoggingConfigurationStatusCode = {
|
|
177
|
+
ACTIVE: "ACTIVE",
|
|
178
|
+
CREATING: "CREATING",
|
|
179
|
+
CREATION_FAILED: "CREATION_FAILED",
|
|
180
|
+
DELETING: "DELETING",
|
|
181
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
182
|
+
UPDATING: "UPDATING",
|
|
183
|
+
};
|
|
163
184
|
export const WorkspaceStatusCode = {
|
|
164
185
|
ACTIVE: "ACTIVE",
|
|
165
186
|
CREATING: "CREATING",
|
|
@@ -175,6 +175,18 @@ export const se_DeleteScraperCommand = async (input, context) => {
|
|
|
175
175
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
176
176
|
return b.build();
|
|
177
177
|
};
|
|
178
|
+
export const se_DeleteScraperLoggingConfigurationCommand = async (input, context) => {
|
|
179
|
+
const b = rb(input, context);
|
|
180
|
+
const headers = {};
|
|
181
|
+
b.bp("/scrapers/{scraperId}/logging-configuration");
|
|
182
|
+
b.p("scraperId", () => input.scraperId, "{scraperId}", false);
|
|
183
|
+
const query = map({
|
|
184
|
+
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
185
|
+
});
|
|
186
|
+
let body;
|
|
187
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
188
|
+
return b.build();
|
|
189
|
+
};
|
|
178
190
|
export const se_DeleteWorkspaceCommand = async (input, context) => {
|
|
179
191
|
const b = rb(input, context);
|
|
180
192
|
const headers = {};
|
|
@@ -242,6 +254,15 @@ export const se_DescribeScraperCommand = async (input, context) => {
|
|
|
242
254
|
b.m("GET").h(headers).b(body);
|
|
243
255
|
return b.build();
|
|
244
256
|
};
|
|
257
|
+
export const se_DescribeScraperLoggingConfigurationCommand = async (input, context) => {
|
|
258
|
+
const b = rb(input, context);
|
|
259
|
+
const headers = {};
|
|
260
|
+
b.bp("/scrapers/{scraperId}/logging-configuration");
|
|
261
|
+
b.p("scraperId", () => input.scraperId, "{scraperId}", false);
|
|
262
|
+
let body;
|
|
263
|
+
b.m("GET").h(headers).b(body);
|
|
264
|
+
return b.build();
|
|
265
|
+
};
|
|
245
266
|
export const se_DescribeWorkspaceCommand = async (input, context) => {
|
|
246
267
|
const b = rb(input, context);
|
|
247
268
|
const headers = {};
|
|
@@ -438,6 +459,21 @@ export const se_UpdateScraperCommand = async (input, context) => {
|
|
|
438
459
|
b.m("PUT").h(headers).b(body);
|
|
439
460
|
return b.build();
|
|
440
461
|
};
|
|
462
|
+
export const se_UpdateScraperLoggingConfigurationCommand = async (input, context) => {
|
|
463
|
+
const b = rb(input, context);
|
|
464
|
+
const headers = {
|
|
465
|
+
"content-type": "application/json",
|
|
466
|
+
};
|
|
467
|
+
b.bp("/scrapers/{scraperId}/logging-configuration");
|
|
468
|
+
b.p("scraperId", () => input.scraperId, "{scraperId}", false);
|
|
469
|
+
let body;
|
|
470
|
+
body = JSON.stringify(take(input, {
|
|
471
|
+
loggingDestination: (_) => _json(_),
|
|
472
|
+
scraperComponents: (_) => _json(_),
|
|
473
|
+
}));
|
|
474
|
+
b.m("PUT").h(headers).b(body);
|
|
475
|
+
return b.build();
|
|
476
|
+
};
|
|
441
477
|
export const se_UpdateWorkspaceAliasCommand = async (input, context) => {
|
|
442
478
|
const b = rb(input, context);
|
|
443
479
|
const headers = {
|
|
@@ -628,6 +664,16 @@ export const de_DeleteScraperCommand = async (output, context) => {
|
|
|
628
664
|
Object.assign(contents, doc);
|
|
629
665
|
return contents;
|
|
630
666
|
};
|
|
667
|
+
export const de_DeleteScraperLoggingConfigurationCommand = async (output, context) => {
|
|
668
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
669
|
+
return de_CommandError(output, context);
|
|
670
|
+
}
|
|
671
|
+
const contents = map({
|
|
672
|
+
$metadata: deserializeMetadata(output),
|
|
673
|
+
});
|
|
674
|
+
await collectBody(output.body, context);
|
|
675
|
+
return contents;
|
|
676
|
+
};
|
|
631
677
|
export const de_DeleteWorkspaceCommand = async (output, context) => {
|
|
632
678
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
633
679
|
return de_CommandError(output, context);
|
|
@@ -724,6 +770,24 @@ export const de_DescribeScraperCommand = async (output, context) => {
|
|
|
724
770
|
Object.assign(contents, doc);
|
|
725
771
|
return contents;
|
|
726
772
|
};
|
|
773
|
+
export const de_DescribeScraperLoggingConfigurationCommand = async (output, context) => {
|
|
774
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
775
|
+
return de_CommandError(output, context);
|
|
776
|
+
}
|
|
777
|
+
const contents = map({
|
|
778
|
+
$metadata: deserializeMetadata(output),
|
|
779
|
+
});
|
|
780
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
781
|
+
const doc = take(data, {
|
|
782
|
+
loggingDestination: (_) => _json(__expectUnion(_)),
|
|
783
|
+
modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
784
|
+
scraperComponents: _json,
|
|
785
|
+
scraperId: __expectString,
|
|
786
|
+
status: _json,
|
|
787
|
+
});
|
|
788
|
+
Object.assign(contents, doc);
|
|
789
|
+
return contents;
|
|
790
|
+
};
|
|
727
791
|
export const de_DescribeWorkspaceCommand = async (output, context) => {
|
|
728
792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
729
793
|
return de_CommandError(output, context);
|
|
@@ -936,6 +1000,20 @@ export const de_UpdateScraperCommand = async (output, context) => {
|
|
|
936
1000
|
Object.assign(contents, doc);
|
|
937
1001
|
return contents;
|
|
938
1002
|
};
|
|
1003
|
+
export const de_UpdateScraperLoggingConfigurationCommand = async (output, context) => {
|
|
1004
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1005
|
+
return de_CommandError(output, context);
|
|
1006
|
+
}
|
|
1007
|
+
const contents = map({
|
|
1008
|
+
$metadata: deserializeMetadata(output),
|
|
1009
|
+
});
|
|
1010
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1011
|
+
const doc = take(data, {
|
|
1012
|
+
status: _json,
|
|
1013
|
+
});
|
|
1014
|
+
Object.assign(contents, doc);
|
|
1015
|
+
return contents;
|
|
1016
|
+
};
|
|
939
1017
|
export const de_UpdateWorkspaceAliasCommand = async (output, context) => {
|
|
940
1018
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
941
1019
|
return de_CommandError(output, context);
|