@aws-sdk/client-amp 3.142.0 → 3.150.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/CHANGELOG.md +27 -0
- package/dist-cjs/Amp.js +60 -0
- package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +47 -1
- package/dist-cjs/protocols/Aws_restJson1.js +277 -1
- package/dist-es/Amp.js +60 -0
- package/dist-es/commands/CreateLoggingConfigurationCommand.js +39 -0
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +39 -0
- package/dist-es/commands/DescribeLoggingConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +18 -0
- package/dist-es/protocols/Aws_restJson1.js +390 -0
- package/dist-types/Amp.d.ts +28 -0
- package/dist-types/AmpClient.d.ts +6 -2
- package/dist-types/commands/CreateLoggingConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/DescribeLoggingConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +183 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/Amp.d.ts +20 -0
- package/dist-types/ts3.4/AmpClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/CreateLoggingConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeLoggingConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateLoggingConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +97 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +8 -3
|
@@ -124,6 +124,15 @@ export var WorkspaceStatusCode;
|
|
|
124
124
|
WorkspaceStatusCode["DELETING"] = "DELETING";
|
|
125
125
|
WorkspaceStatusCode["UPDATING"] = "UPDATING";
|
|
126
126
|
})(WorkspaceStatusCode || (WorkspaceStatusCode = {}));
|
|
127
|
+
export var LoggingConfigurationStatusCode;
|
|
128
|
+
(function (LoggingConfigurationStatusCode) {
|
|
129
|
+
LoggingConfigurationStatusCode["ACTIVE"] = "ACTIVE";
|
|
130
|
+
LoggingConfigurationStatusCode["CREATING"] = "CREATING";
|
|
131
|
+
LoggingConfigurationStatusCode["CREATION_FAILED"] = "CREATION_FAILED";
|
|
132
|
+
LoggingConfigurationStatusCode["DELETING"] = "DELETING";
|
|
133
|
+
LoggingConfigurationStatusCode["UPDATE_FAILED"] = "UPDATE_FAILED";
|
|
134
|
+
LoggingConfigurationStatusCode["UPDATING"] = "UPDATING";
|
|
135
|
+
})(LoggingConfigurationStatusCode || (LoggingConfigurationStatusCode = {}));
|
|
127
136
|
export var RuleGroupsNamespaceStatusCode;
|
|
128
137
|
(function (RuleGroupsNamespaceStatusCode) {
|
|
129
138
|
RuleGroupsNamespaceStatusCode["ACTIVE"] = "ACTIVE";
|
|
@@ -159,6 +168,15 @@ export var DescribeWorkspaceResponseFilterSensitiveLog = function (obj) { return
|
|
|
159
168
|
export var ListWorkspacesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
160
169
|
export var WorkspaceSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
161
170
|
export var ListWorkspacesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
171
|
+
export var CreateLoggingConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
172
|
+
export var LoggingConfigurationStatusFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
173
|
+
export var CreateLoggingConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
174
|
+
export var DeleteLoggingConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
175
|
+
export var DescribeLoggingConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
176
|
+
export var LoggingConfigurationMetadataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
177
|
+
export var DescribeLoggingConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
178
|
+
export var UpdateLoggingConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
179
|
+
export var UpdateLoggingConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
162
180
|
export var CreateRuleGroupsNamespaceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
163
181
|
export var RuleGroupsNamespaceStatusFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
164
182
|
export var CreateRuleGroupsNamespaceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -31,6 +31,32 @@ export var serializeAws_restJson1CreateAlertManagerDefinitionCommand = function
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
}); };
|
|
34
|
+
export var serializeAws_restJson1CreateLoggingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
35
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
36
|
+
var _c;
|
|
37
|
+
return __generator(this, function (_d) {
|
|
38
|
+
switch (_d.label) {
|
|
39
|
+
case 0: return [4, context.endpoint()];
|
|
40
|
+
case 1:
|
|
41
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
42
|
+
headers = {
|
|
43
|
+
"content-type": "application/json",
|
|
44
|
+
};
|
|
45
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workspaces/{workspaceId}/logging";
|
|
46
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", function () { return input.workspaceId; }, "{workspaceId}", false);
|
|
47
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.logGroupArn != null && { logGroupArn: input.logGroupArn })));
|
|
48
|
+
return [2, new __HttpRequest({
|
|
49
|
+
protocol: protocol,
|
|
50
|
+
hostname: hostname,
|
|
51
|
+
port: port,
|
|
52
|
+
method: "POST",
|
|
53
|
+
headers: headers,
|
|
54
|
+
path: resolvedPath,
|
|
55
|
+
body: body,
|
|
56
|
+
})];
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}); };
|
|
34
60
|
export var serializeAws_restJson1CreateRuleGroupsNamespaceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
35
61
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
36
62
|
var _c;
|
|
@@ -110,6 +136,32 @@ export var serializeAws_restJson1DeleteAlertManagerDefinitionCommand = function
|
|
|
110
136
|
}
|
|
111
137
|
});
|
|
112
138
|
}); };
|
|
139
|
+
export var serializeAws_restJson1DeleteLoggingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
140
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
141
|
+
return __generator(this, function (_c) {
|
|
142
|
+
switch (_c.label) {
|
|
143
|
+
case 0: return [4, context.endpoint()];
|
|
144
|
+
case 1:
|
|
145
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
146
|
+
headers = {};
|
|
147
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workspaces/{workspaceId}/logging";
|
|
148
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", function () { return input.workspaceId; }, "{workspaceId}", false);
|
|
149
|
+
query = map({
|
|
150
|
+
clientToken: [, input.clientToken],
|
|
151
|
+
});
|
|
152
|
+
return [2, new __HttpRequest({
|
|
153
|
+
protocol: protocol,
|
|
154
|
+
hostname: hostname,
|
|
155
|
+
port: port,
|
|
156
|
+
method: "DELETE",
|
|
157
|
+
headers: headers,
|
|
158
|
+
path: resolvedPath,
|
|
159
|
+
query: query,
|
|
160
|
+
body: body,
|
|
161
|
+
})];
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}); };
|
|
113
165
|
export var serializeAws_restJson1DeleteRuleGroupsNamespaceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
114
166
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
115
167
|
return __generator(this, function (_c) {
|
|
@@ -187,6 +239,28 @@ export var serializeAws_restJson1DescribeAlertManagerDefinitionCommand = functio
|
|
|
187
239
|
}
|
|
188
240
|
});
|
|
189
241
|
}); };
|
|
242
|
+
export var serializeAws_restJson1DescribeLoggingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
243
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
244
|
+
return __generator(this, function (_c) {
|
|
245
|
+
switch (_c.label) {
|
|
246
|
+
case 0: return [4, context.endpoint()];
|
|
247
|
+
case 1:
|
|
248
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
249
|
+
headers = {};
|
|
250
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workspaces/{workspaceId}/logging";
|
|
251
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", function () { return input.workspaceId; }, "{workspaceId}", false);
|
|
252
|
+
return [2, new __HttpRequest({
|
|
253
|
+
protocol: protocol,
|
|
254
|
+
hostname: hostname,
|
|
255
|
+
port: port,
|
|
256
|
+
method: "GET",
|
|
257
|
+
headers: headers,
|
|
258
|
+
path: resolvedPath,
|
|
259
|
+
body: body,
|
|
260
|
+
})];
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
}); };
|
|
190
264
|
export var serializeAws_restJson1DescribeRuleGroupsNamespaceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
191
265
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
192
266
|
return __generator(this, function (_c) {
|
|
@@ -417,6 +491,32 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
417
491
|
}
|
|
418
492
|
});
|
|
419
493
|
}); };
|
|
494
|
+
export var serializeAws_restJson1UpdateLoggingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
495
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
496
|
+
var _c;
|
|
497
|
+
return __generator(this, function (_d) {
|
|
498
|
+
switch (_d.label) {
|
|
499
|
+
case 0: return [4, context.endpoint()];
|
|
500
|
+
case 1:
|
|
501
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
502
|
+
headers = {
|
|
503
|
+
"content-type": "application/json",
|
|
504
|
+
};
|
|
505
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workspaces/{workspaceId}/logging";
|
|
506
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", function () { return input.workspaceId; }, "{workspaceId}", false);
|
|
507
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.logGroupArn != null && { logGroupArn: input.logGroupArn })));
|
|
508
|
+
return [2, new __HttpRequest({
|
|
509
|
+
protocol: protocol,
|
|
510
|
+
hostname: hostname,
|
|
511
|
+
port: port,
|
|
512
|
+
method: "PUT",
|
|
513
|
+
headers: headers,
|
|
514
|
+
path: resolvedPath,
|
|
515
|
+
body: body,
|
|
516
|
+
})];
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
}); };
|
|
420
520
|
export var serializeAws_restJson1UpdateWorkspaceAliasCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
421
521
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
422
522
|
var _c;
|
|
@@ -523,6 +623,74 @@ var deserializeAws_restJson1CreateAlertManagerDefinitionCommandError = function
|
|
|
523
623
|
}
|
|
524
624
|
});
|
|
525
625
|
}); };
|
|
626
|
+
export var deserializeAws_restJson1CreateLoggingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
627
|
+
var contents, data, _a, _b;
|
|
628
|
+
return __generator(this, function (_c) {
|
|
629
|
+
switch (_c.label) {
|
|
630
|
+
case 0:
|
|
631
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
632
|
+
return [2, deserializeAws_restJson1CreateLoggingConfigurationCommandError(output, context)];
|
|
633
|
+
}
|
|
634
|
+
contents = map({
|
|
635
|
+
$metadata: deserializeMetadata(output),
|
|
636
|
+
});
|
|
637
|
+
_a = __expectNonNull;
|
|
638
|
+
_b = __expectObject;
|
|
639
|
+
return [4, parseBody(output.body, context)];
|
|
640
|
+
case 1:
|
|
641
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
642
|
+
if (data.status != null) {
|
|
643
|
+
contents.status = deserializeAws_restJson1LoggingConfigurationStatus(data.status, context);
|
|
644
|
+
}
|
|
645
|
+
return [2, contents];
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
}); };
|
|
649
|
+
var deserializeAws_restJson1CreateLoggingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
650
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
651
|
+
var _c;
|
|
652
|
+
return __generator(this, function (_d) {
|
|
653
|
+
switch (_d.label) {
|
|
654
|
+
case 0:
|
|
655
|
+
_a = [__assign({}, output)];
|
|
656
|
+
_c = {};
|
|
657
|
+
return [4, parseBody(output.body, context)];
|
|
658
|
+
case 1:
|
|
659
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
660
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
661
|
+
_b = errorCode;
|
|
662
|
+
switch (_b) {
|
|
663
|
+
case "AccessDeniedException": return [3, 2];
|
|
664
|
+
case "com.amazonaws.amp#AccessDeniedException": return [3, 2];
|
|
665
|
+
case "InternalServerException": return [3, 4];
|
|
666
|
+
case "com.amazonaws.amp#InternalServerException": return [3, 4];
|
|
667
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
668
|
+
case "com.amazonaws.amp#ResourceNotFoundException": return [3, 6];
|
|
669
|
+
case "ValidationException": return [3, 8];
|
|
670
|
+
case "com.amazonaws.amp#ValidationException": return [3, 8];
|
|
671
|
+
}
|
|
672
|
+
return [3, 10];
|
|
673
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
674
|
+
case 3: throw _d.sent();
|
|
675
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
676
|
+
case 5: throw _d.sent();
|
|
677
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
678
|
+
case 7: throw _d.sent();
|
|
679
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
680
|
+
case 9: throw _d.sent();
|
|
681
|
+
case 10:
|
|
682
|
+
parsedBody = parsedOutput.body;
|
|
683
|
+
throwDefaultError({
|
|
684
|
+
output: output,
|
|
685
|
+
parsedBody: parsedBody,
|
|
686
|
+
exceptionCtor: __BaseException,
|
|
687
|
+
errorCode: errorCode,
|
|
688
|
+
});
|
|
689
|
+
_d.label = 11;
|
|
690
|
+
case 11: return [2];
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
}); };
|
|
526
694
|
export var deserializeAws_restJson1CreateRuleGroupsNamespaceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
527
695
|
var contents, data, _a, _b;
|
|
528
696
|
return __generator(this, function (_c) {
|
|
@@ -768,6 +936,73 @@ var deserializeAws_restJson1DeleteAlertManagerDefinitionCommandError = function
|
|
|
768
936
|
}
|
|
769
937
|
});
|
|
770
938
|
}); };
|
|
939
|
+
export var deserializeAws_restJson1DeleteLoggingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
940
|
+
var contents;
|
|
941
|
+
return __generator(this, function (_a) {
|
|
942
|
+
switch (_a.label) {
|
|
943
|
+
case 0:
|
|
944
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
945
|
+
return [2, deserializeAws_restJson1DeleteLoggingConfigurationCommandError(output, context)];
|
|
946
|
+
}
|
|
947
|
+
contents = map({
|
|
948
|
+
$metadata: deserializeMetadata(output),
|
|
949
|
+
});
|
|
950
|
+
return [4, collectBody(output.body, context)];
|
|
951
|
+
case 1:
|
|
952
|
+
_a.sent();
|
|
953
|
+
return [2, contents];
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
}); };
|
|
957
|
+
var deserializeAws_restJson1DeleteLoggingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
958
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
959
|
+
var _c;
|
|
960
|
+
return __generator(this, function (_d) {
|
|
961
|
+
switch (_d.label) {
|
|
962
|
+
case 0:
|
|
963
|
+
_a = [__assign({}, output)];
|
|
964
|
+
_c = {};
|
|
965
|
+
return [4, parseBody(output.body, context)];
|
|
966
|
+
case 1:
|
|
967
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
968
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
|
+
_b = errorCode;
|
|
970
|
+
switch (_b) {
|
|
971
|
+
case "AccessDeniedException": return [3, 2];
|
|
972
|
+
case "com.amazonaws.amp#AccessDeniedException": return [3, 2];
|
|
973
|
+
case "ConflictException": return [3, 4];
|
|
974
|
+
case "com.amazonaws.amp#ConflictException": return [3, 4];
|
|
975
|
+
case "InternalServerException": return [3, 6];
|
|
976
|
+
case "com.amazonaws.amp#InternalServerException": return [3, 6];
|
|
977
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
978
|
+
case "com.amazonaws.amp#ResourceNotFoundException": return [3, 8];
|
|
979
|
+
case "ValidationException": return [3, 10];
|
|
980
|
+
case "com.amazonaws.amp#ValidationException": return [3, 10];
|
|
981
|
+
}
|
|
982
|
+
return [3, 12];
|
|
983
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
984
|
+
case 3: throw _d.sent();
|
|
985
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
986
|
+
case 5: throw _d.sent();
|
|
987
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
988
|
+
case 7: throw _d.sent();
|
|
989
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
990
|
+
case 9: throw _d.sent();
|
|
991
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
992
|
+
case 11: throw _d.sent();
|
|
993
|
+
case 12:
|
|
994
|
+
parsedBody = parsedOutput.body;
|
|
995
|
+
throwDefaultError({
|
|
996
|
+
output: output,
|
|
997
|
+
parsedBody: parsedBody,
|
|
998
|
+
exceptionCtor: __BaseException,
|
|
999
|
+
errorCode: errorCode,
|
|
1000
|
+
});
|
|
1001
|
+
_d.label = 13;
|
|
1002
|
+
case 13: return [2];
|
|
1003
|
+
}
|
|
1004
|
+
});
|
|
1005
|
+
}); };
|
|
771
1006
|
export var deserializeAws_restJson1DeleteRuleGroupsNamespaceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
772
1007
|
var contents;
|
|
773
1008
|
return __generator(this, function (_a) {
|
|
@@ -982,6 +1217,74 @@ var deserializeAws_restJson1DescribeAlertManagerDefinitionCommandError = functio
|
|
|
982
1217
|
}
|
|
983
1218
|
});
|
|
984
1219
|
}); };
|
|
1220
|
+
export var deserializeAws_restJson1DescribeLoggingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1221
|
+
var contents, data, _a, _b;
|
|
1222
|
+
return __generator(this, function (_c) {
|
|
1223
|
+
switch (_c.label) {
|
|
1224
|
+
case 0:
|
|
1225
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1226
|
+
return [2, deserializeAws_restJson1DescribeLoggingConfigurationCommandError(output, context)];
|
|
1227
|
+
}
|
|
1228
|
+
contents = map({
|
|
1229
|
+
$metadata: deserializeMetadata(output),
|
|
1230
|
+
});
|
|
1231
|
+
_a = __expectNonNull;
|
|
1232
|
+
_b = __expectObject;
|
|
1233
|
+
return [4, parseBody(output.body, context)];
|
|
1234
|
+
case 1:
|
|
1235
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1236
|
+
if (data.loggingConfiguration != null) {
|
|
1237
|
+
contents.loggingConfiguration = deserializeAws_restJson1LoggingConfigurationMetadata(data.loggingConfiguration, context);
|
|
1238
|
+
}
|
|
1239
|
+
return [2, contents];
|
|
1240
|
+
}
|
|
1241
|
+
});
|
|
1242
|
+
}); };
|
|
1243
|
+
var deserializeAws_restJson1DescribeLoggingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1244
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1245
|
+
var _c;
|
|
1246
|
+
return __generator(this, function (_d) {
|
|
1247
|
+
switch (_d.label) {
|
|
1248
|
+
case 0:
|
|
1249
|
+
_a = [__assign({}, output)];
|
|
1250
|
+
_c = {};
|
|
1251
|
+
return [4, parseBody(output.body, context)];
|
|
1252
|
+
case 1:
|
|
1253
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1254
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1255
|
+
_b = errorCode;
|
|
1256
|
+
switch (_b) {
|
|
1257
|
+
case "AccessDeniedException": return [3, 2];
|
|
1258
|
+
case "com.amazonaws.amp#AccessDeniedException": return [3, 2];
|
|
1259
|
+
case "InternalServerException": return [3, 4];
|
|
1260
|
+
case "com.amazonaws.amp#InternalServerException": return [3, 4];
|
|
1261
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1262
|
+
case "com.amazonaws.amp#ResourceNotFoundException": return [3, 6];
|
|
1263
|
+
case "ValidationException": return [3, 8];
|
|
1264
|
+
case "com.amazonaws.amp#ValidationException": return [3, 8];
|
|
1265
|
+
}
|
|
1266
|
+
return [3, 10];
|
|
1267
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1268
|
+
case 3: throw _d.sent();
|
|
1269
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1270
|
+
case 5: throw _d.sent();
|
|
1271
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1272
|
+
case 7: throw _d.sent();
|
|
1273
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1274
|
+
case 9: throw _d.sent();
|
|
1275
|
+
case 10:
|
|
1276
|
+
parsedBody = parsedOutput.body;
|
|
1277
|
+
throwDefaultError({
|
|
1278
|
+
output: output,
|
|
1279
|
+
parsedBody: parsedBody,
|
|
1280
|
+
exceptionCtor: __BaseException,
|
|
1281
|
+
errorCode: errorCode,
|
|
1282
|
+
});
|
|
1283
|
+
_d.label = 11;
|
|
1284
|
+
case 11: return [2];
|
|
1285
|
+
}
|
|
1286
|
+
});
|
|
1287
|
+
}); };
|
|
985
1288
|
export var deserializeAws_restJson1DescribeRuleGroupsNamespaceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
986
1289
|
var contents, data, _a, _b;
|
|
987
1290
|
return __generator(this, function (_c) {
|
|
@@ -1647,6 +1950,78 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1647
1950
|
}
|
|
1648
1951
|
});
|
|
1649
1952
|
}); };
|
|
1953
|
+
export var deserializeAws_restJson1UpdateLoggingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1954
|
+
var contents, data, _a, _b;
|
|
1955
|
+
return __generator(this, function (_c) {
|
|
1956
|
+
switch (_c.label) {
|
|
1957
|
+
case 0:
|
|
1958
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1959
|
+
return [2, deserializeAws_restJson1UpdateLoggingConfigurationCommandError(output, context)];
|
|
1960
|
+
}
|
|
1961
|
+
contents = map({
|
|
1962
|
+
$metadata: deserializeMetadata(output),
|
|
1963
|
+
});
|
|
1964
|
+
_a = __expectNonNull;
|
|
1965
|
+
_b = __expectObject;
|
|
1966
|
+
return [4, parseBody(output.body, context)];
|
|
1967
|
+
case 1:
|
|
1968
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1969
|
+
if (data.status != null) {
|
|
1970
|
+
contents.status = deserializeAws_restJson1LoggingConfigurationStatus(data.status, context);
|
|
1971
|
+
}
|
|
1972
|
+
return [2, contents];
|
|
1973
|
+
}
|
|
1974
|
+
});
|
|
1975
|
+
}); };
|
|
1976
|
+
var deserializeAws_restJson1UpdateLoggingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1977
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1978
|
+
var _c;
|
|
1979
|
+
return __generator(this, function (_d) {
|
|
1980
|
+
switch (_d.label) {
|
|
1981
|
+
case 0:
|
|
1982
|
+
_a = [__assign({}, output)];
|
|
1983
|
+
_c = {};
|
|
1984
|
+
return [4, parseBody(output.body, context)];
|
|
1985
|
+
case 1:
|
|
1986
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1987
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
|
+
_b = errorCode;
|
|
1989
|
+
switch (_b) {
|
|
1990
|
+
case "AccessDeniedException": return [3, 2];
|
|
1991
|
+
case "com.amazonaws.amp#AccessDeniedException": return [3, 2];
|
|
1992
|
+
case "ConflictException": return [3, 4];
|
|
1993
|
+
case "com.amazonaws.amp#ConflictException": return [3, 4];
|
|
1994
|
+
case "InternalServerException": return [3, 6];
|
|
1995
|
+
case "com.amazonaws.amp#InternalServerException": return [3, 6];
|
|
1996
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1997
|
+
case "com.amazonaws.amp#ResourceNotFoundException": return [3, 8];
|
|
1998
|
+
case "ValidationException": return [3, 10];
|
|
1999
|
+
case "com.amazonaws.amp#ValidationException": return [3, 10];
|
|
2000
|
+
}
|
|
2001
|
+
return [3, 12];
|
|
2002
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2003
|
+
case 3: throw _d.sent();
|
|
2004
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2005
|
+
case 5: throw _d.sent();
|
|
2006
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2007
|
+
case 7: throw _d.sent();
|
|
2008
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2009
|
+
case 9: throw _d.sent();
|
|
2010
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2011
|
+
case 11: throw _d.sent();
|
|
2012
|
+
case 12:
|
|
2013
|
+
parsedBody = parsedOutput.body;
|
|
2014
|
+
throwDefaultError({
|
|
2015
|
+
output: output,
|
|
2016
|
+
parsedBody: parsedBody,
|
|
2017
|
+
exceptionCtor: __BaseException,
|
|
2018
|
+
errorCode: errorCode,
|
|
2019
|
+
});
|
|
2020
|
+
_d.label = 13;
|
|
2021
|
+
case 13: return [2];
|
|
2022
|
+
}
|
|
2023
|
+
});
|
|
2024
|
+
}); };
|
|
1650
2025
|
export var deserializeAws_restJson1UpdateWorkspaceAliasCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1651
2026
|
var contents;
|
|
1652
2027
|
return __generator(this, function (_a) {
|
|
@@ -1877,6 +2252,21 @@ var deserializeAws_restJson1AlertManagerDefinitionStatus = function (output, con
|
|
|
1877
2252
|
statusReason: __expectString(output.statusReason),
|
|
1878
2253
|
};
|
|
1879
2254
|
};
|
|
2255
|
+
var deserializeAws_restJson1LoggingConfigurationMetadata = function (output, context) {
|
|
2256
|
+
return {
|
|
2257
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
2258
|
+
logGroupArn: __expectString(output.logGroupArn),
|
|
2259
|
+
modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
|
|
2260
|
+
status: output.status != null ? deserializeAws_restJson1LoggingConfigurationStatus(output.status, context) : undefined,
|
|
2261
|
+
workspace: __expectString(output.workspace),
|
|
2262
|
+
};
|
|
2263
|
+
};
|
|
2264
|
+
var deserializeAws_restJson1LoggingConfigurationStatus = function (output, context) {
|
|
2265
|
+
return {
|
|
2266
|
+
statusCode: __expectString(output.statusCode),
|
|
2267
|
+
statusReason: __expectString(output.statusReason),
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
1880
2270
|
var deserializeAws_restJson1RuleGroupsNamespaceDescription = function (output, context) {
|
|
1881
2271
|
return {
|
|
1882
2272
|
arn: __expectString(output.arn),
|
package/dist-types/Amp.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { AmpClient } from "./AmpClient";
|
|
3
3
|
import { CreateAlertManagerDefinitionCommandInput, CreateAlertManagerDefinitionCommandOutput } from "./commands/CreateAlertManagerDefinitionCommand";
|
|
4
|
+
import { CreateLoggingConfigurationCommandInput, CreateLoggingConfigurationCommandOutput } from "./commands/CreateLoggingConfigurationCommand";
|
|
4
5
|
import { CreateRuleGroupsNamespaceCommandInput, CreateRuleGroupsNamespaceCommandOutput } from "./commands/CreateRuleGroupsNamespaceCommand";
|
|
5
6
|
import { CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput } from "./commands/CreateWorkspaceCommand";
|
|
6
7
|
import { DeleteAlertManagerDefinitionCommandInput, DeleteAlertManagerDefinitionCommandOutput } from "./commands/DeleteAlertManagerDefinitionCommand";
|
|
8
|
+
import { DeleteLoggingConfigurationCommandInput, DeleteLoggingConfigurationCommandOutput } from "./commands/DeleteLoggingConfigurationCommand";
|
|
7
9
|
import { DeleteRuleGroupsNamespaceCommandInput, DeleteRuleGroupsNamespaceCommandOutput } from "./commands/DeleteRuleGroupsNamespaceCommand";
|
|
8
10
|
import { DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput } from "./commands/DeleteWorkspaceCommand";
|
|
9
11
|
import { DescribeAlertManagerDefinitionCommandInput, DescribeAlertManagerDefinitionCommandOutput } from "./commands/DescribeAlertManagerDefinitionCommand";
|
|
12
|
+
import { DescribeLoggingConfigurationCommandInput, DescribeLoggingConfigurationCommandOutput } from "./commands/DescribeLoggingConfigurationCommand";
|
|
10
13
|
import { DescribeRuleGroupsNamespaceCommandInput, DescribeRuleGroupsNamespaceCommandOutput } from "./commands/DescribeRuleGroupsNamespaceCommand";
|
|
11
14
|
import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "./commands/DescribeWorkspaceCommand";
|
|
12
15
|
import { ListRuleGroupsNamespacesCommandInput, ListRuleGroupsNamespacesCommandOutput } from "./commands/ListRuleGroupsNamespacesCommand";
|
|
@@ -16,6 +19,7 @@ import { PutAlertManagerDefinitionCommandInput, PutAlertManagerDefinitionCommand
|
|
|
16
19
|
import { PutRuleGroupsNamespaceCommandInput, PutRuleGroupsNamespaceCommandOutput } from "./commands/PutRuleGroupsNamespaceCommand";
|
|
17
20
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
18
21
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
22
|
+
import { UpdateLoggingConfigurationCommandInput, UpdateLoggingConfigurationCommandOutput } from "./commands/UpdateLoggingConfigurationCommand";
|
|
19
23
|
import { UpdateWorkspaceAliasCommandInput, UpdateWorkspaceAliasCommandOutput } from "./commands/UpdateWorkspaceAliasCommand";
|
|
20
24
|
/**
|
|
21
25
|
* Amazon Managed Service for Prometheus
|
|
@@ -27,6 +31,12 @@ export declare class Amp extends AmpClient {
|
|
|
27
31
|
createAlertManagerDefinition(args: CreateAlertManagerDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<CreateAlertManagerDefinitionCommandOutput>;
|
|
28
32
|
createAlertManagerDefinition(args: CreateAlertManagerDefinitionCommandInput, cb: (err: any, data?: CreateAlertManagerDefinitionCommandOutput) => void): void;
|
|
29
33
|
createAlertManagerDefinition(args: CreateAlertManagerDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAlertManagerDefinitionCommandOutput) => void): void;
|
|
34
|
+
/**
|
|
35
|
+
* Create logging configuration.
|
|
36
|
+
*/
|
|
37
|
+
createLoggingConfiguration(args: CreateLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateLoggingConfigurationCommandOutput>;
|
|
38
|
+
createLoggingConfiguration(args: CreateLoggingConfigurationCommandInput, cb: (err: any, data?: CreateLoggingConfigurationCommandOutput) => void): void;
|
|
39
|
+
createLoggingConfiguration(args: CreateLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLoggingConfigurationCommandOutput) => void): void;
|
|
30
40
|
/**
|
|
31
41
|
* Create a rule group namespace.
|
|
32
42
|
*/
|
|
@@ -45,6 +55,12 @@ export declare class Amp extends AmpClient {
|
|
|
45
55
|
deleteAlertManagerDefinition(args: DeleteAlertManagerDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAlertManagerDefinitionCommandOutput>;
|
|
46
56
|
deleteAlertManagerDefinition(args: DeleteAlertManagerDefinitionCommandInput, cb: (err: any, data?: DeleteAlertManagerDefinitionCommandOutput) => void): void;
|
|
47
57
|
deleteAlertManagerDefinition(args: DeleteAlertManagerDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAlertManagerDefinitionCommandOutput) => void): void;
|
|
58
|
+
/**
|
|
59
|
+
* Delete logging configuration.
|
|
60
|
+
*/
|
|
61
|
+
deleteLoggingConfiguration(args: DeleteLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLoggingConfigurationCommandOutput>;
|
|
62
|
+
deleteLoggingConfiguration(args: DeleteLoggingConfigurationCommandInput, cb: (err: any, data?: DeleteLoggingConfigurationCommandOutput) => void): void;
|
|
63
|
+
deleteLoggingConfiguration(args: DeleteLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLoggingConfigurationCommandOutput) => void): void;
|
|
48
64
|
/**
|
|
49
65
|
* Delete a rule groups namespace.
|
|
50
66
|
*/
|
|
@@ -63,6 +79,12 @@ export declare class Amp extends AmpClient {
|
|
|
63
79
|
describeAlertManagerDefinition(args: DescribeAlertManagerDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAlertManagerDefinitionCommandOutput>;
|
|
64
80
|
describeAlertManagerDefinition(args: DescribeAlertManagerDefinitionCommandInput, cb: (err: any, data?: DescribeAlertManagerDefinitionCommandOutput) => void): void;
|
|
65
81
|
describeAlertManagerDefinition(args: DescribeAlertManagerDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAlertManagerDefinitionCommandOutput) => void): void;
|
|
82
|
+
/**
|
|
83
|
+
* Describes logging configuration.
|
|
84
|
+
*/
|
|
85
|
+
describeLoggingConfiguration(args: DescribeLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLoggingConfigurationCommandOutput>;
|
|
86
|
+
describeLoggingConfiguration(args: DescribeLoggingConfigurationCommandInput, cb: (err: any, data?: DescribeLoggingConfigurationCommandOutput) => void): void;
|
|
87
|
+
describeLoggingConfiguration(args: DescribeLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLoggingConfigurationCommandOutput) => void): void;
|
|
66
88
|
/**
|
|
67
89
|
* Describe a rule groups namespace.
|
|
68
90
|
*/
|
|
@@ -117,6 +139,12 @@ export declare class Amp extends AmpClient {
|
|
|
117
139
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
118
140
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
119
141
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
142
|
+
/**
|
|
143
|
+
* Update logging configuration.
|
|
144
|
+
*/
|
|
145
|
+
updateLoggingConfiguration(args: UpdateLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLoggingConfigurationCommandOutput>;
|
|
146
|
+
updateLoggingConfiguration(args: UpdateLoggingConfigurationCommandInput, cb: (err: any, data?: UpdateLoggingConfigurationCommandOutput) => void): void;
|
|
147
|
+
updateLoggingConfiguration(args: UpdateLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLoggingConfigurationCommandOutput) => void): void;
|
|
120
148
|
/**
|
|
121
149
|
* Updates an AMP workspace alias.
|
|
122
150
|
*/
|
|
@@ -7,12 +7,15 @@ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CreateAlertManagerDefinitionCommandInput, CreateAlertManagerDefinitionCommandOutput } from "./commands/CreateAlertManagerDefinitionCommand";
|
|
10
|
+
import { CreateLoggingConfigurationCommandInput, CreateLoggingConfigurationCommandOutput } from "./commands/CreateLoggingConfigurationCommand";
|
|
10
11
|
import { CreateRuleGroupsNamespaceCommandInput, CreateRuleGroupsNamespaceCommandOutput } from "./commands/CreateRuleGroupsNamespaceCommand";
|
|
11
12
|
import { CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput } from "./commands/CreateWorkspaceCommand";
|
|
12
13
|
import { DeleteAlertManagerDefinitionCommandInput, DeleteAlertManagerDefinitionCommandOutput } from "./commands/DeleteAlertManagerDefinitionCommand";
|
|
14
|
+
import { DeleteLoggingConfigurationCommandInput, DeleteLoggingConfigurationCommandOutput } from "./commands/DeleteLoggingConfigurationCommand";
|
|
13
15
|
import { DeleteRuleGroupsNamespaceCommandInput, DeleteRuleGroupsNamespaceCommandOutput } from "./commands/DeleteRuleGroupsNamespaceCommand";
|
|
14
16
|
import { DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput } from "./commands/DeleteWorkspaceCommand";
|
|
15
17
|
import { DescribeAlertManagerDefinitionCommandInput, DescribeAlertManagerDefinitionCommandOutput } from "./commands/DescribeAlertManagerDefinitionCommand";
|
|
18
|
+
import { DescribeLoggingConfigurationCommandInput, DescribeLoggingConfigurationCommandOutput } from "./commands/DescribeLoggingConfigurationCommand";
|
|
16
19
|
import { DescribeRuleGroupsNamespaceCommandInput, DescribeRuleGroupsNamespaceCommandOutput } from "./commands/DescribeRuleGroupsNamespaceCommand";
|
|
17
20
|
import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "./commands/DescribeWorkspaceCommand";
|
|
18
21
|
import { ListRuleGroupsNamespacesCommandInput, ListRuleGroupsNamespacesCommandOutput } from "./commands/ListRuleGroupsNamespacesCommand";
|
|
@@ -22,9 +25,10 @@ import { PutAlertManagerDefinitionCommandInput, PutAlertManagerDefinitionCommand
|
|
|
22
25
|
import { PutRuleGroupsNamespaceCommandInput, PutRuleGroupsNamespaceCommandOutput } from "./commands/PutRuleGroupsNamespaceCommand";
|
|
23
26
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
24
27
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
28
|
+
import { UpdateLoggingConfigurationCommandInput, UpdateLoggingConfigurationCommandOutput } from "./commands/UpdateLoggingConfigurationCommand";
|
|
25
29
|
import { UpdateWorkspaceAliasCommandInput, UpdateWorkspaceAliasCommandOutput } from "./commands/UpdateWorkspaceAliasCommand";
|
|
26
|
-
export declare type ServiceInputTypes = CreateAlertManagerDefinitionCommandInput | CreateRuleGroupsNamespaceCommandInput | CreateWorkspaceCommandInput | DeleteAlertManagerDefinitionCommandInput | DeleteRuleGroupsNamespaceCommandInput | DeleteWorkspaceCommandInput | DescribeAlertManagerDefinitionCommandInput | DescribeRuleGroupsNamespaceCommandInput | DescribeWorkspaceCommandInput | ListRuleGroupsNamespacesCommandInput | ListTagsForResourceCommandInput | ListWorkspacesCommandInput | PutAlertManagerDefinitionCommandInput | PutRuleGroupsNamespaceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateWorkspaceAliasCommandInput;
|
|
27
|
-
export declare type ServiceOutputTypes = CreateAlertManagerDefinitionCommandOutput | CreateRuleGroupsNamespaceCommandOutput | CreateWorkspaceCommandOutput | DeleteAlertManagerDefinitionCommandOutput | DeleteRuleGroupsNamespaceCommandOutput | DeleteWorkspaceCommandOutput | DescribeAlertManagerDefinitionCommandOutput | DescribeRuleGroupsNamespaceCommandOutput | DescribeWorkspaceCommandOutput | ListRuleGroupsNamespacesCommandOutput | ListTagsForResourceCommandOutput | ListWorkspacesCommandOutput | PutAlertManagerDefinitionCommandOutput | PutRuleGroupsNamespaceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateWorkspaceAliasCommandOutput;
|
|
30
|
+
export declare type ServiceInputTypes = CreateAlertManagerDefinitionCommandInput | CreateLoggingConfigurationCommandInput | CreateRuleGroupsNamespaceCommandInput | CreateWorkspaceCommandInput | DeleteAlertManagerDefinitionCommandInput | DeleteLoggingConfigurationCommandInput | DeleteRuleGroupsNamespaceCommandInput | DeleteWorkspaceCommandInput | DescribeAlertManagerDefinitionCommandInput | DescribeLoggingConfigurationCommandInput | DescribeRuleGroupsNamespaceCommandInput | DescribeWorkspaceCommandInput | ListRuleGroupsNamespacesCommandInput | ListTagsForResourceCommandInput | ListWorkspacesCommandInput | PutAlertManagerDefinitionCommandInput | PutRuleGroupsNamespaceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateLoggingConfigurationCommandInput | UpdateWorkspaceAliasCommandInput;
|
|
31
|
+
export declare type ServiceOutputTypes = CreateAlertManagerDefinitionCommandOutput | CreateLoggingConfigurationCommandOutput | CreateRuleGroupsNamespaceCommandOutput | CreateWorkspaceCommandOutput | DeleteAlertManagerDefinitionCommandOutput | DeleteLoggingConfigurationCommandOutput | DeleteRuleGroupsNamespaceCommandOutput | DeleteWorkspaceCommandOutput | DescribeAlertManagerDefinitionCommandOutput | DescribeLoggingConfigurationCommandOutput | DescribeRuleGroupsNamespaceCommandOutput | DescribeWorkspaceCommandOutput | ListRuleGroupsNamespacesCommandOutput | ListTagsForResourceCommandOutput | ListWorkspacesCommandOutput | PutAlertManagerDefinitionCommandOutput | PutRuleGroupsNamespaceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateLoggingConfigurationCommandOutput | UpdateWorkspaceAliasCommandOutput;
|
|
28
32
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
29
33
|
/**
|
|
30
34
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
|
|
4
|
+
import { CreateLoggingConfigurationRequest, CreateLoggingConfigurationResponse } from "../models/models_0";
|
|
5
|
+
export interface CreateLoggingConfigurationCommandInput extends CreateLoggingConfigurationRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateLoggingConfigurationCommandOutput extends CreateLoggingConfigurationResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create logging configuration.
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { AmpClient, CreateLoggingConfigurationCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
15
|
+
* // const { AmpClient, CreateLoggingConfigurationCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
16
|
+
* const client = new AmpClient(config);
|
|
17
|
+
* const command = new CreateLoggingConfigurationCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link CreateLoggingConfigurationCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link CreateLoggingConfigurationCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class CreateLoggingConfigurationCommand extends $Command<CreateLoggingConfigurationCommandInput, CreateLoggingConfigurationCommandOutput, AmpClientResolvedConfig> {
|
|
27
|
+
readonly input: CreateLoggingConfigurationCommandInput;
|
|
28
|
+
constructor(input: CreateLoggingConfigurationCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmpClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateLoggingConfigurationCommandInput, CreateLoggingConfigurationCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|