@aws-sdk/client-ssm-incidents 3.451.0 → 3.454.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 (37) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/SSMIncidents.js +4 -0
  3. package/dist-cjs/commands/BatchGetIncidentFindingsCommand.js +51 -0
  4. package/dist-cjs/commands/ListIncidentFindingsCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +77 -67
  7. package/dist-cjs/pagination/ListIncidentFindingsPaginator.js +29 -0
  8. package/dist-cjs/pagination/index.js +1 -0
  9. package/dist-cjs/protocols/Aws_restJson1.js +199 -2
  10. package/dist-es/SSMIncidents.js +4 -0
  11. package/dist-es/commands/BatchGetIncidentFindingsCommand.js +47 -0
  12. package/dist-es/commands/ListIncidentFindingsCommand.js +47 -0
  13. package/dist-es/commands/index.js +2 -0
  14. package/dist-es/models/models_0.js +72 -62
  15. package/dist-es/pagination/ListIncidentFindingsPaginator.js +25 -0
  16. package/dist-es/pagination/index.js +1 -0
  17. package/dist-es/protocols/Aws_restJson1.js +193 -0
  18. package/dist-types/SSMIncidents.d.ts +14 -0
  19. package/dist-types/SSMIncidentsClient.d.ts +4 -2
  20. package/dist-types/commands/BatchGetIncidentFindingsCommand.d.ts +122 -0
  21. package/dist-types/commands/ListIncidentFindingsCommand.d.ts +101 -0
  22. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  23. package/dist-types/commands/index.d.ts +2 -0
  24. package/dist-types/models/models_0.d.ts +467 -157
  25. package/dist-types/pagination/ListIncidentFindingsPaginator.d.ts +7 -0
  26. package/dist-types/pagination/index.d.ts +1 -0
  27. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  28. package/dist-types/ts3.4/SSMIncidents.d.ts +34 -0
  29. package/dist-types/ts3.4/SSMIncidentsClient.d.ts +12 -0
  30. package/dist-types/ts3.4/commands/BatchGetIncidentFindingsCommand.d.ts +42 -0
  31. package/dist-types/ts3.4/commands/ListIncidentFindingsCommand.d.ts +42 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +114 -44
  34. package/dist-types/ts3.4/pagination/ListIncidentFindingsPaginator.d.ts +11 -0
  35. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  36. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  37. package/package.json +2 -2
package/README.md CHANGED
@@ -210,6 +210,14 @@ see LICENSE for more information.
210
210
 
211
211
  ## Client Commands (Operations List)
212
212
 
213
+ <details>
214
+ <summary>
215
+ BatchGetIncidentFindings
216
+ </summary>
217
+
218
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-incidents/classes/batchgetincidentfindingscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-incidents/interfaces/batchgetincidentfindingscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-incidents/interfaces/batchgetincidentfindingscommandoutput.html)
219
+
220
+ </details>
213
221
  <details>
214
222
  <summary>
215
223
  CreateReplicationSet
@@ -313,6 +321,14 @@ GetTimelineEvent
313
321
 
314
322
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-incidents/classes/gettimelineeventcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-incidents/interfaces/gettimelineeventcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-incidents/interfaces/gettimelineeventcommandoutput.html)
315
323
 
324
+ </details>
325
+ <details>
326
+ <summary>
327
+ ListIncidentFindings
328
+ </summary>
329
+
330
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-incidents/classes/listincidentfindingscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-incidents/interfaces/listincidentfindingscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-incidents/interfaces/listincidentfindingscommandoutput.html)
331
+
316
332
  </details>
317
333
  <details>
318
334
  <summary>
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SSMIncidents = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
+ const BatchGetIncidentFindingsCommand_1 = require("./commands/BatchGetIncidentFindingsCommand");
5
6
  const CreateReplicationSetCommand_1 = require("./commands/CreateReplicationSetCommand");
6
7
  const CreateResponsePlanCommand_1 = require("./commands/CreateResponsePlanCommand");
7
8
  const CreateTimelineEventCommand_1 = require("./commands/CreateTimelineEventCommand");
