@aws-sdk/client-devops-guru 3.67.0 → 3.69.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 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.69.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.68.0...v3.69.0) (2022-04-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-devops-guru:** This release adds new APIs DeleteInsight to deletes the insight along with the associated anomalies, events and recommendations. ([3dc7bfe](https://github.com/aws/aws-sdk-js-v3/commit/3dc7bfebbec642c1008191c00c4a3791665d33b9))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.67.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.66.0...v3.67.0) (2022-04-08)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-devops-guru
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DevOpsGuru = void 0;
4
4
  const AddNotificationChannelCommand_1 = require("./commands/AddNotificationChannelCommand");
5
+ const DeleteInsightCommand_1 = require("./commands/DeleteInsightCommand");
5
6
  const DescribeAccountHealthCommand_1 = require("./commands/DescribeAccountHealthCommand");
6
7
  const DescribeAccountOverviewCommand_1 = require("./commands/DescribeAccountOverviewCommand");
7
8
  const DescribeAnomalyCommand_1 = require("./commands/DescribeAnomalyCommand");
@@ -45,6 +46,20 @@ class DevOpsGuru extends DevOpsGuruClient_1.DevOpsGuruClient {
45
46
  return this.send(command, optionsOrCb);
46
47
  }
47
48
  }
49
+ deleteInsight(args, optionsOrCb, cb) {
50
+ const command = new DeleteInsightCommand_1.DeleteInsightCommand(args);
51
+ if (typeof optionsOrCb === "function") {
52
+ this.send(command, optionsOrCb);
53
+ }
54
+ else if (typeof cb === "function") {
55
+ if (typeof optionsOrCb !== "object")
56
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
57
+ this.send(command, optionsOrCb || {}, cb);
58
+ }
59
+ else {
60
+ return this.send(command, optionsOrCb);
61
+ }
62
+ }
48
63
  describeAccountHealth(args, optionsOrCb, cb) {
49
64
  const command = new DescribeAccountHealthCommand_1.DescribeAccountHealthCommand(args);
50
65
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteInsightCommand = 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 DeleteInsightCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, 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 = "DeleteInsightCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteInsightRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DeleteInsightResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1DeleteInsightCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteInsightCommand)(output, context);
34
+ }
35
+ }
36
+ exports.DeleteInsightCommand = DeleteInsightCommand;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./AddNotificationChannelCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeleteInsightCommand"), exports);
5
6
  tslib_1.__exportStar(require("./DescribeAccountHealthCommand"), exports);
6
7
  tslib_1.__exportStar(require("./DescribeAccountOverviewCommand"), exports);
7
8
  tslib_1.__exportStar(require("./DescribeAnomalyCommand"), exports);
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.ResourceCollection = exports.TagCollection = exports.CloudFormationCollection = exports.PredictionTimeRange = exports.DescribeAnomalyRequest = exports.DescribeAccountOverviewResponse = exports.DescribeAccountOverviewRequest = exports.DescribeAccountHealthResponse = exports.DescribeAccountHealthRequest = exports.DeleteInsightResponse = exports.DeleteInsightRequest = 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.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 = exports.ReactiveAnomaly = exports.ProactiveAnomaly = void 0;
5
+ 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 = exports.GetResourceCollectionResponse = exports.ResourceCollectionFilter = 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 = exports.SearchOrganizationInsightsRequest = exports.SearchOrganizationInsightsFilters = void 0;
7
7
  const DevOpsGuruServiceException_1 = require("./DevOpsGuruServiceException");
8
8
  class AccessDeniedException extends DevOpsGuruServiceException_1.DevOpsGuruServiceException {
9
9
  constructor(opts) {
@@ -310,6 +310,18 @@ var AnomalyType;
310
310
  AnomalyType["CAUSAL"] = "CAUSAL";
311
311
  AnomalyType["CONTEXTUAL"] = "CONTEXTUAL";
312
312
  })(AnomalyType = exports.AnomalyType || (exports.AnomalyType = {}));
313
+ var DeleteInsightRequest;
314
+ (function (DeleteInsightRequest) {
315
+ DeleteInsightRequest.filterSensitiveLog = (obj) => ({
316
+ ...obj,
317
+ });
318
+ })(DeleteInsightRequest = exports.DeleteInsightRequest || (exports.DeleteInsightRequest = {}));
319
+ var DeleteInsightResponse;
320
+ (function (DeleteInsightResponse) {
321
+ DeleteInsightResponse.filterSensitiveLog = (obj) => ({
322
+ ...obj,
323
+ });
324
+ })(DeleteInsightResponse = exports.DeleteInsightResponse || (exports.DeleteInsightResponse = {}));
313
325
  var DescribeAccountHealthRequest;
314
326
  (function (DescribeAccountHealthRequest) {
315
327
  DescribeAccountHealthRequest.filterSensitiveLog = (obj) => ({
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ 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_restJson1DeleteInsightCommand = 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_restJson1DeleteInsightCommand = exports.serializeAws_restJson1AddNotificationChannelCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateServiceIntegrationCommand = exports.deserializeAws_restJson1UpdateResourceCollectionCommand = exports.deserializeAws_restJson1UpdateEventSourcesConfigCommand = exports.deserializeAws_restJson1StartCostEstimationCommand = exports.deserializeAws_restJson1SearchOrganizationInsightsCommand = exports.deserializeAws_restJson1SearchInsightsCommand = exports.deserializeAws_restJson1RemoveNotificationChannelCommand = exports.deserializeAws_restJson1PutFeedbackCommand = 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");
@@ -29,6 +29,32 @@ const serializeAws_restJson1AddNotificationChannelCommand = async (input, contex
29
29
  });
30
30
  };
31
31
  exports.serializeAws_restJson1AddNotificationChannelCommand = serializeAws_restJson1AddNotificationChannelCommand;
32
+ const serializeAws_restJson1DeleteInsightCommand = async (input, context) => {
33
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
+ const headers = {};
35
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights/{Id}";
36
+ if (input.Id !== undefined) {
37
+ const labelValue = input.Id;
38
+ if (labelValue.length <= 0) {
39
+ throw new Error("Empty value provided for input HTTP label: Id.");
40
+ }
41
+ resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
42
+ }
43
+ else {
44
+ throw new Error("No value provided for input HTTP label: Id.");
45
+ }
46
+ let body;
47
+ return new protocol_http_1.HttpRequest({
48
+ protocol,
49
+ hostname,
50
+ port,
51
+ method: "DELETE",
52
+ headers,
53
+ path: resolvedPath,
54
+ body,
55
+ });
56
+ };
57
+ exports.serializeAws_restJson1DeleteInsightCommand = serializeAws_restJson1DeleteInsightCommand;
32
58
  const serializeAws_restJson1DescribeAccountHealthCommand = async (input, context) => {
33
59
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
60
  const headers = {
@@ -794,6 +820,54 @@ const deserializeAws_restJson1AddNotificationChannelCommandError = async (output
794
820
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
795
821
  }
796
822
  };
823
+ const deserializeAws_restJson1DeleteInsightCommand = async (output, context) => {
824
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
825
+ return deserializeAws_restJson1DeleteInsightCommandError(output, context);
826
+ }
827
+ const contents = {
828
+ $metadata: deserializeMetadata(output),
829
+ };
830
+ await collectBody(output.body, context);
831
+ return Promise.resolve(contents);
832
+ };
833
+ exports.deserializeAws_restJson1DeleteInsightCommand = deserializeAws_restJson1DeleteInsightCommand;
834
+ const deserializeAws_restJson1DeleteInsightCommandError = async (output, context) => {
835
+ const parsedOutput = {
836
+ ...output,
837
+ body: await parseBody(output.body, context),
838
+ };
839
+ let response;
840
+ let errorCode = "UnknownError";
841
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
842
+ switch (errorCode) {
843
+ case "AccessDeniedException":
844
+ case "com.amazonaws.devopsguru#AccessDeniedException":
845
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
846
+ case "ConflictException":
847
+ case "com.amazonaws.devopsguru#ConflictException":
848
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
849
+ case "InternalServerException":
850
+ case "com.amazonaws.devopsguru#InternalServerException":
851
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
852
+ case "ResourceNotFoundException":
853
+ case "com.amazonaws.devopsguru#ResourceNotFoundException":
854
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
855
+ case "ThrottlingException":
856
+ case "com.amazonaws.devopsguru#ThrottlingException":
857
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
858
+ case "ValidationException":
859
+ case "com.amazonaws.devopsguru#ValidationException":
860
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
861
+ default:
862
+ const parsedBody = parsedOutput.body;
863
+ response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
864
+ name: parsedBody.code || parsedBody.Code || errorCode,
865
+ $fault: "client",
866
+ $metadata: deserializeMetadata(output),
867
+ });
868
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
869
+ }
870
+ };
797
871
  const deserializeAws_restJson1DescribeAccountHealthCommand = async (output, context) => {
798
872
  if (output.statusCode !== 200 && output.statusCode >= 300) {
799
873
  return deserializeAws_restJson1DescribeAccountHealthCommandError(output, context);
@@ -1,5 +1,6 @@
1
1
  import { __extends } from "tslib";
2
2
  import { AddNotificationChannelCommand, } from "./commands/AddNotificationChannelCommand";
3
+ import { DeleteInsightCommand, } from "./commands/DeleteInsightCommand";
3
4
  import { DescribeAccountHealthCommand, } from "./commands/DescribeAccountHealthCommand";
4
5
  import { DescribeAccountOverviewCommand, } from "./commands/DescribeAccountOverviewCommand";
5
6
  import { DescribeAnomalyCommand, } from "./commands/DescribeAnomalyCommand";
@@ -47,6 +48,20 @@ var DevOpsGuru = (function (_super) {
47
48
  return this.send(command, optionsOrCb);
48
49
  }
49
50
  };
51
+ DevOpsGuru.prototype.deleteInsight = function (args, optionsOrCb, cb) {
52
+ var command = new DeleteInsightCommand(args);
53
+ if (typeof optionsOrCb === "function") {
54
+ this.send(command, optionsOrCb);
55
+ }
56
+ else if (typeof cb === "function") {
57
+ if (typeof optionsOrCb !== "object")
58
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
59
+ this.send(command, optionsOrCb || {}, cb);
60
+ }
61
+ else {
62
+ return this.send(command, optionsOrCb);
63
+ }
64
+ };
50
65
  DevOpsGuru.prototype.describeAccountHealth = function (args, optionsOrCb, cb) {
51
66
  var command = new DescribeAccountHealthCommand(args);
52
67
  if (typeof optionsOrCb === "function") {
@@ -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 { DeleteInsightRequest, DeleteInsightResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteInsightCommand, serializeAws_restJson1DeleteInsightCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteInsightCommand = (function (_super) {
7
+ __extends(DeleteInsightCommand, _super);
8
+ function DeleteInsightCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteInsightCommand.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 = "DeleteInsightCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteInsightRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteInsightResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteInsightCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteInsightCommand(input, context);
33
+ };
34
+ DeleteInsightCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteInsightCommand(output, context);
36
+ };
37
+ return DeleteInsightCommand;
38
+ }($Command));
39
+ export { DeleteInsightCommand };
@@ -1,4 +1,5 @@
1
1
  export * from "./AddNotificationChannelCommand";
2
+ export * from "./DeleteInsightCommand";
2
3
  export * from "./DescribeAccountHealthCommand";
3
4
  export * from "./DescribeAccountOverviewCommand";
4
5
  export * from "./DescribeAnomalyCommand";
@@ -248,6 +248,14 @@ export var AnomalyType;
248
248
  AnomalyType["CAUSAL"] = "CAUSAL";
249
249
  AnomalyType["CONTEXTUAL"] = "CONTEXTUAL";
250
250
  })(AnomalyType || (AnomalyType = {}));
251
+ export var DeleteInsightRequest;
252
+ (function (DeleteInsightRequest) {
253
+ DeleteInsightRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
254
+ })(DeleteInsightRequest || (DeleteInsightRequest = {}));
255
+ export var DeleteInsightResponse;
256
+ (function (DeleteInsightResponse) {
257
+ DeleteInsightResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
258
+ })(DeleteInsightResponse || (DeleteInsightResponse = {}));
251
259
  export var DescribeAccountHealthRequest;
252
260
  (function (DescribeAccountHealthRequest) {
253
261
  DescribeAccountHealthRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -29,6 +29,37 @@ export var serializeAws_restJson1AddNotificationChannelCommand = function (input
29
29
  }
30
30
  });
31
31
  }); };
