@aws-sdk/client-devops-guru 3.51.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/DevOpsGuru.js +30 -0
  3. package/dist-cjs/commands/DescribeEventSourcesConfigCommand.js +36 -0
  4. package/dist-cjs/commands/UpdateEventSourcesConfigCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/index.js +3 -0
  7. package/dist-cjs/models/DevOpsGuruServiceException.js +11 -0
  8. package/dist-cjs/models/models_0.js +160 -3
  9. package/dist-cjs/protocols/Aws_restJson1.js +527 -1096
  10. package/dist-es/DevOpsGuru.js +30 -0
  11. package/dist-es/commands/DescribeEventSourcesConfigCommand.js +39 -0
  12. package/dist-es/commands/UpdateEventSourcesConfigCommand.js +39 -0
  13. package/dist-es/commands/index.js +2 -0
  14. package/dist-es/index.js +1 -0
  15. package/dist-es/models/DevOpsGuruServiceException.js +12 -0
  16. package/dist-es/models/models_0.js +136 -1
  17. package/dist-es/protocols/Aws_restJson1.js +891 -1208
  18. package/dist-types/DevOpsGuru.d.ts +19 -4
  19. package/dist-types/DevOpsGuruClient.d.ts +6 -4
  20. package/dist-types/commands/DescribeEventSourcesConfigCommand.d.ts +36 -0
  21. package/dist-types/commands/SearchOrganizationInsightsCommand.d.ts +4 -4
  22. package/dist-types/commands/UpdateEventSourcesConfigCommand.d.ts +35 -0
  23. package/dist-types/commands/index.d.ts +2 -0
  24. package/dist-types/index.d.ts +1 -0
  25. package/dist-types/models/DevOpsGuruServiceException.d.ts +10 -0
  26. package/dist-types/models/models_0.d.ts +394 -220
  27. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  28. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  29. package/dist-types/runtimeConfig.d.ts +1 -1
  30. package/dist-types/runtimeConfig.native.d.ts +1 -1
  31. package/dist-types/ts3.4/DevOpsGuru.d.ts +10 -0
  32. package/dist-types/ts3.4/DevOpsGuruClient.d.ts +6 -4
  33. package/dist-types/ts3.4/commands/DescribeEventSourcesConfigCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/UpdateEventSourcesConfigCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  36. package/dist-types/ts3.4/index.d.ts +1 -0
  37. package/dist-types/ts3.4/models/DevOpsGuruServiceException.d.ts +6 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +114 -22
  39. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
  40. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  41. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  42. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  43. package/package.json +33 -33
@@ -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") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeEventSourcesConfigRequest, DescribeEventSourcesConfigResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeEventSourcesConfigCommand, serializeAws_restJson1DescribeEventSourcesConfigCommand, } from "../protocols/Aws_restJson1";
6
+ var DescribeEventSourcesConfigCommand = (function (_super) {
7
+ __extends(DescribeEventSourcesConfigCommand, _super);
8
+ function DescribeEventSourcesConfigCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeEventSourcesConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DevOpsGuruClient";
18
+ var commandName = "DescribeEventSourcesConfigCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeEventSourcesConfigRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeEventSourcesConfigResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeEventSourcesConfigCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DescribeEventSourcesConfigCommand(input, context);
33
+ };
34
+ DescribeEventSourcesConfigCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DescribeEventSourcesConfigCommand(output, context);
36
+ };
37
+ return DescribeEventSourcesConfigCommand;
38
+ }($Command));
39
+ export { DescribeEventSourcesConfigCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateEventSourcesConfigRequest, UpdateEventSourcesConfigResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateEventSourcesConfigCommand, serializeAws_restJson1UpdateEventSourcesConfigCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateEventSourcesConfigCommand = (function (_super) {
7
+ __extends(UpdateEventSourcesConfigCommand, _super);
8
+ function UpdateEventSourcesConfigCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateEventSourcesConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DevOpsGuruClient";
18
+ var commandName = "UpdateEventSourcesConfigCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateEventSourcesConfigRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateEventSourcesConfigResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateEventSourcesConfigCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateEventSourcesConfigCommand(input, context);
33
+ };
34
+ UpdateEventSourcesConfigCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateEventSourcesConfigCommand(output, context);
36
+ };
37
+ return UpdateEventSourcesConfigCommand;
38
+ }($Command));
39
+ export { UpdateEventSourcesConfigCommand };
@@ -2,6 +2,7 @@ export * from "./AddNotificationChannelCommand";
2
2
  export * from "./DescribeAccountHealthCommand";
3
3
  export * from "./DescribeAccountOverviewCommand";
4
4
  export * from "./DescribeAnomalyCommand";
5
+ export * from "./DescribeEventSourcesConfigCommand";
5
6
  export * from "./DescribeFeedbackCommand";
6
7
  export * from "./DescribeInsightCommand";