@@ -15,6 +16,7 @@ const GetReplicationSetCommand_1 = require("./commands/GetReplicationSetCommand"
15
16
  const GetResourcePoliciesCommand_1 = require("./commands/GetResourcePoliciesCommand");
16
17
  const GetResponsePlanCommand_1 = require("./commands/GetResponsePlanCommand");
17
18
  const GetTimelineEventCommand_1 = require("./commands/GetTimelineEventCommand");
19
+ const ListIncidentFindingsCommand_1 = require("./commands/ListIncidentFindingsCommand");
18
20
  const ListIncidentRecordsCommand_1 = require("./commands/ListIncidentRecordsCommand");
19
21
  const ListRelatedItemsCommand_1 = require("./commands/ListRelatedItemsCommand");
20
22
  const ListReplicationSetsCommand_1 = require("./commands/ListReplicationSetsCommand");
@@ -33,6 +35,7 @@ const UpdateResponsePlanCommand_1 = require("./commands/UpdateResponsePlanComman
33
35
  const UpdateTimelineEventCommand_1 = require("./commands/UpdateTimelineEventCommand");
34
36
  const SSMIncidentsClient_1 = require("./SSMIncidentsClient");
35
37
  const commands = {
38
+ BatchGetIncidentFindingsCommand: BatchGetIncidentFindingsCommand_1.BatchGetIncidentFindingsCommand,
36
39
  CreateReplicationSetCommand: CreateReplicationSetCommand_1.CreateReplicationSetCommand,
37
40
  CreateResponsePlanCommand: CreateResponsePlanCommand_1.CreateResponsePlanCommand,
38
41
  CreateTimelineEventCommand: CreateTimelineEventCommand_1.CreateTimelineEventCommand,
@@ -46,6 +49,7 @@ const commands = {
46
49
  GetResourcePoliciesCommand: GetResourcePoliciesCommand_1.GetResourcePoliciesCommand,
47
50
  GetResponsePlanCommand: GetResponsePlanCommand_1.GetResponsePlanCommand,
48
51
  GetTimelineEventCommand: GetTimelineEventCommand_1.GetTimelineEventCommand,
52
+ ListIncidentFindingsCommand: ListIncidentFindingsCommand_1.ListIncidentFindingsCommand,
49
53
  ListIncidentRecordsCommand: ListIncidentRecordsCommand_1.ListIncidentRecordsCommand,
50
54
  ListRelatedItemsCommand: ListRelatedItemsCommand_1.ListRelatedItemsCommand,
51
55
  ListReplicationSetsCommand: ListReplicationSetsCommand_1.ListReplicationSetsCommand,
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchGetIncidentFindingsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class BatchGetIncidentFindingsCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchGetIncidentFindingsCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "SSMIncidentsClient";
29
+ const commandName = "BatchGetIncidentFindingsCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "SSMIncidents",
38
+ operation: "BatchGetIncidentFindings",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_BatchGetIncidentFindingsCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_BatchGetIncidentFindingsCommand)(output, context);
49
+ }
50
+ }
51
+ exports.BatchGetIncidentFindingsCommand = BatchGetIncidentFindingsCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListIncidentFindingsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListIncidentFindingsCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListIncidentFindingsCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "SSMIncidentsClient";
29
+ const commandName = "ListIncidentFindingsCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "SSMIncidents",
38
+ operation: "ListIncidentFindings",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_ListIncidentFindingsCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_ListIncidentFindingsCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListIncidentFindingsCommand = ListIncidentFindingsCommand;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./BatchGetIncidentFindingsCommand"), exports);
4
5
  tslib_1.__exportStar(require("./CreateReplicationSetCommand"), exports);
5
6
  tslib_1.__exportStar(require("./CreateResponsePlanCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateTimelineEventCommand"), exports);
@@ -14,6 +15,7 @@ tslib_1.__exportStar(require("./GetReplicationSetCommand"), exports);
14
15
  tslib_1.__exportStar(require("./GetResourcePoliciesCommand"), exports);
15
16
  tslib_1.__exportStar(require("./GetResponsePlanCommand"), exports);
16
17
  tslib_1.__exportStar(require("./GetTimelineEventCommand"), exports);
18
+ tslib_1.__exportStar(require("./ListIncidentFindingsCommand"), exports);
17
19
  tslib_1.__exportStar(require("./ListIncidentRecordsCommand"), exports);
18
20
  tslib_1.__exportStar(require("./ListRelatedItemsCommand"), exports);
19
21
  tslib_1.__exportStar(require("./ListReplicationSetsCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateReplicationSetAction = exports.RelatedItemsUpdate = exports.SortOrder = exports.TimelineEventSort = exports.ItemValue = exports.ItemType = exports.ReplicationSetStatus = exports.RegionStatus = exports.IncidentRecordStatus = exports.EventReference = exports.ResourceNotFoundException = exports.Integration = exports.NotificationTargetItem = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ServiceCode = exports.InternalServerException = exports.ConflictException = exports.ResourceType = exports.Condition = exports.ChatChannel = exports.AutomationExecution = exports.AttributeValueList = exports.Action = exports.SsmTargetAccount = exports.DynamicSsmParameterValue = exports.VariableType = exports.AccessDeniedException = void 0;
3
+ exports.UpdateReplicationSetAction = exports.RelatedItemsUpdate = exports.SortOrder = exports.TimelineEventSort = exports.ItemValue = exports.ItemType = exports.ReplicationSetStatus = exports.RegionStatus = exports.IncidentRecordStatus = exports.EventReference = exports.Integration = exports.NotificationTargetItem = exports.ServiceQuotaExceededException = exports.ConflictException = exports.Condition = exports.ChatChannel = exports.ValidationException = exports.ThrottlingException = exports.ServiceCode = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.FindingDetails = exports.AutomationExecution = exports.AttributeValueList = exports.Action = exports.SsmTargetAccount = exports.DynamicSsmParameterValue = exports.VariableType = exports.AccessDeniedException = void 0;
4
4
  const SSMIncidentsServiceException_1 = require("./SSMIncidentsServiceException");
5
5
  class AccessDeniedException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
6
6
  constructor(opts) {
@@ -57,6 +57,82 @@ var AutomationExecution;
57
57
  return visitor._(value.$unknown[0], value.$unknown[1]);
58
58
  };
59
59
  })(AutomationExecution = exports.AutomationExecution || (exports.AutomationExecution = {}));
60
+ var FindingDetails;
61
+ (function (FindingDetails) {
62
+ FindingDetails.visit = (value, visitor) => {
63
+ if (value.codeDeployDeployment !== undefined)
64
+ return visitor.codeDeployDeployment(value.codeDeployDeployment);
65
+ if (value.cloudFormationStackUpdate !== undefined)
66
+ return visitor.cloudFormationStackUpdate(value.cloudFormationStackUpdate);
67
+ return visitor._(value.$unknown[0], value.$unknown[1]);
68
+ };
69
+ })(FindingDetails = exports.FindingDetails || (exports.FindingDetails = {}));
70
+ class InternalServerException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
71
+ constructor(opts) {
72
+ super({
73
+ name: "InternalServerException",
74
+ $fault: "server",
75
+ ...opts,
76
+ });
77
+ this.name = "InternalServerException";
78
+ this.$fault = "server";
79
+ Object.setPrototypeOf(this, InternalServerException.prototype);
80
+ }
81
+ }
82
+ exports.InternalServerException = InternalServerException;
83
+ exports.ResourceType = {
84
+ INCIDENT_RECORD: "INCIDENT_RECORD",
85
+ REPLICATION_SET: "REPLICATION_SET",
86
+ RESOURCE_POLICY: "RESOURCE_POLICY",
87
+ RESPONSE_PLAN: "RESPONSE_PLAN",
88
+ TIMELINE_EVENT: "TIMELINE_EVENT",
89
+ };
90
+ class ResourceNotFoundException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
91
+ constructor(opts) {
92
+ super({
93
+ name: "ResourceNotFoundException",
94
+ $fault: "client",
95
+ ...opts,
96
+ });
97
+ this.name = "ResourceNotFoundException";
98
+ this.$fault = "client";
99
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
100
+ this.resourceIdentifier = opts.resourceIdentifier;
101
+ this.resourceType = opts.resourceType;
102
+ }
103
+ }
104
+ exports.ResourceNotFoundException = ResourceNotFoundException;
105
+ exports.ServiceCode = {
106
+ SSM_INCIDENTS: "ssm-incidents",
107
+ };
108
+ class ThrottlingException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
109
+ constructor(opts) {
110
+ super({
111
+ name: "ThrottlingException",
112
+ $fault: "client",
113
+ ...opts,
114
+ });
115
+ this.name = "ThrottlingException";
116
+ this.$fault = "client";
117
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
118
+ this.serviceCode = opts.serviceCode;
119
+ this.quotaCode = opts.quotaCode;
120
+ }
121
+ }
122
+ exports.ThrottlingException = ThrottlingException;
123
+ class ValidationException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
124
+ constructor(opts) {
125
+ super({
126
+ name: "ValidationException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ this.name = "ValidationException";
131
+ this.$fault = "client";
132
+ Object.setPrototypeOf(this, ValidationException.prototype);
133
+ }
134
+ }
135
+ exports.ValidationException = ValidationException;
60
136
  var ChatChannel;
61
137
  (function (ChatChannel) {
62
138
  ChatChannel.visit = (value, visitor) => {
@@ -79,13 +155,6 @@ var Condition;
79
155
  return visitor._(value.$unknown[0], value.$unknown[1]);
80
156
  };
81
157
  })(Condition = exports.Condition || (exports.Condition = {}));
82
- exports.ResourceType = {
83
- INCIDENT_RECORD: "INCIDENT_RECORD",
84
- REPLICATION_SET: "REPLICATION_SET",
85
- RESOURCE_POLICY: "RESOURCE_POLICY",
86
- RESPONSE_PLAN: "RESPONSE_PLAN",
87
- TIMELINE_EVENT: "TIMELINE_EVENT",
88
- };
89
158
  class ConflictException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
90
159
  constructor(opts) {
91
160
  super({
@@ -102,22 +171,6 @@ class ConflictException extends SSMIncidentsServiceException_1.SSMIncidentsServi
102
171
  }
103
172
  }
104
173
  exports.ConflictException = ConflictException;
105
- class InternalServerException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
106
- constructor(opts) {
107
- super({
108
- name: "InternalServerException",
109
- $fault: "server",
110
- ...opts,
111
- });
112
- this.name = "InternalServerException";
113
- this.$fault = "server";
114
- Object.setPrototypeOf(this, InternalServerException.prototype);
115
- }
116
- }
117
- exports.InternalServerException = InternalServerException;
118
- exports.ServiceCode = {
119
- SSM_INCIDENTS: "ssm-incidents",
120
- };
121
174
  class ServiceQuotaExceededException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
122
175
  constructor(opts) {
123
176
  super({
@@ -135,34 +188,6 @@ class ServiceQuotaExceededException extends SSMIncidentsServiceException_1.SSMIn
135
188
  }
136
189
  }
137
190
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
138
- class ThrottlingException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
139
- constructor(opts) {
140
- super({
141
- name: "ThrottlingException",
142
- $fault: "client",
143
- ...opts,
144
- });
145
- this.name = "ThrottlingException";
146
- this.$fault = "client";
147
- Object.setPrototypeOf(this, ThrottlingException.prototype);
148
- this.serviceCode = opts.serviceCode;
149
- this.quotaCode = opts.quotaCode;
150
- }
151
- }
152
- exports.ThrottlingException = ThrottlingException;
153
- class ValidationException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
154
- constructor(opts) {
155
- super({
156
- name: "ValidationException",
157
- $fault: "client",
158
- ...opts,
159
- });
160
- this.name = "ValidationException";
161
- this.$fault = "client";
162
- Object.setPrototypeOf(this, ValidationException.prototype);
163
- }
164
- }
165
- exports.ValidationException = ValidationException;
166
191
  var NotificationTargetItem;