32
+ export var serializeAws_restJson1DeleteInsightCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
33
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
34
+ return __generator(this, function (_c) {
35
+ switch (_c.label) {
36
+ case 0: return [4, context.endpoint()];
37
+ case 1:
38
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
39
+ headers = {};
40
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/{Id}";
41
+ if (input.Id !== undefined) {
42
+ labelValue = input.Id;
43
+ if (labelValue.length <= 0) {
44
+ throw new Error("Empty value provided for input HTTP label: Id.");
45
+ }
46
+ resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
47
+ }
48
+ else {
49
+ throw new Error("No value provided for input HTTP label: Id.");
50
+ }
51
+ return [2, new __HttpRequest({
52
+ protocol: protocol,
53
+ hostname: hostname,
54
+ port: port,
55
+ method: "DELETE",
56
+ headers: headers,
57
+ path: resolvedPath,
58
+ body: body,
59
+ })];
60
+ }
61
+ });
62
+ }); };
32
63
  export var serializeAws_restJson1DescribeAccountHealthCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
33
64
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
34
65
  return __generator(this, function (_c) {
@@ -873,6 +904,76 @@ var deserializeAws_restJson1AddNotificationChannelCommandError = function (outpu
873
904
  }
874
905
  });
875
906
  }); };
907
+ export var deserializeAws_restJson1DeleteInsightCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
908
+ var contents;
909
+ return __generator(this, function (_a) {
910
+ switch (_a.label) {
911
+ case 0:
912
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
913
+ return [2, deserializeAws_restJson1DeleteInsightCommandError(output, context)];
914
+ }
915
+ contents = {
916
+ $metadata: deserializeMetadata(output),
917
+ };
918
+ return [4, collectBody(output.body, context)];
919
+ case 1:
920
+ _a.sent();
921
+ return [2, Promise.resolve(contents)];
922
+ }
923
+ });
924
+ }); };
925
+ var deserializeAws_restJson1DeleteInsightCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
926
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
927
+ var _c;
928
+ return __generator(this, function (_d) {
929
+ switch (_d.label) {
930
+ case 0:
931
+ _a = [__assign({}, output)];
932
+ _c = {};
933
+ return [4, parseBody(output.body, context)];
934
+ case 1:
935
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
936
+ errorCode = "UnknownError";
937
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
938
+ _b = errorCode;
939
+ switch (_b) {
940
+ case "AccessDeniedException": return [3, 2];
941
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
942
+ case "ConflictException": return [3, 4];
943
+ case "com.amazonaws.devopsguru#ConflictException": return [3, 4];
944
+ case "InternalServerException": return [3, 6];
945
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 6];
946
+ case "ResourceNotFoundException": return [3, 8];
947
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 8];
948
+ case "ThrottlingException": return [3, 10];
949
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 10];
950
+ case "ValidationException": return [3, 12];
951
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 12];
952
+ }
953
+ return [3, 14];
954
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
955
+ case 3: throw _d.sent();
956
+ case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
957
+ case 5: throw _d.sent();
958
+ case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
959
+ case 7: throw _d.sent();
960
+ case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
961
+ case 9: throw _d.sent();
962
+ case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
963
+ case 11: throw _d.sent();
964
+ case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
965
+ case 13: throw _d.sent();
966
+ case 14:
967
+ parsedBody = parsedOutput.body;
968
+ response = new __BaseException({
969
+ name: parsedBody.code || parsedBody.Code || errorCode,
970
+ $fault: "client",
971
+ $metadata: deserializeMetadata(output),
972
+ });
973
+ throw __decorateServiceException(response, parsedBody);
974
+ }
975
+ });
976
+ }); };
876
977
  export var deserializeAws_restJson1DescribeAccountHealthCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