7
8
  export * from "./DescribeOrganizationHealthCommand";
@@ -22,5 +23,6 @@ export * from "./RemoveNotificationChannelCommand";
22
23
  export * from "./SearchInsightsCommand";
23
24
  export * from "./SearchOrganizationInsightsCommand";
24
25
  export * from "./StartCostEstimationCommand";
26
+ export * from "./UpdateEventSourcesConfigCommand";
25
27
  export * from "./UpdateResourceCollectionCommand";
26
28
  export * from "./UpdateServiceIntegrationCommand";
package/dist-es/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./DevOpsGuruClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { DevOpsGuruServiceException } from "./models/DevOpsGuruServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var DevOpsGuruServiceException = (function (_super) {
4
+ __extends(DevOpsGuruServiceException, _super);
5
+ function DevOpsGuruServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, DevOpsGuruServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return DevOpsGuruServiceException;
11
+ }(__ServiceException));
12
+ export { DevOpsGuruServiceException };
@@ -1,4 +1,18 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
+ import { DevOpsGuruServiceException as __BaseException } from "./DevOpsGuruServiceException";
3
+ var AccessDeniedException = (function (_super) {
4
+ __extends(AccessDeniedException, _super);
5
+ function AccessDeniedException(opts) {
6
+ var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
7
+ _this.name = "AccessDeniedException";
8
+ _this.$fault = "client";
9
+ Object.setPrototypeOf(_this, AccessDeniedException.prototype);
10
+ _this.Message = opts.Message;
11
+ return _this;
12
+ }
13
+ return AccessDeniedException;
14
+ }(__BaseException));
15
+ export { AccessDeniedException };
2
16
  export var AccountInsightHealth;