167
192
  (function (NotificationTargetItem) {
168
193
  NotificationTargetItem.visit = (value, visitor) => {
@@ -179,21 +204,6 @@ var Integration;
179
204
  return visitor._(value.$unknown[0], value.$unknown[1]);
180
205
  };
181
206
  })(Integration = exports.Integration || (exports.Integration = {}));
182
- class ResourceNotFoundException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
183
- constructor(opts) {
184
- super({
185
- name: "ResourceNotFoundException",
186
- $fault: "client",
187
- ...opts,
188
- });
189
- this.name = "ResourceNotFoundException";
190
- this.$fault = "client";
191
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
192
- this.resourceIdentifier = opts.resourceIdentifier;
193
- this.resourceType = opts.resourceType;
194
- }
195
- }
196
- exports.ResourceNotFoundException = ResourceNotFoundException;
197
207
  var EventReference;
198
208
  (function (EventReference) {
199
209
  EventReference.visit = (value, visitor) => {
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListIncidentFindings = void 0;
4
+ const ListIncidentFindingsCommand_1 = require("../commands/ListIncidentFindingsCommand");
5
+ const SSMIncidentsClient_1 = require("../SSMIncidentsClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListIncidentFindingsCommand_1.ListIncidentFindingsCommand(input), ...args);
8
+ };
9
+ async function* paginateListIncidentFindings(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof SSMIncidentsClient_1.SSMIncidentsClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListIncidentFindings = paginateListIncidentFindings;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./GetResourcePoliciesPaginator"), exports);
5
5
  tslib_1.__exportStar(require("./Interfaces"), exports);
6
+ tslib_1.__exportStar(require("./ListIncidentFindingsPaginator"), exports);
6
7
  tslib_1.__exportStar(require("./ListIncidentRecordsPaginator"), exports);
7
8
  tslib_1.__exportStar(require("./ListRelatedItemsPaginator"), exports);
8
9
  tslib_1.__exportStar(require("./ListReplicationSetsPaginator"), exports);
@@ -1,13 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_StartIncidentCommand = exports.de_PutResourcePolicyCommand = exports.de_ListTimelineEventsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListResponsePlansCommand = exports.de_ListReplicationSetsCommand = exports.de_ListRelatedItemsCommand = exports.de_ListIncidentRecordsCommand = exports.de_GetTimelineEventCommand = exports.de_GetResponsePlanCommand = exports.de_GetResourcePoliciesCommand = exports.de_GetReplicationSetCommand = exports.de_GetIncidentRecordCommand = exports.de_DeleteTimelineEventCommand = exports.de_DeleteResponsePlanCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteReplicationSetCommand = exports.de_DeleteIncidentRecordCommand = exports.de_CreateTimelineEventCommand = exports.de_CreateResponsePlanCommand = exports.de_CreateReplicationSetCommand = exports.se_UpdateTimelineEventCommand = exports.se_UpdateResponsePlanCommand = exports.se_UpdateReplicationSetCommand = exports.se_UpdateRelatedItemsCommand = exports.se_UpdateIncidentRecordCommand = exports.se_UpdateDeletionProtectionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartIncidentCommand = exports.se_PutResourcePolicyCommand = exports.se_ListTimelineEventsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResponsePlansCommand = exports.se_ListReplicationSetsCommand = exports.se_ListRelatedItemsCommand = exports.se_ListIncidentRecordsCommand = exports.se_GetTimelineEventCommand = exports.se_GetResponsePlanCommand = exports.se_GetResourcePoliciesCommand = exports.se_GetReplicationSetCommand = exports.se_GetIncidentRecordCommand = exports.se_DeleteTimelineEventCommand = exports.se_DeleteResponsePlanCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteReplicationSetCommand = exports.se_DeleteIncidentRecordCommand = exports.se_CreateTimelineEventCommand = exports.se_CreateResponsePlanCommand = exports.se_CreateReplicationSetCommand = void 0;
4
- exports.de_UpdateTimelineEventCommand = exports.de_UpdateResponsePlanCommand = exports.de_UpdateReplicationSetCommand = exports.de_UpdateRelatedItemsCommand = exports.de_UpdateIncidentRecordCommand = exports.de_UpdateDeletionProtectionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = void 0;
3
+ exports.de_ListResponsePlansCommand = exports.de_ListReplicationSetsCommand = exports.de_ListRelatedItemsCommand = exports.de_ListIncidentRecordsCommand = exports.de_ListIncidentFindingsCommand = exports.de_GetTimelineEventCommand = exports.de_GetResponsePlanCommand = exports.de_GetResourcePoliciesCommand = exports.de_GetReplicationSetCommand = exports.de_GetIncidentRecordCommand = exports.de_DeleteTimelineEventCommand = exports.de_DeleteResponsePlanCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteReplicationSetCommand = exports.de_DeleteIncidentRecordCommand = exports.de_CreateTimelineEventCommand = exports.de_CreateResponsePlanCommand = exports.de_CreateReplicationSetCommand = exports.de_BatchGetIncidentFindingsCommand = exports.se_UpdateTimelineEventCommand = exports.se_UpdateResponsePlanCommand = exports.se_UpdateReplicationSetCommand = exports.se_UpdateRelatedItemsCommand = exports.se_UpdateIncidentRecordCommand = exports.se_UpdateDeletionProtectionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartIncidentCommand = exports.se_PutResourcePolicyCommand = exports.se_ListTimelineEventsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResponsePlansCommand = exports.se_ListReplicationSetsCommand = exports.se_ListRelatedItemsCommand = exports.se_ListIncidentRecordsCommand = exports.se_ListIncidentFindingsCommand = exports.se_GetTimelineEventCommand = exports.se_GetResponsePlanCommand = exports.se_GetResourcePoliciesCommand = exports.se_GetReplicationSetCommand = exports.se_GetIncidentRecordCommand = exports.se_DeleteTimelineEventCommand = exports.se_DeleteResponsePlanCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteReplicationSetCommand = exports.se_DeleteIncidentRecordCommand = exports.se_CreateTimelineEventCommand = exports.se_CreateResponsePlanCommand = exports.se_CreateReplicationSetCommand = exports.se_BatchGetIncidentFindingsCommand = void 0;
4
+ exports.de_UpdateTimelineEventCommand = exports.de_UpdateResponsePlanCommand = exports.de_UpdateReplicationSetCommand = exports.de_UpdateRelatedItemsCommand = exports.de_UpdateIncidentRecordCommand = exports.de_UpdateDeletionProtectionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartIncidentCommand = exports.de_PutResourcePolicyCommand = exports.de_ListTimelineEventsCommand = exports.de_ListTagsForResourceCommand = void 0;
5
5
  const core_1 = require("@aws-sdk/core");
6
6
  const protocol_http_1 = require("@smithy/protocol-http");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const uuid_1 = require("uuid");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const SSMIncidentsServiceException_1 = require("../models/SSMIncidentsServiceException");
11
+ const se_BatchGetIncidentFindingsCommand = async (input, context) => {
12
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13
+ const headers = {
14
+ "content-type": "application/json",
15
+ };
16
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batchGetIncidentFindings";
17
+ let body;
18
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
19
+ findingIds: (_) => (0, smithy_client_1._json)(_),
20
+ incidentRecordArn: [],
21
+ }));
22
+ return new protocol_http_1.HttpRequest({
23
+ protocol,
24
+ hostname,
25
+ port,
26
+ method: "POST",
27
+ headers,
28
+ path: resolvedPath,
29
+ body,
30
+ });
31
+ };
32
+ exports.se_BatchGetIncidentFindingsCommand = se_BatchGetIncidentFindingsCommand;
11
33
  const se_CreateReplicationSetCommand = async (input, context) => {
12
34
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13
35
  const headers = {
@@ -299,6 +321,29 @@ const se_GetTimelineEventCommand = async (input, context) => {
299
321
  });
300
322
  };
301
323
  exports.se_GetTimelineEventCommand = se_GetTimelineEventCommand;
324
+ const se_ListIncidentFindingsCommand = async (input, context) => {
325
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
326
+ const headers = {
327
+ "content-type": "application/json",
328
+ };
329
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listIncidentFindings";
330
+ let body;
331
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
332
+ incidentRecordArn: [],
333
+ maxResults: [],
334
+ nextToken: [],
335
+ }));
336
+ return new protocol_http_1.HttpRequest({
337
+ protocol,
338
+ hostname,
339
+ port,
340
+ method: "POST",
341
+ headers,
342
+ path: resolvedPath,
343
+ body,
344
+ });
345
+ };
346
+ exports.se_ListIncidentFindingsCommand = se_ListIncidentFindingsCommand;
302
347
  const se_ListIncidentRecordsCommand = async (input, context) => {
303
348
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
304
349
  const headers = {
@@ -683,6 +728,53 @@ const se_UpdateTimelineEventCommand = async (input, context) => {
683
728
  });
684
729
  };