877
978
  var contents, data, _a, _b;
878
979
  return __generator(this, function (_c) {
@@ -1,5 +1,6 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AddNotificationChannelCommandInput, AddNotificationChannelCommandOutput } from "./commands/AddNotificationChannelCommand";
3
+ import { DeleteInsightCommandInput, DeleteInsightCommandOutput } from "./commands/DeleteInsightCommand";
3
4
  import { DescribeAccountHealthCommandInput, DescribeAccountHealthCommandOutput } from "./commands/DescribeAccountHealthCommand";
4
5
  import { DescribeAccountOverviewCommandInput, DescribeAccountOverviewCommandOutput } from "./commands/DescribeAccountOverviewCommand";
5
6
  import { DescribeAnomalyCommandInput, DescribeAnomalyCommandOutput } from "./commands/DescribeAnomalyCommand";
@@ -49,9 +50,10 @@ export declare class DevOpsGuru extends DevOpsGuruClient {
49
50
  * <p> Adds a notification channel to DevOps Guru. A notification channel is used to notify you
50
51
  * about important DevOps Guru events, such as when an insight is generated. </p>
51
52
  * <p>If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission
52
- * to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account.
53
+ * to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics.
53
54
  * For more information, see <a href="https://docs.aws.amazon.com/devops-guru/latest/userguide/sns-required-permissions.html">Permissions
54
55
  * for cross account Amazon SNS topics</a>.</p>
56
+ * <p>If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. For more information, see Permissions for cross account Amazon SNS topics.</p>
55
57
  * <p>If you use an Amazon SNS topic that is encrypted by an Amazon Web Services Key Management Service customer-managed key (CMK), then you must add permissions
56
58
  * to the CMK. For more information, see <a href="https://docs.aws.amazon.com/devops-guru/latest/userguide/sns-kms-permissions.html">Permissions for
57
59
  * Amazon Web Services KMS–encrypted Amazon SNS topics</a>.</p>
@@ -59,6 +61,12 @@ export declare class DevOpsGuru extends DevOpsGuruClient {
59
61
  addNotificationChannel(args: AddNotificationChannelCommandInput, options?: __HttpHandlerOptions): Promise<AddNotificationChannelCommandOutput>;
60
62
  addNotificationChannel(args: AddNotificationChannelCommandInput, cb: (err: any, data?: AddNotificationChannelCommandOutput) => void): void;
61
63
  addNotificationChannel(args: AddNotificationChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddNotificationChannelCommandOutput) => void): void;
64
+ /**
65
+ * <p>Deletes the insight along with the associated anomalies, events and recommendations.</p>
66
+ */
67
+ deleteInsight(args: DeleteInsightCommandInput, options?: __HttpHandlerOptions): Promise<DeleteInsightCommandOutput>;
68
+ deleteInsight(args: DeleteInsightCommandInput, cb: (err: any, data?: DeleteInsightCommandOutput) => void): void;
69
+ deleteInsight(args: DeleteInsightCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteInsightCommandOutput) => void): void;
62
70
  /**
63
71
  * <p> Returns the number of open reactive insights, the number of open proactive insights,
64
72
  * and the number of metrics analyzed in your Amazon Web Services account. Use these numbers to gauge the
@@ -82,8 +90,10 @@ export declare class DevOpsGuru extends DevOpsGuruClient {
82
90
  describeAnomaly(args: DescribeAnomalyCommandInput, cb: (err: any, data?: DescribeAnomalyCommandOutput) => void): void;
83
91
  describeAnomaly(args: DescribeAnomalyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAnomalyCommandOutput) => void): void;
84
92
  /**
85
- * <p>This operation lists details about a DevOps Guru event source that is shared with your
86
- account.</p>
93
+ * <p>Returns the integration status of services that are integrated with DevOps Guru as Consumer
94
+ * via EventBridge. The one service that can be integrated with DevOps Guru is Amazon CodeGuru
95
+ * Profiler, which can produce proactive recommendations which can be stored and viewed in
96
+ * DevOps Guru.</p>
87
97
  */
88
98
  describeEventSourcesConfig(args: DescribeEventSourcesConfigCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEventSourcesConfigCommandOutput>;
89
99
  describeEventSourcesConfig(args: DescribeEventSourcesConfigCommandInput, cb: (err: any, data?: DescribeEventSourcesConfigCommandOutput) => void): void;
@@ -252,7 +262,9 @@ export declare class DevOpsGuru extends DevOpsGuruClient {
252
262
  startCostEstimation(args: StartCostEstimationCommandInput, cb: (err: any, data?: StartCostEstimationCommandOutput) => void): void;
253
263
  startCostEstimation(args: StartCostEstimationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCostEstimationCommandOutput) => void): void;
254
264
  /**
255
- * <p>Updates the event source configuration.</p>
265
+ * <p>Enables or disables integration with a service that can be integrated with DevOps Guru. The
266
+ * one service that can be integrated with DevOps Guru is Amazon CodeGuru Profiler, which
267
+ * can produce proactive recommendations which can be stored and viewed in DevOps Guru.</p>
256
268
  */
257
269
  updateEventSourcesConfig(args: UpdateEventSourcesConfigCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEventSourcesConfigCommandOutput>;
258
270
  updateEventSourcesConfig(args: UpdateEventSourcesConfigCommandInput, cb: (err: any, data?: UpdateEventSourcesConfigCommandOutput) => void): void;
@@ -7,6 +7,7 @@ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AddNotificationChannelCommandInput, AddNotificationChannelCommandOutput } from "./commands/AddNotificationChannelCommand";
10
+ import { DeleteInsightCommandInput, DeleteInsightCommandOutput } from "./commands/DeleteInsightCommand";
10
11
  import { DescribeAccountHealthCommandInput, DescribeAccountHealthCommandOutput } from "./commands/DescribeAccountHealthCommand";
11
12
  import { DescribeAccountOverviewCommandInput, DescribeAccountOverviewCommandOutput } from "./commands/DescribeAccountOverviewCommand";
12
13
  import { DescribeAnomalyCommandInput, DescribeAnomalyCommandOutput } from "./commands/DescribeAnomalyCommand";
@@ -34,8 +35,8 @@ import { StartCostEstimationCommandInput, StartCostEstimationCommandOutput } fro
34
35
  import { UpdateEventSourcesConfigCommandInput, UpdateEventSourcesConfigCommandOutput } from "./commands/UpdateEventSourcesConfigCommand";
35
36
  import { UpdateResourceCollectionCommandInput, UpdateResourceCollectionCommandOutput } from "./commands/UpdateResourceCollectionCommand";
36
37
  import { UpdateServiceIntegrationCommandInput, UpdateServiceIntegrationCommandOutput } from "./commands/UpdateServiceIntegrationCommand";
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;
38
+ export declare type ServiceInputTypes = AddNotificationChannelCommandInput | DeleteInsightCommandInput | 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;
39
+ export declare type ServiceOutputTypes = AddNotificationChannelCommandOutput | DeleteInsightCommandOutput | 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;
39
40
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
40
41
  /**
41
42
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -10,9 +10,10 @@ export interface AddNotificationChannelCommandOutput extends AddNotificationChan
10
10
  * <p> Adds a notification channel to DevOps Guru. A notification channel is used to notify you
11
11
  * about important DevOps Guru events, such as when an insight is generated. </p>
12
12
  * <p>If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission
13
- * to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account.
13
+ * to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics.
14
14
  * For more information, see <a href="https://docs.aws.amazon.com/devops-guru/latest/userguide/sns-required-permissions.html">Permissions
15
15
  * for cross account Amazon SNS topics</a>.</p>
16
+ * <p>If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. For more information, see Permissions for cross account Amazon SNS topics.</p>
16
17
  * <p>If you use an Amazon SNS topic that is encrypted by an Amazon Web Services Key Management Service customer-managed key (CMK), then you must add permissions
17
18
  * to the CMK. For more information, see <a href="https://docs.aws.amazon.com/devops-guru/latest/userguide/sns-kms-permissions.html">Permissions for
18
19
  * Amazon Web Services KMS–encrypted Amazon SNS topics</a>.</p>
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { DevOpsGuruClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DevOpsGuruClient";
4
+ import { DeleteInsightRequest, DeleteInsightResponse } from "../models/models_0";
5
+ export interface DeleteInsightCommandInput extends DeleteInsightRequest {
6
+ }
7
+ export interface DeleteInsightCommandOutput extends DeleteInsightResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Deletes the insight along with the associated anomalies, events and recommendations.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { DevOpsGuruClient, DeleteInsightCommand } from "@aws-sdk/client-devops-guru"; // ES Modules import
15
+ * // const { DevOpsGuruClient, DeleteInsightCommand } = require("@aws-sdk/client-devops-guru"); // CommonJS import
16
+ * const client = new DevOpsGuruClient(config);
17
+ * const command = new DeleteInsightCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link DeleteInsightCommandInput} for command's `input` shape.
22
+ * @see {@link DeleteInsightCommandOutput} for command's `response` shape.
23
+ * @see {@link DevOpsGuruClientResolvedConfig | config} for DevOpsGuruClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class DeleteInsightCommand extends $Command<DeleteInsightCommandInput, DeleteInsightCommandOutput, DevOpsGuruClientResolvedConfig> {
27
+ readonly input: DeleteInsightCommandInput;
28
+ constructor(input: DeleteInsightCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteInsightCommandInput, DeleteInsightCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -7,8 +7,10 @@ export interface DescribeEventSourcesConfigCommandInput extends DescribeEventSou
7
7
  export interface DescribeEventSourcesConfigCommandOutput extends DescribeEventSourcesConfigResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>This operation lists details about a DevOps Guru event source that is shared with your
11
- account.</p>
10
+ * <p>Returns the integration status of services that are integrated with DevOps Guru as Consumer
11
+ * via EventBridge. The one service that can be integrated with DevOps Guru is Amazon CodeGuru
12
+ * Profiler, which can produce proactive recommendations which can be stored and viewed in
13
+ * DevOps Guru.</p>
12
14
  * @example
13
15
  * Use a bare-bones client and the command you need to make an API call.
14
16
  * ```javascript
@@ -7,7 +7,9 @@ export interface UpdateEventSourcesConfigCommandInput extends UpdateEventSources
7
7
  export interface UpdateEventSourcesConfigCommandOutput extends UpdateEventSourcesConfigResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Updates the event source configuration.</p>
10
+ * <p>Enables or disables integration with a service that can be integrated with DevOps Guru. The
11
+ * one service that can be integrated with DevOps Guru is Amazon CodeGuru Profiler, which
12
+ * can produce proactive recommendations which can be stored and viewed in DevOps Guru.</p>
11
13
  * @example
12
14
  * Use a bare-bones client and the command you need to make an API call.
13
15
  * ```javascript
@@ -1,4 +1,5 @@
1
1
  export * from "./AddNotificationChannelCommand";
2
+ export * from "./DeleteInsightCommand";
2
3
  export * from "./DescribeAccountHealthCommand";
3
4
  export * from "./DescribeAccountOverviewCommand";
4
5
  export * from "./DescribeAnomalyCommand";
@@ -63,9 +63,10 @@ export declare namespace AccountHealth {
63
63
  /**
64
64
  * <p> Contains the Amazon Resource Name (ARN) of an Amazon Simple Notification Service topic. </p>
65
65
  * <p>If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission
66
- * to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account.
66
+ * to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics.
67
67
  * For more information, see <a href="https://docs.aws.amazon.com/devops-guru/latest/userguide/sns-required-permissions.html">Permissions
68
68
  * for cross account Amazon SNS topics</a>.</p>
69
+ * <p>If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. For more information, see Permissions for cross account Amazon SNS topics.</p>
69
70
  * <p>If you use an Amazon SNS topic that is encrypted by an Amazon Web Services Key Management Service customer-managed key (CMK), then you must add permissions
70
71
  * to the CMK. For more information, see <a href="https://docs.aws.amazon.com/devops-guru/latest/userguide/sns-kms-permissions.html">Permissions for
71
72
  * Amazon Web Services KMS–encrypted Amazon SNS topics</a>.</p>
@@ -92,9 +93,10 @@ export interface NotificationChannelConfig {
92
93
  * <p> Information about a notification channel configured in DevOps Guru to send notifications
93
94
  * when insights are created. </p>
94
95
  * <p>If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission
95
- * to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account.
96
+ * to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics.
96
97
  * For more information, see <a href="https://docs.aws.amazon.com/devops-guru/latest/userguide/sns-required-permissions.html">Permissions
97
98
  * for cross account Amazon SNS topics</a>.</p>
99
+ * <p>If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. For more information, see Permissions for cross account Amazon SNS topics.</p>
98
100
  * <p>If you use an Amazon SNS topic that is encrypted by an Amazon Web Services Key Management Service customer-managed key (CMK), then you must add permissions
99
101
  * to the CMK. For more information, see <a href="https://docs.aws.amazon.com/devops-guru/latest/userguide/sns-kms-permissions.html">Permissions for
100
102
  * Amazon Web Services KMS–encrypted Amazon SNS topics</a>.</p>
@@ -284,11 +286,14 @@ export declare enum EventSourceOptInStatus {
284
286
  ENABLED = "ENABLED"
285
287
  }
286
288
  /**
287
- * <p>Information about your account's integration with Amazon CodeGuru Profiler.</p>
289
+ * <p>Information about your account's integration with Amazon CodeGuru Profiler. This
290
+ * returns whether DevOps Guru is configured to consume recommendations generated from Amazon
291
+ * CodeGuru Profiler.</p>
288
292
  */
289
293
  export interface AmazonCodeGuruProfilerIntegration {
290
294
  /**
291
- * <p>The status of the CodeGuru Profiler integration.</p>
295
+ * <p>The status of the CodeGuru Profiler integration. Specifies if DevOps Guru is enabled to
296
+ * consume recommendations that are generated from Amazon CodeGuru Profiler.</p>
292
297
  */
293
298
  Status?: EventSourceOptInStatus | string;
294
299
  }
@@ -913,7 +918,8 @@ export declare namespace AnomalySourceDetails {
913
918
  const filterSensitiveLog: (obj: AnomalySourceDetails) => any;
914
919
  }
915
920
  /**
916
- * <p>Metadata about an anomaly. The anomaly is detected using analysis of the metric data
921
+ * <p>Metadata about the detection source that generates proactive anomalies. The anomaly is
922
+ * detected using analysis of the metric data
917
923
  over a period of time</p>
918
924
  */
919
925
  export interface AnomalySourceMetadata {
@@ -965,6 +971,26 @@ export declare enum AnomalyType {
965
971
  CAUSAL = "CAUSAL",
966
972
  CONTEXTUAL = "CONTEXTUAL"
967
973
  }
974
+ export interface DeleteInsightRequest {
975
+ /**
976
+ * <p>The ID of the insight.</p>
977
+ */
978
+ Id: string | undefined;
979
+ }
980
+ export declare namespace DeleteInsightRequest {
981
+ /**
982
+ * @internal
983
+ */
984
+ const filterSensitiveLog: (obj: DeleteInsightRequest) => any;
985
+ }
986
+ export interface DeleteInsightResponse {
987
+ }
988
+ export declare namespace DeleteInsightResponse {
989
+ /**
990
+ * @internal
991
+ */
992
+ const filterSensitiveLog: (obj: DeleteInsightResponse) => any;
993
+ }
968
994
  export interface DescribeAccountHealthRequest {
969
995
  }
970
996
  export declare namespace DescribeAccountHealthRequest {
@@ -1416,11 +1442,13 @@ export declare namespace DescribeEventSourcesConfigRequest {
1416
1442
  const filterSensitiveLog: (obj: DescribeEventSourcesConfigRequest) => any;
1417
1443
  }
1418
1444
  /**
1419
- * <p>Describes the event sources.</p>
1445
+ * <p>Information about the integration of DevOps Guru as consumer with another AWS service, such
1446
+ * as AWS CodeGuru Profiler via EventBridge.</p>
1420
1447
  */
1421
1448
  export interface EventSourcesConfig {
1422
1449
  /**
1423
- * <p></p>
1450
+ * <p>Information about whether DevOps Guru is configured to consume recommendations which
1451
+ * are generated from AWS CodeGuru Profiler.</p>
1424
1452
  */
1425
1453
  AmazonCodeGuruProfiler?: AmazonCodeGuruProfilerIntegration;
1426
1454
  }
@@ -1432,7 +1460,7 @@ export declare namespace EventSourcesConfig {
1432
1460
  }
1433
1461
  export interface DescribeEventSourcesConfigResponse {
1434
1462
  /**
1435
- * <p>The name of the event source.</p>
1463
+ * <p>Lists the event sources in the configuration.</p>
1436
1464
  */
1437
1465
  EventSources?: EventSourcesConfig;
1438
1466
  }
@@ -2667,7 +2695,7 @@ export interface ProactiveAnomalySummary {
2667
2695
  */
2668
2696
  Limit?: number;
2669
2697
  /**
2670
- * <p>Returns the metadata of the source.</p>
2698
+ * <p>The metadata of the source which detects proactive anomalies.</p>
2671
2699
  */
2672
2700
  SourceMetadata?: AnomalySourceMetadata;
2673
2701
  /**
@@ -3280,9 +3308,10 @@ export declare namespace ListNotificationChannelsRequest {
3280
3308
  * you when DevOps Guru creates an insight. The one
3281
3309
  * supported notification channel is Amazon Simple Notification Service (Amazon SNS). </p>
3282
3310
  * <p>If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission
3283
- * to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account.
3311
+ * to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics.
3284
3312
  * For more information, see <a href="https://docs.aws.amazon.com/devops-guru/latest/userguide/sns-required-permissions.html">Permissions
3285
3313
  * for cross account Amazon SNS topics</a>.</p>
3314
+ * <p>If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. For more information, see Permissions for cross account Amazon SNS topics.</p>
3286
3315
  * <p>If you use an Amazon SNS topic that is encrypted by an Amazon Web Services Key Management Service customer-managed key (CMK), then you must add permissions
3287
3316
  * to the CMK. For more information, see <a href="https://docs.aws.amazon.com/devops-guru/latest/userguide/sns-kms-permissions.html">Permissions for
3288
3317
  * Amazon Web Services KMS–encrypted Amazon SNS topics</a>.</p>
@@ -3957,7 +3986,8 @@ export declare namespace StartCostEstimationResponse {
3957
3986
  }
3958
3987
  export interface UpdateEventSourcesConfigRequest {
3959
3988
  /**
3960
- * <p>The name of the event source.</p>
3989
+ * <p>Configuration information about the integration of DevOps Guru as the Consumer via
3990
+ * EventBridge with another AWS Service.</p>
3961
3991
  */
3962
3992
  EventSources?: EventSourcesConfig;
3963
3993
  }
@@ -1,6 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
3
  import { AddNotificationChannelCommandInput, AddNotificationChannelCommandOutput } from "../commands/AddNotificationChannelCommand";
4
+ import { DeleteInsightCommandInput, DeleteInsightCommandOutput } from "../commands/DeleteInsightCommand";
4
5
  import { DescribeAccountHealthCommandInput, DescribeAccountHealthCommandOutput } from "../commands/DescribeAccountHealthCommand";
5
6
  import { DescribeAccountOverviewCommandInput, DescribeAccountOverviewCommandOutput } from "../commands/DescribeAccountOverviewCommand";
6
7
  import { DescribeAnomalyCommandInput, DescribeAnomalyCommandOutput } from "../commands/DescribeAnomalyCommand";
@@ -29,6 +30,7 @@ import { UpdateEventSourcesConfigCommandInput, UpdateEventSourcesConfigCommandOu
29
30
  import { UpdateResourceCollectionCommandInput, UpdateResourceCollectionCommandOutput } from "../commands/UpdateResourceCollectionCommand";
30
31
  import { UpdateServiceIntegrationCommandInput, UpdateServiceIntegrationCommandOutput } from "../commands/UpdateServiceIntegrationCommand";
31
32
  export declare const serializeAws_restJson1AddNotificationChannelCommand: (input: AddNotificationChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
33
+ export declare const serializeAws_restJson1DeleteInsightCommand: (input: DeleteInsightCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
32
34
  export declare const serializeAws_restJson1DescribeAccountHealthCommand: (input: DescribeAccountHealthCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
33
35
  export declare const serializeAws_restJson1DescribeAccountOverviewCommand: (input: DescribeAccountOverviewCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
34
36
  export declare const serializeAws_restJson1DescribeAnomalyCommand: (input: DescribeAnomalyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -57,6 +59,7 @@ export declare const serializeAws_restJson1UpdateEventSourcesConfigCommand: (inp
57
59
  export declare const serializeAws_restJson1UpdateResourceCollectionCommand: (input: UpdateResourceCollectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
58
60
  export declare const serializeAws_restJson1UpdateServiceIntegrationCommand: (input: UpdateServiceIntegrationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
59
61
  export declare const deserializeAws_restJson1AddNotificationChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AddNotificationChannelCommandOutput>;
62
+ export declare const deserializeAws_restJson1DeleteInsightCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteInsightCommandOutput>;
60
63
  export declare const deserializeAws_restJson1DescribeAccountHealthCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeAccountHealthCommandOutput>;
61
64
  export declare const deserializeAws_restJson1DescribeAccountOverviewCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeAccountOverviewCommandOutput>;
62
65
  export declare const deserializeAws_restJson1DescribeAnomalyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeAnomalyCommandOutput>;
@@ -1,5 +1,6 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AddNotificationChannelCommandInput, AddNotificationChannelCommandOutput } from "./commands/AddNotificationChannelCommand";
3
+ import { DeleteInsightCommandInput, DeleteInsightCommandOutput } from "./commands/DeleteInsightCommand";
3
4
  import { DescribeAccountHealthCommandInput, DescribeAccountHealthCommandOutput } from "./commands/DescribeAccountHealthCommand";
4
5
  import { DescribeAccountOverviewCommandInput, DescribeAccountOverviewCommandOutput } from "./commands/DescribeAccountOverviewCommand";
5
6
  import { DescribeAnomalyCommandInput, DescribeAnomalyCommandOutput } from "./commands/DescribeAnomalyCommand";
@@ -35,6 +36,10 @@ export declare class DevOpsGuru extends DevOpsGuruClient {
35
36
  addNotificationChannel(args: AddNotificationChannelCommandInput, cb: (err: any, data?: AddNotificationChannelCommandOutput) => void): void;
36
37
  addNotificationChannel(args: AddNotificationChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddNotificationChannelCommandOutput) => void): void;
37
38
 
39
+ deleteInsight(args: DeleteInsightCommandInput, options?: __HttpHandlerOptions): Promise<DeleteInsightCommandOutput>;
40
+ deleteInsight(args: DeleteInsightCommandInput, cb: (err: any, data?: DeleteInsightCommandOutput) => void): void;
41
+ deleteInsight(args: DeleteInsightCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteInsightCommandOutput) => void): void;
42
+
38
43
  describeAccountHealth(args: DescribeAccountHealthCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAccountHealthCommandOutput>;
39
44
  describeAccountHealth(args: DescribeAccountHealthCommandInput, cb: (err: any, data?: DescribeAccountHealthCommandOutput) => void): void;
40
45
  describeAccountHealth(args: DescribeAccountHealthCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAccountHealthCommandOutput) => void): void;
@@ -7,6 +7,7 @@ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AddNotificationChannelCommandInput, AddNotificationChannelCommandOutput } from "./commands/AddNotificationChannelCommand";
10
+ import { DeleteInsightCommandInput, DeleteInsightCommandOutput } from "./commands/DeleteInsightCommand";
10
11
  import { DescribeAccountHealthCommandInput, DescribeAccountHealthCommandOutput } from "./commands/DescribeAccountHealthCommand";
11
12
  import { DescribeAccountOverviewCommandInput, DescribeAccountOverviewCommandOutput } from "./commands/DescribeAccountOverviewCommand";
12
13
  import { DescribeAnomalyCommandInput, DescribeAnomalyCommandOutput } from "./commands/DescribeAnomalyCommand";
@@ -34,8 +35,8 @@ import { StartCostEstimationCommandInput, StartCostEstimationCommandOutput } fro
34
35
  import { UpdateEventSourcesConfigCommandInput, UpdateEventSourcesConfigCommandOutput } from "./commands/UpdateEventSourcesConfigCommand";
35
36
  import { UpdateResourceCollectionCommandInput, UpdateResourceCollectionCommandOutput } from "./commands/UpdateResourceCollectionCommand";
36
37
  import { UpdateServiceIntegrationCommandInput, UpdateServiceIntegrationCommandOutput } from "./commands/UpdateServiceIntegrationCommand";
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;
38
+ export declare type ServiceInputTypes = AddNotificationChannelCommandInput | DeleteInsightCommandInput | 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;
39
+ export declare type ServiceOutputTypes = AddNotificationChannelCommandOutput | DeleteInsightCommandOutput | 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;
39
40
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
40
41
 
41
42
  requestHandler?: __HttpHandler;
@@ -0,0 +1,17 @@
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 { DeleteInsightRequest, DeleteInsightResponse } from "../models/models_0";
5
+ export interface DeleteInsightCommandInput extends DeleteInsightRequest {
6
+ }
7
+ export interface DeleteInsightCommandOutput extends DeleteInsightResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class DeleteInsightCommand extends $Command<DeleteInsightCommandInput, DeleteInsightCommandOutput, DevOpsGuruClientResolvedConfig> {
11
+ readonly input: DeleteInsightCommandInput;
12
+ constructor(input: DeleteInsightCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DevOpsGuruClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteInsightCommandInput, DeleteInsightCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./AddNotificationChannelCommand";
2
+ export * from "./DeleteInsightCommand";
2
3
  export * from "./DescribeAccountHealthCommand";
3
4
  export * from "./DescribeAccountOverviewCommand";
4
5
  export * from "./DescribeAnomalyCommand";
@@ -402,6 +402,20 @@ export declare enum AnomalyType {
402
402
  CAUSAL = "CAUSAL",
403
403
  CONTEXTUAL = "CONTEXTUAL"
404
404
  }
405
+ export interface DeleteInsightRequest {
406
+
407
+ Id: string | undefined;
408
+ }
409
+ export declare namespace DeleteInsightRequest {
410
+
411
+ const filterSensitiveLog: (obj: DeleteInsightRequest) => any;
412
+ }
413
+ export interface DeleteInsightResponse {
414
+ }
415
+ export declare namespace DeleteInsightResponse {
416
+
417
+ const filterSensitiveLog: (obj: DeleteInsightResponse) => any;
418
+ }
405
419
  export interface DescribeAccountHealthRequest {
406
420
  }
407
421
  export declare namespace DescribeAccountHealthRequest {
@@ -1,6 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
3
  import { AddNotificationChannelCommandInput, AddNotificationChannelCommandOutput } from "../commands/AddNotificationChannelCommand";
4
+ import { DeleteInsightCommandInput, DeleteInsightCommandOutput } from "../commands/DeleteInsightCommand";
4
5
  import { DescribeAccountHealthCommandInput, DescribeAccountHealthCommandOutput } from "../commands/DescribeAccountHealthCommand";
5
6
  import { DescribeAccountOverviewCommandInput, DescribeAccountOverviewCommandOutput } from "../commands/DescribeAccountOverviewCommand";
6
7
  import { DescribeAnomalyCommandInput, DescribeAnomalyCommandOutput } from "../commands/DescribeAnomalyCommand";
@@ -29,6 +30,7 @@ import { UpdateEventSourcesConfigCommandInput, UpdateEventSourcesConfigCommandOu
29
30
  import { UpdateResourceCollectionCommandInput, UpdateResourceCollectionCommandOutput } from "../commands/UpdateResourceCollectionCommand";
30
31
  import { UpdateServiceIntegrationCommandInput, UpdateServiceIntegrationCommandOutput } from "../commands/UpdateServiceIntegrationCommand";
31
32
  export declare const serializeAws_restJson1AddNotificationChannelCommand: (input: AddNotificationChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
33
+ export declare const serializeAws_restJson1DeleteInsightCommand: (input: DeleteInsightCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
32
34
  export declare const serializeAws_restJson1DescribeAccountHealthCommand: (input: DescribeAccountHealthCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
33
35
  export declare const serializeAws_restJson1DescribeAccountOverviewCommand: (input: DescribeAccountOverviewCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
34
36
  export declare const serializeAws_restJson1DescribeAnomalyCommand: (input: DescribeAnomalyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -57,6 +59,7 @@ export declare const serializeAws_restJson1UpdateEventSourcesConfigCommand: (inp
57
59
  export declare const serializeAws_restJson1UpdateResourceCollectionCommand: (input: UpdateResourceCollectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
58
60
  export declare const serializeAws_restJson1UpdateServiceIntegrationCommand: (input: UpdateServiceIntegrationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
59
61
  export declare const deserializeAws_restJson1AddNotificationChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AddNotificationChannelCommandOutput>;
62
+ export declare const deserializeAws_restJson1DeleteInsightCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteInsightCommandOutput>;
60
63
  export declare const deserializeAws_restJson1DescribeAccountHealthCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeAccountHealthCommandOutput>;
61
64
  export declare const deserializeAws_restJson1DescribeAccountOverviewCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeAccountOverviewCommandOutput>;
62
65
  export declare const deserializeAws_restJson1DescribeAnomalyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeAnomalyCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-devops-guru",
3
3
  "description": "AWS SDK for JavaScript Devops Guru Client for Node.js, Browser and React Native",
4
- "version": "3.67.0",
4
+ "version": "3.69.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",