@aws-sdk/client-amp 3.782.0 → 3.791.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 +16 -0
- package/dist-cjs/index.js +109 -2
- package/dist-es/Amp.js +4 -0
- package/dist-es/commands/DescribeWorkspaceConfigurationCommand.js +22 -0
- package/dist-es/commands/UpdateWorkspaceConfigurationCommand.js +22 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +53 -0
- package/dist-types/Amp.d.ts +14 -0
- package/dist-types/AmpClient.d.ts +4 -2
- package/dist-types/commands/DescribeWorkspaceConfigurationCommand.d.ts +105 -0
- package/dist-types/commands/UpdateWorkspaceConfigurationCommand.d.ts +111 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +162 -7
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Amp.d.ts +34 -0
- package/dist-types/ts3.4/AmpClient.d.ts +14 -2
- package/dist-types/ts3.4/commands/DescribeWorkspaceConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateWorkspaceConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +38 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -339,6 +339,14 @@ DescribeWorkspace
|
|
|
339
339
|
|
|
340
340
|
[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/)
|
|
341
341
|
|
|
342
|
+
</details>
|
|
343
|
+
<details>
|
|
344
|
+
<summary>
|
|
345
|
+
DescribeWorkspaceConfiguration
|
|
346
|
+
</summary>
|
|
347
|
+
|
|
348
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DescribeWorkspaceConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeWorkspaceConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeWorkspaceConfigurationCommandOutput/)
|
|
349
|
+
|
|
342
350
|
</details>
|
|
343
351
|
<details>
|
|
344
352
|
<summary>
|
|
@@ -436,3 +444,11 @@ UpdateWorkspaceAlias
|
|
|
436
444
|
[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/)
|
|
437
445
|
|
|
438
446
|
</details>
|
|
447
|
+
<details>
|
|
448
|
+
<summary>
|
|
449
|
+
UpdateWorkspaceConfiguration
|
|
450
|
+
</summary>
|
|
451
|
+
|
|
452
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/UpdateWorkspaceConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateWorkspaceConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateWorkspaceConfigurationCommandOutput/)
|
|
453
|
+
|
|
454
|
+
</details>
|
package/dist-cjs/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __export(index_exports, {
|
|
|
42
42
|
DescribeRuleGroupsNamespaceCommand: () => DescribeRuleGroupsNamespaceCommand,
|
|
43
43
|
DescribeScraperCommand: () => DescribeScraperCommand,
|
|
44
44
|
DescribeWorkspaceCommand: () => DescribeWorkspaceCommand,
|
|
45
|
+
DescribeWorkspaceConfigurationCommand: () => DescribeWorkspaceConfigurationCommand,
|
|
45
46
|
Destination: () => Destination,
|
|
46
47
|
GetDefaultScraperConfigurationCommand: () => GetDefaultScraperConfigurationCommand,
|
|
47
48
|
InternalServerException: () => InternalServerException,
|
|
@@ -64,8 +65,10 @@ __export(index_exports, {
|
|
|
64
65
|
UpdateLoggingConfigurationCommand: () => UpdateLoggingConfigurationCommand,
|
|
65
66
|
UpdateScraperCommand: () => UpdateScraperCommand,
|
|
66
67
|
UpdateWorkspaceAliasCommand: () => UpdateWorkspaceAliasCommand,
|
|
68
|
+
UpdateWorkspaceConfigurationCommand: () => UpdateWorkspaceConfigurationCommand,
|
|
67
69
|
ValidationException: () => ValidationException,
|
|
68
70
|
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
71
|
+
WorkspaceConfigurationStatusCode: () => WorkspaceConfigurationStatusCode,
|
|
69
72
|
WorkspaceStatusCode: () => WorkspaceStatusCode,
|
|
70
73
|
__Client: () => import_smithy_client.Client,
|
|
71
74
|
paginateListRuleGroupsNamespaces: () => paginateListRuleGroupsNamespaces,
|
|
@@ -622,6 +625,20 @@ var RuleGroupsNamespaceStatusCode = {
|
|
|
622
625
|
*/
|
|
623
626
|
UPDATING: "UPDATING"
|
|
624
627
|
};
|
|
628
|
+
var WorkspaceConfigurationStatusCode = {
|
|
629
|
+
/**
|
|
630
|
+
* Workspace configuration has been updated. Update is disallowed until workspace configuration is ACTIVE and workspace status is ACTIVE.
|
|
631
|
+
*/
|
|
632
|
+
ACTIVE: "ACTIVE",
|
|
633
|
+
/**
|
|
634
|
+
* Workspace configuration update failed.
|
|
635
|
+
*/
|
|
636
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
637
|
+
/**
|
|
638
|
+
* Workspace configuration is being updated. Update is disallowed until workspace configuration is ACTIVE and workspace status is ACTIVE.
|
|
639
|
+
*/
|
|
640
|
+
UPDATING: "UPDATING"
|
|
641
|
+
};
|
|
625
642
|
|
|
626
643
|
// src/protocols/Aws_restJson1.ts
|
|
627
644
|
var se_CreateAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -823,6 +840,15 @@ var se_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
823
840
|
b.m("GET").h(headers).b(body);
|
|
824
841
|
return b.build();
|
|
825
842
|
}, "se_DescribeWorkspaceCommand");
|
|
843
|
+
var se_DescribeWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
844
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
845
|
+
const headers = {};
|
|
846
|
+
b.bp("/workspaces/{workspaceId}/configuration");
|
|
847
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
848
|
+
let body;
|
|
849
|
+
b.m("GET").h(headers).b(body);
|
|
850
|
+
return b.build();
|
|
851
|
+
}, "se_DescribeWorkspaceConfigurationCommand");
|
|
826
852
|
var se_GetDefaultScraperConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
827
853
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
828
854
|
const headers = {};
|
|
@@ -997,6 +1023,24 @@ var se_UpdateWorkspaceAliasCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
997
1023
|
b.m("POST").h(headers).b(body);
|
|
998
1024
|
return b.build();
|
|
999
1025
|
}, "se_UpdateWorkspaceAliasCommand");
|
|
1026
|
+
var se_UpdateWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1027
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1028
|
+
const headers = {
|
|
1029
|
+
"content-type": "application/json"
|
|
1030
|
+
};
|
|
1031
|
+
b.bp("/workspaces/{workspaceId}/configuration");
|
|
1032
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
1033
|
+
let body;
|
|
1034
|
+
body = JSON.stringify(
|
|
1035
|
+
(0, import_smithy_client.take)(input, {
|
|
1036
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1037
|
+
limitsPerLabelSet: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "limitsPerLabelSet"),
|
|
1038
|
+
retentionPeriodInDays: []
|
|
1039
|
+
})
|
|
1040
|
+
);
|
|
1041
|
+
b.m("PATCH").h(headers).b(body);
|
|
1042
|
+
return b.build();
|
|
1043
|
+
}, "se_UpdateWorkspaceConfigurationCommand");
|
|
1000
1044
|
var de_CreateAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1001
1045
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1002
1046
|
return de_CommandError(output, context);
|
|
@@ -1202,6 +1246,20 @@ var de_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1202
1246
|
Object.assign(contents, doc);
|
|
1203
1247
|
return contents;
|
|
1204
1248
|
}, "de_DescribeWorkspaceCommand");
|
|
1249
|
+
var de_DescribeWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1250
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1251
|
+
return de_CommandError(output, context);
|
|
1252
|
+
}
|
|
1253
|
+
const contents = (0, import_smithy_client.map)({
|
|
1254
|
+
$metadata: deserializeMetadata(output)
|
|
1255
|
+
});
|
|
1256
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1257
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1258
|
+
workspaceConfiguration: import_smithy_client._json
|
|
1259
|
+
});
|
|
1260
|
+
Object.assign(contents, doc);
|
|
1261
|
+
return contents;
|
|
1262
|
+
}, "de_DescribeWorkspaceConfigurationCommand");
|
|
1205
1263
|
var de_GetDefaultScraperConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1206
1264
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1207
1265
|
return de_CommandError(output, context);
|
|
@@ -1367,6 +1425,20 @@ var de_UpdateWorkspaceAliasCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1367
1425
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1368
1426
|
return contents;
|
|
1369
1427
|
}, "de_UpdateWorkspaceAliasCommand");
|
|
1428
|
+
var de_UpdateWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1429
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1430
|
+
return de_CommandError(output, context);
|
|
1431
|
+
}
|
|
1432
|
+
const contents = (0, import_smithy_client.map)({
|
|
1433
|
+
$metadata: deserializeMetadata(output)
|
|
1434
|
+
});
|
|
1435
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1436
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1437
|
+
status: import_smithy_client._json
|
|
1438
|
+
});
|
|
1439
|
+
Object.assign(contents, doc);
|
|
1440
|
+
return contents;
|
|
1441
|
+
}, "de_UpdateWorkspaceConfigurationCommand");
|
|
1370
1442
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1371
1443
|
const parsedOutput = {
|
|
1372
1444
|
...output,
|
|
@@ -1875,6 +1947,21 @@ var DescribeWorkspaceCommand = class extends import_smithy_client.Command.classB
|
|
|
1875
1947
|
}
|
|
1876
1948
|
};
|
|
1877
1949
|
|
|
1950
|
+
// src/commands/DescribeWorkspaceConfigurationCommand.ts
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
|
|
1954
|
+
var DescribeWorkspaceConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1955
|
+
return [
|
|
1956
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1957
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1958
|
+
];
|
|
1959
|
+
}).s("AmazonPrometheusService", "DescribeWorkspaceConfiguration", {}).n("AmpClient", "DescribeWorkspaceConfigurationCommand").f(void 0, void 0).ser(se_DescribeWorkspaceConfigurationCommand).de(de_DescribeWorkspaceConfigurationCommand).build() {
|
|
1960
|
+
static {
|
|
1961
|
+
__name(this, "DescribeWorkspaceConfigurationCommand");
|
|
1962
|
+
}
|
|
1963
|
+
};
|
|
1964
|
+
|
|
1878
1965
|
// src/commands/GetDefaultScraperConfigurationCommand.ts
|
|
1879
1966
|
|
|
1880
1967
|
|
|
@@ -2055,6 +2142,21 @@ var UpdateWorkspaceAliasCommand = class extends import_smithy_client.Command.cla
|
|
|
2055
2142
|
}
|
|
2056
2143
|
};
|
|
2057
2144
|
|
|
2145
|
+
// src/commands/UpdateWorkspaceConfigurationCommand.ts
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
|
|
2149
|
+
var UpdateWorkspaceConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2150
|
+
return [
|
|
2151
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2152
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2153
|
+
];
|
|
2154
|
+
}).s("AmazonPrometheusService", "UpdateWorkspaceConfiguration", {}).n("AmpClient", "UpdateWorkspaceConfigurationCommand").f(void 0, void 0).ser(se_UpdateWorkspaceConfigurationCommand).de(de_UpdateWorkspaceConfigurationCommand).build() {
|
|
2155
|
+
static {
|
|
2156
|
+
__name(this, "UpdateWorkspaceConfigurationCommand");
|
|
2157
|
+
}
|
|
2158
|
+
};
|
|
2159
|
+
|
|
2058
2160
|
// src/Amp.ts
|
|
2059
2161
|
var commands = {
|
|
2060
2162
|
CreateAlertManagerDefinitionCommand,
|
|
@@ -2072,6 +2174,7 @@ var commands = {
|
|
|
2072
2174
|
DescribeRuleGroupsNamespaceCommand,
|
|
2073
2175
|
DescribeScraperCommand,
|
|
2074
2176
|
DescribeWorkspaceCommand,
|
|
2177
|
+
DescribeWorkspaceConfigurationCommand,
|
|
2075
2178
|
GetDefaultScraperConfigurationCommand,
|
|
2076
2179
|
ListRuleGroupsNamespacesCommand,
|
|
2077
2180
|
ListScrapersCommand,
|
|
@@ -2083,7 +2186,8 @@ var commands = {
|
|
|
2083
2186
|
UntagResourceCommand,
|
|
2084
2187
|
UpdateLoggingConfigurationCommand,
|
|
2085
2188
|
UpdateScraperCommand,
|
|
2086
|
-
UpdateWorkspaceAliasCommand
|
|
2189
|
+
UpdateWorkspaceAliasCommand,
|
|
2190
|
+
UpdateWorkspaceConfigurationCommand
|
|
2087
2191
|
};
|
|
2088
2192
|
var Amp = class extends AmpClient {
|
|
2089
2193
|
static {
|
|
@@ -2283,6 +2387,7 @@ var waitUntilWorkspaceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
2283
2387
|
DescribeRuleGroupsNamespaceCommand,
|
|
2284
2388
|
DescribeScraperCommand,
|
|
2285
2389
|
DescribeWorkspaceCommand,
|
|
2390
|
+
DescribeWorkspaceConfigurationCommand,
|
|
2286
2391
|
GetDefaultScraperConfigurationCommand,
|
|
2287
2392
|
ListRuleGroupsNamespacesCommand,
|
|
2288
2393
|
ListScrapersCommand,
|
|
@@ -2295,6 +2400,7 @@ var waitUntilWorkspaceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
2295
2400
|
UpdateLoggingConfigurationCommand,
|
|
2296
2401
|
UpdateScraperCommand,
|
|
2297
2402
|
UpdateWorkspaceAliasCommand,
|
|
2403
|
+
UpdateWorkspaceConfigurationCommand,
|
|
2298
2404
|
paginateListRuleGroupsNamespaces,
|
|
2299
2405
|
paginateListScrapers,
|
|
2300
2406
|
paginateListWorkspaces,
|
|
@@ -2321,6 +2427,7 @@ var waitUntilWorkspaceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
2321
2427
|
ScraperStatusCode,
|
|
2322
2428
|
WorkspaceStatusCode,
|
|
2323
2429
|
LoggingConfigurationStatusCode,
|
|
2324
|
-
RuleGroupsNamespaceStatusCode
|
|
2430
|
+
RuleGroupsNamespaceStatusCode,
|
|
2431
|
+
WorkspaceConfigurationStatusCode
|
|
2325
2432
|
});
|
|
2326
2433
|
|
package/dist-es/Amp.js
CHANGED
|
@@ -15,6 +15,7 @@ import { DescribeLoggingConfigurationCommand, } from "./commands/DescribeLogging
|
|
|
15
15
|
import { DescribeRuleGroupsNamespaceCommand, } from "./commands/DescribeRuleGroupsNamespaceCommand";
|
|
16
16
|
import { DescribeScraperCommand, } from "./commands/DescribeScraperCommand";
|
|
17
17
|
import { DescribeWorkspaceCommand, } from "./commands/DescribeWorkspaceCommand";
|
|
18
|
+
import { DescribeWorkspaceConfigurationCommand, } from "./commands/DescribeWorkspaceConfigurationCommand";
|
|
18
19
|
import { GetDefaultScraperConfigurationCommand, } from "./commands/GetDefaultScraperConfigurationCommand";
|
|
19
20
|
import { ListRuleGroupsNamespacesCommand, } from "./commands/ListRuleGroupsNamespacesCommand";
|
|
20
21
|
import { ListScrapersCommand, } from "./commands/ListScrapersCommand";
|
|
@@ -27,6 +28,7 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
27
28
|
import { UpdateLoggingConfigurationCommand, } from "./commands/UpdateLoggingConfigurationCommand";
|
|
28
29
|
import { UpdateScraperCommand, } from "./commands/UpdateScraperCommand";
|
|
29
30
|
import { UpdateWorkspaceAliasCommand, } from "./commands/UpdateWorkspaceAliasCommand";
|
|
31
|
+
import { UpdateWorkspaceConfigurationCommand, } from "./commands/UpdateWorkspaceConfigurationCommand";
|
|
30
32
|
const commands = {
|
|
31
33
|
CreateAlertManagerDefinitionCommand,
|
|
32
34
|
CreateLoggingConfigurationCommand,
|
|
@@ -43,6 +45,7 @@ const commands = {
|
|
|
43
45
|
DescribeRuleGroupsNamespaceCommand,
|
|
44
46
|
DescribeScraperCommand,
|
|
45
47
|
DescribeWorkspaceCommand,
|
|
48
|
+
DescribeWorkspaceConfigurationCommand,
|
|
46
49
|
GetDefaultScraperConfigurationCommand,
|
|
47
50
|
ListRuleGroupsNamespacesCommand,
|
|
48
51
|
ListScrapersCommand,
|
|
@@ -55,6 +58,7 @@ const commands = {
|
|
|
55
58
|
UpdateLoggingConfigurationCommand,
|
|
56
59
|
UpdateScraperCommand,
|
|
57
60
|
UpdateWorkspaceAliasCommand,
|
|
61
|
+
UpdateWorkspaceConfigurationCommand,
|
|
58
62
|
};
|
|
59
63
|
export class Amp extends AmpClient {
|
|
60
64
|
}
|
|
@@ -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_DescribeWorkspaceConfigurationCommand, se_DescribeWorkspaceConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DescribeWorkspaceConfigurationCommand 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", "DescribeWorkspaceConfiguration", {})
|
|
17
|
+
.n("AmpClient", "DescribeWorkspaceConfigurationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DescribeWorkspaceConfigurationCommand)
|
|
20
|
+
.de(de_DescribeWorkspaceConfigurationCommand)
|
|
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_UpdateWorkspaceConfigurationCommand, se_UpdateWorkspaceConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateWorkspaceConfigurationCommand 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", "UpdateWorkspaceConfiguration", {})
|
|
17
|
+
.n("AmpClient", "UpdateWorkspaceConfigurationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_UpdateWorkspaceConfigurationCommand)
|
|
20
|
+
.de(de_UpdateWorkspaceConfigurationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -13,6 +13,7 @@ export * from "./DescribeLoggingConfigurationCommand";
|
|
|
13
13
|
export * from "./DescribeRuleGroupsNamespaceCommand";
|
|
14
14
|
export * from "./DescribeScraperCommand";
|
|
15
15
|
export * from "./DescribeWorkspaceCommand";
|
|
16
|
+
export * from "./DescribeWorkspaceConfigurationCommand";
|
|
16
17
|
export * from "./GetDefaultScraperConfigurationCommand";
|
|
17
18
|
export * from "./ListRuleGroupsNamespacesCommand";
|
|
18
19
|
export * from "./ListScrapersCommand";
|
|
@@ -25,3 +26,4 @@ export * from "./UntagResourceCommand";
|
|
|
25
26
|
export * from "./UpdateLoggingConfigurationCommand";
|
|
26
27
|
export * from "./UpdateScraperCommand";
|
|
27
28
|
export * from "./UpdateWorkspaceAliasCommand";
|
|
29
|
+
export * from "./UpdateWorkspaceConfigurationCommand";
|
|
@@ -183,3 +183,8 @@ export const RuleGroupsNamespaceStatusCode = {
|
|
|
183
183
|
UPDATE_FAILED: "UPDATE_FAILED",
|
|
184
184
|
UPDATING: "UPDATING",
|
|
185
185
|
};
|
|
186
|
+
export const WorkspaceConfigurationStatusCode = {
|
|
187
|
+
ACTIVE: "ACTIVE",
|
|
188
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
189
|
+
UPDATING: "UPDATING",
|
|
190
|
+
};
|
|
@@ -193,6 +193,15 @@ export const se_DescribeWorkspaceCommand = async (input, context) => {
|
|
|
193
193
|
b.m("GET").h(headers).b(body);
|
|
194
194
|
return b.build();
|
|
195
195
|
};
|
|
196
|
+
export const se_DescribeWorkspaceConfigurationCommand = async (input, context) => {
|
|
197
|
+
const b = rb(input, context);
|
|
198
|
+
const headers = {};
|
|
199
|
+
b.bp("/workspaces/{workspaceId}/configuration");
|
|
200
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
201
|
+
let body;
|
|
202
|
+
b.m("GET").h(headers).b(body);
|
|
203
|
+
return b.build();
|
|
204
|
+
};
|
|
196
205
|
export const se_GetDefaultScraperConfigurationCommand = async (input, context) => {
|
|
197
206
|
const b = rb(input, context);
|
|
198
207
|
const headers = {};
|
|
@@ -355,6 +364,22 @@ export const se_UpdateWorkspaceAliasCommand = async (input, context) => {
|
|
|
355
364
|
b.m("POST").h(headers).b(body);
|
|
356
365
|
return b.build();
|
|
357
366
|
};
|
|
367
|
+
export const se_UpdateWorkspaceConfigurationCommand = async (input, context) => {
|
|
368
|
+
const b = rb(input, context);
|
|
369
|
+
const headers = {
|
|
370
|
+
"content-type": "application/json",
|
|
371
|
+
};
|
|
372
|
+
b.bp("/workspaces/{workspaceId}/configuration");
|
|
373
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
374
|
+
let body;
|
|
375
|
+
body = JSON.stringify(take(input, {
|
|
376
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
377
|
+
limitsPerLabelSet: (_) => _json(_),
|
|
378
|
+
retentionPeriodInDays: [],
|
|
379
|
+
}));
|
|
380
|
+
b.m("PATCH").h(headers).b(body);
|
|
381
|
+
return b.build();
|
|
382
|
+
};
|
|
358
383
|
export const de_CreateAlertManagerDefinitionCommand = async (output, context) => {
|
|
359
384
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
360
385
|
return de_CommandError(output, context);
|
|
@@ -560,6 +585,20 @@ export const de_DescribeWorkspaceCommand = async (output, context) => {
|
|
|
560
585
|
Object.assign(contents, doc);
|
|
561
586
|
return contents;
|
|
562
587
|
};
|
|
588
|
+
export const de_DescribeWorkspaceConfigurationCommand = async (output, context) => {
|
|
589
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
590
|
+
return de_CommandError(output, context);
|
|
591
|
+
}
|
|
592
|
+
const contents = map({
|
|
593
|
+
$metadata: deserializeMetadata(output),
|
|
594
|
+
});
|
|
595
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
596
|
+
const doc = take(data, {
|
|
597
|
+
workspaceConfiguration: _json,
|
|
598
|
+
});
|
|
599
|
+
Object.assign(contents, doc);
|
|
600
|
+
return contents;
|
|
601
|
+
};
|
|
563
602
|
export const de_GetDefaultScraperConfigurationCommand = async (output, context) => {
|
|
564
603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
565
604
|
return de_CommandError(output, context);
|
|
@@ -725,6 +764,20 @@ export const de_UpdateWorkspaceAliasCommand = async (output, context) => {
|
|
|
725
764
|
await collectBody(output.body, context);
|
|
726
765
|
return contents;
|
|
727
766
|
};
|
|
767
|
+
export const de_UpdateWorkspaceConfigurationCommand = async (output, context) => {
|
|
768
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
769
|
+
return de_CommandError(output, context);
|
|
770
|
+
}
|
|
771
|
+
const contents = map({
|
|
772
|
+
$metadata: deserializeMetadata(output),
|
|
773
|
+
});
|
|
774
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
775
|
+
const doc = take(data, {
|
|
776
|
+
status: _json,
|
|
777
|
+
});
|
|
778
|
+
Object.assign(contents, doc);
|
|
779
|
+
return contents;
|
|
780
|
+
};
|
|
728
781
|
const de_CommandError = async (output, context) => {
|
|
729
782
|
const parsedOutput = {
|
|
730
783
|
...output,
|
package/dist-types/Amp.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { DescribeLoggingConfigurationCommandInput, DescribeLoggingConfigurationC
|
|
|
15
15
|
import { DescribeRuleGroupsNamespaceCommandInput, DescribeRuleGroupsNamespaceCommandOutput } from "./commands/DescribeRuleGroupsNamespaceCommand";
|
|
16
16
|
import { DescribeScraperCommandInput, DescribeScraperCommandOutput } from "./commands/DescribeScraperCommand";
|
|
17
17
|
import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "./commands/DescribeWorkspaceCommand";
|
|
18
|
+
import { DescribeWorkspaceConfigurationCommandInput, DescribeWorkspaceConfigurationCommandOutput } from "./commands/DescribeWorkspaceConfigurationCommand";
|
|
18
19
|
import { GetDefaultScraperConfigurationCommandInput, GetDefaultScraperConfigurationCommandOutput } from "./commands/GetDefaultScraperConfigurationCommand";
|
|
19
20
|
import { ListRuleGroupsNamespacesCommandInput, ListRuleGroupsNamespacesCommandOutput } from "./commands/ListRuleGroupsNamespacesCommand";
|
|
20
21
|
import { ListScrapersCommandInput, ListScrapersCommandOutput } from "./commands/ListScrapersCommand";
|
|
@@ -27,6 +28,7 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
27
28
|
import { UpdateLoggingConfigurationCommandInput, UpdateLoggingConfigurationCommandOutput } from "./commands/UpdateLoggingConfigurationCommand";
|
|
28
29
|
import { UpdateScraperCommandInput, UpdateScraperCommandOutput } from "./commands/UpdateScraperCommand";
|
|
29
30
|
import { UpdateWorkspaceAliasCommandInput, UpdateWorkspaceAliasCommandOutput } from "./commands/UpdateWorkspaceAliasCommand";
|
|
31
|
+
import { UpdateWorkspaceConfigurationCommandInput, UpdateWorkspaceConfigurationCommandOutput } from "./commands/UpdateWorkspaceConfigurationCommand";
|
|
30
32
|
export interface Amp {
|
|
31
33
|
/**
|
|
32
34
|
* @see {@link CreateAlertManagerDefinitionCommand}
|
|
@@ -119,6 +121,12 @@ export interface Amp {
|
|
|
119
121
|
describeWorkspace(args: DescribeWorkspaceCommandInput, options?: __HttpHandlerOptions): Promise<DescribeWorkspaceCommandOutput>;
|
|
120
122
|
describeWorkspace(args: DescribeWorkspaceCommandInput, cb: (err: any, data?: DescribeWorkspaceCommandOutput) => void): void;
|
|
121
123
|
describeWorkspace(args: DescribeWorkspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeWorkspaceCommandOutput) => void): void;
|
|
124
|
+
/**
|
|
125
|
+
* @see {@link DescribeWorkspaceConfigurationCommand}
|
|
126
|
+
*/
|
|
127
|
+
describeWorkspaceConfiguration(args: DescribeWorkspaceConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeWorkspaceConfigurationCommandOutput>;
|
|
128
|
+
describeWorkspaceConfiguration(args: DescribeWorkspaceConfigurationCommandInput, cb: (err: any, data?: DescribeWorkspaceConfigurationCommandOutput) => void): void;
|
|
129
|
+
describeWorkspaceConfiguration(args: DescribeWorkspaceConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeWorkspaceConfigurationCommandOutput) => void): void;
|
|
122
130
|
/**
|
|
123
131
|
* @see {@link GetDefaultScraperConfigurationCommand}
|
|
124
132
|
*/
|
|
@@ -194,6 +202,12 @@ export interface Amp {
|
|
|
194
202
|
updateWorkspaceAlias(args: UpdateWorkspaceAliasCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWorkspaceAliasCommandOutput>;
|
|
195
203
|
updateWorkspaceAlias(args: UpdateWorkspaceAliasCommandInput, cb: (err: any, data?: UpdateWorkspaceAliasCommandOutput) => void): void;
|
|
196
204
|
updateWorkspaceAlias(args: UpdateWorkspaceAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWorkspaceAliasCommandOutput) => void): void;
|
|
205
|
+
/**
|
|
206
|
+
* @see {@link UpdateWorkspaceConfigurationCommand}
|
|
207
|
+
*/
|
|
208
|
+
updateWorkspaceConfiguration(args: UpdateWorkspaceConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWorkspaceConfigurationCommandOutput>;
|
|
209
|
+
updateWorkspaceConfiguration(args: UpdateWorkspaceConfigurationCommandInput, cb: (err: any, data?: UpdateWorkspaceConfigurationCommandOutput) => void): void;
|
|
210
|
+
updateWorkspaceConfiguration(args: UpdateWorkspaceConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWorkspaceConfigurationCommandOutput) => void): void;
|
|
197
211
|
}
|
|
198
212
|
/**
|
|
199
213
|
* <p>Amazon Managed Service for Prometheus is a serverless, Prometheus-compatible monitoring service for
|
|
@@ -22,6 +22,7 @@ import { DescribeLoggingConfigurationCommandInput, DescribeLoggingConfigurationC
|
|
|
22
22
|
import { DescribeRuleGroupsNamespaceCommandInput, DescribeRuleGroupsNamespaceCommandOutput } from "./commands/DescribeRuleGroupsNamespaceCommand";
|
|
23
23
|
import { DescribeScraperCommandInput, DescribeScraperCommandOutput } from "./commands/DescribeScraperCommand";
|
|
24
24
|
import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "./commands/DescribeWorkspaceCommand";
|
|
25
|
+
import { DescribeWorkspaceConfigurationCommandInput, DescribeWorkspaceConfigurationCommandOutput } from "./commands/DescribeWorkspaceConfigurationCommand";
|
|
25
26
|
import { GetDefaultScraperConfigurationCommandInput, GetDefaultScraperConfigurationCommandOutput } from "./commands/GetDefaultScraperConfigurationCommand";
|
|
26
27
|
import { ListRuleGroupsNamespacesCommandInput, ListRuleGroupsNamespacesCommandOutput } from "./commands/ListRuleGroupsNamespacesCommand";
|
|
27
28
|
import { ListScrapersCommandInput, ListScrapersCommandOutput } from "./commands/ListScrapersCommand";
|
|
@@ -34,17 +35,18 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
34
35
|
import { UpdateLoggingConfigurationCommandInput, UpdateLoggingConfigurationCommandOutput } from "./commands/UpdateLoggingConfigurationCommand";
|
|
35
36
|
import { UpdateScraperCommandInput, UpdateScraperCommandOutput } from "./commands/UpdateScraperCommand";
|
|
36
37
|
import { UpdateWorkspaceAliasCommandInput, UpdateWorkspaceAliasCommandOutput } from "./commands/UpdateWorkspaceAliasCommand";
|
|
38
|
+
import { UpdateWorkspaceConfigurationCommandInput, UpdateWorkspaceConfigurationCommandOutput } from "./commands/UpdateWorkspaceConfigurationCommand";
|
|
37
39
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
38
40
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
39
41
|
export { __Client };
|
|
40
42
|
/**
|
|
41
43
|
* @public
|
|
42
44
|
*/
|
|
43
|
-
export type ServiceInputTypes = CreateAlertManagerDefinitionCommandInput | CreateLoggingConfigurationCommandInput | CreateRuleGroupsNamespaceCommandInput | CreateScraperCommandInput | CreateWorkspaceCommandInput | DeleteAlertManagerDefinitionCommandInput | DeleteLoggingConfigurationCommandInput | DeleteRuleGroupsNamespaceCommandInput | DeleteScraperCommandInput | DeleteWorkspaceCommandInput | DescribeAlertManagerDefinitionCommandInput | DescribeLoggingConfigurationCommandInput | DescribeRuleGroupsNamespaceCommandInput | DescribeScraperCommandInput | DescribeWorkspaceCommandInput | GetDefaultScraperConfigurationCommandInput | ListRuleGroupsNamespacesCommandInput | ListScrapersCommandInput | ListTagsForResourceCommandInput | ListWorkspacesCommandInput | PutAlertManagerDefinitionCommandInput | PutRuleGroupsNamespaceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateLoggingConfigurationCommandInput | UpdateScraperCommandInput | UpdateWorkspaceAliasCommandInput;
|
|
45
|
+
export type ServiceInputTypes = CreateAlertManagerDefinitionCommandInput | CreateLoggingConfigurationCommandInput | CreateRuleGroupsNamespaceCommandInput | CreateScraperCommandInput | CreateWorkspaceCommandInput | DeleteAlertManagerDefinitionCommandInput | DeleteLoggingConfigurationCommandInput | DeleteRuleGroupsNamespaceCommandInput | DeleteScraperCommandInput | DeleteWorkspaceCommandInput | DescribeAlertManagerDefinitionCommandInput | DescribeLoggingConfigurationCommandInput | DescribeRuleGroupsNamespaceCommandInput | DescribeScraperCommandInput | DescribeWorkspaceCommandInput | DescribeWorkspaceConfigurationCommandInput | GetDefaultScraperConfigurationCommandInput | ListRuleGroupsNamespacesCommandInput | ListScrapersCommandInput | ListTagsForResourceCommandInput | ListWorkspacesCommandInput | PutAlertManagerDefinitionCommandInput | PutRuleGroupsNamespaceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateLoggingConfigurationCommandInput | UpdateScraperCommandInput | UpdateWorkspaceAliasCommandInput | UpdateWorkspaceConfigurationCommandInput;
|
|
44
46
|
/**
|
|
45
47
|
* @public
|
|
46
48
|
*/
|
|
47
|
-
export type ServiceOutputTypes = CreateAlertManagerDefinitionCommandOutput | CreateLoggingConfigurationCommandOutput | CreateRuleGroupsNamespaceCommandOutput | CreateScraperCommandOutput | CreateWorkspaceCommandOutput | DeleteAlertManagerDefinitionCommandOutput | DeleteLoggingConfigurationCommandOutput | DeleteRuleGroupsNamespaceCommandOutput | DeleteScraperCommandOutput | DeleteWorkspaceCommandOutput | DescribeAlertManagerDefinitionCommandOutput | DescribeLoggingConfigurationCommandOutput | DescribeRuleGroupsNamespaceCommandOutput | DescribeScraperCommandOutput | DescribeWorkspaceCommandOutput | GetDefaultScraperConfigurationCommandOutput | ListRuleGroupsNamespacesCommandOutput | ListScrapersCommandOutput | ListTagsForResourceCommandOutput | ListWorkspacesCommandOutput | PutAlertManagerDefinitionCommandOutput | PutRuleGroupsNamespaceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateLoggingConfigurationCommandOutput | UpdateScraperCommandOutput | UpdateWorkspaceAliasCommandOutput;
|
|
49
|
+
export type ServiceOutputTypes = CreateAlertManagerDefinitionCommandOutput | CreateLoggingConfigurationCommandOutput | CreateRuleGroupsNamespaceCommandOutput | CreateScraperCommandOutput | CreateWorkspaceCommandOutput | DeleteAlertManagerDefinitionCommandOutput | DeleteLoggingConfigurationCommandOutput | DeleteRuleGroupsNamespaceCommandOutput | DeleteScraperCommandOutput | DeleteWorkspaceCommandOutput | DescribeAlertManagerDefinitionCommandOutput | DescribeLoggingConfigurationCommandOutput | DescribeRuleGroupsNamespaceCommandOutput | DescribeScraperCommandOutput | DescribeWorkspaceCommandOutput | DescribeWorkspaceConfigurationCommandOutput | GetDefaultScraperConfigurationCommandOutput | ListRuleGroupsNamespacesCommandOutput | ListScrapersCommandOutput | ListTagsForResourceCommandOutput | ListWorkspacesCommandOutput | PutAlertManagerDefinitionCommandOutput | PutRuleGroupsNamespaceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateLoggingConfigurationCommandOutput | UpdateScraperCommandOutput | UpdateWorkspaceAliasCommandOutput | UpdateWorkspaceConfigurationCommandOutput;
|
|
48
50
|
/**
|
|
49
51
|
* @public
|
|
50
52
|
*/
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
|
|
4
|
+
import { DescribeWorkspaceConfigurationRequest, DescribeWorkspaceConfigurationResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DescribeWorkspaceConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DescribeWorkspaceConfigurationCommandInput extends DescribeWorkspaceConfigurationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DescribeWorkspaceConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DescribeWorkspaceConfigurationCommandOutput extends DescribeWorkspaceConfigurationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DescribeWorkspaceConfigurationCommand_base: {
|
|
25
|
+
new (input: DescribeWorkspaceConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeWorkspaceConfigurationCommandInput, DescribeWorkspaceConfigurationCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DescribeWorkspaceConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeWorkspaceConfigurationCommandInput, DescribeWorkspaceConfigurationCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Use this operation to return information about the configuration of a workspace. The configuration details
|
|
31
|
+
* returned include workspace configuration status, label set limits, and retention period.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { AmpClient, DescribeWorkspaceConfigurationCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
36
|
+
* // const { AmpClient, DescribeWorkspaceConfigurationCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
37
|
+
* const client = new AmpClient(config);
|
|
38
|
+
* const input = { // DescribeWorkspaceConfigurationRequest
|
|
39
|
+
* workspaceId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new DescribeWorkspaceConfigurationCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // DescribeWorkspaceConfigurationResponse
|
|
44
|
+
* // workspaceConfiguration: { // WorkspaceConfigurationDescription
|
|
45
|
+
* // status: { // WorkspaceConfigurationStatus
|
|
46
|
+
* // statusCode: "STRING_VALUE", // required
|
|
47
|
+
* // statusReason: "STRING_VALUE",
|
|
48
|
+
* // },
|
|
49
|
+
* // limitsPerLabelSet: [ // LimitsPerLabelSetList
|
|
50
|
+
* // { // LimitsPerLabelSet
|
|
51
|
+
* // limits: { // LimitsPerLabelSetEntry
|
|
52
|
+
* // maxSeries: Number("long"),
|
|
53
|
+
* // },
|
|
54
|
+
* // labelSet: { // LabelSet // required
|
|
55
|
+
* // "<keys>": "STRING_VALUE",
|
|
56
|
+
* // },
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // retentionPeriodInDays: Number("int"),
|
|
60
|
+
* // },
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param DescribeWorkspaceConfigurationCommandInput - {@link DescribeWorkspaceConfigurationCommandInput}
|
|
66
|
+
* @returns {@link DescribeWorkspaceConfigurationCommandOutput}
|
|
67
|
+
* @see {@link DescribeWorkspaceConfigurationCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link DescribeWorkspaceConfigurationCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InternalServerException} (server fault)
|
|
75
|
+
* <p>An unexpected error occurred during the processing of the request.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The request references a resources that doesn't exist.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
81
|
+
* <p>The request was denied due to request throttling.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ValidationException} (client fault)
|
|
84
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
85
|
+
* service.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link AmpServiceException}
|
|
88
|
+
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
89
|
+
*
|
|
90
|
+
*
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export declare class DescribeWorkspaceConfigurationCommand extends DescribeWorkspaceConfigurationCommand_base {
|
|
94
|
+
/** @internal type navigation helper, not in runtime. */
|
|
95
|
+
protected static __types: {
|
|
96
|
+
api: {
|
|
97
|
+
input: DescribeWorkspaceConfigurationRequest;
|
|
98
|
+
output: DescribeWorkspaceConfigurationResponse;
|
|
99
|
+
};
|
|
100
|
+
sdk: {
|
|
101
|
+
input: DescribeWorkspaceConfigurationCommandInput;
|
|
102
|
+
output: DescribeWorkspaceConfigurationCommandOutput;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}
|