685
730
  exports.se_UpdateTimelineEventCommand = se_UpdateTimelineEventCommand;
731
+ const de_BatchGetIncidentFindingsCommand = async (output, context) => {
732
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
733
+ return de_BatchGetIncidentFindingsCommandError(output, context);
734
+ }
735
+ const contents = (0, smithy_client_1.map)({
736
+ $metadata: deserializeMetadata(output),
737
+ });
738
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
739
+ const doc = (0, smithy_client_1.take)(data, {
740
+ errors: smithy_client_1._json,
741
+ findings: (_) => de_FindingList(_, context),
742
+ });
743
+ Object.assign(contents, doc);
744
+ return contents;
745
+ };
746
+ exports.de_BatchGetIncidentFindingsCommand = de_BatchGetIncidentFindingsCommand;
747
+ const de_BatchGetIncidentFindingsCommandError = async (output, context) => {
748
+ const parsedOutput = {
749
+ ...output,
750
+ body: await parseErrorBody(output.body, context),
751
+ };
752
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
753
+ switch (errorCode) {
754
+ case "AccessDeniedException":
755
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
756
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
757
+ case "InternalServerException":
758
+ case "com.amazonaws.ssmincidents#InternalServerException":
759
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
760
+ case "ResourceNotFoundException":
761
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
762
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
763
+ case "ThrottlingException":
764
+ case "com.amazonaws.ssmincidents#ThrottlingException":
765
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
766
+ case "ValidationException":
767
+ case "com.amazonaws.ssmincidents#ValidationException":
768
+ throw await de_ValidationExceptionRes(parsedOutput, context);
769
+ default:
770
+ const parsedBody = parsedOutput.body;
771
+ return throwDefaultError({
772
+ output,
773
+ parsedBody,
774
+ errorCode,
775
+ });
776
+ }
777
+ };
686
778
  const de_CreateReplicationSetCommand = async (output, context) => {
687
779
  if (output.statusCode !== 201 && output.statusCode >= 300) {
688
780
  return de_CreateReplicationSetCommandError(output, context);
@@ -1270,6 +1362,53 @@ const de_GetTimelineEventCommandError = async (output, context) => {
1270
1362
  });
1271
1363
  }
