@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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2022/03/10 ([#3411](https://github.com/aws/aws-sdk-js-v3/issues/3411)) ([8fa517a](https://github.com/aws/aws-sdk-js-v3/commit/8fa517a2c56d2f98a2e4a9c4ea6fd99b6ce61a71))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
18
|
|
|
8
19
|
|
package/dist-cjs/DevOpsGuru.js
CHANGED
|
@@ -5,6 +5,7 @@ const AddNotificationChannelCommand_1 = require("./commands/AddNotificationChann
|
|
|
5
5
|
const DescribeAccountHealthCommand_1 = require("./commands/DescribeAccountHealthCommand");
|
|
6
6
|
const DescribeAccountOverviewCommand_1 = require("./commands/DescribeAccountOverviewCommand");
|
|
7
7
|
const DescribeAnomalyCommand_1 = require("./commands/DescribeAnomalyCommand");
|
|
8
|
+
const DescribeEventSourcesConfigCommand_1 = require("./commands/DescribeEventSourcesConfigCommand");
|
|
8
9
|
const DescribeFeedbackCommand_1 = require("./commands/DescribeFeedbackCommand");
|
|
9
10
|
const DescribeInsightCommand_1 = require("./commands/DescribeInsightCommand");
|
|
10
11
|
const DescribeOrganizationHealthCommand_1 = require("./commands/DescribeOrganizationHealthCommand");
|
|
@@ -25,6 +26,7 @@ const RemoveNotificationChannelCommand_1 = require("./commands/RemoveNotificatio
|
|
|
25
26
|
const SearchInsightsCommand_1 = require("./commands/SearchInsightsCommand");
|
|
26
27
|
const SearchOrganizationInsightsCommand_1 = require("./commands/SearchOrganizationInsightsCommand");
|
|
27
28
|
const StartCostEstimationCommand_1 = require("./commands/StartCostEstimationCommand");
|
|
29
|
+
const UpdateEventSourcesConfigCommand_1 = require("./commands/UpdateEventSourcesConfigCommand");
|
|
28
30
|
const UpdateResourceCollectionCommand_1 = require("./commands/UpdateResourceCollectionCommand");
|
|
29
31
|
const UpdateServiceIntegrationCommand_1 = require("./commands/UpdateServiceIntegrationCommand");
|
|
30
32
|
const DevOpsGuruClient_1 = require("./DevOpsGuruClient");
|
|
@@ -85,6 +87,20 @@ class DevOpsGuru extends DevOpsGuruClient_1.DevOpsGuruClient {
|
|
|
85
87
|
return this.send(command, optionsOrCb);
|
|
86
88
|
}
|
|
87
89
|
}
|
|
90
|
+
describeEventSourcesConfig(args, optionsOrCb, cb) {
|
|
91
|
+
const command = new DescribeEventSourcesConfigCommand_1.DescribeEventSourcesConfigCommand(args);
|
|
92
|
+
if (typeof optionsOrCb === "function") {
|
|
93
|
+
this.send(command, optionsOrCb);
|
|
94
|
+
}
|
|
95
|
+
else if (typeof cb === "function") {
|
|
96
|
+
if (typeof optionsOrCb !== "object")
|
|
97
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
return this.send(command, optionsOrCb);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
88
104
|
describeFeedback(args, optionsOrCb, cb) {
|
|
89
105
|
const command = new DescribeFeedbackCommand_1.DescribeFeedbackCommand(args);
|
|
90
106
|
if (typeof optionsOrCb === "function") {
|
|
@@ -365,6 +381,20 @@ class DevOpsGuru extends DevOpsGuruClient_1.DevOpsGuruClient {
|
|
|
365
381
|
return this.send(command, optionsOrCb);
|
|
366
382
|
}
|
|
367
383
|
}
|
|
384
|
+
updateEventSourcesConfig(args, optionsOrCb, cb) {
|
|
385
|
+
const command = new UpdateEventSourcesConfigCommand_1.UpdateEventSourcesConfigCommand(args);
|
|
386
|
+
if (typeof optionsOrCb === "function") {
|
|
387
|
+
this.send(command, optionsOrCb);
|
|
388
|
+
}
|
|
389
|
+
else if (typeof cb === "function") {
|
|
390
|
+
if (typeof optionsOrCb !== "object")
|
|
391
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
392
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
return this.send(command, optionsOrCb);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
368
398
|
updateResourceCollection(args, optionsOrCb, cb) {
|
|
369
399
|
const command = new UpdateResourceCollectionCommand_1.UpdateResourceCollectionCommand(args);
|
|
370
400
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeEventSourcesConfigCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DescribeEventSourcesConfigCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "DevOpsGuruClient";
|
|
18
|
+
const commandName = "DescribeEventSourcesConfigCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribeEventSourcesConfigRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribeEventSourcesConfigResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1DescribeEventSourcesConfigCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1DescribeEventSourcesConfigCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribeEventSourcesConfigCommand = DescribeEventSourcesConfigCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateEventSourcesConfigCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class UpdateEventSourcesConfigCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "DevOpsGuruClient";
|
|
18
|
+
const commandName = "UpdateEventSourcesConfigCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateEventSourcesConfigRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateEventSourcesConfigResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1UpdateEventSourcesConfigCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1UpdateEventSourcesConfigCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateEventSourcesConfigCommand = UpdateEventSourcesConfigCommand;
|
|
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./AddNotificationChannelCommand"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./DescribeAccountHealthCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./DescribeAccountOverviewCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./DescribeAnomalyCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DescribeEventSourcesConfigCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./DescribeFeedbackCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./DescribeInsightCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DescribeOrganizationHealthCommand"), exports);
|
|
@@ -25,5 +26,6 @@ tslib_1.__exportStar(require("./RemoveNotificationChannelCommand"), exports);
|
|
|
25
26
|
tslib_1.__exportStar(require("./SearchInsightsCommand"), exports);
|
|
26
27
|
tslib_1.__exportStar(require("./SearchOrganizationInsightsCommand"), exports);
|
|
27
28
|
tslib_1.__exportStar(require("./StartCostEstimationCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./UpdateEventSourcesConfigCommand"), exports);
|
|
28
30
|
tslib_1.__exportStar(require("./UpdateResourceCollectionCommand"), exports);
|
|
29
31
|
tslib_1.__exportStar(require("./UpdateServiceIntegrationCommand"), exports);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateServiceIntegrationResponse = exports.UpdateServiceIntegrationRequest = exports.UpdateServiceIntegrationConfig = exports.OpsCenterIntegrationConfig = exports.UpdateResourceCollectionResponse = exports.UpdateResourceCollectionRequest = exports.UpdateResourceCollectionFilter = void 0;
|
|
3
|
+
exports.ReactiveAnomaly = exports.ProactiveAnomaly = exports.ResourceCollection = exports.TagCollection = exports.CloudFormationCollection = exports.PredictionTimeRange = exports.DescribeAnomalyRequest = exports.DescribeAccountOverviewResponse = exports.DescribeAccountOverviewRequest = exports.DescribeAccountHealthResponse = exports.DescribeAccountHealthRequest = exports.AnomalyType = exports.AnomalyTimeRange = exports.AnomalyStatus = exports.AnomalySourceMetadata = exports.AnomalySourceDetails = exports.PerformanceInsightsMetricsDetail = exports.PerformanceInsightsStat = exports.PerformanceInsightsReferenceData = exports.PerformanceInsightsReferenceComparisonValues = exports.PerformanceInsightsReferenceScalar = exports.PerformanceInsightsReferenceMetric = exports.PerformanceInsightsMetricQuery = exports.PerformanceInsightsMetricDimensionGroup = exports.CloudWatchMetricsDetail = exports.CloudWatchMetricsStat = exports.CloudWatchMetricsDataSummary = exports.TimestampMetricValuePair = exports.CloudWatchMetricDataStatusCode = exports.CloudWatchMetricsDimension = exports.AnomalySeverity = exports.AnomalyResource = exports.AnomalyReportedTimeRange = exports.AmazonCodeGuruProfilerIntegration = exports.EventSourceOptInStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AddNotificationChannelResponse = exports.AddNotificationChannelRequest = exports.NotificationChannelConfig = exports.SnsChannelConfig = exports.AccountHealth = exports.AccountInsightHealth = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.GetResourceCollectionResponse = exports.ResourceCollectionFilter = exports.TagCollectionFilter = exports.CloudFormationCollectionFilter = exports.GetResourceCollectionRequest = exports.GetCostEstimationResponse = exports.CostEstimationTimeRange = exports.CostEstimationStatus = exports.CostEstimationResourceCollectionFilter = exports.TagCostEstimationResourceCollectionFilter = exports.CloudFormationCostEstimationResourceCollectionFilter = exports.ServiceResourceCost = exports.CostEstimationServiceResourceState = exports.GetCostEstimationRequest = exports.DescribeServiceIntegrationResponse = exports.ServiceIntegrationConfig = exports.OpsCenterIntegration = exports.OptInStatus = exports.DescribeServiceIntegrationRequest = exports.DescribeResourceCollectionHealthResponse = exports.DescribeResourceCollectionHealthRequest = exports.ResourceCollectionType = exports.DescribeOrganizationResourceCollectionHealthResponse = exports.TagHealth = exports.ServiceHealth = exports.ServiceName = exports.ServiceInsightHealth = exports.CloudFormationHealth = exports.InsightHealth = exports.DescribeOrganizationResourceCollectionHealthRequest = exports.OrganizationResourceCollectionType = exports.DescribeOrganizationOverviewResponse = exports.DescribeOrganizationOverviewRequest = exports.DescribeOrganizationHealthResponse = exports.DescribeOrganizationHealthRequest = exports.DescribeInsightResponse = exports.ReactiveInsight = exports.ProactiveInsight = exports.InsightStatus = exports.InsightSeverity = exports.InsightTimeRange = exports.DescribeInsightRequest = exports.DescribeFeedbackResponse = exports.InsightFeedback = exports.InsightFeedbackOption = exports.DescribeFeedbackRequest = exports.DescribeEventSourcesConfigResponse = exports.EventSourcesConfig = exports.DescribeEventSourcesConfigRequest = exports.DescribeAnomalyResponse = void 0;
|
|
5
|
+
exports.SearchOrganizationInsightsRequest = exports.SearchOrganizationInsightsFilters = exports.SearchInsightsResponse = exports.SearchInsightsRequest = exports.SearchInsightsFilters = exports.RemoveNotificationChannelResponse = exports.RemoveNotificationChannelRequest = exports.PutFeedbackResponse = exports.PutFeedbackRequest = exports.ListRecommendationsResponse = exports.Recommendation = exports.RecommendationRelatedEvent = exports.RecommendationRelatedEventResource = exports.RecommendationRelatedAnomaly = exports.RecommendationRelatedAnomalySourceDetail = exports.RecommendationRelatedCloudWatchMetricsSourceDetail = exports.RecommendationRelatedAnomalyResource = exports.ListRecommendationsRequest = exports.Locale = exports.ListOrganizationInsightsResponse = exports.ReactiveOrganizationInsightSummary = exports.ProactiveOrganizationInsightSummary = exports.ListOrganizationInsightsRequest = exports.ListNotificationChannelsResponse = exports.NotificationChannel = exports.ListNotificationChannelsRequest = exports.ListInsightsResponse = exports.ReactiveInsightSummary = exports.ProactiveInsightSummary = exports.ServiceCollection = exports.ListInsightsRequest = exports.ListInsightsStatusFilter = exports.ListInsightsOngoingStatusFilter = exports.ListInsightsClosedStatusFilter = exports.EndTimeRange = exports.ListInsightsAnyStatusFilter = exports.InsightType = exports.ListEventsResponse = exports.Event = exports.EventResource = exports.ListEventsRequest = exports.ListEventsFilters = exports.EventTimeRange = exports.EventClass = exports.EventDataSource = exports.ListAnomaliesForInsightResponse = exports.ReactiveAnomalySummary = exports.ProactiveAnomalySummary = exports.ListAnomaliesForInsightRequest = exports.StartTimeRange = void 0;
|
|
6
|
+
exports.UpdateServiceIntegrationResponse = exports.UpdateServiceIntegrationRequest = exports.UpdateServiceIntegrationConfig = exports.OpsCenterIntegrationConfig = exports.UpdateResourceCollectionResponse = exports.UpdateResourceCollectionRequest = exports.UpdateResourceCollectionFilter = exports.UpdateTagCollectionFilter = exports.UpdateCloudFormationCollectionFilter = exports.UpdateResourceCollectionAction = exports.UpdateEventSourcesConfigResponse = exports.UpdateEventSourcesConfigRequest = exports.StartCostEstimationResponse = exports.StartCostEstimationRequest = exports.SearchOrganizationInsightsResponse = void 0;
|
|
7
7
|
const DevOpsGuruServiceException_1 = require("./DevOpsGuruServiceException");
|
|
8
8
|
class AccessDeniedException extends DevOpsGuruServiceException_1.DevOpsGuruServiceException {
|
|
9
9
|
constructor(opts) {
|
|
@@ -164,6 +164,17 @@ class ValidationException extends DevOpsGuruServiceException_1.DevOpsGuruService
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
exports.ValidationException = ValidationException;
|
|
167
|
+
var EventSourceOptInStatus;
|
|
168
|
+
(function (EventSourceOptInStatus) {
|
|
169
|
+
EventSourceOptInStatus["DISABLED"] = "DISABLED";
|
|
170
|
+
EventSourceOptInStatus["ENABLED"] = "ENABLED";
|
|
171
|
+
})(EventSourceOptInStatus = exports.EventSourceOptInStatus || (exports.EventSourceOptInStatus = {}));
|
|
172
|
+
var AmazonCodeGuruProfilerIntegration;
|
|
173
|
+
(function (AmazonCodeGuruProfilerIntegration) {
|
|
174
|
+
AmazonCodeGuruProfilerIntegration.filterSensitiveLog = (obj) => ({
|
|
175
|
+
...obj,
|
|
176
|
+
});
|
|
177
|
+
})(AmazonCodeGuruProfilerIntegration = exports.AmazonCodeGuruProfilerIntegration || (exports.AmazonCodeGuruProfilerIntegration = {}));
|
|
167
178
|
var AnomalyReportedTimeRange;
|
|
168
179
|
(function (AnomalyReportedTimeRange) {
|
|
169
180
|
AnomalyReportedTimeRange.filterSensitiveLog = (obj) => ({
|
|
@@ -277,6 +288,12 @@ var AnomalySourceDetails;
|
|
|
277
288
|
...obj,
|
|
278
289
|
});
|
|
279
290
|
})(AnomalySourceDetails = exports.AnomalySourceDetails || (exports.AnomalySourceDetails = {}));
|
|
291
|
+
var AnomalySourceMetadata;
|
|
292
|
+
(function (AnomalySourceMetadata) {
|
|
293
|
+
AnomalySourceMetadata.filterSensitiveLog = (obj) => ({
|
|
294
|
+
...obj,
|
|
295
|
+
});
|
|
296
|
+
})(AnomalySourceMetadata = exports.AnomalySourceMetadata || (exports.AnomalySourceMetadata = {}));
|
|
280
297
|
var AnomalyStatus;
|
|
281
298
|
(function (AnomalyStatus) {
|
|
282
299
|
AnomalyStatus["CLOSED"] = "CLOSED";
|
|
@@ -365,6 +382,24 @@ var DescribeAnomalyResponse;
|
|
|
365
382
|
...obj,
|
|
366
383
|
});
|
|
367
384
|
})(DescribeAnomalyResponse = exports.DescribeAnomalyResponse || (exports.DescribeAnomalyResponse = {}));
|
|
385
|
+
var DescribeEventSourcesConfigRequest;
|
|
386
|
+
(function (DescribeEventSourcesConfigRequest) {
|
|
387
|
+
DescribeEventSourcesConfigRequest.filterSensitiveLog = (obj) => ({
|
|
388
|
+
...obj,
|
|
389
|
+
});
|
|
390
|
+
})(DescribeEventSourcesConfigRequest = exports.DescribeEventSourcesConfigRequest || (exports.DescribeEventSourcesConfigRequest = {}));
|
|
391
|
+
var EventSourcesConfig;
|
|
392
|
+
(function (EventSourcesConfig) {
|
|
393
|
+
EventSourcesConfig.filterSensitiveLog = (obj) => ({
|
|
394
|
+
...obj,
|
|
395
|
+
});
|
|
396
|
+
})(EventSourcesConfig = exports.EventSourcesConfig || (exports.EventSourcesConfig = {}));
|
|
397
|
+
var DescribeEventSourcesConfigResponse;
|
|
398
|
+
(function (DescribeEventSourcesConfigResponse) {
|
|
399
|
+
DescribeEventSourcesConfigResponse.filterSensitiveLog = (obj) => ({
|
|
400
|
+
...obj,
|
|
401
|
+
});
|
|
402
|
+
})(DescribeEventSourcesConfigResponse = exports.DescribeEventSourcesConfigResponse || (exports.DescribeEventSourcesConfigResponse = {}));
|
|
368
403
|
var DescribeFeedbackRequest;
|
|
369
404
|
(function (DescribeFeedbackRequest) {
|
|
370
405
|
DescribeFeedbackRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -988,6 +1023,18 @@ var StartCostEstimationResponse;
|
|
|
988
1023
|
...obj,
|
|
989
1024
|
});
|
|
990
1025
|
})(StartCostEstimationResponse = exports.StartCostEstimationResponse || (exports.StartCostEstimationResponse = {}));
|
|
1026
|
+
var UpdateEventSourcesConfigRequest;
|
|
1027
|
+
(function (UpdateEventSourcesConfigRequest) {
|
|
1028
|
+
UpdateEventSourcesConfigRequest.filterSensitiveLog = (obj) => ({
|
|
1029
|
+
...obj,
|
|
1030
|
+
});
|
|
1031
|
+
})(UpdateEventSourcesConfigRequest = exports.UpdateEventSourcesConfigRequest || (exports.UpdateEventSourcesConfigRequest = {}));
|
|
1032
|
+
var UpdateEventSourcesConfigResponse;
|
|
1033
|
+
(function (UpdateEventSourcesConfigResponse) {
|
|
1034
|
+
UpdateEventSourcesConfigResponse.filterSensitiveLog = (obj) => ({
|
|
1035
|
+
...obj,
|
|
1036
|
+
});
|
|
1037
|
+
})(UpdateEventSourcesConfigResponse = exports.UpdateEventSourcesConfigResponse || (exports.UpdateEventSourcesConfigResponse = {}));
|
|
991
1038
|
var UpdateResourceCollectionAction;
|
|
992
1039
|
(function (UpdateResourceCollectionAction) {
|
|
993
1040
|
UpdateResourceCollectionAction["ADD"] = "ADD";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateServiceIntegrationCommand = exports.deserializeAws_restJson1UpdateResourceCollectionCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1RemoveNotificationChannelCommand = exports.deserializeAws_restJson1PutFeedbackCommand = exports.deserializeAws_restJson1ListRecommendationsCommand = exports.deserializeAws_restJson1ListOrganizationInsightsCommand = exports.deserializeAws_restJson1ListNotificationChannelsCommand = exports.deserializeAws_restJson1ListInsightsCommand = exports.deserializeAws_restJson1ListEventsCommand = exports.deserializeAws_restJson1ListAnomaliesForInsightCommand = exports.deserializeAws_restJson1GetResourceCollectionCommand = exports.deserializeAws_restJson1GetCostEstimationCommand = exports.deserializeAws_restJson1DescribeServiceIntegrationCommand = exports.deserializeAws_restJson1DescribeResourceCollectionHealthCommand = exports.deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = exports.deserializeAws_restJson1DescribeOrganizationOverviewCommand = exports.deserializeAws_restJson1DescribeOrganizationHealthCommand = exports.deserializeAws_restJson1DescribeInsightCommand = exports.deserializeAws_restJson1DescribeFeedbackCommand = exports.deserializeAws_restJson1DescribeEventSourcesConfigCommand = exports.deserializeAws_restJson1DescribeAnomalyCommand = exports.deserializeAws_restJson1DescribeAccountOverviewCommand = exports.deserializeAws_restJson1DescribeAccountHealthCommand = exports.deserializeAws_restJson1AddNotificationChannelCommand = exports.serializeAws_restJson1UpdateServiceIntegrationCommand = exports.serializeAws_restJson1UpdateResourceCollectionCommand = exports.serializeAws_restJson1UpdateEventSourcesConfigCommand = exports.serializeAws_restJson1StartCostEstimationCommand = exports.serializeAws_restJson1SearchOrganizationInsightsCommand = exports.serializeAws_restJson1SearchInsightsCommand = exports.serializeAws_restJson1RemoveNotificationChannelCommand = exports.serializeAws_restJson1PutFeedbackCommand = exports.serializeAws_restJson1ListRecommendationsCommand = exports.serializeAws_restJson1ListOrganizationInsightsCommand = exports.serializeAws_restJson1ListNotificationChannelsCommand = exports.serializeAws_restJson1ListInsightsCommand = exports.serializeAws_restJson1ListEventsCommand = exports.serializeAws_restJson1ListAnomaliesForInsightCommand = exports.serializeAws_restJson1GetResourceCollectionCommand = exports.serializeAws_restJson1GetCostEstimationCommand = exports.serializeAws_restJson1DescribeServiceIntegrationCommand = exports.serializeAws_restJson1DescribeResourceCollectionHealthCommand = exports.serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = exports.serializeAws_restJson1DescribeOrganizationOverviewCommand = exports.serializeAws_restJson1DescribeOrganizationHealthCommand = exports.serializeAws_restJson1DescribeInsightCommand = exports.serializeAws_restJson1DescribeFeedbackCommand = exports.serializeAws_restJson1DescribeEventSourcesConfigCommand = exports.serializeAws_restJson1DescribeAnomalyCommand = exports.serializeAws_restJson1DescribeAccountOverviewCommand = exports.serializeAws_restJson1DescribeAccountHealthCommand = exports.serializeAws_restJson1AddNotificationChannelCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateServiceIntegrationCommand = exports.deserializeAws_restJson1UpdateResourceCollectionCommand = exports.deserializeAws_restJson1UpdateEventSourcesConfigCommand = exports.deserializeAws_restJson1StartCostEstimationCommand = exports.deserializeAws_restJson1SearchOrganizationInsightsCommand = exports.deserializeAws_restJson1SearchInsightsCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -101,6 +101,25 @@ const serializeAws_restJson1DescribeAnomalyCommand = async (input, context) => {
|
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
103
|
exports.serializeAws_restJson1DescribeAnomalyCommand = serializeAws_restJson1DescribeAnomalyCommand;
|
|
104
|
+
const serializeAws_restJson1DescribeEventSourcesConfigCommand = async (input, context) => {
|
|
105
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
106
|
+
const headers = {
|
|
107
|
+
"content-type": "application/json",
|
|
108
|
+
};
|
|
109
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/event-sources";
|
|
110
|
+
let body;
|
|
111
|
+
body = "";
|
|
112
|
+
return new protocol_http_1.HttpRequest({
|
|
113
|
+
protocol,
|
|
114
|
+
hostname,
|
|
115
|
+
port,
|
|
116
|
+
method: "POST",
|
|
117
|
+
headers,
|
|
118
|
+
path: resolvedPath,
|
|
119
|
+
body,
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
exports.serializeAws_restJson1DescribeEventSourcesConfigCommand = serializeAws_restJson1DescribeEventSourcesConfigCommand;
|
|
104
123
|
const serializeAws_restJson1DescribeFeedbackCommand = async (input, context) => {
|
|
105
124
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
106
125
|
const headers = {
|
|
@@ -647,6 +666,30 @@ const serializeAws_restJson1StartCostEstimationCommand = async (input, context)
|
|
|
647
666
|
});
|
|
648
667
|
};
|
|
649
668
|
exports.serializeAws_restJson1StartCostEstimationCommand = serializeAws_restJson1StartCostEstimationCommand;
|
|
669
|
+
const serializeAws_restJson1UpdateEventSourcesConfigCommand = async (input, context) => {
|
|
670
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
671
|
+
const headers = {
|
|
672
|
+
"content-type": "application/json",
|
|
673
|
+
};
|
|
674
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/event-sources";
|
|
675
|
+
let body;
|
|
676
|
+
body = JSON.stringify({
|
|
677
|
+
...(input.EventSources !== undefined &&
|
|
678
|
+
input.EventSources !== null && {
|
|
679
|
+
EventSources: serializeAws_restJson1EventSourcesConfig(input.EventSources, context),
|
|
680
|
+
}),
|
|
681
|
+
});
|
|
682
|
+
return new protocol_http_1.HttpRequest({
|
|
683
|
+
protocol,
|
|
684
|
+
hostname,
|
|
685
|
+
port,
|
|
686
|
+
method: "PUT",
|
|
687
|
+
headers,
|
|
688
|
+
path: resolvedPath,
|
|
689
|
+
body,
|
|
690
|
+
});
|
|
691
|
+
};
|
|
692
|
+
exports.serializeAws_restJson1UpdateEventSourcesConfigCommand = serializeAws_restJson1UpdateEventSourcesConfigCommand;
|
|
650
693
|
const serializeAws_restJson1UpdateResourceCollectionCommand = async (input, context) => {
|
|
651
694
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
652
695
|
const headers = {
|
|
@@ -916,6 +959,52 @@ const deserializeAws_restJson1DescribeAnomalyCommandError = async (output, conte
|
|
|
916
959
|
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
917
960
|
}
|
|
918
961
|
};
|
|
962
|
+
const deserializeAws_restJson1DescribeEventSourcesConfigCommand = async (output, context) => {
|
|
963
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
964
|
+
return deserializeAws_restJson1DescribeEventSourcesConfigCommandError(output, context);
|
|
965
|
+
}
|
|
966
|
+
const contents = {
|
|
967
|
+
$metadata: deserializeMetadata(output),
|
|
968
|
+
EventSources: undefined,
|
|
969
|
+
};
|
|
970
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
971
|
+
if (data.EventSources !== undefined && data.EventSources !== null) {
|
|
972
|
+
contents.EventSources = deserializeAws_restJson1EventSourcesConfig(data.EventSources, context);
|
|
973
|
+
}
|
|
974
|
+
return Promise.resolve(contents);
|
|
975
|
+
};
|
|
976
|
+
exports.deserializeAws_restJson1DescribeEventSourcesConfigCommand = deserializeAws_restJson1DescribeEventSourcesConfigCommand;
|
|
977
|
+
const deserializeAws_restJson1DescribeEventSourcesConfigCommandError = async (output, context) => {
|
|
978
|
+
const parsedOutput = {
|
|
979
|
+
...output,
|
|
980
|
+
body: await parseBody(output.body, context),
|
|
981
|
+
};
|
|
982
|
+
let response;
|
|
983
|
+
let errorCode = "UnknownError";
|
|
984
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
|
+
switch (errorCode) {
|
|
986
|
+
case "AccessDeniedException":
|
|
987
|
+
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
988
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
989
|
+
case "InternalServerException":
|
|
990
|
+
case "com.amazonaws.devopsguru#InternalServerException":
|
|
991
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
992
|
+
case "ThrottlingException":
|
|
993
|
+
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
994
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
995
|
+
case "ValidationException":
|
|
996
|
+
case "com.amazonaws.devopsguru#ValidationException":
|
|
997
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
998
|
+
default:
|
|
999
|
+
const parsedBody = parsedOutput.body;
|
|
1000
|
+
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1001
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1002
|
+
$fault: "client",
|
|
1003
|
+
$metadata: deserializeMetadata(output),
|
|
1004
|
+
});
|
|
1005
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1006
|
+
}
|
|
1007
|
+
};
|
|
919
1008
|
const deserializeAws_restJson1DescribeFeedbackCommand = async (output, context) => {
|
|
920
1009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
921
1010
|
return deserializeAws_restJson1DescribeFeedbackCommandError(output, context);
|
|
@@ -1987,6 +2076,48 @@ const deserializeAws_restJson1StartCostEstimationCommandError = async (output, c
|
|
|
1987
2076
|
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1988
2077
|
}
|
|
1989
2078
|
};
|
|
2079
|
+
const deserializeAws_restJson1UpdateEventSourcesConfigCommand = async (output, context) => {
|
|
2080
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2081
|
+
return deserializeAws_restJson1UpdateEventSourcesConfigCommandError(output, context);
|
|
2082
|
+
}
|
|
2083
|
+
const contents = {
|
|
2084
|
+
$metadata: deserializeMetadata(output),
|
|
2085
|
+
};
|
|
2086
|
+
await collectBody(output.body, context);
|
|
2087
|
+
return Promise.resolve(contents);
|
|
2088
|
+
};
|
|
2089
|
+
exports.deserializeAws_restJson1UpdateEventSourcesConfigCommand = deserializeAws_restJson1UpdateEventSourcesConfigCommand;
|
|
2090
|
+
const deserializeAws_restJson1UpdateEventSourcesConfigCommandError = async (output, context) => {
|
|
2091
|
+
const parsedOutput = {
|
|
2092
|
+
...output,
|
|
2093
|
+
body: await parseBody(output.body, context),
|
|
2094
|
+
};
|
|
2095
|
+
let response;
|
|
2096
|
+
let errorCode = "UnknownError";
|
|
2097
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2098
|
+
switch (errorCode) {
|
|
2099
|
+
case "AccessDeniedException":
|
|
2100
|
+
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2101
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2102
|
+
case "InternalServerException":
|
|
2103
|
+
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2104
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2105
|
+
case "ThrottlingException":
|
|
2106
|
+
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2107
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2108
|
+
case "ValidationException":
|
|
2109
|
+
case "com.amazonaws.devopsguru#ValidationException":
|
|
2110
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2111
|
+
default:
|
|
2112
|
+
const parsedBody = parsedOutput.body;
|
|
2113
|
+
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
2114
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2115
|
+
$fault: "client",
|
|
2116
|
+
$metadata: deserializeMetadata(output),
|
|
2117
|
+
});
|
|
2118
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2119
|
+
}
|
|
2120
|
+
};
|
|
1990
2121
|
const deserializeAws_restJson1UpdateResourceCollectionCommand = async (output, context) => {
|
|
1991
2122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1992
2123
|
return deserializeAws_restJson1UpdateResourceCollectionCommandError(output, context);
|
|
@@ -2201,6 +2332,11 @@ const serializeAws_restJson1AccountIdList = (input, context) => {
|
|
|
2201
2332
|
return entry;
|
|
2202
2333
|
});
|
|
2203
2334
|
};
|
|
2335
|
+
const serializeAws_restJson1AmazonCodeGuruProfilerIntegration = (input, context) => {
|
|
2336
|
+
return {
|
|
2337
|
+
...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
|
|
2338
|
+
};
|
|
2339
|
+
};
|
|
2204
2340
|
const serializeAws_restJson1CloudFormationCollection = (input, context) => {
|
|
2205
2341
|
return {
|
|
2206
2342
|
...(input.StackNames !== undefined &&
|
|
@@ -2254,6 +2390,14 @@ const serializeAws_restJson1EndTimeRange = (input, context) => {
|
|
|
2254
2390
|
...(input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
|
|
2255
2391
|
};
|
|
2256
2392
|
};
|
|
2393
|
+
const serializeAws_restJson1EventSourcesConfig = (input, context) => {
|
|
2394
|
+
return {
|
|
2395
|
+
...(input.AmazonCodeGuruProfiler !== undefined &&
|
|
2396
|
+
input.AmazonCodeGuruProfiler !== null && {
|
|
2397
|
+
AmazonCodeGuruProfiler: serializeAws_restJson1AmazonCodeGuruProfilerIntegration(input.AmazonCodeGuruProfiler, context),
|
|
2398
|
+
}),
|
|
2399
|
+
};
|
|
2400
|
+
};
|
|
2257
2401
|
const serializeAws_restJson1EventTimeRange = (input, context) => {
|
|
2258
2402
|
return {
|
|
2259
2403
|
...(input.FromTime !== undefined &&
|
|
@@ -2602,6 +2746,11 @@ const deserializeAws_restJson1AccountInsightHealth = (output, context) => {
|
|
|
2602
2746
|
OpenReactiveInsights: smithy_client_1.expectInt32(output.OpenReactiveInsights),
|
|
2603
2747
|
};
|
|
2604
2748
|
};
|
|
2749
|
+
const deserializeAws_restJson1AmazonCodeGuruProfilerIntegration = (output, context) => {
|
|
2750
|
+
return {
|
|
2751
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
2752
|
+
};
|
|
2753
|
+
};
|
|
2605
2754
|
const deserializeAws_restJson1AnomalyReportedTimeRange = (output, context) => {
|
|
2606
2755
|
return {
|
|
2607
2756
|
CloseTime: output.CloseTime !== undefined && output.CloseTime !== null
|
|
@@ -2639,6 +2788,13 @@ const deserializeAws_restJson1AnomalySourceDetails = (output, context) => {
|
|
|
2639
2788
|
: undefined,
|
|
2640
2789
|
};
|
|
2641
2790
|
};
|
|
2791
|
+
const deserializeAws_restJson1AnomalySourceMetadata = (output, context) => {
|
|
2792
|
+
return {
|
|
2793
|
+
Source: smithy_client_1.expectString(output.Source),
|
|
2794
|
+
SourceResourceName: smithy_client_1.expectString(output.SourceResourceName),
|
|
2795
|
+
SourceResourceType: smithy_client_1.expectString(output.SourceResourceType),
|
|
2796
|
+
};
|
|
2797
|
+
};
|
|
2642
2798
|
const deserializeAws_restJson1AnomalyTimeRange = (output, context) => {
|
|
2643
2799
|
return {
|
|
2644
2800
|
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
@@ -2851,6 +3007,13 @@ const deserializeAws_restJson1Events = (output, context) => {
|
|
|
2851
3007
|
});
|
|
2852
3008
|
return retVal;
|
|
2853
3009
|
};
|
|
3010
|
+
const deserializeAws_restJson1EventSourcesConfig = (output, context) => {
|
|
3011
|
+
return {
|
|
3012
|
+
AmazonCodeGuruProfiler: output.AmazonCodeGuruProfiler !== undefined && output.AmazonCodeGuruProfiler !== null
|
|
3013
|
+
? deserializeAws_restJson1AmazonCodeGuruProfilerIntegration(output.AmazonCodeGuruProfiler, context)
|
|
3014
|
+
: undefined,
|
|
3015
|
+
};
|
|
3016
|
+
};
|
|
2854
3017
|
const deserializeAws_restJson1InsightFeedback = (output, context) => {
|
|
2855
3018
|
return {
|
|
2856
3019
|
Feedback: smithy_client_1.expectString(output.Feedback),
|
|
@@ -3049,6 +3212,9 @@ const deserializeAws_restJson1ProactiveAnomaly = (output, context) => {
|
|
|
3049
3212
|
AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
|
|
3050
3213
|
? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
|
|
3051
3214
|
: undefined,
|
|
3215
|
+
AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
|
|
3216
|
+
? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
|
|
3217
|
+
: undefined,
|
|
3052
3218
|
AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
|
|
3053
3219
|
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
|
|
3054
3220
|
: undefined,
|
|
@@ -3065,6 +3231,9 @@ const deserializeAws_restJson1ProactiveAnomaly = (output, context) => {
|
|
|
3065
3231
|
SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
|
|
3066
3232
|
? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
|
|
3067
3233
|
: undefined,
|
|
3234
|
+
SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
|
|
3235
|
+
? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
|
|
3236
|
+
: undefined,
|
|
3068
3237
|
Status: smithy_client_1.expectString(output.Status),
|
|
3069
3238
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
3070
3239
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdateTime)))
|
|
@@ -3076,6 +3245,9 @@ const deserializeAws_restJson1ProactiveAnomalySummary = (output, context) => {
|
|
|
3076
3245
|
AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
|
|
3077
3246
|
? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
|
|
3078
3247
|
: undefined,
|
|
3248
|
+
AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
|
|
3249
|
+
? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
|
|
3250
|
+
: undefined,
|
|
3079
3251
|
AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
|
|
3080
3252
|
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
|
|
3081
3253
|
: undefined,
|
|
@@ -3092,6 +3264,9 @@ const deserializeAws_restJson1ProactiveAnomalySummary = (output, context) => {
|
|
|
3092
3264
|
SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
|
|
3093
3265
|
? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
|
|
3094
3266
|
: undefined,
|
|
3267
|
+
SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
|
|
3268
|
+
? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
|
|
3269
|
+
: undefined,
|
|
3095
3270
|
Status: smithy_client_1.expectString(output.Status),
|
|
3096
3271
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
3097
3272
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdateTime)))
|
|
@@ -3100,6 +3275,7 @@ const deserializeAws_restJson1ProactiveAnomalySummary = (output, context) => {
|
|
|
3100
3275
|
};
|
|
3101
3276
|
const deserializeAws_restJson1ProactiveInsight = (output, context) => {
|
|
3102
3277
|
return {
|
|
3278
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
3103
3279
|
Id: smithy_client_1.expectString(output.Id),
|
|
3104
3280
|
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
3105
3281
|
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
@@ -3250,6 +3426,7 @@ const deserializeAws_restJson1ReactiveAnomalySummary = (output, context) => {
|
|
|
3250
3426
|
};
|
|
3251
3427
|
const deserializeAws_restJson1ReactiveInsight = (output, context) => {
|
|
3252
3428
|
return {
|
|
3429
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
3253
3430
|
Id: smithy_client_1.expectString(output.Id),
|
|
3254
3431
|
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
3255
3432
|
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
@@ -3326,6 +3503,7 @@ const deserializeAws_restJson1ReactiveOrganizationInsightSummary = (output, cont
|
|
|
3326
3503
|
};
|
|
3327
3504
|
const deserializeAws_restJson1Recommendation = (output, context) => {
|
|
3328
3505
|
return {
|
|
3506
|
+
Category: smithy_client_1.expectString(output.Category),
|
|
3329
3507
|
Description: smithy_client_1.expectString(output.Description),
|
|
3330
3508
|
Link: smithy_client_1.expectString(output.Link),
|
|
3331
3509
|
Name: smithy_client_1.expectString(output.Name),
|
package/dist-es/DevOpsGuru.js
CHANGED
|
@@ -3,6 +3,7 @@ import { AddNotificationChannelCommand, } from "./commands/AddNotificationChanne
|
|
|
3
3
|
import { DescribeAccountHealthCommand, } from "./commands/DescribeAccountHealthCommand";
|
|
4
4
|
import { DescribeAccountOverviewCommand, } from "./commands/DescribeAccountOverviewCommand";
|
|
5
5
|
import { DescribeAnomalyCommand, } from "./commands/DescribeAnomalyCommand";
|
|
6
|
+
import { DescribeEventSourcesConfigCommand, } from "./commands/DescribeEventSourcesConfigCommand";
|
|
6
7
|
import { DescribeFeedbackCommand, } from "./commands/DescribeFeedbackCommand";
|
|
7
8
|
import { DescribeInsightCommand, } from "./commands/DescribeInsightCommand";
|
|
8
9
|
import { DescribeOrganizationHealthCommand, } from "./commands/DescribeOrganizationHealthCommand";
|
|
@@ -23,6 +24,7 @@ import { RemoveNotificationChannelCommand, } from "./commands/RemoveNotification
|
|
|
23
24
|
import { SearchInsightsCommand, } from "./commands/SearchInsightsCommand";
|
|
24
25
|
import { SearchOrganizationInsightsCommand, } from "./commands/SearchOrganizationInsightsCommand";
|
|
25
26
|
import { StartCostEstimationCommand, } from "./commands/StartCostEstimationCommand";
|
|
27
|
+
import { UpdateEventSourcesConfigCommand, } from "./commands/UpdateEventSourcesConfigCommand";
|
|
26
28
|
import { UpdateResourceCollectionCommand, } from "./commands/UpdateResourceCollectionCommand";
|
|
27
29
|
import { UpdateServiceIntegrationCommand, } from "./commands/UpdateServiceIntegrationCommand";
|
|
28
30
|
import { DevOpsGuruClient } from "./DevOpsGuruClient";
|
|
@@ -87,6 +89,20 @@ var DevOpsGuru = (function (_super) {
|
|
|
87
89
|
return this.send(command, optionsOrCb);
|
|
88
90
|
}
|
|
89
91
|
};
|
|
92
|
+
DevOpsGuru.prototype.describeEventSourcesConfig = function (args, optionsOrCb, cb) {
|
|
93
|
+
var command = new DescribeEventSourcesConfigCommand(args);
|
|
94
|
+
if (typeof optionsOrCb === "function") {
|
|
95
|
+
this.send(command, optionsOrCb);
|
|
96
|
+
}
|
|
97
|
+
else if (typeof cb === "function") {
|
|
98
|
+
if (typeof optionsOrCb !== "object")
|
|
99
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
100
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
return this.send(command, optionsOrCb);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
90
106
|
DevOpsGuru.prototype.describeFeedback = function (args, optionsOrCb, cb) {
|
|
91
107
|
var command = new DescribeFeedbackCommand(args);
|
|
92
108
|
if (typeof optionsOrCb === "function") {
|
|
@@ -367,6 +383,20 @@ var DevOpsGuru = (function (_super) {
|
|
|
367
383
|
return this.send(command, optionsOrCb);
|
|
368
384
|
}
|
|
369
385
|
};
|
|
386
|
+
DevOpsGuru.prototype.updateEventSourcesConfig = function (args, optionsOrCb, cb) {
|
|
387
|
+
var command = new UpdateEventSourcesConfigCommand(args);
|
|
388
|
+
if (typeof optionsOrCb === "function") {
|
|
389
|
+
this.send(command, optionsOrCb);
|
|
390
|
+
}
|
|
391
|
+
else if (typeof cb === "function") {
|
|
392
|
+
if (typeof optionsOrCb !== "object")
|
|
393
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
394
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
395
|
+
}
|
|
396
|
+
else {
|
|
397
|
+
return this.send(command, optionsOrCb);
|
|
398
|
+
}
|
|
399
|
+
};
|
|
370
400
|
DevOpsGuru.prototype.updateResourceCollection = function (args, optionsOrCb, cb) {
|
|
371
401
|
var command = new UpdateResourceCollectionCommand(args);
|
|
372
402
|
if (typeof optionsOrCb === "function") {
|