3
17
  (function (AccountInsightHealth) {
4
18
  AccountInsightHealth.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -23,6 +37,79 @@ export var AddNotificationChannelResponse;
23
37
  (function (AddNotificationChannelResponse) {
24
38
  AddNotificationChannelResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
39
  })(AddNotificationChannelResponse || (AddNotificationChannelResponse = {}));
40
+ var ConflictException = (function (_super) {
41
+ __extends(ConflictException, _super);
42
+ function ConflictException(opts) {
43
+ var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
44
+ _this.name = "ConflictException";
45
+ _this.$fault = "client";
46
+ Object.setPrototypeOf(_this, ConflictException.prototype);
47
+ _this.Message = opts.Message;
48
+ _this.ResourceId = opts.ResourceId;
49
+ _this.ResourceType = opts.ResourceType;
50
+ return _this;
51
+ }
52
+ return ConflictException;
53
+ }(__BaseException));
54
+ export { ConflictException };
55
+ var InternalServerException = (function (_super) {
56
+ __extends(InternalServerException, _super);
57
+ function InternalServerException(opts) {
58
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
59
+ _this.name = "InternalServerException";
60
+ _this.$fault = "server";
61
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
62
+ _this.Message = opts.Message;
63
+ _this.RetryAfterSeconds = opts.RetryAfterSeconds;
64
+ return _this;
65
+ }
66
+ return InternalServerException;
67
+ }(__BaseException));
68
+ export { InternalServerException };
69
+ var ResourceNotFoundException = (function (_super) {
70
+ __extends(ResourceNotFoundException, _super);
71
+ function ResourceNotFoundException(opts) {
72
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
73
+ _this.name = "ResourceNotFoundException";
74
+ _this.$fault = "client";
75
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
76
+ _this.Message = opts.Message;
77
+ _this.ResourceId = opts.ResourceId;
78
+ _this.ResourceType = opts.ResourceType;
79
+ return _this;
80
+ }
81
+ return ResourceNotFoundException;
82
+ }(__BaseException));
83
+ export { ResourceNotFoundException };
84
+ var ServiceQuotaExceededException = (function (_super) {
85
+ __extends(ServiceQuotaExceededException, _super);
86
+ function ServiceQuotaExceededException(opts) {
87
+ var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
88
+ _this.name = "ServiceQuotaExceededException";
89
+ _this.$fault = "client";
90
+ Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
91
+ _this.Message = opts.Message;
92
+ return _this;
93
+ }
94
+ return ServiceQuotaExceededException;
95
+ }(__BaseException));
96
+ export { ServiceQuotaExceededException };
97
+ var ThrottlingException = (function (_super) {
98
+ __extends(ThrottlingException, _super);
99
+ function ThrottlingException(opts) {
100
+ var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
101
+ _this.name = "ThrottlingException";
102
+ _this.$fault = "client";
103
+ Object.setPrototypeOf(_this, ThrottlingException.prototype);
104
+ _this.Message = opts.Message;
105
+ _this.QuotaCode = opts.QuotaCode;
106
+ _this.ServiceCode = opts.ServiceCode;
107
+ _this.RetryAfterSeconds = opts.RetryAfterSeconds;
108
+ return _this;
109
+ }
110
+ return ThrottlingException;
111
+ }(__BaseException));
112
+ export { ThrottlingException };
26
113
  export var ValidationExceptionField;
27
114
  (function (ValidationExceptionField) {
28
115
  ValidationExceptionField.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -36,6 +123,30 @@ export var ValidationExceptionReason;
36
123
  ValidationExceptionReason["PARAMETER_INCONSISTENT_WITH_SERVICE_STATE"] = "PARAMETER_INCONSISTENT_WITH_SERVICE_STATE";
37
124
  ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
38
125
  })(ValidationExceptionReason || (ValidationExceptionReason = {}));
126
+ var ValidationException = (function (_super) {
127
+ __extends(ValidationException, _super);
128
+ function ValidationException(opts) {
129
+ var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
130
+ _this.name = "ValidationException";
131
+ _this.$fault = "client";
132
+ Object.setPrototypeOf(_this, ValidationException.prototype);
133
+ _this.Message = opts.Message;
134
+ _this.Reason = opts.Reason;
135
+ _this.Fields = opts.Fields;
136
+ return _this;
137
+ }
138
+ return ValidationException;
139
+ }(__BaseException));
140
+ export { ValidationException };
141
+ export var EventSourceOptInStatus;
142
+ (function (EventSourceOptInStatus) {
143
+ EventSourceOptInStatus["DISABLED"] = "DISABLED";
144
+ EventSourceOptInStatus["ENABLED"] = "ENABLED";
145
+ })(EventSourceOptInStatus || (EventSourceOptInStatus = {}));
146
+ export var AmazonCodeGuruProfilerIntegration;
147
+ (function (AmazonCodeGuruProfilerIntegration) {
148
+ AmazonCodeGuruProfilerIntegration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
149
+ })(AmazonCodeGuruProfilerIntegration || (AmazonCodeGuruProfilerIntegration = {}));
39
150
  export var AnomalyReportedTimeRange;
40
151
  (function (AnomalyReportedTimeRange) {
41
152
  AnomalyReportedTimeRange.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -119,6 +230,10 @@ export var AnomalySourceDetails;
119
230
  (function (AnomalySourceDetails) {
120
231
  AnomalySourceDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
121
232
  })(AnomalySourceDetails || (AnomalySourceDetails = {}));
233
+ export var AnomalySourceMetadata;
234
+ (function (AnomalySourceMetadata) {
235
+ AnomalySourceMetadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
236
+ })(AnomalySourceMetadata || (AnomalySourceMetadata = {}));
122
237
  export var AnomalyStatus;
123
238
  (function (AnomalyStatus) {
124
239
  AnomalyStatus["CLOSED"] = "CLOSED";
@@ -181,6 +296,18 @@ export var DescribeAnomalyResponse;
181
296
  (function (DescribeAnomalyResponse) {
182
297
  DescribeAnomalyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
183
298
  })(DescribeAnomalyResponse || (DescribeAnomalyResponse = {}));
299
+ export var DescribeEventSourcesConfigRequest;
300
+ (function (DescribeEventSourcesConfigRequest) {
301
+ DescribeEventSourcesConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
302
+ })(DescribeEventSourcesConfigRequest || (DescribeEventSourcesConfigRequest = {}));
303
+ export var EventSourcesConfig;
304
+ (function (EventSourcesConfig) {
305
+ EventSourcesConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
306
+ })(EventSourcesConfig || (EventSourcesConfig = {}));
307
+ export var DescribeEventSourcesConfigResponse;
308
+ (function (DescribeEventSourcesConfigResponse) {
309
+ DescribeEventSourcesConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
310
+ })(DescribeEventSourcesConfigResponse || (DescribeEventSourcesConfigResponse = {}));
184
311
  export var DescribeFeedbackRequest;
185
312
  (function (DescribeFeedbackRequest) {
186
313
  DescribeFeedbackRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -632,6 +759,14 @@ export var StartCostEstimationResponse;
632
759
  (function (StartCostEstimationResponse) {
633
760
  StartCostEstimationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
634
761
  })(StartCostEstimationResponse || (StartCostEstimationResponse = {}));
762
+ export var UpdateEventSourcesConfigRequest;
763
+ (function (UpdateEventSourcesConfigRequest) {
764
+ UpdateEventSourcesConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
765
+ })(UpdateEventSourcesConfigRequest || (UpdateEventSourcesConfigRequest = {}));
766
+ export var UpdateEventSourcesConfigResponse;
767
+ (function (UpdateEventSourcesConfigResponse) {
768
+ UpdateEventSourcesConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
769
+ })(UpdateEventSourcesConfigResponse || (UpdateEventSourcesConfigResponse = {}));
635
770
  export var UpdateResourceCollectionAction;
636
771
  (function (UpdateResourceCollectionAction) {
637
772
  UpdateResourceCollectionAction["ADD"] = "ADD";