1272
1364
  };
1365
+ const de_ListIncidentFindingsCommand = async (output, context) => {
1366
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1367
+ return de_ListIncidentFindingsCommandError(output, context);
1368
+ }
1369
+ const contents = (0, smithy_client_1.map)({
1370
+ $metadata: deserializeMetadata(output),
1371
+ });
1372
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1373
+ const doc = (0, smithy_client_1.take)(data, {
1374
+ findings: (_) => de_FindingSummaryList(_, context),
1375
+ nextToken: smithy_client_1.expectString,
1376
+ });
1377
+ Object.assign(contents, doc);
1378
+ return contents;
1379
+ };
1380
+ exports.de_ListIncidentFindingsCommand = de_ListIncidentFindingsCommand;
1381
+ const de_ListIncidentFindingsCommandError = async (output, context) => {
1382
+ const parsedOutput = {
1383
+ ...output,
1384
+ body: await parseErrorBody(output.body, context),
1385
+ };
1386
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1387
+ switch (errorCode) {
1388
+ case "AccessDeniedException":
1389
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1390
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1391
+ case "InternalServerException":
1392
+ case "com.amazonaws.ssmincidents#InternalServerException":
1393
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1394
+ case "ResourceNotFoundException":
1395
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1396
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1397
+ case "ThrottlingException":
1398
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1399
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1400
+ case "ValidationException":
1401
+ case "com.amazonaws.ssmincidents#ValidationException":
1402
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1403
+ default:
1404
+ const parsedBody = parsedOutput.body;
1405
+ return throwDefaultError({
1406
+ output,
1407
+ parsedBody,
1408
+ errorCode,
1409
+ });
1410
+ }
1411
+ };
1273
1412
  const de_ListIncidentRecordsCommand = async (output, context) => {
1274
1413
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1275
1414
  return de_ListIncidentRecordsCommandError(output, context);
@@ -2123,6 +2262,21 @@ const se_TriggerDetails = (input, context) => {
2123
2262
  triggerArn: [],
2124
2263
  });
