@aws-sdk/client-devops-guru 3.53.0 → 3.54.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 +11 -0
- package/dist-cjs/DevOpsGuru.js +30 -0
- package/dist-cjs/commands/DescribeEventSourcesConfigCommand.js +36 -0
- package/dist-cjs/commands/UpdateEventSourcesConfigCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +51 -4
- package/dist-cjs/protocols/Aws_restJson1.js +180 -2
- package/dist-es/DevOpsGuru.js +30 -0
- package/dist-es/commands/DescribeEventSourcesConfigCommand.js +39 -0
- package/dist-es/commands/UpdateEventSourcesConfigCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +33 -0
- package/dist-es/protocols/Aws_restJson1.js +224 -0
- package/dist-types/DevOpsGuru.d.ts +19 -4
- package/dist-types/DevOpsGuruClient.d.ts +6 -4
- package/dist-types/commands/DescribeEventSourcesConfigCommand.d.ts +36 -0
- package/dist-types/commands/SearchOrganizationInsightsCommand.d.ts +4 -4
- package/dist-types/commands/UpdateEventSourcesConfigCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +343 -198
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/DevOpsGuru.d.ts +10 -0
- package/dist-types/ts3.4/DevOpsGuruClient.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeEventSourcesConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEventSourcesConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +77 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeEventSourcesConfigRequest, DescribeEventSourcesConfigResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DescribeEventSourcesConfigCommand, serializeAws_restJson1DescribeEventSourcesConfigCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DescribeEventSourcesConfigCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeEventSourcesConfigCommand, _super);
|
|
8
|
+
function DescribeEventSourcesConfigCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeEventSourcesConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "DevOpsGuruClient";
|
|
18
|
+
var commandName = "DescribeEventSourcesConfigCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeEventSourcesConfigRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeEventSourcesConfigResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeEventSourcesConfigCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DescribeEventSourcesConfigCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeEventSourcesConfigCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DescribeEventSourcesConfigCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeEventSourcesConfigCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeEventSourcesConfigCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateEventSourcesConfigRequest, UpdateEventSourcesConfigResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateEventSourcesConfigCommand, serializeAws_restJson1UpdateEventSourcesConfigCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var UpdateEventSourcesConfigCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateEventSourcesConfigCommand, _super);
|
|
8
|
+
function UpdateEventSourcesConfigCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateEventSourcesConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "DevOpsGuruClient";
|
|
18
|
+
var commandName = "UpdateEventSourcesConfigCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateEventSourcesConfigRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateEventSourcesConfigResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateEventSourcesConfigCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1UpdateEventSourcesConfigCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateEventSourcesConfigCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1UpdateEventSourcesConfigCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateEventSourcesConfigCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateEventSourcesConfigCommand };
|
|
@@ -2,6 +2,7 @@ export * from "./AddNotificationChannelCommand";
|
|
|
2
2
|
export * from "./DescribeAccountHealthCommand";
|
|
3
3
|
export * from "./DescribeAccountOverviewCommand";
|
|
4
4
|
export * from "./DescribeAnomalyCommand";
|
|
5
|
+
export * from "./DescribeEventSourcesConfigCommand";
|
|
5
6
|
export * from "./DescribeFeedbackCommand";
|
|
6
7
|
export * from "./DescribeInsightCommand";
|
|
7
8
|
export * from "./DescribeOrganizationHealthCommand";
|
|
@@ -22,5 +23,6 @@ export * from "./RemoveNotificationChannelCommand";
|
|
|
22
23
|
export * from "./SearchInsightsCommand";
|
|
23
24
|
export * from "./SearchOrganizationInsightsCommand";
|
|
24
25
|
export * from "./StartCostEstimationCommand";
|
|
26
|
+
export * from "./UpdateEventSourcesConfigCommand";
|
|
25
27
|
export * from "./UpdateResourceCollectionCommand";
|
|
26
28
|
export * from "./UpdateServiceIntegrationCommand";
|
|
@@ -138,6 +138,15 @@ var ValidationException = (function (_super) {
|
|
|
138
138
|
return ValidationException;
|
|
139
139
|
}(__BaseException));
|
|
140
140
|
export { ValidationException };
|
|
141
|
+
export var EventSourceOptInStatus;
|
|
142
|
+
(function (EventSourceOptInStatus) {
|
|
143
|
+
EventSourceOptInStatus["DISABLED"] = "DISABLED";
|
|
144
|
+
EventSourceOptInStatus["ENABLED"] = "ENABLED";
|
|
145
|
+
})(EventSourceOptInStatus || (EventSourceOptInStatus = {}));
|
|
146
|
+
export var AmazonCodeGuruProfilerIntegration;
|
|
147
|
+
(function (AmazonCodeGuruProfilerIntegration) {
|
|
148
|
+
AmazonCodeGuruProfilerIntegration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
149
|
+
})(AmazonCodeGuruProfilerIntegration || (AmazonCodeGuruProfilerIntegration = {}));
|
|
141
150
|
export var AnomalyReportedTimeRange;
|
|
142
151
|
(function (AnomalyReportedTimeRange) {
|
|
143
152
|
AnomalyReportedTimeRange.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -221,6 +230,10 @@ export var AnomalySourceDetails;
|
|
|
221
230
|
(function (AnomalySourceDetails) {
|
|
222
231
|
AnomalySourceDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
223
232
|
})(AnomalySourceDetails || (AnomalySourceDetails = {}));
|
|
233
|
+
export var AnomalySourceMetadata;
|
|
234
|
+
(function (AnomalySourceMetadata) {
|
|
235
|
+
AnomalySourceMetadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
236
|
+
})(AnomalySourceMetadata || (AnomalySourceMetadata = {}));
|
|
224
237
|
export var AnomalyStatus;
|
|
225
238
|
(function (AnomalyStatus) {
|
|
226
239
|
AnomalyStatus["CLOSED"] = "CLOSED";
|
|
@@ -283,6 +296,18 @@ export var DescribeAnomalyResponse;
|
|
|
283
296
|
(function (DescribeAnomalyResponse) {
|
|
284
297
|
DescribeAnomalyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
285
298
|
})(DescribeAnomalyResponse || (DescribeAnomalyResponse = {}));
|
|
299
|
+
export var DescribeEventSourcesConfigRequest;
|
|
300
|
+
(function (DescribeEventSourcesConfigRequest) {
|
|
301
|
+
DescribeEventSourcesConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
302
|
+
})(DescribeEventSourcesConfigRequest || (DescribeEventSourcesConfigRequest = {}));
|
|
303
|
+
export var EventSourcesConfig;
|
|
304
|
+
(function (EventSourcesConfig) {
|
|
305
|
+
EventSourcesConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
306
|
+
})(EventSourcesConfig || (EventSourcesConfig = {}));
|
|
307
|
+
export var DescribeEventSourcesConfigResponse;
|
|
308
|
+
(function (DescribeEventSourcesConfigResponse) {
|
|
309
|
+
DescribeEventSourcesConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
310
|
+
})(DescribeEventSourcesConfigResponse || (DescribeEventSourcesConfigResponse = {}));
|
|
286
311
|
export var DescribeFeedbackRequest;
|
|
287
312
|
(function (DescribeFeedbackRequest) {
|
|
288
313
|
DescribeFeedbackRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -734,6 +759,14 @@ export var StartCostEstimationResponse;
|
|
|
734
759
|
(function (StartCostEstimationResponse) {
|
|
735
760
|
StartCostEstimationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
736
761
|
})(StartCostEstimationResponse || (StartCostEstimationResponse = {}));
|
|
762
|
+
export var UpdateEventSourcesConfigRequest;
|
|
763
|
+
(function (UpdateEventSourcesConfigRequest) {
|
|
764
|
+
UpdateEventSourcesConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
765
|
+
})(UpdateEventSourcesConfigRequest || (UpdateEventSourcesConfigRequest = {}));
|
|
766
|
+
export var UpdateEventSourcesConfigResponse;
|
|
767
|
+
(function (UpdateEventSourcesConfigResponse) {
|
|
768
|
+
UpdateEventSourcesConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
769
|
+
})(UpdateEventSourcesConfigResponse || (UpdateEventSourcesConfigResponse = {}));
|
|
737
770
|
export var UpdateResourceCollectionAction;
|
|
738
771
|
(function (UpdateResourceCollectionAction) {
|
|
739
772
|
UpdateResourceCollectionAction["ADD"] = "ADD";
|
|
@@ -111,6 +111,30 @@ export var serializeAws_restJson1DescribeAnomalyCommand = function (input, conte
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
|
+
export var serializeAws_restJson1DescribeEventSourcesConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
115
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
116
|
+
return __generator(this, function (_c) {
|
|
117
|
+
switch (_c.label) {
|
|
118
|
+
case 0: return [4, context.endpoint()];
|
|
119
|
+
case 1:
|
|
120
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
121
|
+
headers = {
|
|
122
|
+
"content-type": "application/json",
|
|
123
|
+
};
|
|
124
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-sources";
|
|
125
|
+
body = "";
|
|
126
|
+
return [2, new __HttpRequest({
|
|
127
|
+
protocol: protocol,
|
|
128
|
+
hostname: hostname,
|
|
129
|
+
port: port,
|
|
130
|
+
method: "POST",
|
|
131
|
+
headers: headers,
|
|
132
|
+
path: resolvedPath,
|
|
133
|
+
body: body,
|
|
134
|
+
})];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
114
138
|
export var serializeAws_restJson1DescribeFeedbackCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
115
139
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
116
140
|
return __generator(this, function (_c) {
|
|
@@ -688,6 +712,33 @@ export var serializeAws_restJson1StartCostEstimationCommand = function (input, c
|
|
|
688
712
|
}
|
|
689
713
|
});
|
|
690
714
|
}); };
|
|
715
|
+
export var serializeAws_restJson1UpdateEventSourcesConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
716
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
717
|
+
return __generator(this, function (_c) {
|
|
718
|
+
switch (_c.label) {
|
|
719
|
+
case 0: return [4, context.endpoint()];
|
|
720
|
+
case 1:
|
|
721
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
722
|
+
headers = {
|
|
723
|
+
"content-type": "application/json",
|
|
724
|
+
};
|
|
725
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-sources";
|
|
726
|
+
body = JSON.stringify(__assign({}, (input.EventSources !== undefined &&
|
|
727
|
+
input.EventSources !== null && {
|
|
728
|
+
EventSources: serializeAws_restJson1EventSourcesConfig(input.EventSources, context),
|
|
729
|
+
})));
|
|
730
|
+
return [2, new __HttpRequest({
|
|
731
|
+
protocol: protocol,
|
|
732
|
+
hostname: hostname,
|
|
733
|
+
port: port,
|
|
734
|
+
method: "PUT",
|
|
735
|
+
headers: headers,
|
|
736
|
+
path: resolvedPath,
|
|
737
|
+
body: body,
|
|
738
|
+
})];
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
}); };
|
|
691
742
|
export var serializeAws_restJson1UpdateResourceCollectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
692
743
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
693
744
|
return __generator(this, function (_c) {
|
|
@@ -1054,6 +1105,74 @@ var deserializeAws_restJson1DescribeAnomalyCommandError = function (output, cont
|
|
|
1054
1105
|
}
|
|
1055
1106
|
});
|
|
1056
1107
|
}); };
|
|
1108
|
+
export var deserializeAws_restJson1DescribeEventSourcesConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1109
|
+
var contents, data, _a, _b;
|
|
1110
|
+
return __generator(this, function (_c) {
|
|
1111
|
+
switch (_c.label) {
|
|
1112
|
+
case 0:
|
|
1113
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1114
|
+
return [2, deserializeAws_restJson1DescribeEventSourcesConfigCommandError(output, context)];
|
|
1115
|
+
}
|
|
1116
|
+
contents = {
|
|
1117
|
+
$metadata: deserializeMetadata(output),
|
|
1118
|
+
EventSources: undefined,
|
|
1119
|
+
};
|
|
1120
|
+
_a = __expectNonNull;
|
|
1121
|
+
_b = __expectObject;
|
|
1122
|
+
return [4, parseBody(output.body, context)];
|
|
1123
|
+
case 1:
|
|
1124
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1125
|
+
if (data.EventSources !== undefined && data.EventSources !== null) {
|
|
1126
|
+
contents.EventSources = deserializeAws_restJson1EventSourcesConfig(data.EventSources, context);
|
|
1127
|
+
}
|
|
1128
|
+
return [2, Promise.resolve(contents)];
|
|
1129
|
+
}
|
|
1130
|
+
});
|
|
1131
|
+
}); };
|
|
1132
|
+
var deserializeAws_restJson1DescribeEventSourcesConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1133
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1134
|
+
var _c;
|
|
1135
|
+
return __generator(this, function (_d) {
|
|
1136
|
+
switch (_d.label) {
|
|
1137
|
+
case 0:
|
|
1138
|
+
_a = [__assign({}, output)];
|
|
1139
|
+
_c = {};
|
|
1140
|
+
return [4, parseBody(output.body, context)];
|
|
1141
|
+
case 1:
|
|
1142
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1143
|
+
errorCode = "UnknownError";
|
|
1144
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
|
+
_b = errorCode;
|
|
1146
|
+
switch (_b) {
|
|
1147
|
+
case "AccessDeniedException": return [3, 2];
|
|
1148
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
1149
|
+
case "InternalServerException": return [3, 4];
|
|
1150
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
1151
|
+
case "ThrottlingException": return [3, 6];
|
|
1152
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
1153
|
+
case "ValidationException": return [3, 8];
|
|
1154
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1155
|
+
}
|
|
1156
|
+
return [3, 10];
|
|
1157
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1158
|
+
case 3: throw _d.sent();
|
|
1159
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1160
|
+
case 5: throw _d.sent();
|
|
1161
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1162
|
+
case 7: throw _d.sent();
|
|
1163
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1164
|
+
case 9: throw _d.sent();
|
|
1165
|
+
case 10:
|
|
1166
|
+
parsedBody = parsedOutput.body;
|
|
1167
|
+
response = new __BaseException({
|
|
1168
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1169
|
+
$fault: "client",
|
|
1170
|
+
$metadata: deserializeMetadata(output),
|
|
1171
|
+
});
|
|
1172
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
}); };
|
|
1057
1176
|
export var deserializeAws_restJson1DescribeFeedbackCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1058
1177
|
var contents, data, _a, _b;
|
|
1059
1178
|
return __generator(this, function (_c) {
|
|
@@ -2572,6 +2691,68 @@ var deserializeAws_restJson1StartCostEstimationCommandError = function (output,
|
|
|
2572
2691
|
}
|
|
2573
2692
|
});
|
|
2574
2693
|
}); };
|
|
2694
|
+
export var deserializeAws_restJson1UpdateEventSourcesConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2695
|
+
var contents;
|
|
2696
|
+
return __generator(this, function (_a) {
|
|
2697
|
+
switch (_a.label) {
|
|
2698
|
+
case 0:
|
|
2699
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2700
|
+
return [2, deserializeAws_restJson1UpdateEventSourcesConfigCommandError(output, context)];
|
|
2701
|
+
}
|
|
2702
|
+
contents = {
|
|
2703
|
+
$metadata: deserializeMetadata(output),
|
|
2704
|
+
};
|
|
2705
|
+
return [4, collectBody(output.body, context)];
|
|
2706
|
+
case 1:
|
|
2707
|
+
_a.sent();
|
|
2708
|
+
return [2, Promise.resolve(contents)];
|
|
2709
|
+
}
|
|
2710
|
+
});
|
|
2711
|
+
}); };
|
|
2712
|
+
var deserializeAws_restJson1UpdateEventSourcesConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2713
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2714
|
+
var _c;
|
|
2715
|
+
return __generator(this, function (_d) {
|
|
2716
|
+
switch (_d.label) {
|
|
2717
|
+
case 0:
|
|
2718
|
+
_a = [__assign({}, output)];
|
|
2719
|
+
_c = {};
|
|
2720
|
+
return [4, parseBody(output.body, context)];
|
|
2721
|
+
case 1:
|
|
2722
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2723
|
+
errorCode = "UnknownError";
|
|
2724
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
|
+
_b = errorCode;
|
|
2726
|
+
switch (_b) {
|
|
2727
|
+
case "AccessDeniedException": return [3, 2];
|
|
2728
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
2729
|
+
case "InternalServerException": return [3, 4];
|
|
2730
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
2731
|
+
case "ThrottlingException": return [3, 6];
|
|
2732
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
2733
|
+
case "ValidationException": return [3, 8];
|
|
2734
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
2735
|
+
}
|
|
2736
|
+
return [3, 10];
|
|
2737
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2738
|
+
case 3: throw _d.sent();
|
|
2739
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2740
|
+
case 5: throw _d.sent();
|
|
2741
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2742
|
+
case 7: throw _d.sent();
|
|
2743
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2744
|
+
case 9: throw _d.sent();
|
|
2745
|
+
case 10:
|
|
2746
|
+
parsedBody = parsedOutput.body;
|
|
2747
|
+
response = new __BaseException({
|
|
2748
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2749
|
+
$fault: "client",
|
|
2750
|
+
$metadata: deserializeMetadata(output),
|
|
2751
|
+
});
|
|
2752
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2753
|
+
}
|
|
2754
|
+
});
|
|
2755
|
+
}); };
|
|
2575
2756
|
export var deserializeAws_restJson1UpdateResourceCollectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2576
2757
|
var contents;
|
|
2577
2758
|
return __generator(this, function (_a) {
|
|
@@ -2828,6 +3009,9 @@ var serializeAws_restJson1AccountIdList = function (input, context) {
|
|
|
2828
3009
|
return entry;
|
|
2829
3010
|
});
|
|
2830
3011
|
};
|
|
3012
|
+
var serializeAws_restJson1AmazonCodeGuruProfilerIntegration = function (input, context) {
|
|
3013
|
+
return __assign({}, (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
|
|
3014
|
+
};
|
|
2831
3015
|
var serializeAws_restJson1CloudFormationCollection = function (input, context) {
|
|
2832
3016
|
return __assign({}, (input.StackNames !== undefined &&
|
|
2833
3017
|
input.StackNames !== null && { StackNames: serializeAws_restJson1StackNames(input.StackNames, context) }));
|
|
@@ -2871,6 +3055,12 @@ var serializeAws_restJson1EndTimeRange = function (input, context) {
|
|
|
2871
3055
|
return __assign(__assign({}, (input.FromTime !== undefined &&
|
|
2872
3056
|
input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
|
|
2873
3057
|
};
|
|
3058
|
+
var serializeAws_restJson1EventSourcesConfig = function (input, context) {
|
|
3059
|
+
return __assign({}, (input.AmazonCodeGuruProfiler !== undefined &&
|
|
3060
|
+
input.AmazonCodeGuruProfiler !== null && {
|
|
3061
|
+
AmazonCodeGuruProfiler: serializeAws_restJson1AmazonCodeGuruProfilerIntegration(input.AmazonCodeGuruProfiler, context),
|
|
3062
|
+
}));
|
|
3063
|
+
};
|
|
2874
3064
|
var serializeAws_restJson1EventTimeRange = function (input, context) {
|
|
2875
3065
|
return __assign(__assign({}, (input.FromTime !== undefined &&
|
|
2876
3066
|
input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
|
|
@@ -3154,6 +3344,11 @@ var deserializeAws_restJson1AccountInsightHealth = function (output, context) {
|
|
|
3154
3344
|
OpenReactiveInsights: __expectInt32(output.OpenReactiveInsights),
|
|
3155
3345
|
};
|
|
3156
3346
|
};
|
|
3347
|
+
var deserializeAws_restJson1AmazonCodeGuruProfilerIntegration = function (output, context) {
|
|
3348
|
+
return {
|
|
3349
|
+
Status: __expectString(output.Status),
|
|
3350
|
+
};
|
|
3351
|
+
};
|
|
3157
3352
|
var deserializeAws_restJson1AnomalyReportedTimeRange = function (output, context) {
|
|
3158
3353
|
return {
|
|
3159
3354
|
CloseTime: output.CloseTime !== undefined && output.CloseTime !== null
|
|
@@ -3191,6 +3386,13 @@ var deserializeAws_restJson1AnomalySourceDetails = function (output, context) {
|
|
|
3191
3386
|
: undefined,
|
|
3192
3387
|
};
|
|
3193
3388
|
};
|
|
3389
|
+
var deserializeAws_restJson1AnomalySourceMetadata = function (output, context) {
|
|
3390
|
+
return {
|
|
3391
|
+
Source: __expectString(output.Source),
|
|
3392
|
+
SourceResourceName: __expectString(output.SourceResourceName),
|
|
3393
|
+
SourceResourceType: __expectString(output.SourceResourceType),
|
|
3394
|
+
};
|
|
3395
|
+
};
|
|
3194
3396
|
var deserializeAws_restJson1AnomalyTimeRange = function (output, context) {
|
|
3195
3397
|
return {
|
|
3196
3398
|
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
@@ -3403,6 +3605,13 @@ var deserializeAws_restJson1Events = function (output, context) {
|
|
|
3403
3605
|
});
|
|
3404
3606
|
return retVal;
|
|
3405
3607
|
};
|
|
3608
|
+
var deserializeAws_restJson1EventSourcesConfig = function (output, context) {
|
|
3609
|
+
return {
|
|
3610
|
+
AmazonCodeGuruProfiler: output.AmazonCodeGuruProfiler !== undefined && output.AmazonCodeGuruProfiler !== null
|
|
3611
|
+
? deserializeAws_restJson1AmazonCodeGuruProfilerIntegration(output.AmazonCodeGuruProfiler, context)
|
|
3612
|
+
: undefined,
|
|
3613
|
+
};
|
|
3614
|
+
};
|
|
3406
3615
|
var deserializeAws_restJson1InsightFeedback = function (output, context) {
|
|
3407
3616
|
return {
|
|
3408
3617
|
Feedback: __expectString(output.Feedback),
|
|
@@ -3600,6 +3809,9 @@ var deserializeAws_restJson1ProactiveAnomaly = function (output, context) {
|
|
|
3600
3809
|
AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
|
|
3601
3810
|
? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
|
|
3602
3811
|
: undefined,
|
|
3812
|
+
AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
|
|
3813
|
+
? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
|
|
3814
|
+
: undefined,
|
|
3603
3815
|
AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
|
|
3604
3816
|
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
|
|
3605
3817
|
: undefined,
|
|
@@ -3616,6 +3828,9 @@ var deserializeAws_restJson1ProactiveAnomaly = function (output, context) {
|
|
|
3616
3828
|
SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
|
|
3617
3829
|
? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
|
|
3618
3830
|
: undefined,
|
|
3831
|
+
SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
|
|
3832
|
+
? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
|
|
3833
|
+
: undefined,
|
|
3619
3834
|
Status: __expectString(output.Status),
|
|
3620
3835
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
3621
3836
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateTime)))
|
|
@@ -3627,6 +3842,9 @@ var deserializeAws_restJson1ProactiveAnomalySummary = function (output, context)
|
|
|
3627
3842
|
AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
|
|
3628
3843
|
? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
|
|
3629
3844
|
: undefined,
|
|
3845
|
+
AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
|
|
3846
|
+
? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
|
|
3847
|
+
: undefined,
|
|
3630
3848
|
AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
|
|
3631
3849
|
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
|
|
3632
3850
|
: undefined,
|
|
@@ -3643,6 +3861,9 @@ var deserializeAws_restJson1ProactiveAnomalySummary = function (output, context)
|
|
|
3643
3861
|
SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
|
|
3644
3862
|
? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
|
|
3645
3863
|
: undefined,
|
|
3864
|
+
SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
|
|
3865
|
+
? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
|
|
3866
|
+
: undefined,
|
|
3646
3867
|
Status: __expectString(output.Status),
|
|
3647
3868
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
3648
3869
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateTime)))
|
|
@@ -3651,6 +3872,7 @@ var deserializeAws_restJson1ProactiveAnomalySummary = function (output, context)
|
|
|
3651
3872
|
};
|
|
3652
3873
|
var deserializeAws_restJson1ProactiveInsight = function (output, context) {
|
|
3653
3874
|
return {
|
|
3875
|
+
Description: __expectString(output.Description),
|
|
3654
3876
|
Id: __expectString(output.Id),
|
|
3655
3877
|
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
3656
3878
|
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
@@ -3801,6 +4023,7 @@ var deserializeAws_restJson1ReactiveAnomalySummary = function (output, context)
|
|
|
3801
4023
|
};
|
|
3802
4024
|
var deserializeAws_restJson1ReactiveInsight = function (output, context) {
|
|
3803
4025
|
return {
|
|
4026
|
+
Description: __expectString(output.Description),
|
|
3804
4027
|
Id: __expectString(output.Id),
|
|
3805
4028
|
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
3806
4029
|
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
@@ -3877,6 +4100,7 @@ var deserializeAws_restJson1ReactiveOrganizationInsightSummary = function (outpu
|
|
|
3877
4100
|
};
|
|
3878
4101
|
var deserializeAws_restJson1Recommendation = function (output, context) {
|
|
3879
4102
|
return {
|
|
4103
|
+
Category: __expectString(output.Category),
|
|
3880
4104
|
Description: __expectString(output.Description),
|
|
3881
4105
|
Link: __expectString(output.Link),
|
|
3882
4106
|
Name: __expectString(output.Name),
|
|
@@ -3,6 +3,7 @@ import { AddNotificationChannelCommandInput, AddNotificationChannelCommandOutput
|
|
|
3
3
|
import { DescribeAccountHealthCommandInput, DescribeAccountHealthCommandOutput } from "./commands/DescribeAccountHealthCommand";
|
|
4
4
|
import { DescribeAccountOverviewCommandInput, DescribeAccountOverviewCommandOutput } from "./commands/DescribeAccountOverviewCommand";
|
|
5
5
|
import { DescribeAnomalyCommandInput, DescribeAnomalyCommandOutput } from "./commands/DescribeAnomalyCommand";
|
|
6
|
+
import { DescribeEventSourcesConfigCommandInput, DescribeEventSourcesConfigCommandOutput } from "./commands/DescribeEventSourcesConfigCommand";
|
|
6
7
|
import { DescribeFeedbackCommandInput, DescribeFeedbackCommandOutput } from "./commands/DescribeFeedbackCommand";
|
|
7
8
|
import { DescribeInsightCommandInput, DescribeInsightCommandOutput } from "./commands/DescribeInsightCommand";
|
|
8
9
|
import { DescribeOrganizationHealthCommandInput, DescribeOrganizationHealthCommandOutput } from "./commands/DescribeOrganizationHealthCommand";
|
|
@@ -23,6 +24,7 @@ import { RemoveNotificationChannelCommandInput, RemoveNotificationChannelCommand
|
|
|
23
24
|
import { SearchInsightsCommandInput, SearchInsightsCommandOutput } from "./commands/SearchInsightsCommand";
|
|
24
25
|
import { SearchOrganizationInsightsCommandInput, SearchOrganizationInsightsCommandOutput } from "./commands/SearchOrganizationInsightsCommand";
|
|
25
26
|
import { StartCostEstimationCommandInput, StartCostEstimationCommandOutput } from "./commands/StartCostEstimationCommand";
|
|
27
|
+
import { UpdateEventSourcesConfigCommandInput, UpdateEventSourcesConfigCommandOutput } from "./commands/UpdateEventSourcesConfigCommand";
|
|
26
28
|
import { UpdateResourceCollectionCommandInput, UpdateResourceCollectionCommandOutput } from "./commands/UpdateResourceCollectionCommand";
|
|
27
29
|
import { UpdateServiceIntegrationCommandInput, UpdateServiceIntegrationCommandOutput } from "./commands/UpdateServiceIntegrationCommand";
|
|
28
30
|
import { DevOpsGuruClient } from "./DevOpsGuruClient";
|
|
@@ -79,6 +81,13 @@ export declare class DevOpsGuru extends DevOpsGuruClient {
|
|
|
79
81
|
describeAnomaly(args: DescribeAnomalyCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAnomalyCommandOutput>;
|
|
80
82
|
describeAnomaly(args: DescribeAnomalyCommandInput, cb: (err: any, data?: DescribeAnomalyCommandOutput) => void): void;
|
|
81
83
|
describeAnomaly(args: DescribeAnomalyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAnomalyCommandOutput) => void): void;
|
|
84
|
+
/**
|
|
85
|
+
* <p>This operation lists details about a DevOps Guru event source that is shared with your
|
|
86
|
+
account.</p>
|
|
87
|
+
*/
|
|
88
|
+
describeEventSourcesConfig(args: DescribeEventSourcesConfigCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEventSourcesConfigCommandOutput>;
|
|
89
|
+
describeEventSourcesConfig(args: DescribeEventSourcesConfigCommandInput, cb: (err: any, data?: DescribeEventSourcesConfigCommandOutput) => void): void;
|
|
90
|
+
describeEventSourcesConfig(args: DescribeEventSourcesConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEventSourcesConfigCommandOutput) => void): void;
|
|
82
91
|
/**
|
|
83
92
|
* <p> Returns the most recent feedback submitted in the current Amazon Web Services account and Region.
|
|
84
93
|
* </p>
|
|
@@ -225,12 +234,12 @@ export declare class DevOpsGuru extends DevOpsGuruClient {
|
|
|
225
234
|
/**
|
|
226
235
|
* <p> Returns a list of insights in your organization. You can specify which insights are
|
|
227
236
|
* returned by their start time, one or more statuses (<code>ONGOING</code>,
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
237
|
+
* <code>CLOSED</code>, and <code>CLOSED</code>), one or more severities
|
|
238
|
+
* (<code>LOW</code>, <code>MEDIUM</code>, and <code>HIGH</code>), and type
|
|
239
|
+
* (<code>REACTIVE</code> or <code>PROACTIVE</code>). </p>
|
|
231
240
|
* <p> Use the <code>Filters</code> parameter to specify status and severity search
|
|
232
241
|
* parameters. Use the <code>Type</code> parameter to specify <code>REACTIVE</code> or
|
|
233
|
-
*
|
|
242
|
+
* <code>PROACTIVE</code> in your search. </p>
|
|
234
243
|
*/
|
|
235
244
|
searchOrganizationInsights(args: SearchOrganizationInsightsCommandInput, options?: __HttpHandlerOptions): Promise<SearchOrganizationInsightsCommandOutput>;
|
|
236
245
|
searchOrganizationInsights(args: SearchOrganizationInsightsCommandInput, cb: (err: any, data?: SearchOrganizationInsightsCommandOutput) => void): void;
|
|
@@ -242,6 +251,12 @@ export declare class DevOpsGuru extends DevOpsGuruClient {
|
|
|
242
251
|
startCostEstimation(args: StartCostEstimationCommandInput, options?: __HttpHandlerOptions): Promise<StartCostEstimationCommandOutput>;
|
|
243
252
|
startCostEstimation(args: StartCostEstimationCommandInput, cb: (err: any, data?: StartCostEstimationCommandOutput) => void): void;
|
|
244
253
|
startCostEstimation(args: StartCostEstimationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCostEstimationCommandOutput) => void): void;
|
|
254
|
+
/**
|
|
255
|
+
* <p>Updates the event source configuration.</p>
|
|
256
|
+
*/
|
|
257
|
+
updateEventSourcesConfig(args: UpdateEventSourcesConfigCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEventSourcesConfigCommandOutput>;
|
|
258
|
+
updateEventSourcesConfig(args: UpdateEventSourcesConfigCommandInput, cb: (err: any, data?: UpdateEventSourcesConfigCommandOutput) => void): void;
|
|
259
|
+
updateEventSourcesConfig(args: UpdateEventSourcesConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEventSourcesConfigCommandOutput) => void): void;
|
|
245
260
|
/**
|
|
246
261
|
* <p> Updates the collection of resources that DevOps Guru analyzes.
|
|
247
262
|
* The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and
|
|
@@ -5,11 +5,12 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
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
|
-
import { 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";
|
|
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 { AddNotificationChannelCommandInput, AddNotificationChannelCommandOutput } from "./commands/AddNotificationChannelCommand";
|
|
10
10
|
import { DescribeAccountHealthCommandInput, DescribeAccountHealthCommandOutput } from "./commands/DescribeAccountHealthCommand";
|
|
11
11
|
import { DescribeAccountOverviewCommandInput, DescribeAccountOverviewCommandOutput } from "./commands/DescribeAccountOverviewCommand";
|
|
12
12
|
import { DescribeAnomalyCommandInput, DescribeAnomalyCommandOutput } from "./commands/DescribeAnomalyCommand";
|
|
13
|
+
import { DescribeEventSourcesConfigCommandInput, DescribeEventSourcesConfigCommandOutput } from "./commands/DescribeEventSourcesConfigCommand";
|
|
13
14
|
import { DescribeFeedbackCommandInput, DescribeFeedbackCommandOutput } from "./commands/DescribeFeedbackCommand";
|
|
14
15
|
import { DescribeInsightCommandInput, DescribeInsightCommandOutput } from "./commands/DescribeInsightCommand";
|
|
15
16
|
import { DescribeOrganizationHealthCommandInput, DescribeOrganizationHealthCommandOutput } from "./commands/DescribeOrganizationHealthCommand";
|
|
@@ -30,10 +31,11 @@ import { RemoveNotificationChannelCommandInput, RemoveNotificationChannelCommand
|
|
|
30
31
|
import { SearchInsightsCommandInput, SearchInsightsCommandOutput } from "./commands/SearchInsightsCommand";
|
|
31
32
|
import { SearchOrganizationInsightsCommandInput, SearchOrganizationInsightsCommandOutput } from "./commands/SearchOrganizationInsightsCommand";
|
|
32
33
|
import { StartCostEstimationCommandInput, StartCostEstimationCommandOutput } from "./commands/StartCostEstimationCommand";
|
|
34
|
+
import { UpdateEventSourcesConfigCommandInput, UpdateEventSourcesConfigCommandOutput } from "./commands/UpdateEventSourcesConfigCommand";
|
|
33
35
|
import { UpdateResourceCollectionCommandInput, UpdateResourceCollectionCommandOutput } from "./commands/UpdateResourceCollectionCommand";
|
|
34
36
|
import { UpdateServiceIntegrationCommandInput, UpdateServiceIntegrationCommandOutput } from "./commands/UpdateServiceIntegrationCommand";
|
|
35
|
-
export declare type ServiceInputTypes = AddNotificationChannelCommandInput | DescribeAccountHealthCommandInput | DescribeAccountOverviewCommandInput | DescribeAnomalyCommandInput | DescribeFeedbackCommandInput | DescribeInsightCommandInput | DescribeOrganizationHealthCommandInput | DescribeOrganizationOverviewCommandInput | DescribeOrganizationResourceCollectionHealthCommandInput | DescribeResourceCollectionHealthCommandInput | DescribeServiceIntegrationCommandInput | GetCostEstimationCommandInput | GetResourceCollectionCommandInput | ListAnomaliesForInsightCommandInput | ListEventsCommandInput | ListInsightsCommandInput | ListNotificationChannelsCommandInput | ListOrganizationInsightsCommandInput | ListRecommendationsCommandInput | PutFeedbackCommandInput | RemoveNotificationChannelCommandInput | SearchInsightsCommandInput | SearchOrganizationInsightsCommandInput | StartCostEstimationCommandInput | UpdateResourceCollectionCommandInput | UpdateServiceIntegrationCommandInput;
|
|
36
|
-
export declare type ServiceOutputTypes = AddNotificationChannelCommandOutput | DescribeAccountHealthCommandOutput | DescribeAccountOverviewCommandOutput | DescribeAnomalyCommandOutput | DescribeFeedbackCommandOutput | DescribeInsightCommandOutput | DescribeOrganizationHealthCommandOutput | DescribeOrganizationOverviewCommandOutput | DescribeOrganizationResourceCollectionHealthCommandOutput | DescribeResourceCollectionHealthCommandOutput | DescribeServiceIntegrationCommandOutput | GetCostEstimationCommandOutput | GetResourceCollectionCommandOutput | ListAnomaliesForInsightCommandOutput | ListEventsCommandOutput | ListInsightsCommandOutput | ListNotificationChannelsCommandOutput | ListOrganizationInsightsCommandOutput | ListRecommendationsCommandOutput | PutFeedbackCommandOutput | RemoveNotificationChannelCommandOutput | SearchInsightsCommandOutput | SearchOrganizationInsightsCommandOutput | StartCostEstimationCommandOutput | UpdateResourceCollectionCommandOutput | UpdateServiceIntegrationCommandOutput;
|
|
37
|
+
export declare type ServiceInputTypes = AddNotificationChannelCommandInput | DescribeAccountHealthCommandInput | DescribeAccountOverviewCommandInput | DescribeAnomalyCommandInput | DescribeEventSourcesConfigCommandInput | DescribeFeedbackCommandInput | DescribeInsightCommandInput | DescribeOrganizationHealthCommandInput | DescribeOrganizationOverviewCommandInput | DescribeOrganizationResourceCollectionHealthCommandInput | DescribeResourceCollectionHealthCommandInput | DescribeServiceIntegrationCommandInput | GetCostEstimationCommandInput | GetResourceCollectionCommandInput | ListAnomaliesForInsightCommandInput | ListEventsCommandInput | ListInsightsCommandInput | ListNotificationChannelsCommandInput | ListOrganizationInsightsCommandInput | ListRecommendationsCommandInput | PutFeedbackCommandInput | RemoveNotificationChannelCommandInput | SearchInsightsCommandInput | SearchOrganizationInsightsCommandInput | StartCostEstimationCommandInput | UpdateEventSourcesConfigCommandInput | UpdateResourceCollectionCommandInput | UpdateServiceIntegrationCommandInput;
|
|
38
|
+
export declare type ServiceOutputTypes = AddNotificationChannelCommandOutput | DescribeAccountHealthCommandOutput | DescribeAccountOverviewCommandOutput | DescribeAnomalyCommandOutput | DescribeEventSourcesConfigCommandOutput | DescribeFeedbackCommandOutput | DescribeInsightCommandOutput | DescribeOrganizationHealthCommandOutput | DescribeOrganizationOverviewCommandOutput | DescribeOrganizationResourceCollectionHealthCommandOutput | DescribeResourceCollectionHealthCommandOutput | DescribeServiceIntegrationCommandOutput | GetCostEstimationCommandOutput | GetResourceCollectionCommandOutput | ListAnomaliesForInsightCommandOutput | ListEventsCommandOutput | ListInsightsCommandOutput | ListNotificationChannelsCommandOutput | ListOrganizationInsightsCommandOutput | ListRecommendationsCommandOutput | PutFeedbackCommandOutput | RemoveNotificationChannelCommandOutput | SearchInsightsCommandOutput | SearchOrganizationInsightsCommandOutput | StartCostEstimationCommandOutput | UpdateEventSourcesConfigCommandOutput | UpdateResourceCollectionCommandOutput | UpdateServiceIntegrationCommandOutput;
|
|
37
39
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
38
40
|
/**
|
|
39
41
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -54,7 +56,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
54
56
|
* A function that can calculate the length of a request body.
|
|
55
57
|
* @internal
|
|
56
58
|
*/
|
|
57
|
-
bodyLengthChecker?:
|
|
59
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
58
60
|
/**
|
|
59
61
|
* A function that converts a stream into an array of bytes.
|
|
60
62
|
* @internal
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { DevOpsGuruClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DevOpsGuruClient";
|
|
4
|
+
import { DescribeEventSourcesConfigRequest, DescribeEventSourcesConfigResponse } from "../models/models_0";
|
|
5
|
+
export interface DescribeEventSourcesConfigCommandInput extends DescribeEventSourcesConfigRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DescribeEventSourcesConfigCommandOutput extends DescribeEventSourcesConfigResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>This operation lists details about a DevOps Guru event source that is shared with your
|
|
11
|
+
account.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { DevOpsGuruClient, DescribeEventSourcesConfigCommand } from "@aws-sdk/client-devops-guru"; // ES Modules import
|
|
16
|
+
* // const { DevOpsGuruClient, DescribeEventSourcesConfigCommand } = require("@aws-sdk/client-devops-guru"); // CommonJS import
|
|
17
|
+
* const client = new DevOpsGuruClient(config);
|
|
18
|
+
* const command = new DescribeEventSourcesConfigCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link DescribeEventSourcesConfigCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link DescribeEventSourcesConfigCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link DevOpsGuruClientResolvedConfig | config} for DevOpsGuruClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class DescribeEventSourcesConfigCommand extends $Command<DescribeEventSourcesConfigCommandInput, DescribeEventSourcesConfigCommandOutput, DevOpsGuruClientResolvedConfig> {
|
|
28
|
+
readonly input: DescribeEventSourcesConfigCommandInput;
|
|
29
|
+
constructor(input: DescribeEventSourcesConfigCommandInput);
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeEventSourcesConfigCommandInput, DescribeEventSourcesConfigCommandOutput>;
|
|
34
|
+
private serialize;
|
|
35
|
+
private deserialize;
|
|
36
|
+
}
|