2125
2264
  };
2265
+ const de_CloudFormationStackUpdate = (output, context) => {
2266
+ return (0, smithy_client_1.take)(output, {
2267
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2268
+ stackArn: smithy_client_1.expectString,
2269
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2270
+ });
2271
+ };
2272
+ const de_CodeDeployDeployment = (output, context) => {
2273
+ return (0, smithy_client_1.take)(output, {
2274
+ deploymentGroupArn: smithy_client_1.expectString,
2275
+ deploymentId: smithy_client_1.expectString,
2276
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2277
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2278
+ });
2279
+ };
2126
2280
  const de_EventSummary = (output, context) => {
2127
2281
  return (0, smithy_client_1.take)(output, {
2128
2282
  eventId: smithy_client_1.expectString,
@@ -2141,6 +2295,49 @@ const de_EventSummaryList = (output, context) => {
2141
2295
  });
2142
2296
  return retVal;
2143
2297
  };
2298
+ const de_Finding = (output, context) => {
2299
+ return (0, smithy_client_1.take)(output, {
2300
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2301
+ details: (_) => de_FindingDetails((0, core_1.awsExpectUnion)(_), context),
2302
+ id: smithy_client_1.expectString,
2303
+ lastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2304
+ });
2305
+ };
2306
+ const de_FindingDetails = (output, context) => {
2307
+ if (output.cloudFormationStackUpdate != null) {
2308
+ return {
2309
+ cloudFormationStackUpdate: de_CloudFormationStackUpdate(output.cloudFormationStackUpdate, context),
2310
+ };
2311
+ }
2312
+ if (output.codeDeployDeployment != null) {
2313
+ return {
2314
+ codeDeployDeployment: de_CodeDeployDeployment(output.codeDeployDeployment, context),
2315
+ };
2316
+ }
2317
+ return { $unknown: Object.entries(output)[0] };
2318
+ };
2319
+ const de_FindingList = (output, context) => {
2320
+ const retVal = (output || [])
2321
+ .filter((e) => e != null)
2322
+ .map((entry) => {
2323
+ return de_Finding(entry, context);
2324
+ });
2325
+ return retVal;
2326
+ };
2327
+ const de_FindingSummary = (output, context) => {
2328
+ return (0, smithy_client_1.take)(output, {
2329
+ id: smithy_client_1.expectString,
2330
+ lastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2331
+ });
2332
+ };
2333
+ const de_FindingSummaryList = (output, context) => {
2334
+ const retVal = (output || [])
2335
+ .filter((e) => e != null)
2336
+ .map((entry) => {
2337
+ return de_FindingSummary(entry, context);
2338
+ });
2339
+ return retVal;
2340
+ };
2144
2341
  const de_IncidentRecord = (output, context) => {
2145
2342
  return (0, smithy_client_1.take)(output, {
2146
2343
  arn: smithy_client_1.expectString,