@aws-sdk/client-ssm-incidents 3.901.0 → 3.906.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 (2) hide show
  1. package/dist-cjs/index.js +2288 -2536
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,2596 +1,2348 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AccessDeniedException: () => AccessDeniedException,
25
- Action: () => Action,
26
- AttributeValueList: () => AttributeValueList,
27
- AutomationExecution: () => AutomationExecution,
28
- BatchGetIncidentFindingsCommand: () => BatchGetIncidentFindingsCommand,
29
- ChatChannel: () => ChatChannel,
30
- Condition: () => Condition,
31
- ConflictException: () => ConflictException,
32
- CreateReplicationSetCommand: () => CreateReplicationSetCommand,
33
- CreateResponsePlanCommand: () => CreateResponsePlanCommand,
34
- CreateTimelineEventCommand: () => CreateTimelineEventCommand,
35
- DeleteIncidentRecordCommand: () => DeleteIncidentRecordCommand,
36
- DeleteReplicationSetCommand: () => DeleteReplicationSetCommand,
37
- DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
38
- DeleteResponsePlanCommand: () => DeleteResponsePlanCommand,
39
- DeleteTimelineEventCommand: () => DeleteTimelineEventCommand,
40
- DynamicSsmParameterValue: () => DynamicSsmParameterValue,
41
- EventReference: () => EventReference,
42
- FindingDetails: () => FindingDetails,
43
- GetIncidentRecordCommand: () => GetIncidentRecordCommand,
44
- GetReplicationSetCommand: () => GetReplicationSetCommand,
45
- GetResourcePoliciesCommand: () => GetResourcePoliciesCommand,
46
- GetResponsePlanCommand: () => GetResponsePlanCommand,
47
- GetTimelineEventCommand: () => GetTimelineEventCommand,
48
- IncidentRecordStatus: () => IncidentRecordStatus,
49
- Integration: () => Integration,
50
- InternalServerException: () => InternalServerException,
51
- ItemType: () => ItemType,
52
- ItemValue: () => ItemValue,
53
- ListIncidentFindingsCommand: () => ListIncidentFindingsCommand,
54
- ListIncidentRecordsCommand: () => ListIncidentRecordsCommand,
55
- ListRelatedItemsCommand: () => ListRelatedItemsCommand,
56
- ListReplicationSetsCommand: () => ListReplicationSetsCommand,
57
- ListResponsePlansCommand: () => ListResponsePlansCommand,
58
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
59
- ListTimelineEventsCommand: () => ListTimelineEventsCommand,
60
- NotificationTargetItem: () => NotificationTargetItem,
61
- PutResourcePolicyCommand: () => PutResourcePolicyCommand,
62
- RegionStatus: () => RegionStatus,
63
- RelatedItemsUpdate: () => RelatedItemsUpdate,
64
- ReplicationSetStatus: () => ReplicationSetStatus,
65
- ResourceNotFoundException: () => ResourceNotFoundException,
66
- ResourceType: () => ResourceType,
67
- SSMIncidents: () => SSMIncidents,
68
- SSMIncidentsClient: () => SSMIncidentsClient,
69
- SSMIncidentsServiceException: () => SSMIncidentsServiceException,
70
- ServiceCode: () => ServiceCode,
71
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
72
- SortOrder: () => SortOrder,
73
- SsmTargetAccount: () => SsmTargetAccount,
74
- StartIncidentCommand: () => StartIncidentCommand,
75
- TagResourceCommand: () => TagResourceCommand,
76
- ThrottlingException: () => ThrottlingException,
77
- TimelineEventSort: () => TimelineEventSort,
78
- UntagResourceCommand: () => UntagResourceCommand,
79
- UpdateDeletionProtectionCommand: () => UpdateDeletionProtectionCommand,
80
- UpdateIncidentRecordCommand: () => UpdateIncidentRecordCommand,
81
- UpdateRelatedItemsCommand: () => UpdateRelatedItemsCommand,
82
- UpdateReplicationSetAction: () => UpdateReplicationSetAction,
83
- UpdateReplicationSetCommand: () => UpdateReplicationSetCommand,
84
- UpdateResponsePlanCommand: () => UpdateResponsePlanCommand,
85
- UpdateTimelineEventCommand: () => UpdateTimelineEventCommand,
86
- ValidationException: () => ValidationException,
87
- VariableType: () => VariableType,
88
- __Client: () => import_smithy_client.Client,
89
- paginateGetResourcePolicies: () => paginateGetResourcePolicies,
90
- paginateListIncidentFindings: () => paginateListIncidentFindings,
91
- paginateListIncidentRecords: () => paginateListIncidentRecords,
92
- paginateListRelatedItems: () => paginateListRelatedItems,
93
- paginateListReplicationSets: () => paginateListReplicationSets,
94
- paginateListResponsePlans: () => paginateListResponsePlans,
95
- paginateListTimelineEvents: () => paginateListTimelineEvents,
96
- waitForWaitForReplicationSetActive: () => waitForWaitForReplicationSetActive,
97
- waitForWaitForReplicationSetDeleted: () => waitForWaitForReplicationSetDeleted,
98
- waitUntilWaitForReplicationSetActive: () => waitUntilWaitForReplicationSetActive,
99
- waitUntilWaitForReplicationSetDeleted: () => waitUntilWaitForReplicationSetDeleted
100
- });
101
- module.exports = __toCommonJS(index_exports);
102
-
103
- // src/SSMIncidentsClient.ts
104
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
105
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
106
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
107
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
108
- var import_config_resolver = require("@smithy/config-resolver");
109
- var import_core = require("@smithy/core");
110
- var import_middleware_content_length = require("@smithy/middleware-content-length");
111
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
112
- var import_middleware_retry = require("@smithy/middleware-retry");
113
-
114
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
115
-
116
- // src/endpoint/EndpointParameters.ts
117
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
118
- return Object.assign(options, {
119
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
120
- useFipsEndpoint: options.useFipsEndpoint ?? false,
121
- defaultSigningName: "ssm-incidents"
122
- });
123
- }, "resolveClientEndpointParameters");
124
- var commonParams = {
125
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
126
- Endpoint: { type: "builtInParams", name: "endpoint" },
127
- Region: { type: "builtInParams", name: "region" },
128
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+ var uuid = require('@smithy/uuid');
20
+ var utilWaiter = require('@smithy/util-waiter');
21
+
22
+ const resolveClientEndpointParameters = (options) => {
23
+ return Object.assign(options, {
24
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
25
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
26
+ defaultSigningName: "ssm-incidents",
27
+ });
28
+ };
29
+ const commonParams = {
30
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
31
+ Endpoint: { type: "builtInParams", name: "endpoint" },
32
+ Region: { type: "builtInParams", name: "region" },
33
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
129
34
  };
130
35
 
131
- // src/SSMIncidentsClient.ts
132
- var import_runtimeConfig = require("././runtimeConfig");
36
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
37
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
38
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
39
+ let _credentials = runtimeConfig.credentials;
40
+ return {
41
+ setHttpAuthScheme(httpAuthScheme) {
42
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
43
+ if (index === -1) {
44
+ _httpAuthSchemes.push(httpAuthScheme);
45
+ }
46
+ else {
47
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
48
+ }
49
+ },
50
+ httpAuthSchemes() {
51
+ return _httpAuthSchemes;
52
+ },
53
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
54
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
55
+ },
56
+ httpAuthSchemeProvider() {
57
+ return _httpAuthSchemeProvider;
58
+ },
59
+ setCredentials(credentials) {
60
+ _credentials = credentials;
61
+ },
62
+ credentials() {
63
+ return _credentials;
64
+ },
65
+ };
66
+ };
67
+ const resolveHttpAuthRuntimeConfig = (config) => {
68
+ return {
69
+ httpAuthSchemes: config.httpAuthSchemes(),
70
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
71
+ credentials: config.credentials(),
72
+ };
73
+ };
133
74
 
134
- // src/runtimeExtensions.ts
135
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
136
- var import_protocol_http = require("@smithy/protocol-http");
137
- var import_smithy_client = require("@smithy/smithy-client");
75
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
76
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
77
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
78
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
79
+ };
138
80
 
139
- // src/auth/httpAuthExtensionConfiguration.ts
140
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
141
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
142
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
143
- let _credentials = runtimeConfig.credentials;
144
- return {
145
- setHttpAuthScheme(httpAuthScheme) {
146
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
147
- if (index === -1) {
148
- _httpAuthSchemes.push(httpAuthScheme);
149
- } else {
150
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
151
- }
152
- },
153
- httpAuthSchemes() {
154
- return _httpAuthSchemes;
155
- },
156
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
157
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
158
- },
159
- httpAuthSchemeProvider() {
160
- return _httpAuthSchemeProvider;
161
- },
162
- setCredentials(credentials) {
163
- _credentials = credentials;
164
- },
165
- credentials() {
166
- return _credentials;
81
+ class SSMIncidentsClient extends smithyClient.Client {
82
+ config;
83
+ constructor(...[configuration]) {
84
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
85
+ super(_config_0);
86
+ this.initConfig = _config_0;
87
+ const _config_1 = resolveClientEndpointParameters(_config_0);
88
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
89
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
90
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
91
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
92
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
93
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
94
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
95
+ this.config = _config_8;
96
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
97
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
98
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
99
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
100
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
101
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
102
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
103
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSMIncidentsHttpAuthSchemeParametersProvider,
104
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
105
+ "aws.auth#sigv4": config.credentials,
106
+ }),
107
+ }));
108
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
167
109
  }
168
- };
169
- }, "getHttpAuthExtensionConfiguration");
170
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
171
- return {
172
- httpAuthSchemes: config.httpAuthSchemes(),
173
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
174
- credentials: config.credentials()
175
- };
176
- }, "resolveHttpAuthRuntimeConfig");
177
-
178
- // src/runtimeExtensions.ts
179
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
180
- const extensionConfiguration = Object.assign(
181
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
182
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
183
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
184
- getHttpAuthExtensionConfiguration(runtimeConfig)
185
- );
186
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
187
- return Object.assign(
188
- runtimeConfig,
189
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
190
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
191
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
192
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
193
- );
194
- }, "resolveRuntimeExtensions");
110
+ destroy() {
111
+ super.destroy();
112
+ }
113
+ }
195
114
 
196
- // src/SSMIncidentsClient.ts
197
- var SSMIncidentsClient = class extends import_smithy_client.Client {
198
- static {
199
- __name(this, "SSMIncidentsClient");
200
- }
201
- /**
202
- * The resolved configuration of SSMIncidentsClient class. This is resolved and normalized from the {@link SSMIncidentsClientConfig | constructor configuration interface}.
203
- */
204
- config;
205
- constructor(...[configuration]) {
206
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
207
- super(_config_0);
208
- this.initConfig = _config_0;
209
- const _config_1 = resolveClientEndpointParameters(_config_0);
210
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
211
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
212
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
213
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
214
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
215
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
216
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
217
- this.config = _config_8;
218
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
219
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
220
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
221
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
222
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
223
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
224
- this.middlewareStack.use(
225
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
226
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSSMIncidentsHttpAuthSchemeParametersProvider,
227
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
228
- "aws.auth#sigv4": config.credentials
229
- }), "identityProviderConfigProvider")
230
- })
231
- );
232
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
233
- }
234
- /**
235
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
236
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
237
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
238
- */
239
- destroy() {
240
- super.destroy();
241
- }
115
+ class SSMIncidentsServiceException extends smithyClient.ServiceException {
116
+ constructor(options) {
117
+ super(options);
118
+ Object.setPrototypeOf(this, SSMIncidentsServiceException.prototype);
119
+ }
120
+ }
121
+
122
+ class AccessDeniedException extends SSMIncidentsServiceException {
123
+ name = "AccessDeniedException";
124
+ $fault = "client";
125
+ constructor(opts) {
126
+ super({
127
+ name: "AccessDeniedException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
132
+ }
133
+ }
134
+ const VariableType = {
135
+ INCIDENT_RECORD_ARN: "INCIDENT_RECORD_ARN",
136
+ INVOLVED_RESOURCES: "INVOLVED_RESOURCES",
242
137
  };
243
-
244
- // src/SSMIncidents.ts
245
-
246
-
247
- // src/commands/BatchGetIncidentFindingsCommand.ts
248
-
249
- var import_middleware_serde = require("@smithy/middleware-serde");
250
-
251
-
252
- // src/protocols/Aws_restJson1.ts
253
- var import_core2 = require("@aws-sdk/core");
254
-
255
-
256
- var import_uuid = require("@smithy/uuid");
257
-
258
- // src/models/SSMIncidentsServiceException.ts
259
-
260
- var SSMIncidentsServiceException = class _SSMIncidentsServiceException extends import_smithy_client.ServiceException {
261
- static {
262
- __name(this, "SSMIncidentsServiceException");
263
- }
264
- /**
265
- * @internal
266
- */
267
- constructor(options) {
268
- super(options);
269
- Object.setPrototypeOf(this, _SSMIncidentsServiceException.prototype);
270
- }
138
+ exports.DynamicSsmParameterValue = void 0;
139
+ (function (DynamicSsmParameterValue) {
140
+ DynamicSsmParameterValue.visit = (value, visitor) => {
141
+ if (value.variable !== undefined)
142
+ return visitor.variable(value.variable);
143
+ return visitor._(value.$unknown[0], value.$unknown[1]);
144
+ };
145
+ })(exports.DynamicSsmParameterValue || (exports.DynamicSsmParameterValue = {}));
146
+ const SsmTargetAccount = {
147
+ IMPACTED_ACCOUNT: "IMPACTED_ACCOUNT",
148
+ RESPONSE_PLAN_OWNER_ACCOUNT: "RESPONSE_PLAN_OWNER_ACCOUNT",
271
149
  };
272
-
273
- // src/models/models_0.ts
274
- var AccessDeniedException = class _AccessDeniedException extends SSMIncidentsServiceException {
275
- static {
276
- __name(this, "AccessDeniedException");
277
- }
278
- name = "AccessDeniedException";
279
- $fault = "client";
280
- /**
281
- * @internal
282
- */
283
- constructor(opts) {
284
- super({
285
- name: "AccessDeniedException",
286
- $fault: "client",
287
- ...opts
288
- });
289
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
290
- }
291
- };
292
- var VariableType = {
293
- INCIDENT_RECORD_ARN: "INCIDENT_RECORD_ARN",
294
- INVOLVED_RESOURCES: "INVOLVED_RESOURCES"
295
- };
296
- var DynamicSsmParameterValue;
297
- ((DynamicSsmParameterValue3) => {
298
- DynamicSsmParameterValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
299
- if (value.variable !== void 0) return visitor.variable(value.variable);
300
- return visitor._(value.$unknown[0], value.$unknown[1]);
301
- }, "visit");
302
- })(DynamicSsmParameterValue || (DynamicSsmParameterValue = {}));
303
- var SsmTargetAccount = {
304
- IMPACTED_ACCOUNT: "IMPACTED_ACCOUNT",
305
- RESPONSE_PLAN_OWNER_ACCOUNT: "RESPONSE_PLAN_OWNER_ACCOUNT"
306
- };
307
- var Action;
308
- ((Action3) => {
309
- Action3.visit = /* @__PURE__ */ __name((value, visitor) => {
310
- if (value.ssmAutomation !== void 0) return visitor.ssmAutomation(value.ssmAutomation);
311
- return visitor._(value.$unknown[0], value.$unknown[1]);
312
- }, "visit");
313
- })(Action || (Action = {}));
314
- var AttributeValueList;
315
- ((AttributeValueList3) => {
316
- AttributeValueList3.visit = /* @__PURE__ */ __name((value, visitor) => {
317
- if (value.stringValues !== void 0) return visitor.stringValues(value.stringValues);
318
- if (value.integerValues !== void 0) return visitor.integerValues(value.integerValues);
319
- return visitor._(value.$unknown[0], value.$unknown[1]);
320
- }, "visit");
321
- })(AttributeValueList || (AttributeValueList = {}));
322
- var AutomationExecution;
323
- ((AutomationExecution2) => {
324
- AutomationExecution2.visit = /* @__PURE__ */ __name((value, visitor) => {
325
- if (value.ssmExecutionArn !== void 0) return visitor.ssmExecutionArn(value.ssmExecutionArn);
326
- return visitor._(value.$unknown[0], value.$unknown[1]);
327
- }, "visit");
328
- })(AutomationExecution || (AutomationExecution = {}));
329
- var FindingDetails;
330
- ((FindingDetails3) => {
331
- FindingDetails3.visit = /* @__PURE__ */ __name((value, visitor) => {
332
- if (value.codeDeployDeployment !== void 0) return visitor.codeDeployDeployment(value.codeDeployDeployment);
333
- if (value.cloudFormationStackUpdate !== void 0)
334
- return visitor.cloudFormationStackUpdate(value.cloudFormationStackUpdate);
335
- return visitor._(value.$unknown[0], value.$unknown[1]);
336
- }, "visit");
337
- })(FindingDetails || (FindingDetails = {}));
338
- var InternalServerException = class _InternalServerException extends SSMIncidentsServiceException {
339
- static {
340
- __name(this, "InternalServerException");
341
- }
342
- name = "InternalServerException";
343
- $fault = "server";
344
- /**
345
- * @internal
346
- */
347
- constructor(opts) {
348
- super({
349
- name: "InternalServerException",
350
- $fault: "server",
351
- ...opts
352
- });
353
- Object.setPrototypeOf(this, _InternalServerException.prototype);
354
- }
355
- };
356
- var ResourceType = {
357
- INCIDENT_RECORD: "INCIDENT_RECORD",
358
- REPLICATION_SET: "REPLICATION_SET",
359
- RESOURCE_POLICY: "RESOURCE_POLICY",
360
- RESPONSE_PLAN: "RESPONSE_PLAN",
361
- TIMELINE_EVENT: "TIMELINE_EVENT"
362
- };
363
- var ResourceNotFoundException = class _ResourceNotFoundException extends SSMIncidentsServiceException {
364
- static {
365
- __name(this, "ResourceNotFoundException");
366
- }
367
- name = "ResourceNotFoundException";
368
- $fault = "client";
369
- /**
370
- * The identifier for the requested resource
371
- * @public
372
- */
373
- resourceIdentifier;
374
- /**
375
- * The resource type
376
- * @public
377
- */
378
- resourceType;
379
- /**
380
- * @internal
381
- */
382
- constructor(opts) {
383
- super({
384
- name: "ResourceNotFoundException",
385
- $fault: "client",
386
- ...opts
387
- });
388
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
389
- this.resourceIdentifier = opts.resourceIdentifier;
390
- this.resourceType = opts.resourceType;
391
- }
392
- };
393
- var ServiceCode = {
394
- SSM_INCIDENTS: "ssm-incidents"
395
- };
396
- var ThrottlingException = class _ThrottlingException extends SSMIncidentsServiceException {
397
- static {
398
- __name(this, "ThrottlingException");
399
- }
400
- name = "ThrottlingException";
401
- $fault = "client";
402
- /**
403
- * Originating service code
404
- * @public
405
- */
406
- serviceCode;
407
- /**
408
- * Originating quota code
409
- * @public
410
- */
411
- quotaCode;
412
- /**
413
- * @internal
414
- */
415
- constructor(opts) {
416
- super({
417
- name: "ThrottlingException",
418
- $fault: "client",
419
- ...opts
420
- });
421
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
422
- this.serviceCode = opts.serviceCode;
423
- this.quotaCode = opts.quotaCode;
424
- }
425
- };
426
- var ValidationException = class _ValidationException extends SSMIncidentsServiceException {
427
- static {
428
- __name(this, "ValidationException");
429
- }
430
- name = "ValidationException";
431
- $fault = "client";
432
- /**
433
- * @internal
434
- */
435
- constructor(opts) {
436
- super({
437
- name: "ValidationException",
438
- $fault: "client",
439
- ...opts
440
- });
441
- Object.setPrototypeOf(this, _ValidationException.prototype);
442
- }
443
- };
444
- var ChatChannel;
445
- ((ChatChannel3) => {
446
- ChatChannel3.visit = /* @__PURE__ */ __name((value, visitor) => {
447
- if (value.empty !== void 0) return visitor.empty(value.empty);
448
- if (value.chatbotSns !== void 0) return visitor.chatbotSns(value.chatbotSns);
449
- return visitor._(value.$unknown[0], value.$unknown[1]);
450
- }, "visit");
451
- })(ChatChannel || (ChatChannel = {}));
452
- var Condition;
453
- ((Condition2) => {
454
- Condition2.visit = /* @__PURE__ */ __name((value, visitor) => {
455
- if (value.before !== void 0) return visitor.before(value.before);
456
- if (value.after !== void 0) return visitor.after(value.after);
457
- if (value.equals !== void 0) return visitor.equals(value.equals);
458
- return visitor._(value.$unknown[0], value.$unknown[1]);
459
- }, "visit");
460
- })(Condition || (Condition = {}));
461
- var ConflictException = class _ConflictException extends SSMIncidentsServiceException {
462
- static {
463
- __name(this, "ConflictException");
464
- }
465
- name = "ConflictException";
466
- $fault = "client";
467
- /**
468
- * The identifier of the requested resource
469
- * @public
470
- */
471
- resourceIdentifier;
472
- /**
473
- * The resource type
474
- * @public
475
- */
476
- resourceType;
477
- /**
478
- * If present in the output, the operation can be retried after this time
479
- * @public
480
- */
481
- retryAfter;
482
- /**
483
- * @internal
484
- */
485
- constructor(opts) {
486
- super({
487
- name: "ConflictException",
488
- $fault: "client",
489
- ...opts
490
- });
491
- Object.setPrototypeOf(this, _ConflictException.prototype);
492
- this.resourceIdentifier = opts.resourceIdentifier;
493
- this.resourceType = opts.resourceType;
494
- this.retryAfter = opts.retryAfter;
495
- }
496
- };
497
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SSMIncidentsServiceException {
498
- static {
499
- __name(this, "ServiceQuotaExceededException");
500
- }
501
- name = "ServiceQuotaExceededException";
502
- $fault = "client";
503
- /**
504
- * The identifier for the requested resource
505
- * @public
506
- */
507
- resourceIdentifier;
508
- /**
509
- * The resource type
510
- * @public
511
- */
512
- resourceType;
513
- /**
514
- * Originating service code
515
- * @public
516
- */
517
- serviceCode;
518
- /**
519
- * Originating quota code
520
- * @public
521
- */
522
- quotaCode;
523
- /**
524
- * @internal
525
- */
526
- constructor(opts) {
527
- super({
528
- name: "ServiceQuotaExceededException",
529
- $fault: "client",
530
- ...opts
531
- });
532
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
533
- this.resourceIdentifier = opts.resourceIdentifier;
534
- this.resourceType = opts.resourceType;
535
- this.serviceCode = opts.serviceCode;
536
- this.quotaCode = opts.quotaCode;
537
- }
538
- };
539
- var NotificationTargetItem;
540
- ((NotificationTargetItem3) => {
541
- NotificationTargetItem3.visit = /* @__PURE__ */ __name((value, visitor) => {
542
- if (value.snsTopicArn !== void 0) return visitor.snsTopicArn(value.snsTopicArn);
543
- return visitor._(value.$unknown[0], value.$unknown[1]);
544
- }, "visit");
545
- })(NotificationTargetItem || (NotificationTargetItem = {}));
546
- var Integration;
547
- ((Integration3) => {
548
- Integration3.visit = /* @__PURE__ */ __name((value, visitor) => {
549
- if (value.pagerDutyConfiguration !== void 0) return visitor.pagerDutyConfiguration(value.pagerDutyConfiguration);
550
- return visitor._(value.$unknown[0], value.$unknown[1]);
551
- }, "visit");
552
- })(Integration || (Integration = {}));
553
- var EventReference;
554
- ((EventReference3) => {
555
- EventReference3.visit = /* @__PURE__ */ __name((value, visitor) => {
556
- if (value.resource !== void 0) return visitor.resource(value.resource);
557
- if (value.relatedItemId !== void 0) return visitor.relatedItemId(value.relatedItemId);
558
- return visitor._(value.$unknown[0], value.$unknown[1]);
559
- }, "visit");
560
- })(EventReference || (EventReference = {}));
561
- var IncidentRecordStatus = {
562
- OPEN: "OPEN",
563
- RESOLVED: "RESOLVED"
564
- };
565
- var RegionStatus = {
566
- /**
567
- * All operations have completed successfully and the region is ready to use
568
- */
569
- ACTIVE: "ACTIVE",
570
- /**
571
- * The region is in the process of being created.
572
- */
573
- CREATING: "CREATING",
574
- /**
575
- * The region is in the process of being deleted.
576
- */
577
- DELETING: "DELETING",
578
- /**
579
- * The region is not healthy and we cannot automatically fix it.
580
- */
581
- FAILED: "FAILED"
582
- };
583
- var ReplicationSetStatus = {
584
- /**
585
- * All operations have completed successfully and the replication set is ready to use
586
- */
587
- ACTIVE: "ACTIVE",
588
- /**
589
- * Replication set is in the process of being created.
590
- */
591
- CREATING: "CREATING",
592
- /**
593
- * Replication set is in the process of being deleted.
594
- */
595
- DELETING: "DELETING",
596
- /**
597
- * Replication set is not healthy and we cannot fix it.
598
- */
599
- FAILED: "FAILED",
600
- /**
601
- * Replication set is in the process of being updated.
602
- */
603
- UPDATING: "UPDATING"
604
- };
605
- var ItemType = {
606
- ANALYSIS: "ANALYSIS",
607
- ATTACHMENT: "ATTACHMENT",
608
- AUTOMATION: "AUTOMATION",
609
- INCIDENT: "INCIDENT",
610
- INVOLVED_RESOURCE: "INVOLVED_RESOURCE",
611
- METRIC: "METRIC",
612
- OTHER: "OTHER",
613
- PARENT: "PARENT",
614
- TASK: "TASK"
615
- };
616
- var ItemValue;
617
- ((ItemValue3) => {
618
- ItemValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
619
- if (value.arn !== void 0) return visitor.arn(value.arn);
620
- if (value.url !== void 0) return visitor.url(value.url);
621
- if (value.metricDefinition !== void 0) return visitor.metricDefinition(value.metricDefinition);
622
- if (value.pagerDutyIncidentDetail !== void 0)
623
- return visitor.pagerDutyIncidentDetail(value.pagerDutyIncidentDetail);
624
- return visitor._(value.$unknown[0], value.$unknown[1]);
625
- }, "visit");
626
- })(ItemValue || (ItemValue = {}));
627
- var TimelineEventSort = {
628
- EVENT_TIME: "EVENT_TIME"
629
- };
630
- var SortOrder = {
631
- ASCENDING: "ASCENDING",
632
- DESCENDING: "DESCENDING"
633
- };
634
- var RelatedItemsUpdate;
635
- ((RelatedItemsUpdate3) => {
636
- RelatedItemsUpdate3.visit = /* @__PURE__ */ __name((value, visitor) => {
637
- if (value.itemToAdd !== void 0) return visitor.itemToAdd(value.itemToAdd);
638
- if (value.itemToRemove !== void 0) return visitor.itemToRemove(value.itemToRemove);
639
- return visitor._(value.$unknown[0], value.$unknown[1]);
640
- }, "visit");
641
- })(RelatedItemsUpdate || (RelatedItemsUpdate = {}));
642
- var UpdateReplicationSetAction;
643
- ((UpdateReplicationSetAction3) => {
644
- UpdateReplicationSetAction3.visit = /* @__PURE__ */ __name((value, visitor) => {
645
- if (value.addRegionAction !== void 0) return visitor.addRegionAction(value.addRegionAction);
646
- if (value.deleteRegionAction !== void 0) return visitor.deleteRegionAction(value.deleteRegionAction);
647
- return visitor._(value.$unknown[0], value.$unknown[1]);
648
- }, "visit");
649
- })(UpdateReplicationSetAction || (UpdateReplicationSetAction = {}));
650
-
651
- // src/protocols/Aws_restJson1.ts
652
- var se_BatchGetIncidentFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
653
- const b = (0, import_core.requestBuilder)(input, context);
654
- const headers = {
655
- "content-type": "application/json"
656
- };
657
- b.bp("/batchGetIncidentFindings");
658
- let body;
659
- body = JSON.stringify(
660
- (0, import_smithy_client.take)(input, {
661
- findingIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "findingIds"),
662
- incidentRecordArn: []
663
- })
664
- );
665
- b.m("POST").h(headers).b(body);
666
- return b.build();
667
- }, "se_BatchGetIncidentFindingsCommand");
668
- var se_CreateReplicationSetCommand = /* @__PURE__ */ __name(async (input, context) => {
669
- const b = (0, import_core.requestBuilder)(input, context);
670
- const headers = {
671
- "content-type": "application/json"
672
- };
673
- b.bp("/createReplicationSet");
674
- let body;
675
- body = JSON.stringify(
676
- (0, import_smithy_client.take)(input, {
677
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
678
- regions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "regions"),
679
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
680
- })
681
- );
682
- b.m("POST").h(headers).b(body);
683
- return b.build();
684
- }, "se_CreateReplicationSetCommand");
685
- var se_CreateResponsePlanCommand = /* @__PURE__ */ __name(async (input, context) => {
686
- const b = (0, import_core.requestBuilder)(input, context);
687
- const headers = {
688
- "content-type": "application/json"
689
- };
690
- b.bp("/createResponsePlan");
691
- let body;
692
- body = JSON.stringify(
693
- (0, import_smithy_client.take)(input, {
694
- actions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "actions"),
695
- chatChannel: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "chatChannel"),
696
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
697
- displayName: [],
698
- engagements: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "engagements"),
699
- incidentTemplate: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "incidentTemplate"),
700
- integrations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "integrations"),
701
- name: [],
702
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
703
- })
704
- );
705
- b.m("POST").h(headers).b(body);
706
- return b.build();
707
- }, "se_CreateResponsePlanCommand");
708
- var se_CreateTimelineEventCommand = /* @__PURE__ */ __name(async (input, context) => {
709
- const b = (0, import_core.requestBuilder)(input, context);
710
- const headers = {
711
- "content-type": "application/json"
712
- };
713
- b.bp("/createTimelineEvent");
714
- let body;
715
- body = JSON.stringify(
716
- (0, import_smithy_client.take)(input, {
717
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
718
- eventData: [],
719
- eventReferences: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "eventReferences"),
720
- eventTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "eventTime"),
721
- eventType: [],
722
- incidentRecordArn: []
723
- })
724
- );
725
- b.m("POST").h(headers).b(body);
726
- return b.build();
727
- }, "se_CreateTimelineEventCommand");
728
- var se_DeleteIncidentRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
729
- const b = (0, import_core.requestBuilder)(input, context);
730
- const headers = {
731
- "content-type": "application/json"
732
- };
733
- b.bp("/deleteIncidentRecord");
734
- let body;
735
- body = JSON.stringify(
736
- (0, import_smithy_client.take)(input, {
737
- arn: []
738
- })
739
- );
740
- b.m("POST").h(headers).b(body);
741
- return b.build();
742
- }, "se_DeleteIncidentRecordCommand");
743
- var se_DeleteReplicationSetCommand = /* @__PURE__ */ __name(async (input, context) => {
744
- const b = (0, import_core.requestBuilder)(input, context);
745
- const headers = {};
746
- b.bp("/deleteReplicationSet");
747
- const query = (0, import_smithy_client.map)({
748
- [_a]: [, (0, import_smithy_client.expectNonNull)(input[_a], `arn`)]
749
- });
750
- let body;
751
- b.m("POST").h(headers).q(query).b(body);
752
- return b.build();
753
- }, "se_DeleteReplicationSetCommand");
754
- var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
755
- const b = (0, import_core.requestBuilder)(input, context);
756
- const headers = {
757
- "content-type": "application/json"
758
- };
759
- b.bp("/deleteResourcePolicy");
760
- let body;
761
- body = JSON.stringify(
762
- (0, import_smithy_client.take)(input, {
763
- policyId: [],
764
- resourceArn: []
765
- })
766
- );
767
- b.m("POST").h(headers).b(body);
768
- return b.build();
769
- }, "se_DeleteResourcePolicyCommand");
770
- var se_DeleteResponsePlanCommand = /* @__PURE__ */ __name(async (input, context) => {
771
- const b = (0, import_core.requestBuilder)(input, context);
772
- const headers = {
773
- "content-type": "application/json"
774
- };
775
- b.bp("/deleteResponsePlan");
776
- let body;
777
- body = JSON.stringify(
778
- (0, import_smithy_client.take)(input, {
779
- arn: []
780
- })
781
- );
782
- b.m("POST").h(headers).b(body);
783
- return b.build();
784
- }, "se_DeleteResponsePlanCommand");
785
- var se_DeleteTimelineEventCommand = /* @__PURE__ */ __name(async (input, context) => {
786
- const b = (0, import_core.requestBuilder)(input, context);
787
- const headers = {
788
- "content-type": "application/json"
789
- };
790
- b.bp("/deleteTimelineEvent");
791
- let body;
792
- body = JSON.stringify(
793
- (0, import_smithy_client.take)(input, {
794
- eventId: [],
795
- incidentRecordArn: []
796
- })
797
- );
798
- b.m("POST").h(headers).b(body);
799
- return b.build();
800
- }, "se_DeleteTimelineEventCommand");
801
- var se_GetIncidentRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
802
- const b = (0, import_core.requestBuilder)(input, context);
803
- const headers = {};
804
- b.bp("/getIncidentRecord");
805
- const query = (0, import_smithy_client.map)({
806
- [_a]: [, (0, import_smithy_client.expectNonNull)(input[_a], `arn`)]
807
- });
808
- let body;
809
- b.m("GET").h(headers).q(query).b(body);
810
- return b.build();
811
- }, "se_GetIncidentRecordCommand");
812
- var se_GetReplicationSetCommand = /* @__PURE__ */ __name(async (input, context) => {
813
- const b = (0, import_core.requestBuilder)(input, context);
814
- const headers = {};
815
- b.bp("/getReplicationSet");
816
- const query = (0, import_smithy_client.map)({
817
- [_a]: [, (0, import_smithy_client.expectNonNull)(input[_a], `arn`)]
818
- });
819
- let body;
820
- b.m("GET").h(headers).q(query).b(body);
821
- return b.build();
822
- }, "se_GetReplicationSetCommand");
823
- var se_GetResourcePoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
824
- const b = (0, import_core.requestBuilder)(input, context);
825
- const headers = {
826
- "content-type": "application/json"
827
- };
828
- b.bp("/getResourcePolicies");
829
- const query = (0, import_smithy_client.map)({
830
- [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
831
- });
832
- let body;
833
- body = JSON.stringify(
834
- (0, import_smithy_client.take)(input, {
835
- maxResults: [],
836
- nextToken: []
837
- })
838
- );
839
- b.m("POST").h(headers).q(query).b(body);
840
- return b.build();
841
- }, "se_GetResourcePoliciesCommand");
842
- var se_GetResponsePlanCommand = /* @__PURE__ */ __name(async (input, context) => {
843
- const b = (0, import_core.requestBuilder)(input, context);
844
- const headers = {};
845
- b.bp("/getResponsePlan");
846
- const query = (0, import_smithy_client.map)({
847
- [_a]: [, (0, import_smithy_client.expectNonNull)(input[_a], `arn`)]
848
- });
849
- let body;
850
- b.m("GET").h(headers).q(query).b(body);
851
- return b.build();
852
- }, "se_GetResponsePlanCommand");
853
- var se_GetTimelineEventCommand = /* @__PURE__ */ __name(async (input, context) => {
854
- const b = (0, import_core.requestBuilder)(input, context);
855
- const headers = {};
856
- b.bp("/getTimelineEvent");
857
- const query = (0, import_smithy_client.map)({
858
- [_iRA]: [, (0, import_smithy_client.expectNonNull)(input[_iRA], `incidentRecordArn`)],
859
- [_eI]: [, (0, import_smithy_client.expectNonNull)(input[_eI], `eventId`)]
860
- });
861
- let body;
862
- b.m("GET").h(headers).q(query).b(body);
863
- return b.build();
864
- }, "se_GetTimelineEventCommand");
865
- var se_ListIncidentFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
866
- const b = (0, import_core.requestBuilder)(input, context);
867
- const headers = {
868
- "content-type": "application/json"
869
- };
870
- b.bp("/listIncidentFindings");
871
- let body;
872
- body = JSON.stringify(
873
- (0, import_smithy_client.take)(input, {
874
- incidentRecordArn: [],
875
- maxResults: [],
876
- nextToken: []
877
- })
878
- );
879
- b.m("POST").h(headers).b(body);
880
- return b.build();
881
- }, "se_ListIncidentFindingsCommand");
882
- var se_ListIncidentRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
883
- const b = (0, import_core.requestBuilder)(input, context);
884
- const headers = {
885
- "content-type": "application/json"
886
- };
887
- b.bp("/listIncidentRecords");
888
- let body;
889
- body = JSON.stringify(
890
- (0, import_smithy_client.take)(input, {
891
- filters: /* @__PURE__ */ __name((_) => se_FilterList(_, context), "filters"),
892
- maxResults: [],
893
- nextToken: []
894
- })
895
- );
896
- b.m("POST").h(headers).b(body);
897
- return b.build();
898
- }, "se_ListIncidentRecordsCommand");
899
- var se_ListRelatedItemsCommand = /* @__PURE__ */ __name(async (input, context) => {
900
- const b = (0, import_core.requestBuilder)(input, context);
901
- const headers = {
902
- "content-type": "application/json"
903
- };
904
- b.bp("/listRelatedItems");
905
- let body;
906
- body = JSON.stringify(
907
- (0, import_smithy_client.take)(input, {
908
- incidentRecordArn: [],
909
- maxResults: [],
910
- nextToken: []
911
- })
912
- );
913
- b.m("POST").h(headers).b(body);
914
- return b.build();
915
- }, "se_ListRelatedItemsCommand");
916
- var se_ListReplicationSetsCommand = /* @__PURE__ */ __name(async (input, context) => {
917
- const b = (0, import_core.requestBuilder)(input, context);
918
- const headers = {
919
- "content-type": "application/json"
920
- };
921
- b.bp("/listReplicationSets");
922
- let body;
923
- body = JSON.stringify(
924
- (0, import_smithy_client.take)(input, {
925
- maxResults: [],
926
- nextToken: []
927
- })
928
- );
929
- b.m("POST").h(headers).b(body);
930
- return b.build();
931
- }, "se_ListReplicationSetsCommand");
932
- var se_ListResponsePlansCommand = /* @__PURE__ */ __name(async (input, context) => {
933
- const b = (0, import_core.requestBuilder)(input, context);
934
- const headers = {
935
- "content-type": "application/json"
936
- };
937
- b.bp("/listResponsePlans");
938
- let body;
939
- body = JSON.stringify(
940
- (0, import_smithy_client.take)(input, {
941
- maxResults: [],
942
- nextToken: []
943
- })
944
- );
945
- b.m("POST").h(headers).b(body);
946
- return b.build();
947
- }, "se_ListResponsePlansCommand");
948
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
949
- const b = (0, import_core.requestBuilder)(input, context);
950
- const headers = {};
951
- b.bp("/tags/{resourceArn}");
952
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
953
- let body;
954
- b.m("GET").h(headers).b(body);
955
- return b.build();
956
- }, "se_ListTagsForResourceCommand");
957
- var se_ListTimelineEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
958
- const b = (0, import_core.requestBuilder)(input, context);
959
- const headers = {
960
- "content-type": "application/json"
961
- };
962
- b.bp("/listTimelineEvents");
963
- let body;
964
- body = JSON.stringify(
965
- (0, import_smithy_client.take)(input, {
966
- filters: /* @__PURE__ */ __name((_) => se_FilterList(_, context), "filters"),
967
- incidentRecordArn: [],
968
- maxResults: [],
969
- nextToken: [],
970
- sortBy: [],
971
- sortOrder: []
972
- })
973
- );
974
- b.m("POST").h(headers).b(body);
975
- return b.build();
976
- }, "se_ListTimelineEventsCommand");
977
- var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
978
- const b = (0, import_core.requestBuilder)(input, context);
979
- const headers = {
980
- "content-type": "application/json"
981
- };
982
- b.bp("/putResourcePolicy");
983
- let body;
984
- body = JSON.stringify(
985
- (0, import_smithy_client.take)(input, {
986
- policy: [],
987
- resourceArn: []
988
- })
989
- );
990
- b.m("POST").h(headers).b(body);
991
- return b.build();
992
- }, "se_PutResourcePolicyCommand");
993
- var se_StartIncidentCommand = /* @__PURE__ */ __name(async (input, context) => {
994
- const b = (0, import_core.requestBuilder)(input, context);
995
- const headers = {
996
- "content-type": "application/json"
997
- };
998
- b.bp("/startIncident");
999
- let body;
1000
- body = JSON.stringify(
1001
- (0, import_smithy_client.take)(input, {
1002
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1003
- impact: [],
1004
- relatedItems: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "relatedItems"),
1005
- responsePlanArn: [],
1006
- title: [],
1007
- triggerDetails: /* @__PURE__ */ __name((_) => se_TriggerDetails(_, context), "triggerDetails")
1008
- })
1009
- );
1010
- b.m("POST").h(headers).b(body);
1011
- return b.build();
1012
- }, "se_StartIncidentCommand");
1013
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1014
- const b = (0, import_core.requestBuilder)(input, context);
1015
- const headers = {
1016
- "content-type": "application/json"
1017
- };
1018
- b.bp("/tags/{resourceArn}");
1019
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1020
- let body;
1021
- body = JSON.stringify(
1022
- (0, import_smithy_client.take)(input, {
1023
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
1024
- })
1025
- );
1026
- b.m("POST").h(headers).b(body);
1027
- return b.build();
1028
- }, "se_TagResourceCommand");
1029
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1030
- const b = (0, import_core.requestBuilder)(input, context);
1031
- const headers = {};
1032
- b.bp("/tags/{resourceArn}");
1033
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1034
- const query = (0, import_smithy_client.map)({
1035
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
1036
- });
1037
- let body;
1038
- b.m("DELETE").h(headers).q(query).b(body);
1039
- return b.build();
1040
- }, "se_UntagResourceCommand");
1041
- var se_UpdateDeletionProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
1042
- const b = (0, import_core.requestBuilder)(input, context);
1043
- const headers = {
1044
- "content-type": "application/json"
1045
- };
1046
- b.bp("/updateDeletionProtection");
1047
- let body;
1048
- body = JSON.stringify(
1049
- (0, import_smithy_client.take)(input, {
1050
- arn: [],
1051
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1052
- deletionProtected: []
1053
- })
1054
- );
1055
- b.m("POST").h(headers).b(body);
1056
- return b.build();
1057
- }, "se_UpdateDeletionProtectionCommand");
1058
- var se_UpdateIncidentRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
1059
- const b = (0, import_core.requestBuilder)(input, context);
1060
- const headers = {
1061
- "content-type": "application/json"
1062
- };
1063
- b.bp("/updateIncidentRecord");
1064
- let body;
1065
- body = JSON.stringify(
1066
- (0, import_smithy_client.take)(input, {
1067
- arn: [],
1068
- chatChannel: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "chatChannel"),
1069
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1070
- impact: [],
1071
- notificationTargets: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "notificationTargets"),
1072
- status: [],
1073
- summary: [],
1074
- title: []
1075
- })
1076
- );
1077
- b.m("POST").h(headers).b(body);
1078
- return b.build();
1079
- }, "se_UpdateIncidentRecordCommand");
1080
- var se_UpdateRelatedItemsCommand = /* @__PURE__ */ __name(async (input, context) => {
1081
- const b = (0, import_core.requestBuilder)(input, context);
1082
- const headers = {
1083
- "content-type": "application/json"
1084
- };
1085
- b.bp("/updateRelatedItems");
1086
- let body;
1087
- body = JSON.stringify(
1088
- (0, import_smithy_client.take)(input, {
1089
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1090
- incidentRecordArn: [],
1091
- relatedItemsUpdate: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "relatedItemsUpdate")
1092
- })
1093
- );
1094
- b.m("POST").h(headers).b(body);
1095
- return b.build();
1096
- }, "se_UpdateRelatedItemsCommand");
1097
- var se_UpdateReplicationSetCommand = /* @__PURE__ */ __name(async (input, context) => {
1098
- const b = (0, import_core.requestBuilder)(input, context);
1099
- const headers = {
1100
- "content-type": "application/json"
1101
- };
1102
- b.bp("/updateReplicationSet");
1103
- let body;
1104
- body = JSON.stringify(
1105
- (0, import_smithy_client.take)(input, {
1106
- actions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "actions"),
1107
- arn: [],
1108
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()]
1109
- })
1110
- );
1111
- b.m("POST").h(headers).b(body);
1112
- return b.build();
1113
- }, "se_UpdateReplicationSetCommand");
1114
- var se_UpdateResponsePlanCommand = /* @__PURE__ */ __name(async (input, context) => {
1115
- const b = (0, import_core.requestBuilder)(input, context);
1116
- const headers = {
1117
- "content-type": "application/json"
1118
- };
1119
- b.bp("/updateResponsePlan");
1120
- let body;
1121
- body = JSON.stringify(
1122
- (0, import_smithy_client.take)(input, {
1123
- actions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "actions"),
1124
- arn: [],
1125
- chatChannel: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "chatChannel"),
1126
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1127
- displayName: [],
1128
- engagements: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "engagements"),
1129
- incidentTemplateDedupeString: [],
1130
- incidentTemplateImpact: [],
1131
- incidentTemplateNotificationTargets: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "incidentTemplateNotificationTargets"),
1132
- incidentTemplateSummary: [],
1133
- incidentTemplateTags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "incidentTemplateTags"),
1134
- incidentTemplateTitle: [],
1135
- integrations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "integrations")
1136
- })
1137
- );
1138
- b.m("POST").h(headers).b(body);
1139
- return b.build();
1140
- }, "se_UpdateResponsePlanCommand");
1141
- var se_UpdateTimelineEventCommand = /* @__PURE__ */ __name(async (input, context) => {
1142
- const b = (0, import_core.requestBuilder)(input, context);
1143
- const headers = {
1144
- "content-type": "application/json"
1145
- };
1146
- b.bp("/updateTimelineEvent");
1147
- let body;
1148
- body = JSON.stringify(
1149
- (0, import_smithy_client.take)(input, {
1150
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1151
- eventData: [],
1152
- eventId: [],
1153
- eventReferences: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "eventReferences"),
1154
- eventTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "eventTime"),
1155
- eventType: [],
1156
- incidentRecordArn: []
1157
- })
1158
- );
1159
- b.m("POST").h(headers).b(body);
1160
- return b.build();
1161
- }, "se_UpdateTimelineEventCommand");
1162
- var de_BatchGetIncidentFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1163
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1164
- return de_CommandError(output, context);
1165
- }
1166
- const contents = (0, import_smithy_client.map)({
1167
- $metadata: deserializeMetadata(output)
1168
- });
1169
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1170
- const doc = (0, import_smithy_client.take)(data, {
1171
- errors: import_smithy_client._json,
1172
- findings: /* @__PURE__ */ __name((_) => de_FindingList(_, context), "findings")
1173
- });
1174
- Object.assign(contents, doc);
1175
- return contents;
1176
- }, "de_BatchGetIncidentFindingsCommand");
1177
- var de_CreateReplicationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1178
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1179
- return de_CommandError(output, context);
1180
- }
1181
- const contents = (0, import_smithy_client.map)({
1182
- $metadata: deserializeMetadata(output)
1183
- });
1184
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1185
- const doc = (0, import_smithy_client.take)(data, {
1186
- arn: import_smithy_client.expectString
1187
- });
1188
- Object.assign(contents, doc);
1189
- return contents;
1190
- }, "de_CreateReplicationSetCommand");
1191
- var de_CreateResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
1192
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1193
- return de_CommandError(output, context);
1194
- }
1195
- const contents = (0, import_smithy_client.map)({
1196
- $metadata: deserializeMetadata(output)
1197
- });
1198
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1199
- const doc = (0, import_smithy_client.take)(data, {
1200
- arn: import_smithy_client.expectString
1201
- });
1202
- Object.assign(contents, doc);
1203
- return contents;
1204
- }, "de_CreateResponsePlanCommand");
1205
- var de_CreateTimelineEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1206
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1207
- return de_CommandError(output, context);
1208
- }
1209
- const contents = (0, import_smithy_client.map)({
1210
- $metadata: deserializeMetadata(output)
1211
- });
1212
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1213
- const doc = (0, import_smithy_client.take)(data, {
1214
- eventId: import_smithy_client.expectString,
1215
- incidentRecordArn: import_smithy_client.expectString
1216
- });
1217
- Object.assign(contents, doc);
1218
- return contents;
1219
- }, "de_CreateTimelineEventCommand");
1220
- var de_DeleteIncidentRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
1221
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1222
- return de_CommandError(output, context);
1223
- }
1224
- const contents = (0, import_smithy_client.map)({
1225
- $metadata: deserializeMetadata(output)
1226
- });
1227
- await (0, import_smithy_client.collectBody)(output.body, context);
1228
- return contents;
1229
- }, "de_DeleteIncidentRecordCommand");
1230
- var de_DeleteReplicationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1231
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1232
- return de_CommandError(output, context);
1233
- }
1234
- const contents = (0, import_smithy_client.map)({
1235
- $metadata: deserializeMetadata(output)
1236
- });
1237
- await (0, import_smithy_client.collectBody)(output.body, context);
1238
- return contents;
1239
- }, "de_DeleteReplicationSetCommand");
1240
- var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1241
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1242
- return de_CommandError(output, context);
1243
- }
1244
- const contents = (0, import_smithy_client.map)({
1245
- $metadata: deserializeMetadata(output)
1246
- });
1247
- await (0, import_smithy_client.collectBody)(output.body, context);
1248
- return contents;
1249
- }, "de_DeleteResourcePolicyCommand");
1250
- var de_DeleteResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
1251
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1252
- return de_CommandError(output, context);
1253
- }
1254
- const contents = (0, import_smithy_client.map)({
1255
- $metadata: deserializeMetadata(output)
1256
- });
1257
- await (0, import_smithy_client.collectBody)(output.body, context);
1258
- return contents;
1259
- }, "de_DeleteResponsePlanCommand");
1260
- var de_DeleteTimelineEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1261
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1262
- return de_CommandError(output, context);
1263
- }
1264
- const contents = (0, import_smithy_client.map)({
1265
- $metadata: deserializeMetadata(output)
1266
- });
1267
- await (0, import_smithy_client.collectBody)(output.body, context);
1268
- return contents;
1269
- }, "de_DeleteTimelineEventCommand");
1270
- var de_GetIncidentRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
1271
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1272
- return de_CommandError(output, context);
1273
- }
1274
- const contents = (0, import_smithy_client.map)({
1275
- $metadata: deserializeMetadata(output)
1276
- });
1277
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1278
- const doc = (0, import_smithy_client.take)(data, {
1279
- incidentRecord: /* @__PURE__ */ __name((_) => de_IncidentRecord(_, context), "incidentRecord")
1280
- });
1281
- Object.assign(contents, doc);
1282
- return contents;
1283
- }, "de_GetIncidentRecordCommand");
1284
- var de_GetReplicationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1285
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1286
- return de_CommandError(output, context);
1287
- }
1288
- const contents = (0, import_smithy_client.map)({
1289
- $metadata: deserializeMetadata(output)
1290
- });
1291
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1292
- const doc = (0, import_smithy_client.take)(data, {
1293
- replicationSet: /* @__PURE__ */ __name((_) => de_ReplicationSet(_, context), "replicationSet")
1294
- });
1295
- Object.assign(contents, doc);
1296
- return contents;
1297
- }, "de_GetReplicationSetCommand");
1298
- var de_GetResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
1299
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1300
- return de_CommandError(output, context);
1301
- }
1302
- const contents = (0, import_smithy_client.map)({
1303
- $metadata: deserializeMetadata(output)
1304
- });
1305
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1306
- const doc = (0, import_smithy_client.take)(data, {
1307
- nextToken: import_smithy_client.expectString,
1308
- resourcePolicies: import_smithy_client._json
1309
- });
1310
- Object.assign(contents, doc);
1311
- return contents;
1312
- }, "de_GetResourcePoliciesCommand");
1313
- var de_GetResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
1314
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1315
- return de_CommandError(output, context);
1316
- }
1317
- const contents = (0, import_smithy_client.map)({
1318
- $metadata: deserializeMetadata(output)
1319
- });
1320
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1321
- const doc = (0, import_smithy_client.take)(data, {
1322
- actions: import_smithy_client._json,
1323
- arn: import_smithy_client.expectString,
1324
- chatChannel: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "chatChannel"),
1325
- displayName: import_smithy_client.expectString,
1326
- engagements: import_smithy_client._json,
1327
- incidentTemplate: import_smithy_client._json,
1328
- integrations: import_smithy_client._json,
1329
- name: import_smithy_client.expectString
1330
- });
1331
- Object.assign(contents, doc);
1332
- return contents;
1333
- }, "de_GetResponsePlanCommand");
1334
- var de_GetTimelineEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1335
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1336
- return de_CommandError(output, context);
1337
- }
1338
- const contents = (0, import_smithy_client.map)({
1339
- $metadata: deserializeMetadata(output)
1340
- });
1341
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1342
- const doc = (0, import_smithy_client.take)(data, {
1343
- event: /* @__PURE__ */ __name((_) => de_TimelineEvent(_, context), "event")
1344
- });
1345
- Object.assign(contents, doc);
1346
- return contents;
1347
- }, "de_GetTimelineEventCommand");
1348
- var de_ListIncidentFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1349
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1350
- return de_CommandError(output, context);
1351
- }
1352
- const contents = (0, import_smithy_client.map)({
1353
- $metadata: deserializeMetadata(output)
1354
- });
1355
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1356
- const doc = (0, import_smithy_client.take)(data, {
1357
- findings: /* @__PURE__ */ __name((_) => de_FindingSummaryList(_, context), "findings"),
1358
- nextToken: import_smithy_client.expectString
1359
- });
1360
- Object.assign(contents, doc);
1361
- return contents;
1362
- }, "de_ListIncidentFindingsCommand");
1363
- var de_ListIncidentRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
1364
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1365
- return de_CommandError(output, context);
1366
- }
1367
- const contents = (0, import_smithy_client.map)({
1368
- $metadata: deserializeMetadata(output)
1369
- });
1370
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1371
- const doc = (0, import_smithy_client.take)(data, {
1372
- incidentRecordSummaries: /* @__PURE__ */ __name((_) => de_IncidentRecordSummaryList(_, context), "incidentRecordSummaries"),
1373
- nextToken: import_smithy_client.expectString
1374
- });
1375
- Object.assign(contents, doc);
1376
- return contents;
1377
- }, "de_ListIncidentRecordsCommand");
1378
- var de_ListRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
1379
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1380
- return de_CommandError(output, context);
1381
- }
1382
- const contents = (0, import_smithy_client.map)({
1383
- $metadata: deserializeMetadata(output)
1384
- });
1385
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1386
- const doc = (0, import_smithy_client.take)(data, {
1387
- nextToken: import_smithy_client.expectString,
1388
- relatedItems: import_smithy_client._json
1389
- });
1390
- Object.assign(contents, doc);
1391
- return contents;
1392
- }, "de_ListRelatedItemsCommand");
1393
- var de_ListReplicationSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1394
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1395
- return de_CommandError(output, context);
1396
- }
1397
- const contents = (0, import_smithy_client.map)({
1398
- $metadata: deserializeMetadata(output)
1399
- });
1400
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1401
- const doc = (0, import_smithy_client.take)(data, {
1402
- nextToken: import_smithy_client.expectString,
1403
- replicationSetArns: import_smithy_client._json
1404
- });
1405
- Object.assign(contents, doc);
1406
- return contents;
1407
- }, "de_ListReplicationSetsCommand");
1408
- var de_ListResponsePlansCommand = /* @__PURE__ */ __name(async (output, context) => {
1409
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1410
- return de_CommandError(output, context);
1411
- }
1412
- const contents = (0, import_smithy_client.map)({
1413
- $metadata: deserializeMetadata(output)
1414
- });
1415
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1416
- const doc = (0, import_smithy_client.take)(data, {
1417
- nextToken: import_smithy_client.expectString,
1418
- responsePlanSummaries: import_smithy_client._json
1419
- });
1420
- Object.assign(contents, doc);
1421
- return contents;
1422
- }, "de_ListResponsePlansCommand");
1423
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1424
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1425
- return de_CommandError(output, context);
1426
- }
1427
- const contents = (0, import_smithy_client.map)({
1428
- $metadata: deserializeMetadata(output)
1429
- });
1430
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1431
- const doc = (0, import_smithy_client.take)(data, {
1432
- tags: import_smithy_client._json
1433
- });
1434
- Object.assign(contents, doc);
1435
- return contents;
1436
- }, "de_ListTagsForResourceCommand");
1437
- var de_ListTimelineEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
1438
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1439
- return de_CommandError(output, context);
1440
- }
1441
- const contents = (0, import_smithy_client.map)({
1442
- $metadata: deserializeMetadata(output)
1443
- });
1444
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1445
- const doc = (0, import_smithy_client.take)(data, {
1446
- eventSummaries: /* @__PURE__ */ __name((_) => de_EventSummaryList(_, context), "eventSummaries"),
1447
- nextToken: import_smithy_client.expectString
1448
- });
1449
- Object.assign(contents, doc);
1450
- return contents;
1451
- }, "de_ListTimelineEventsCommand");
1452
- var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1453
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1454
- return de_CommandError(output, context);
1455
- }
1456
- const contents = (0, import_smithy_client.map)({
1457
- $metadata: deserializeMetadata(output)
1458
- });
1459
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1460
- const doc = (0, import_smithy_client.take)(data, {
1461
- policyId: import_smithy_client.expectString
1462
- });
1463
- Object.assign(contents, doc);
1464
- return contents;
1465
- }, "de_PutResourcePolicyCommand");
1466
- var de_StartIncidentCommand = /* @__PURE__ */ __name(async (output, context) => {
1467
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1468
- return de_CommandError(output, context);
1469
- }
1470
- const contents = (0, import_smithy_client.map)({
1471
- $metadata: deserializeMetadata(output)
1472
- });
1473
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1474
- const doc = (0, import_smithy_client.take)(data, {
1475
- incidentRecordArn: import_smithy_client.expectString
1476
- });
1477
- Object.assign(contents, doc);
1478
- return contents;
1479
- }, "de_StartIncidentCommand");
1480
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1481
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1482
- return de_CommandError(output, context);
1483
- }
1484
- const contents = (0, import_smithy_client.map)({
1485
- $metadata: deserializeMetadata(output)
1486
- });
1487
- await (0, import_smithy_client.collectBody)(output.body, context);
1488
- return contents;
1489
- }, "de_TagResourceCommand");
1490
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1491
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1492
- return de_CommandError(output, context);
1493
- }
1494
- const contents = (0, import_smithy_client.map)({
1495
- $metadata: deserializeMetadata(output)
1496
- });
1497
- await (0, import_smithy_client.collectBody)(output.body, context);
1498
- return contents;
1499
- }, "de_UntagResourceCommand");
1500
- var de_UpdateDeletionProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
1501
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1502
- return de_CommandError(output, context);
1503
- }
1504
- const contents = (0, import_smithy_client.map)({
1505
- $metadata: deserializeMetadata(output)
1506
- });
1507
- await (0, import_smithy_client.collectBody)(output.body, context);
1508
- return contents;
1509
- }, "de_UpdateDeletionProtectionCommand");
1510
- var de_UpdateIncidentRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
1511
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1512
- return de_CommandError(output, context);
1513
- }
1514
- const contents = (0, import_smithy_client.map)({
1515
- $metadata: deserializeMetadata(output)
1516
- });
1517
- await (0, import_smithy_client.collectBody)(output.body, context);
1518
- return contents;
1519
- }, "de_UpdateIncidentRecordCommand");
1520
- var de_UpdateRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
1521
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1522
- return de_CommandError(output, context);
1523
- }
1524
- const contents = (0, import_smithy_client.map)({
1525
- $metadata: deserializeMetadata(output)
1526
- });
1527
- await (0, import_smithy_client.collectBody)(output.body, context);
1528
- return contents;
1529
- }, "de_UpdateRelatedItemsCommand");
1530
- var de_UpdateReplicationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1531
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1532
- return de_CommandError(output, context);
1533
- }
1534
- const contents = (0, import_smithy_client.map)({
1535
- $metadata: deserializeMetadata(output)
1536
- });
1537
- await (0, import_smithy_client.collectBody)(output.body, context);
1538
- return contents;
1539
- }, "de_UpdateReplicationSetCommand");
1540
- var de_UpdateResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
1541
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1542
- return de_CommandError(output, context);
1543
- }
1544
- const contents = (0, import_smithy_client.map)({
1545
- $metadata: deserializeMetadata(output)
1546
- });
1547
- await (0, import_smithy_client.collectBody)(output.body, context);
1548
- return contents;
1549
- }, "de_UpdateResponsePlanCommand");
1550
- var de_UpdateTimelineEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1551
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1552
- return de_CommandError(output, context);
1553
- }
1554
- const contents = (0, import_smithy_client.map)({
1555
- $metadata: deserializeMetadata(output)
1556
- });
1557
- await (0, import_smithy_client.collectBody)(output.body, context);
1558
- return contents;
1559
- }, "de_UpdateTimelineEventCommand");
1560
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1561
- const parsedOutput = {
1562
- ...output,
1563
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1564
- };
1565
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1566
- switch (errorCode) {
1567
- case "AccessDeniedException":
1568
- case "com.amazonaws.ssmincidents#AccessDeniedException":
1569
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1570
- case "InternalServerException":
1571
- case "com.amazonaws.ssmincidents#InternalServerException":
1572
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1573
- case "ResourceNotFoundException":
1574
- case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1575
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1576
- case "ThrottlingException":
1577
- case "com.amazonaws.ssmincidents#ThrottlingException":
1578
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1579
- case "ValidationException":
1580
- case "com.amazonaws.ssmincidents#ValidationException":
1581
- throw await de_ValidationExceptionRes(parsedOutput, context);
1582
- case "ConflictException":
1583
- case "com.amazonaws.ssmincidents#ConflictException":
1584
- throw await de_ConflictExceptionRes(parsedOutput, context);
1585
- case "ServiceQuotaExceededException":
1586
- case "com.amazonaws.ssmincidents#ServiceQuotaExceededException":
1587
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1588
- default:
1589
- const parsedBody = parsedOutput.body;
1590
- return throwDefaultError({
1591
- output,
1592
- parsedBody,
1593
- errorCode
1594
- });
1595
- }
1596
- }, "de_CommandError");
1597
- var throwDefaultError = (0, import_smithy_client.withBaseException)(SSMIncidentsServiceException);
1598
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1599
- const contents = (0, import_smithy_client.map)({});
1600
- const data = parsedOutput.body;
1601
- const doc = (0, import_smithy_client.take)(data, {
1602
- message: import_smithy_client.expectString
1603
- });
1604
- Object.assign(contents, doc);
1605
- const exception = new AccessDeniedException({
1606
- $metadata: deserializeMetadata(parsedOutput),
1607
- ...contents
1608
- });
1609
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1610
- }, "de_AccessDeniedExceptionRes");
1611
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1612
- const contents = (0, import_smithy_client.map)({});
1613
- const data = parsedOutput.body;
1614
- const doc = (0, import_smithy_client.take)(data, {
1615
- message: import_smithy_client.expectString,
1616
- resourceIdentifier: import_smithy_client.expectString,
1617
- resourceType: import_smithy_client.expectString,
1618
- retryAfter: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "retryAfter")
1619
- });
1620
- Object.assign(contents, doc);
1621
- const exception = new ConflictException({
1622
- $metadata: deserializeMetadata(parsedOutput),
1623
- ...contents
1624
- });
1625
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1626
- }, "de_ConflictExceptionRes");
1627
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1628
- const contents = (0, import_smithy_client.map)({});
1629
- const data = parsedOutput.body;
1630
- const doc = (0, import_smithy_client.take)(data, {
1631
- message: import_smithy_client.expectString
1632
- });
1633
- Object.assign(contents, doc);
1634
- const exception = new InternalServerException({
1635
- $metadata: deserializeMetadata(parsedOutput),
1636
- ...contents
1637
- });
1638
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1639
- }, "de_InternalServerExceptionRes");
1640
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1641
- const contents = (0, import_smithy_client.map)({});
1642
- const data = parsedOutput.body;
1643
- const doc = (0, import_smithy_client.take)(data, {
1644
- message: import_smithy_client.expectString,
1645
- resourceIdentifier: import_smithy_client.expectString,
1646
- resourceType: import_smithy_client.expectString
1647
- });
1648
- Object.assign(contents, doc);
1649
- const exception = new ResourceNotFoundException({
1650
- $metadata: deserializeMetadata(parsedOutput),
1651
- ...contents
1652
- });
1653
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1654
- }, "de_ResourceNotFoundExceptionRes");
1655
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1656
- const contents = (0, import_smithy_client.map)({});
1657
- const data = parsedOutput.body;
1658
- const doc = (0, import_smithy_client.take)(data, {
1659
- message: import_smithy_client.expectString,
1660
- quotaCode: import_smithy_client.expectString,
1661
- resourceIdentifier: import_smithy_client.expectString,
1662
- resourceType: import_smithy_client.expectString,
1663
- serviceCode: import_smithy_client.expectString
1664
- });
1665
- Object.assign(contents, doc);
1666
- const exception = new ServiceQuotaExceededException({
1667
- $metadata: deserializeMetadata(parsedOutput),
1668
- ...contents
1669
- });
1670
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1671
- }, "de_ServiceQuotaExceededExceptionRes");
1672
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1673
- const contents = (0, import_smithy_client.map)({});
1674
- const data = parsedOutput.body;
1675
- const doc = (0, import_smithy_client.take)(data, {
1676
- message: import_smithy_client.expectString,
1677
- quotaCode: import_smithy_client.expectString,
1678
- serviceCode: import_smithy_client.expectString
1679
- });
1680
- Object.assign(contents, doc);
1681
- const exception = new ThrottlingException({
1682
- $metadata: deserializeMetadata(parsedOutput),
1683
- ...contents
1684
- });
1685
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1686
- }, "de_ThrottlingExceptionRes");
1687
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1688
- const contents = (0, import_smithy_client.map)({});
1689
- const data = parsedOutput.body;
1690
- const doc = (0, import_smithy_client.take)(data, {
1691
- message: import_smithy_client.expectString
1692
- });
1693
- Object.assign(contents, doc);
1694
- const exception = new ValidationException({
1695
- $metadata: deserializeMetadata(parsedOutput),
1696
- ...contents
1697
- });
1698
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1699
- }, "de_ValidationExceptionRes");
1700
- var se_Condition = /* @__PURE__ */ __name((input, context) => {
1701
- return Condition.visit(input, {
1702
- after: /* @__PURE__ */ __name((value) => ({ after: value.getTime() / 1e3 }), "after"),
1703
- before: /* @__PURE__ */ __name((value) => ({ before: value.getTime() / 1e3 }), "before"),
1704
- equals: /* @__PURE__ */ __name((value) => ({ equals: (0, import_smithy_client._json)(value) }), "equals"),
1705
- _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
1706
- });
1707
- }, "se_Condition");
1708
- var se_Filter = /* @__PURE__ */ __name((input, context) => {
1709
- return (0, import_smithy_client.take)(input, {
1710
- condition: /* @__PURE__ */ __name((_) => se_Condition(_, context), "condition"),
1711
- key: []
1712
- });
1713
- }, "se_Filter");
1714
- var se_FilterList = /* @__PURE__ */ __name((input, context) => {
1715
- return input.filter((e) => e != null).map((entry) => {
1716
- return se_Filter(entry, context);
1717
- });
1718
- }, "se_FilterList");
1719
- var se_TriggerDetails = /* @__PURE__ */ __name((input, context) => {
1720
- return (0, import_smithy_client.take)(input, {
1721
- rawData: [],
1722
- source: [],
1723
- timestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "timestamp"),
1724
- triggerArn: []
1725
- });
1726
- }, "se_TriggerDetails");
1727
- var de_CloudFormationStackUpdate = /* @__PURE__ */ __name((output, context) => {
1728
- return (0, import_smithy_client.take)(output, {
1729
- endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endTime"),
1730
- stackArn: import_smithy_client.expectString,
1731
- startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startTime")
1732
- });
1733
- }, "de_CloudFormationStackUpdate");
1734
- var de_CodeDeployDeployment = /* @__PURE__ */ __name((output, context) => {
1735
- return (0, import_smithy_client.take)(output, {
1736
- deploymentGroupArn: import_smithy_client.expectString,
1737
- deploymentId: import_smithy_client.expectString,
1738
- endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endTime"),
1739
- startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startTime")
1740
- });
1741
- }, "de_CodeDeployDeployment");
1742
- var de_EventSummary = /* @__PURE__ */ __name((output, context) => {
1743
- return (0, import_smithy_client.take)(output, {
1744
- eventId: import_smithy_client.expectString,
1745
- eventReferences: import_smithy_client._json,
1746
- eventTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "eventTime"),
1747
- eventType: import_smithy_client.expectString,
1748
- eventUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "eventUpdatedTime"),
1749
- incidentRecordArn: import_smithy_client.expectString
1750
- });
1751
- }, "de_EventSummary");
1752
- var de_EventSummaryList = /* @__PURE__ */ __name((output, context) => {
1753
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1754
- return de_EventSummary(entry, context);
1755
- });
1756
- return retVal;
1757
- }, "de_EventSummaryList");
1758
- var de_Finding = /* @__PURE__ */ __name((output, context) => {
1759
- return (0, import_smithy_client.take)(output, {
1760
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
1761
- details: /* @__PURE__ */ __name((_) => de_FindingDetails((0, import_core2.awsExpectUnion)(_), context), "details"),
1762
- id: import_smithy_client.expectString,
1763
- lastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastModifiedTime")
1764
- });
1765
- }, "de_Finding");
1766
- var de_FindingDetails = /* @__PURE__ */ __name((output, context) => {
1767
- if (output.cloudFormationStackUpdate != null) {
1768
- return {
1769
- cloudFormationStackUpdate: de_CloudFormationStackUpdate(output.cloudFormationStackUpdate, context)
150
+ exports.Action = void 0;
151
+ (function (Action) {
152
+ Action.visit = (value, visitor) => {
153
+ if (value.ssmAutomation !== undefined)
154
+ return visitor.ssmAutomation(value.ssmAutomation);
155
+ return visitor._(value.$unknown[0], value.$unknown[1]);
1770
156
  };
1771
- }
1772
- if (output.codeDeployDeployment != null) {
1773
- return {
1774
- codeDeployDeployment: de_CodeDeployDeployment(output.codeDeployDeployment, context)
157
+ })(exports.Action || (exports.Action = {}));
158
+ exports.AttributeValueList = void 0;
159
+ (function (AttributeValueList) {
160
+ AttributeValueList.visit = (value, visitor) => {
161
+ if (value.stringValues !== undefined)
162
+ return visitor.stringValues(value.stringValues);
163
+ if (value.integerValues !== undefined)
164
+ return visitor.integerValues(value.integerValues);
165
+ return visitor._(value.$unknown[0], value.$unknown[1]);
1775
166
  };
1776
- }
1777
- return { $unknown: Object.entries(output)[0] };
1778
- }, "de_FindingDetails");
1779
- var de_FindingList = /* @__PURE__ */ __name((output, context) => {
1780
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1781
- return de_Finding(entry, context);
1782
- });
1783
- return retVal;
1784
- }, "de_FindingList");
1785
- var de_FindingSummary = /* @__PURE__ */ __name((output, context) => {
1786
- return (0, import_smithy_client.take)(output, {
1787
- id: import_smithy_client.expectString,
1788
- lastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastModifiedTime")
1789
- });
1790
- }, "de_FindingSummary");
1791
- var de_FindingSummaryList = /* @__PURE__ */ __name((output, context) => {
1792
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1793
- return de_FindingSummary(entry, context);
1794
- });
1795
- return retVal;
1796
- }, "de_FindingSummaryList");
1797
- var de_IncidentRecord = /* @__PURE__ */ __name((output, context) => {
1798
- return (0, import_smithy_client.take)(output, {
1799
- arn: import_smithy_client.expectString,
1800
- automationExecutions: import_smithy_client._json,
1801
- chatChannel: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "chatChannel"),
1802
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
1803
- dedupeString: import_smithy_client.expectString,
1804
- impact: import_smithy_client.expectInt32,
1805
- incidentRecordSource: import_smithy_client._json,
1806
- lastModifiedBy: import_smithy_client.expectString,
1807
- lastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastModifiedTime"),
1808
- notificationTargets: import_smithy_client._json,
1809
- resolvedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "resolvedTime"),
1810
- status: import_smithy_client.expectString,
1811
- summary: import_smithy_client.expectString,
1812
- title: import_smithy_client.expectString
1813
- });
1814
- }, "de_IncidentRecord");
1815
- var de_IncidentRecordSummary = /* @__PURE__ */ __name((output, context) => {
1816
- return (0, import_smithy_client.take)(output, {
1817
- arn: import_smithy_client.expectString,
1818
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
1819
- impact: import_smithy_client.expectInt32,
1820
- incidentRecordSource: import_smithy_client._json,
1821
- resolvedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "resolvedTime"),
1822
- status: import_smithy_client.expectString,
1823
- title: import_smithy_client.expectString
1824
- });
1825
- }, "de_IncidentRecordSummary");
1826
- var de_IncidentRecordSummaryList = /* @__PURE__ */ __name((output, context) => {
1827
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1828
- return de_IncidentRecordSummary(entry, context);
1829
- });
1830
- return retVal;
1831
- }, "de_IncidentRecordSummaryList");
1832
- var de_RegionInfo = /* @__PURE__ */ __name((output, context) => {
1833
- return (0, import_smithy_client.take)(output, {
1834
- sseKmsKeyId: import_smithy_client.expectString,
1835
- status: import_smithy_client.expectString,
1836
- statusMessage: import_smithy_client.expectString,
1837
- statusUpdateDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "statusUpdateDateTime")
1838
- });
1839
- }, "de_RegionInfo");
1840
- var de_RegionInfoMap = /* @__PURE__ */ __name((output, context) => {
1841
- return Object.entries(output).reduce((acc, [key, value]) => {
1842
- if (value === null) {
1843
- return acc;
167
+ })(exports.AttributeValueList || (exports.AttributeValueList = {}));
168
+ exports.AutomationExecution = void 0;
169
+ (function (AutomationExecution) {
170
+ AutomationExecution.visit = (value, visitor) => {
171
+ if (value.ssmExecutionArn !== undefined)
172
+ return visitor.ssmExecutionArn(value.ssmExecutionArn);
173
+ return visitor._(value.$unknown[0], value.$unknown[1]);
174
+ };
175
+ })(exports.AutomationExecution || (exports.AutomationExecution = {}));
176
+ exports.FindingDetails = void 0;
177
+ (function (FindingDetails) {
178
+ FindingDetails.visit = (value, visitor) => {
179
+ if (value.codeDeployDeployment !== undefined)
180
+ return visitor.codeDeployDeployment(value.codeDeployDeployment);
181
+ if (value.cloudFormationStackUpdate !== undefined)
182
+ return visitor.cloudFormationStackUpdate(value.cloudFormationStackUpdate);
183
+ return visitor._(value.$unknown[0], value.$unknown[1]);
184
+ };
185
+ })(exports.FindingDetails || (exports.FindingDetails = {}));
186
+ class InternalServerException extends SSMIncidentsServiceException {
187
+ name = "InternalServerException";
188
+ $fault = "server";
189
+ constructor(opts) {
190
+ super({
191
+ name: "InternalServerException",
192
+ $fault: "server",
193
+ ...opts,
194
+ });
195
+ Object.setPrototypeOf(this, InternalServerException.prototype);
1844
196
  }
1845
- acc[key] = de_RegionInfo(value, context);
1846
- return acc;
1847
- }, {});
1848
- }, "de_RegionInfoMap");
1849
- var de_ReplicationSet = /* @__PURE__ */ __name((output, context) => {
1850
- return (0, import_smithy_client.take)(output, {
1851
- arn: import_smithy_client.expectString,
1852
- createdBy: import_smithy_client.expectString,
1853
- createdTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdTime"),
1854
- deletionProtected: import_smithy_client.expectBoolean,
1855
- lastModifiedBy: import_smithy_client.expectString,
1856
- lastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastModifiedTime"),
1857
- regionMap: /* @__PURE__ */ __name((_) => de_RegionInfoMap(_, context), "regionMap"),
1858
- status: import_smithy_client.expectString
1859
- });
1860
- }, "de_ReplicationSet");
1861
- var de_TimelineEvent = /* @__PURE__ */ __name((output, context) => {
1862
- return (0, import_smithy_client.take)(output, {
1863
- eventData: import_smithy_client.expectString,
1864
- eventId: import_smithy_client.expectString,
1865
- eventReferences: import_smithy_client._json,
1866
- eventTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "eventTime"),
1867
- eventType: import_smithy_client.expectString,
1868
- eventUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "eventUpdatedTime"),
1869
- incidentRecordArn: import_smithy_client.expectString
1870
- });
1871
- }, "de_TimelineEvent");
1872
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1873
- httpStatusCode: output.statusCode,
1874
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1875
- extendedRequestId: output.headers["x-amz-id-2"],
1876
- cfId: output.headers["x-amz-cf-id"]
1877
- }), "deserializeMetadata");
1878
- var _a = "arn";
1879
- var _eI = "eventId";
1880
- var _iRA = "incidentRecordArn";
1881
- var _rA = "resourceArn";
1882
- var _tK = "tagKeys";
1883
-
1884
- // src/commands/BatchGetIncidentFindingsCommand.ts
1885
- var BatchGetIncidentFindingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1886
- return [
1887
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1888
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1889
- ];
1890
- }).s("SSMIncidents", "BatchGetIncidentFindings", {}).n("SSMIncidentsClient", "BatchGetIncidentFindingsCommand").f(void 0, void 0).ser(se_BatchGetIncidentFindingsCommand).de(de_BatchGetIncidentFindingsCommand).build() {
1891
- static {
1892
- __name(this, "BatchGetIncidentFindingsCommand");
1893
- }
197
+ }
198
+ const ResourceType = {
199
+ INCIDENT_RECORD: "INCIDENT_RECORD",
200
+ REPLICATION_SET: "REPLICATION_SET",
201
+ RESOURCE_POLICY: "RESOURCE_POLICY",
202
+ RESPONSE_PLAN: "RESPONSE_PLAN",
203
+ TIMELINE_EVENT: "TIMELINE_EVENT",
1894
204
  };
1895
-
1896
- // src/commands/CreateReplicationSetCommand.ts
1897
-
1898
-
1899
-
1900
- var CreateReplicationSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1901
- return [
1902
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1903
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1904
- ];
1905
- }).s("SSMIncidents", "CreateReplicationSet", {}).n("SSMIncidentsClient", "CreateReplicationSetCommand").f(void 0, void 0).ser(se_CreateReplicationSetCommand).de(de_CreateReplicationSetCommand).build() {
1906
- static {
1907
- __name(this, "CreateReplicationSetCommand");
1908
- }
205
+ class ResourceNotFoundException extends SSMIncidentsServiceException {
206
+ name = "ResourceNotFoundException";
207
+ $fault = "client";
208
+ resourceIdentifier;
209
+ resourceType;
210
+ constructor(opts) {
211
+ super({
212
+ name: "ResourceNotFoundException",
213
+ $fault: "client",
214
+ ...opts,
215
+ });
216
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
217
+ this.resourceIdentifier = opts.resourceIdentifier;
218
+ this.resourceType = opts.resourceType;
219
+ }
220
+ }
221
+ const ServiceCode = {
222
+ SSM_INCIDENTS: "ssm-incidents",
1909
223
  };
1910
-
1911
- // src/commands/CreateResponsePlanCommand.ts
1912
-
1913
-
1914
-
1915
- var CreateResponsePlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1916
- return [
1917
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1918
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1919
- ];
1920
- }).s("SSMIncidents", "CreateResponsePlan", {}).n("SSMIncidentsClient", "CreateResponsePlanCommand").f(void 0, void 0).ser(se_CreateResponsePlanCommand).de(de_CreateResponsePlanCommand).build() {
1921
- static {
1922
- __name(this, "CreateResponsePlanCommand");
1923
- }
224
+ class ThrottlingException extends SSMIncidentsServiceException {
225
+ name = "ThrottlingException";
226
+ $fault = "client";
227
+ serviceCode;
228
+ quotaCode;
229
+ constructor(opts) {
230
+ super({
231
+ name: "ThrottlingException",
232
+ $fault: "client",
233
+ ...opts,
234
+ });
235
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
236
+ this.serviceCode = opts.serviceCode;
237
+ this.quotaCode = opts.quotaCode;
238
+ }
239
+ }
240
+ class ValidationException extends SSMIncidentsServiceException {
241
+ name = "ValidationException";
242
+ $fault = "client";
243
+ constructor(opts) {
244
+ super({
245
+ name: "ValidationException",
246
+ $fault: "client",
247
+ ...opts,
248
+ });
249
+ Object.setPrototypeOf(this, ValidationException.prototype);
250
+ }
251
+ }
252
+ exports.ChatChannel = void 0;
253
+ (function (ChatChannel) {
254
+ ChatChannel.visit = (value, visitor) => {
255
+ if (value.empty !== undefined)
256
+ return visitor.empty(value.empty);
257
+ if (value.chatbotSns !== undefined)
258
+ return visitor.chatbotSns(value.chatbotSns);
259
+ return visitor._(value.$unknown[0], value.$unknown[1]);
260
+ };
261
+ })(exports.ChatChannel || (exports.ChatChannel = {}));
262
+ exports.Condition = void 0;
263
+ (function (Condition) {
264
+ Condition.visit = (value, visitor) => {
265
+ if (value.before !== undefined)
266
+ return visitor.before(value.before);
267
+ if (value.after !== undefined)
268
+ return visitor.after(value.after);
269
+ if (value.equals !== undefined)
270
+ return visitor.equals(value.equals);
271
+ return visitor._(value.$unknown[0], value.$unknown[1]);
272
+ };
273
+ })(exports.Condition || (exports.Condition = {}));
274
+ class ConflictException extends SSMIncidentsServiceException {
275
+ name = "ConflictException";
276
+ $fault = "client";
277
+ resourceIdentifier;
278
+ resourceType;
279
+ retryAfter;
280
+ constructor(opts) {
281
+ super({
282
+ name: "ConflictException",
283
+ $fault: "client",
284
+ ...opts,
285
+ });
286
+ Object.setPrototypeOf(this, ConflictException.prototype);
287
+ this.resourceIdentifier = opts.resourceIdentifier;
288
+ this.resourceType = opts.resourceType;
289
+ this.retryAfter = opts.retryAfter;
290
+ }
291
+ }
292
+ class ServiceQuotaExceededException extends SSMIncidentsServiceException {
293
+ name = "ServiceQuotaExceededException";
294
+ $fault = "client";
295
+ resourceIdentifier;
296
+ resourceType;
297
+ serviceCode;
298
+ quotaCode;
299
+ constructor(opts) {
300
+ super({
301
+ name: "ServiceQuotaExceededException",
302
+ $fault: "client",
303
+ ...opts,
304
+ });
305
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
306
+ this.resourceIdentifier = opts.resourceIdentifier;
307
+ this.resourceType = opts.resourceType;
308
+ this.serviceCode = opts.serviceCode;
309
+ this.quotaCode = opts.quotaCode;
310
+ }
311
+ }
312
+ exports.NotificationTargetItem = void 0;
313
+ (function (NotificationTargetItem) {
314
+ NotificationTargetItem.visit = (value, visitor) => {
315
+ if (value.snsTopicArn !== undefined)
316
+ return visitor.snsTopicArn(value.snsTopicArn);
317
+ return visitor._(value.$unknown[0], value.$unknown[1]);
318
+ };
319
+ })(exports.NotificationTargetItem || (exports.NotificationTargetItem = {}));
320
+ exports.Integration = void 0;
321
+ (function (Integration) {
322
+ Integration.visit = (value, visitor) => {
323
+ if (value.pagerDutyConfiguration !== undefined)
324
+ return visitor.pagerDutyConfiguration(value.pagerDutyConfiguration);
325
+ return visitor._(value.$unknown[0], value.$unknown[1]);
326
+ };
327
+ })(exports.Integration || (exports.Integration = {}));
328
+ exports.EventReference = void 0;
329
+ (function (EventReference) {
330
+ EventReference.visit = (value, visitor) => {
331
+ if (value.resource !== undefined)
332
+ return visitor.resource(value.resource);
333
+ if (value.relatedItemId !== undefined)
334
+ return visitor.relatedItemId(value.relatedItemId);
335
+ return visitor._(value.$unknown[0], value.$unknown[1]);
336
+ };
337
+ })(exports.EventReference || (exports.EventReference = {}));
338
+ const IncidentRecordStatus = {
339
+ OPEN: "OPEN",
340
+ RESOLVED: "RESOLVED",
1924
341
  };
1925
-
1926
- // src/commands/CreateTimelineEventCommand.ts
1927
-
1928
-
1929
-
1930
- var CreateTimelineEventCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1931
- return [
1932
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1933
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1934
- ];
1935
- }).s("SSMIncidents", "CreateTimelineEvent", {}).n("SSMIncidentsClient", "CreateTimelineEventCommand").f(void 0, void 0).ser(se_CreateTimelineEventCommand).de(de_CreateTimelineEventCommand).build() {
1936
- static {
1937
- __name(this, "CreateTimelineEventCommand");
1938
- }
342
+ const RegionStatus = {
343
+ ACTIVE: "ACTIVE",
344
+ CREATING: "CREATING",
345
+ DELETING: "DELETING",
346
+ FAILED: "FAILED",
1939
347
  };
1940
-
1941
- // src/commands/DeleteIncidentRecordCommand.ts
1942
-
1943
-
1944
-
1945
- var DeleteIncidentRecordCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1946
- return [
1947
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1948
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1949
- ];
1950
- }).s("SSMIncidents", "DeleteIncidentRecord", {}).n("SSMIncidentsClient", "DeleteIncidentRecordCommand").f(void 0, void 0).ser(se_DeleteIncidentRecordCommand).de(de_DeleteIncidentRecordCommand).build() {
1951
- static {
1952
- __name(this, "DeleteIncidentRecordCommand");
1953
- }
348
+ const ReplicationSetStatus = {
349
+ ACTIVE: "ACTIVE",
350
+ CREATING: "CREATING",
351
+ DELETING: "DELETING",
352
+ FAILED: "FAILED",
353
+ UPDATING: "UPDATING",
1954
354
  };
1955
-
1956
- // src/commands/DeleteReplicationSetCommand.ts
1957
-
1958
-
1959
-
1960
- var DeleteReplicationSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1961
- return [
1962
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1963
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1964
- ];
1965
- }).s("SSMIncidents", "DeleteReplicationSet", {}).n("SSMIncidentsClient", "DeleteReplicationSetCommand").f(void 0, void 0).ser(se_DeleteReplicationSetCommand).de(de_DeleteReplicationSetCommand).build() {
1966
- static {
1967
- __name(this, "DeleteReplicationSetCommand");
1968
- }
355
+ const ItemType = {
356
+ ANALYSIS: "ANALYSIS",
357
+ ATTACHMENT: "ATTACHMENT",
358
+ AUTOMATION: "AUTOMATION",
359
+ INCIDENT: "INCIDENT",
360
+ INVOLVED_RESOURCE: "INVOLVED_RESOURCE",
361
+ METRIC: "METRIC",
362
+ OTHER: "OTHER",
363
+ PARENT: "PARENT",
364
+ TASK: "TASK",
1969
365
  };
1970
-
1971
- // src/commands/DeleteResourcePolicyCommand.ts
1972
-
1973
-
1974
-
1975
- var DeleteResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1976
- return [
1977
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1978
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1979
- ];
1980
- }).s("SSMIncidents", "DeleteResourcePolicy", {}).n("SSMIncidentsClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
1981
- static {
1982
- __name(this, "DeleteResourcePolicyCommand");
1983
- }
366
+ exports.ItemValue = void 0;
367
+ (function (ItemValue) {
368
+ ItemValue.visit = (value, visitor) => {
369
+ if (value.arn !== undefined)
370
+ return visitor.arn(value.arn);
371
+ if (value.url !== undefined)
372
+ return visitor.url(value.url);
373
+ if (value.metricDefinition !== undefined)
374
+ return visitor.metricDefinition(value.metricDefinition);
375
+ if (value.pagerDutyIncidentDetail !== undefined)
376
+ return visitor.pagerDutyIncidentDetail(value.pagerDutyIncidentDetail);
377
+ return visitor._(value.$unknown[0], value.$unknown[1]);
378
+ };
379
+ })(exports.ItemValue || (exports.ItemValue = {}));
380
+ const TimelineEventSort = {
381
+ EVENT_TIME: "EVENT_TIME",
1984
382
  };
1985
-
1986
- // src/commands/DeleteResponsePlanCommand.ts
1987
-
1988
-
1989
-
1990
- var DeleteResponsePlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1991
- return [
1992
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1993
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1994
- ];
1995
- }).s("SSMIncidents", "DeleteResponsePlan", {}).n("SSMIncidentsClient", "DeleteResponsePlanCommand").f(void 0, void 0).ser(se_DeleteResponsePlanCommand).de(de_DeleteResponsePlanCommand).build() {
1996
- static {
1997
- __name(this, "DeleteResponsePlanCommand");
1998
- }
383
+ const SortOrder = {
384
+ ASCENDING: "ASCENDING",
385
+ DESCENDING: "DESCENDING",
1999
386
  };
387
+ exports.RelatedItemsUpdate = void 0;
388
+ (function (RelatedItemsUpdate) {
389
+ RelatedItemsUpdate.visit = (value, visitor) => {
390
+ if (value.itemToAdd !== undefined)
391
+ return visitor.itemToAdd(value.itemToAdd);
392
+ if (value.itemToRemove !== undefined)
393
+ return visitor.itemToRemove(value.itemToRemove);
394
+ return visitor._(value.$unknown[0], value.$unknown[1]);
395
+ };
396
+ })(exports.RelatedItemsUpdate || (exports.RelatedItemsUpdate = {}));
397
+ exports.UpdateReplicationSetAction = void 0;
398
+ (function (UpdateReplicationSetAction) {
399
+ UpdateReplicationSetAction.visit = (value, visitor) => {
400
+ if (value.addRegionAction !== undefined)
401
+ return visitor.addRegionAction(value.addRegionAction);
402
+ if (value.deleteRegionAction !== undefined)
403
+ return visitor.deleteRegionAction(value.deleteRegionAction);
404
+ return visitor._(value.$unknown[0], value.$unknown[1]);
405
+ };
406
+ })(exports.UpdateReplicationSetAction || (exports.UpdateReplicationSetAction = {}));
2000
407
 
2001
- // src/commands/DeleteTimelineEventCommand.ts
2002
-
2003
-
2004
-
2005
- var DeleteTimelineEventCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2006
- return [
2007
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2008
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2009
- ];
2010
- }).s("SSMIncidents", "DeleteTimelineEvent", {}).n("SSMIncidentsClient", "DeleteTimelineEventCommand").f(void 0, void 0).ser(se_DeleteTimelineEventCommand).de(de_DeleteTimelineEventCommand).build() {
2011
- static {
2012
- __name(this, "DeleteTimelineEventCommand");
2013
- }
408
+ const se_BatchGetIncidentFindingsCommand = async (input, context) => {
409
+ const b = core.requestBuilder(input, context);
410
+ const headers = {
411
+ "content-type": "application/json",
412
+ };
413
+ b.bp("/batchGetIncidentFindings");
414
+ let body;
415
+ body = JSON.stringify(smithyClient.take(input, {
416
+ findingIds: (_) => smithyClient._json(_),
417
+ incidentRecordArn: [],
418
+ }));
419
+ b.m("POST").h(headers).b(body);
420
+ return b.build();
2014
421
  };
2015
-
2016
- // src/commands/GetIncidentRecordCommand.ts
2017
-
2018
-
2019
-
2020
- var GetIncidentRecordCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2021
- return [
2022
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2023
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2024
- ];
2025
- }).s("SSMIncidents", "GetIncidentRecord", {}).n("SSMIncidentsClient", "GetIncidentRecordCommand").f(void 0, void 0).ser(se_GetIncidentRecordCommand).de(de_GetIncidentRecordCommand).build() {
2026
- static {
2027
- __name(this, "GetIncidentRecordCommand");
2028
- }
422
+ const se_CreateReplicationSetCommand = async (input, context) => {
423
+ const b = core.requestBuilder(input, context);
424
+ const headers = {
425
+ "content-type": "application/json",
426
+ };
427
+ b.bp("/createReplicationSet");
428
+ let body;
429
+ body = JSON.stringify(smithyClient.take(input, {
430
+ clientToken: [true, (_) => _ ?? uuid.v4()],
431
+ regions: (_) => smithyClient._json(_),
432
+ tags: (_) => smithyClient._json(_),
433
+ }));
434
+ b.m("POST").h(headers).b(body);
435
+ return b.build();
2029
436
  };
2030
-
2031
- // src/commands/GetReplicationSetCommand.ts
2032
-
2033
-
2034
-
2035
- var GetReplicationSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2036
- return [
2037
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2038
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2039
- ];
2040
- }).s("SSMIncidents", "GetReplicationSet", {}).n("SSMIncidentsClient", "GetReplicationSetCommand").f(void 0, void 0).ser(se_GetReplicationSetCommand).de(de_GetReplicationSetCommand).build() {
2041
- static {
2042
- __name(this, "GetReplicationSetCommand");
2043
- }
437
+ const se_CreateResponsePlanCommand = async (input, context) => {
438
+ const b = core.requestBuilder(input, context);
439
+ const headers = {
440
+ "content-type": "application/json",
441
+ };
442
+ b.bp("/createResponsePlan");
443
+ let body;
444
+ body = JSON.stringify(smithyClient.take(input, {
445
+ actions: (_) => smithyClient._json(_),
446
+ chatChannel: (_) => smithyClient._json(_),
447
+ clientToken: [true, (_) => _ ?? uuid.v4()],
448
+ displayName: [],
449
+ engagements: (_) => smithyClient._json(_),
450
+ incidentTemplate: (_) => smithyClient._json(_),
451
+ integrations: (_) => smithyClient._json(_),
452
+ name: [],
453
+ tags: (_) => smithyClient._json(_),
454
+ }));
455
+ b.m("POST").h(headers).b(body);
456
+ return b.build();
2044
457
  };
2045
-
2046
- // src/commands/GetResourcePoliciesCommand.ts
2047
-
2048
-
2049
-
2050
- var GetResourcePoliciesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2051
- return [
2052
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2053
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2054
- ];
2055
- }).s("SSMIncidents", "GetResourcePolicies", {}).n("SSMIncidentsClient", "GetResourcePoliciesCommand").f(void 0, void 0).ser(se_GetResourcePoliciesCommand).de(de_GetResourcePoliciesCommand).build() {
2056
- static {
2057
- __name(this, "GetResourcePoliciesCommand");
2058
- }
458
+ const se_CreateTimelineEventCommand = async (input, context) => {
459
+ const b = core.requestBuilder(input, context);
460
+ const headers = {
461
+ "content-type": "application/json",
462
+ };
463
+ b.bp("/createTimelineEvent");
464
+ let body;
465
+ body = JSON.stringify(smithyClient.take(input, {
466
+ clientToken: [true, (_) => _ ?? uuid.v4()],
467
+ eventData: [],
468
+ eventReferences: (_) => smithyClient._json(_),
469
+ eventTime: (_) => _.getTime() / 1_000,
470
+ eventType: [],
471
+ incidentRecordArn: [],
472
+ }));
473
+ b.m("POST").h(headers).b(body);
474
+ return b.build();
2059
475
  };
2060
-
2061
- // src/commands/GetResponsePlanCommand.ts
2062
-
2063
-
2064
-
2065
- var GetResponsePlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2066
- return [
2067
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2068
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2069
- ];
2070
- }).s("SSMIncidents", "GetResponsePlan", {}).n("SSMIncidentsClient", "GetResponsePlanCommand").f(void 0, void 0).ser(se_GetResponsePlanCommand).de(de_GetResponsePlanCommand).build() {
2071
- static {
2072
- __name(this, "GetResponsePlanCommand");
2073
- }
476
+ const se_DeleteIncidentRecordCommand = async (input, context) => {
477
+ const b = core.requestBuilder(input, context);
478
+ const headers = {
479
+ "content-type": "application/json",
480
+ };
481
+ b.bp("/deleteIncidentRecord");
482
+ let body;
483
+ body = JSON.stringify(smithyClient.take(input, {
484
+ arn: [],
485
+ }));
486
+ b.m("POST").h(headers).b(body);
487
+ return b.build();
2074
488
  };
2075
-
2076
- // src/commands/GetTimelineEventCommand.ts
2077
-
2078
-
2079
-
2080
- var GetTimelineEventCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2081
- return [
2082
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2083
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2084
- ];
2085
- }).s("SSMIncidents", "GetTimelineEvent", {}).n("SSMIncidentsClient", "GetTimelineEventCommand").f(void 0, void 0).ser(se_GetTimelineEventCommand).de(de_GetTimelineEventCommand).build() {
2086
- static {
2087
- __name(this, "GetTimelineEventCommand");
2088
- }
489
+ const se_DeleteReplicationSetCommand = async (input, context) => {
490
+ const b = core.requestBuilder(input, context);
491
+ const headers = {};
492
+ b.bp("/deleteReplicationSet");
493
+ const query = smithyClient.map({
494
+ [_a]: [, smithyClient.expectNonNull(input[_a], `arn`)],
495
+ });
496
+ let body;
497
+ b.m("POST").h(headers).q(query).b(body);
498
+ return b.build();
2089
499
  };
2090
-
2091
- // src/commands/ListIncidentFindingsCommand.ts
2092
-
2093
-
2094
-
2095
- var ListIncidentFindingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2096
- return [
2097
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2098
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2099
- ];
2100
- }).s("SSMIncidents", "ListIncidentFindings", {}).n("SSMIncidentsClient", "ListIncidentFindingsCommand").f(void 0, void 0).ser(se_ListIncidentFindingsCommand).de(de_ListIncidentFindingsCommand).build() {
2101
- static {
2102
- __name(this, "ListIncidentFindingsCommand");
2103
- }
500
+ const se_DeleteResourcePolicyCommand = async (input, context) => {
501
+ const b = core.requestBuilder(input, context);
502
+ const headers = {
503
+ "content-type": "application/json",
504
+ };
505
+ b.bp("/deleteResourcePolicy");
506
+ let body;
507
+ body = JSON.stringify(smithyClient.take(input, {
508
+ policyId: [],
509
+ resourceArn: [],
510
+ }));
511
+ b.m("POST").h(headers).b(body);
512
+ return b.build();
2104
513
  };
2105
-
2106
- // src/commands/ListIncidentRecordsCommand.ts
2107
-
2108
-
2109
-
2110
- var ListIncidentRecordsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2111
- return [
2112
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2113
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2114
- ];
2115
- }).s("SSMIncidents", "ListIncidentRecords", {}).n("SSMIncidentsClient", "ListIncidentRecordsCommand").f(void 0, void 0).ser(se_ListIncidentRecordsCommand).de(de_ListIncidentRecordsCommand).build() {
2116
- static {
2117
- __name(this, "ListIncidentRecordsCommand");
2118
- }
514
+ const se_DeleteResponsePlanCommand = async (input, context) => {
515
+ const b = core.requestBuilder(input, context);
516
+ const headers = {
517
+ "content-type": "application/json",
518
+ };
519
+ b.bp("/deleteResponsePlan");
520
+ let body;
521
+ body = JSON.stringify(smithyClient.take(input, {
522
+ arn: [],
523
+ }));
524
+ b.m("POST").h(headers).b(body);
525
+ return b.build();
2119
526
  };
2120
-
2121
- // src/commands/ListRelatedItemsCommand.ts
2122
-
2123
-
2124
-
2125
- var ListRelatedItemsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2126
- return [
2127
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2128
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2129
- ];
2130
- }).s("SSMIncidents", "ListRelatedItems", {}).n("SSMIncidentsClient", "ListRelatedItemsCommand").f(void 0, void 0).ser(se_ListRelatedItemsCommand).de(de_ListRelatedItemsCommand).build() {
2131
- static {
2132
- __name(this, "ListRelatedItemsCommand");
2133
- }
527
+ const se_DeleteTimelineEventCommand = async (input, context) => {
528
+ const b = core.requestBuilder(input, context);
529
+ const headers = {
530
+ "content-type": "application/json",
531
+ };
532
+ b.bp("/deleteTimelineEvent");
533
+ let body;
534
+ body = JSON.stringify(smithyClient.take(input, {
535
+ eventId: [],
536
+ incidentRecordArn: [],
537
+ }));
538
+ b.m("POST").h(headers).b(body);
539
+ return b.build();
2134
540
  };
2135
-
2136
- // src/commands/ListReplicationSetsCommand.ts
2137
-
2138
-
2139
-
2140
- var ListReplicationSetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2141
- return [
2142
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2143
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2144
- ];
2145
- }).s("SSMIncidents", "ListReplicationSets", {}).n("SSMIncidentsClient", "ListReplicationSetsCommand").f(void 0, void 0).ser(se_ListReplicationSetsCommand).de(de_ListReplicationSetsCommand).build() {
2146
- static {
2147
- __name(this, "ListReplicationSetsCommand");
2148
- }
541
+ const se_GetIncidentRecordCommand = async (input, context) => {
542
+ const b = core.requestBuilder(input, context);
543
+ const headers = {};
544
+ b.bp("/getIncidentRecord");
545
+ const query = smithyClient.map({
546
+ [_a]: [, smithyClient.expectNonNull(input[_a], `arn`)],
547
+ });
548
+ let body;
549
+ b.m("GET").h(headers).q(query).b(body);
550
+ return b.build();
2149
551
  };
2150
-
2151
- // src/commands/ListResponsePlansCommand.ts
2152
-
2153
-
2154
-
2155
- var ListResponsePlansCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2156
- return [
2157
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2158
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2159
- ];
2160
- }).s("SSMIncidents", "ListResponsePlans", {}).n("SSMIncidentsClient", "ListResponsePlansCommand").f(void 0, void 0).ser(se_ListResponsePlansCommand).de(de_ListResponsePlansCommand).build() {
2161
- static {
2162
- __name(this, "ListResponsePlansCommand");
2163
- }
552
+ const se_GetReplicationSetCommand = async (input, context) => {
553
+ const b = core.requestBuilder(input, context);
554
+ const headers = {};
555
+ b.bp("/getReplicationSet");
556
+ const query = smithyClient.map({
557
+ [_a]: [, smithyClient.expectNonNull(input[_a], `arn`)],
558
+ });
559
+ let body;
560
+ b.m("GET").h(headers).q(query).b(body);
561
+ return b.build();
2164
562
  };
2165
-
2166
- // src/commands/ListTagsForResourceCommand.ts
2167
-
2168
-
2169
-
2170
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2171
- return [
2172
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2173
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2174
- ];
2175
- }).s("SSMIncidents", "ListTagsForResource", {}).n("SSMIncidentsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2176
- static {
2177
- __name(this, "ListTagsForResourceCommand");
2178
- }
563
+ const se_GetResourcePoliciesCommand = async (input, context) => {
564
+ const b = core.requestBuilder(input, context);
565
+ const headers = {
566
+ "content-type": "application/json",
567
+ };
568
+ b.bp("/getResourcePolicies");
569
+ const query = smithyClient.map({
570
+ [_rA]: [, smithyClient.expectNonNull(input[_rA], `resourceArn`)],
571
+ });
572
+ let body;
573
+ body = JSON.stringify(smithyClient.take(input, {
574
+ maxResults: [],
575
+ nextToken: [],
576
+ }));
577
+ b.m("POST").h(headers).q(query).b(body);
578
+ return b.build();
2179
579
  };
2180
-
2181
- // src/commands/ListTimelineEventsCommand.ts
2182
-
2183
-
2184
-
2185
- var ListTimelineEventsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2186
- return [
2187
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2188
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2189
- ];
2190
- }).s("SSMIncidents", "ListTimelineEvents", {}).n("SSMIncidentsClient", "ListTimelineEventsCommand").f(void 0, void 0).ser(se_ListTimelineEventsCommand).de(de_ListTimelineEventsCommand).build() {
2191
- static {
2192
- __name(this, "ListTimelineEventsCommand");
2193
- }
580
+ const se_GetResponsePlanCommand = async (input, context) => {
581
+ const b = core.requestBuilder(input, context);
582
+ const headers = {};
583
+ b.bp("/getResponsePlan");
584
+ const query = smithyClient.map({
585
+ [_a]: [, smithyClient.expectNonNull(input[_a], `arn`)],
586
+ });
587
+ let body;
588
+ b.m("GET").h(headers).q(query).b(body);
589
+ return b.build();
2194
590
  };
2195
-
2196
- // src/commands/PutResourcePolicyCommand.ts
2197
-
2198
-
2199
-
2200
- var PutResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2201
- return [
2202
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2203
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2204
- ];
2205
- }).s("SSMIncidents", "PutResourcePolicy", {}).n("SSMIncidentsClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
2206
- static {
2207
- __name(this, "PutResourcePolicyCommand");
2208
- }
591
+ const se_GetTimelineEventCommand = async (input, context) => {
592
+ const b = core.requestBuilder(input, context);
593
+ const headers = {};
594
+ b.bp("/getTimelineEvent");
595
+ const query = smithyClient.map({
596
+ [_iRA]: [, smithyClient.expectNonNull(input[_iRA], `incidentRecordArn`)],
597
+ [_eI]: [, smithyClient.expectNonNull(input[_eI], `eventId`)],
598
+ });
599
+ let body;
600
+ b.m("GET").h(headers).q(query).b(body);
601
+ return b.build();
2209
602
  };
2210
-
2211
- // src/commands/StartIncidentCommand.ts
2212
-
2213
-
2214
-
2215
- var StartIncidentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2216
- return [
2217
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2218
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2219
- ];
2220
- }).s("SSMIncidents", "StartIncident", {}).n("SSMIncidentsClient", "StartIncidentCommand").f(void 0, void 0).ser(se_StartIncidentCommand).de(de_StartIncidentCommand).build() {
2221
- static {
2222
- __name(this, "StartIncidentCommand");
2223
- }
603
+ const se_ListIncidentFindingsCommand = async (input, context) => {
604
+ const b = core.requestBuilder(input, context);
605
+ const headers = {
606
+ "content-type": "application/json",
607
+ };
608
+ b.bp("/listIncidentFindings");
609
+ let body;
610
+ body = JSON.stringify(smithyClient.take(input, {
611
+ incidentRecordArn: [],
612
+ maxResults: [],
613
+ nextToken: [],
614
+ }));
615
+ b.m("POST").h(headers).b(body);
616
+ return b.build();
2224
617
  };
2225
-
2226
- // src/commands/TagResourceCommand.ts
2227
-
2228
-
2229
-
2230
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2231
- return [
2232
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2233
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2234
- ];
2235
- }).s("SSMIncidents", "TagResource", {}).n("SSMIncidentsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2236
- static {
2237
- __name(this, "TagResourceCommand");
2238
- }
618
+ const se_ListIncidentRecordsCommand = async (input, context) => {
619
+ const b = core.requestBuilder(input, context);
620
+ const headers = {
621
+ "content-type": "application/json",
622
+ };
623
+ b.bp("/listIncidentRecords");
624
+ let body;
625
+ body = JSON.stringify(smithyClient.take(input, {
626
+ filters: (_) => se_FilterList(_),
627
+ maxResults: [],
628
+ nextToken: [],
629
+ }));
630
+ b.m("POST").h(headers).b(body);
631
+ return b.build();
2239
632
  };
2240
-
2241
- // src/commands/UntagResourceCommand.ts
2242
-
2243
-
2244
-
2245
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2246
- return [
2247
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2248
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2249
- ];
2250
- }).s("SSMIncidents", "UntagResource", {}).n("SSMIncidentsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2251
- static {
2252
- __name(this, "UntagResourceCommand");
2253
- }
633
+ const se_ListRelatedItemsCommand = async (input, context) => {
634
+ const b = core.requestBuilder(input, context);
635
+ const headers = {
636
+ "content-type": "application/json",
637
+ };
638
+ b.bp("/listRelatedItems");
639
+ let body;
640
+ body = JSON.stringify(smithyClient.take(input, {
641
+ incidentRecordArn: [],
642
+ maxResults: [],
643
+ nextToken: [],
644
+ }));
645
+ b.m("POST").h(headers).b(body);
646
+ return b.build();
2254
647
  };
2255
-
2256
- // src/commands/UpdateDeletionProtectionCommand.ts
2257
-
2258
-
2259
-
2260
- var UpdateDeletionProtectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2261
- return [
2262
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2263
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2264
- ];
2265
- }).s("SSMIncidents", "UpdateDeletionProtection", {}).n("SSMIncidentsClient", "UpdateDeletionProtectionCommand").f(void 0, void 0).ser(se_UpdateDeletionProtectionCommand).de(de_UpdateDeletionProtectionCommand).build() {
2266
- static {
2267
- __name(this, "UpdateDeletionProtectionCommand");
2268
- }
648
+ const se_ListReplicationSetsCommand = async (input, context) => {
649
+ const b = core.requestBuilder(input, context);
650
+ const headers = {
651
+ "content-type": "application/json",
652
+ };
653
+ b.bp("/listReplicationSets");
654
+ let body;
655
+ body = JSON.stringify(smithyClient.take(input, {
656
+ maxResults: [],
657
+ nextToken: [],
658
+ }));
659
+ b.m("POST").h(headers).b(body);
660
+ return b.build();
2269
661
  };
2270
-
2271
- // src/commands/UpdateIncidentRecordCommand.ts
2272
-
2273
-
2274
-
2275
- var UpdateIncidentRecordCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2276
- return [
2277
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2278
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2279
- ];
2280
- }).s("SSMIncidents", "UpdateIncidentRecord", {}).n("SSMIncidentsClient", "UpdateIncidentRecordCommand").f(void 0, void 0).ser(se_UpdateIncidentRecordCommand).de(de_UpdateIncidentRecordCommand).build() {
2281
- static {
2282
- __name(this, "UpdateIncidentRecordCommand");
2283
- }
662
+ const se_ListResponsePlansCommand = async (input, context) => {
663
+ const b = core.requestBuilder(input, context);
664
+ const headers = {
665
+ "content-type": "application/json",
666
+ };
667
+ b.bp("/listResponsePlans");
668
+ let body;
669
+ body = JSON.stringify(smithyClient.take(input, {
670
+ maxResults: [],
671
+ nextToken: [],
672
+ }));
673
+ b.m("POST").h(headers).b(body);
674
+ return b.build();
2284
675
  };
2285
-
2286
- // src/commands/UpdateRelatedItemsCommand.ts
2287
-
2288
-
2289
-
2290
- var UpdateRelatedItemsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2291
- return [
2292
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2293
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2294
- ];
2295
- }).s("SSMIncidents", "UpdateRelatedItems", {}).n("SSMIncidentsClient", "UpdateRelatedItemsCommand").f(void 0, void 0).ser(se_UpdateRelatedItemsCommand).de(de_UpdateRelatedItemsCommand).build() {
2296
- static {
2297
- __name(this, "UpdateRelatedItemsCommand");
2298
- }
676
+ const se_ListTagsForResourceCommand = async (input, context) => {
677
+ const b = core.requestBuilder(input, context);
678
+ const headers = {};
679
+ b.bp("/tags/{resourceArn}");
680
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
681
+ let body;
682
+ b.m("GET").h(headers).b(body);
683
+ return b.build();
2299
684
  };
2300
-
2301
- // src/commands/UpdateReplicationSetCommand.ts
2302
-
2303
-
2304
-
2305
- var UpdateReplicationSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2306
- return [
2307
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2308
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2309
- ];
2310
- }).s("SSMIncidents", "UpdateReplicationSet", {}).n("SSMIncidentsClient", "UpdateReplicationSetCommand").f(void 0, void 0).ser(se_UpdateReplicationSetCommand).de(de_UpdateReplicationSetCommand).build() {
2311
- static {
2312
- __name(this, "UpdateReplicationSetCommand");
2313
- }
685
+ const se_ListTimelineEventsCommand = async (input, context) => {
686
+ const b = core.requestBuilder(input, context);
687
+ const headers = {
688
+ "content-type": "application/json",
689
+ };
690
+ b.bp("/listTimelineEvents");
691
+ let body;
692
+ body = JSON.stringify(smithyClient.take(input, {
693
+ filters: (_) => se_FilterList(_),
694
+ incidentRecordArn: [],
695
+ maxResults: [],
696
+ nextToken: [],
697
+ sortBy: [],
698
+ sortOrder: [],
699
+ }));
700
+ b.m("POST").h(headers).b(body);
701
+ return b.build();
2314
702
  };
2315
-
2316
- // src/commands/UpdateResponsePlanCommand.ts
2317
-
2318
-
2319
-
2320
- var UpdateResponsePlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2321
- return [
2322
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2323
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2324
- ];
2325
- }).s("SSMIncidents", "UpdateResponsePlan", {}).n("SSMIncidentsClient", "UpdateResponsePlanCommand").f(void 0, void 0).ser(se_UpdateResponsePlanCommand).de(de_UpdateResponsePlanCommand).build() {
2326
- static {
2327
- __name(this, "UpdateResponsePlanCommand");
2328
- }
703
+ const se_PutResourcePolicyCommand = async (input, context) => {
704
+ const b = core.requestBuilder(input, context);
705
+ const headers = {
706
+ "content-type": "application/json",
707
+ };
708
+ b.bp("/putResourcePolicy");
709
+ let body;
710
+ body = JSON.stringify(smithyClient.take(input, {
711
+ policy: [],
712
+ resourceArn: [],
713
+ }));
714
+ b.m("POST").h(headers).b(body);
715
+ return b.build();
2329
716
  };
2330
-
2331
- // src/commands/UpdateTimelineEventCommand.ts
2332
-
2333
-
2334
-
2335
- var UpdateTimelineEventCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2336
- return [
2337
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2338
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2339
- ];
2340
- }).s("SSMIncidents", "UpdateTimelineEvent", {}).n("SSMIncidentsClient", "UpdateTimelineEventCommand").f(void 0, void 0).ser(se_UpdateTimelineEventCommand).de(de_UpdateTimelineEventCommand).build() {
2341
- static {
2342
- __name(this, "UpdateTimelineEventCommand");
2343
- }
717
+ const se_StartIncidentCommand = async (input, context) => {
718
+ const b = core.requestBuilder(input, context);
719
+ const headers = {
720
+ "content-type": "application/json",
721
+ };
722
+ b.bp("/startIncident");
723
+ let body;
724
+ body = JSON.stringify(smithyClient.take(input, {
725
+ clientToken: [true, (_) => _ ?? uuid.v4()],
726
+ impact: [],
727
+ relatedItems: (_) => smithyClient._json(_),
728
+ responsePlanArn: [],
729
+ title: [],
730
+ triggerDetails: (_) => se_TriggerDetails(_),
731
+ }));
732
+ b.m("POST").h(headers).b(body);
733
+ return b.build();
2344
734
  };
735
+ const se_TagResourceCommand = async (input, context) => {
736
+ const b = core.requestBuilder(input, context);
737
+ const headers = {
738
+ "content-type": "application/json",
739
+ };
740
+ b.bp("/tags/{resourceArn}");
741
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
742
+ let body;
743
+ body = JSON.stringify(smithyClient.take(input, {
744
+ tags: (_) => smithyClient._json(_),
745
+ }));
746
+ b.m("POST").h(headers).b(body);
747
+ return b.build();
748
+ };
749
+ const se_UntagResourceCommand = async (input, context) => {
750
+ const b = core.requestBuilder(input, context);
751
+ const headers = {};
752
+ b.bp("/tags/{resourceArn}");
753
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
754
+ const query = smithyClient.map({
755
+ [_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
756
+ });
757
+ let body;
758
+ b.m("DELETE").h(headers).q(query).b(body);
759
+ return b.build();
760
+ };
761
+ const se_UpdateDeletionProtectionCommand = async (input, context) => {
762
+ const b = core.requestBuilder(input, context);
763
+ const headers = {
764
+ "content-type": "application/json",
765
+ };
766
+ b.bp("/updateDeletionProtection");
767
+ let body;
768
+ body = JSON.stringify(smithyClient.take(input, {
769
+ arn: [],
770
+ clientToken: [true, (_) => _ ?? uuid.v4()],
771
+ deletionProtected: [],
772
+ }));
773
+ b.m("POST").h(headers).b(body);
774
+ return b.build();
775
+ };
776
+ const se_UpdateIncidentRecordCommand = async (input, context) => {
777
+ const b = core.requestBuilder(input, context);
778
+ const headers = {
779
+ "content-type": "application/json",
780
+ };
781
+ b.bp("/updateIncidentRecord");
782
+ let body;
783
+ body = JSON.stringify(smithyClient.take(input, {
784
+ arn: [],
785
+ chatChannel: (_) => smithyClient._json(_),
786
+ clientToken: [true, (_) => _ ?? uuid.v4()],
787
+ impact: [],
788
+ notificationTargets: (_) => smithyClient._json(_),
789
+ status: [],
790
+ summary: [],
791
+ title: [],
792
+ }));
793
+ b.m("POST").h(headers).b(body);
794
+ return b.build();
795
+ };
796
+ const se_UpdateRelatedItemsCommand = async (input, context) => {
797
+ const b = core.requestBuilder(input, context);
798
+ const headers = {
799
+ "content-type": "application/json",
800
+ };
801
+ b.bp("/updateRelatedItems");
802
+ let body;
803
+ body = JSON.stringify(smithyClient.take(input, {
804
+ clientToken: [true, (_) => _ ?? uuid.v4()],
805
+ incidentRecordArn: [],
806
+ relatedItemsUpdate: (_) => smithyClient._json(_),
807
+ }));
808
+ b.m("POST").h(headers).b(body);
809
+ return b.build();
810
+ };
811
+ const se_UpdateReplicationSetCommand = async (input, context) => {
812
+ const b = core.requestBuilder(input, context);
813
+ const headers = {
814
+ "content-type": "application/json",
815
+ };
816
+ b.bp("/updateReplicationSet");
817
+ let body;
818
+ body = JSON.stringify(smithyClient.take(input, {
819
+ actions: (_) => smithyClient._json(_),
820
+ arn: [],
821
+ clientToken: [true, (_) => _ ?? uuid.v4()],
822
+ }));
823
+ b.m("POST").h(headers).b(body);
824
+ return b.build();
825
+ };
826
+ const se_UpdateResponsePlanCommand = async (input, context) => {
827
+ const b = core.requestBuilder(input, context);
828
+ const headers = {
829
+ "content-type": "application/json",
830
+ };
831
+ b.bp("/updateResponsePlan");
832
+ let body;
833
+ body = JSON.stringify(smithyClient.take(input, {
834
+ actions: (_) => smithyClient._json(_),
835
+ arn: [],
836
+ chatChannel: (_) => smithyClient._json(_),
837
+ clientToken: [true, (_) => _ ?? uuid.v4()],
838
+ displayName: [],
839
+ engagements: (_) => smithyClient._json(_),
840
+ incidentTemplateDedupeString: [],
841
+ incidentTemplateImpact: [],
842
+ incidentTemplateNotificationTargets: (_) => smithyClient._json(_),
843
+ incidentTemplateSummary: [],
844
+ incidentTemplateTags: (_) => smithyClient._json(_),
845
+ incidentTemplateTitle: [],
846
+ integrations: (_) => smithyClient._json(_),
847
+ }));
848
+ b.m("POST").h(headers).b(body);
849
+ return b.build();
850
+ };
851
+ const se_UpdateTimelineEventCommand = async (input, context) => {
852
+ const b = core.requestBuilder(input, context);
853
+ const headers = {
854
+ "content-type": "application/json",
855
+ };
856
+ b.bp("/updateTimelineEvent");
857
+ let body;
858
+ body = JSON.stringify(smithyClient.take(input, {
859
+ clientToken: [true, (_) => _ ?? uuid.v4()],
860
+ eventData: [],
861
+ eventId: [],
862
+ eventReferences: (_) => smithyClient._json(_),
863
+ eventTime: (_) => _.getTime() / 1_000,
864
+ eventType: [],
865
+ incidentRecordArn: [],
866
+ }));
867
+ b.m("POST").h(headers).b(body);
868
+ return b.build();
869
+ };
870
+ const de_BatchGetIncidentFindingsCommand = async (output, context) => {
871
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
872
+ return de_CommandError(output, context);
873
+ }
874
+ const contents = smithyClient.map({
875
+ $metadata: deserializeMetadata(output),
876
+ });
877
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
878
+ const doc = smithyClient.take(data, {
879
+ errors: smithyClient._json,
880
+ findings: (_) => de_FindingList(_),
881
+ });
882
+ Object.assign(contents, doc);
883
+ return contents;
884
+ };
885
+ const de_CreateReplicationSetCommand = async (output, context) => {
886
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
887
+ return de_CommandError(output, context);
888
+ }
889
+ const contents = smithyClient.map({
890
+ $metadata: deserializeMetadata(output),
891
+ });
892
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
893
+ const doc = smithyClient.take(data, {
894
+ arn: smithyClient.expectString,
895
+ });
896
+ Object.assign(contents, doc);
897
+ return contents;
898
+ };
899
+ const de_CreateResponsePlanCommand = async (output, context) => {
900
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
901
+ return de_CommandError(output, context);
902
+ }
903
+ const contents = smithyClient.map({
904
+ $metadata: deserializeMetadata(output),
905
+ });
906
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
907
+ const doc = smithyClient.take(data, {
908
+ arn: smithyClient.expectString,
909
+ });
910
+ Object.assign(contents, doc);
911
+ return contents;
912
+ };
913
+ const de_CreateTimelineEventCommand = async (output, context) => {
914
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
915
+ return de_CommandError(output, context);
916
+ }
917
+ const contents = smithyClient.map({
918
+ $metadata: deserializeMetadata(output),
919
+ });
920
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
921
+ const doc = smithyClient.take(data, {
922
+ eventId: smithyClient.expectString,
923
+ incidentRecordArn: smithyClient.expectString,
924
+ });
925
+ Object.assign(contents, doc);
926
+ return contents;
927
+ };
928
+ const de_DeleteIncidentRecordCommand = async (output, context) => {
929
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
930
+ return de_CommandError(output, context);
931
+ }
932
+ const contents = smithyClient.map({
933
+ $metadata: deserializeMetadata(output),
934
+ });
935
+ await smithyClient.collectBody(output.body, context);
936
+ return contents;
937
+ };
938
+ const de_DeleteReplicationSetCommand = async (output, context) => {
939
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
940
+ return de_CommandError(output, context);
941
+ }
942
+ const contents = smithyClient.map({
943
+ $metadata: deserializeMetadata(output),
944
+ });
945
+ await smithyClient.collectBody(output.body, context);
946
+ return contents;
947
+ };
948
+ const de_DeleteResourcePolicyCommand = async (output, context) => {
949
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
950
+ return de_CommandError(output, context);
951
+ }
952
+ const contents = smithyClient.map({
953
+ $metadata: deserializeMetadata(output),
954
+ });
955
+ await smithyClient.collectBody(output.body, context);
956
+ return contents;
957
+ };
958
+ const de_DeleteResponsePlanCommand = async (output, context) => {
959
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
960
+ return de_CommandError(output, context);
961
+ }
962
+ const contents = smithyClient.map({
963
+ $metadata: deserializeMetadata(output),
964
+ });
965
+ await smithyClient.collectBody(output.body, context);
966
+ return contents;
967
+ };
968
+ const de_DeleteTimelineEventCommand = async (output, context) => {
969
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
970
+ return de_CommandError(output, context);
971
+ }
972
+ const contents = smithyClient.map({
973
+ $metadata: deserializeMetadata(output),
974
+ });
975
+ await smithyClient.collectBody(output.body, context);
976
+ return contents;
977
+ };
978
+ const de_GetIncidentRecordCommand = async (output, context) => {
979
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
980
+ return de_CommandError(output, context);
981
+ }
982
+ const contents = smithyClient.map({
983
+ $metadata: deserializeMetadata(output),
984
+ });
985
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
986
+ const doc = smithyClient.take(data, {
987
+ incidentRecord: (_) => de_IncidentRecord(_),
988
+ });
989
+ Object.assign(contents, doc);
990
+ return contents;
991
+ };
992
+ const de_GetReplicationSetCommand = async (output, context) => {
993
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
994
+ return de_CommandError(output, context);
995
+ }
996
+ const contents = smithyClient.map({
997
+ $metadata: deserializeMetadata(output),
998
+ });
999
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1000
+ const doc = smithyClient.take(data, {
1001
+ replicationSet: (_) => de_ReplicationSet(_),
1002
+ });
1003
+ Object.assign(contents, doc);
1004
+ return contents;
1005
+ };
1006
+ const de_GetResourcePoliciesCommand = async (output, context) => {
1007
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1008
+ return de_CommandError(output, context);
1009
+ }
1010
+ const contents = smithyClient.map({
1011
+ $metadata: deserializeMetadata(output),
1012
+ });
1013
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1014
+ const doc = smithyClient.take(data, {
1015
+ nextToken: smithyClient.expectString,
1016
+ resourcePolicies: smithyClient._json,
1017
+ });
1018
+ Object.assign(contents, doc);
1019
+ return contents;
1020
+ };
1021
+ const de_GetResponsePlanCommand = async (output, context) => {
1022
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1023
+ return de_CommandError(output, context);
1024
+ }
1025
+ const contents = smithyClient.map({
1026
+ $metadata: deserializeMetadata(output),
1027
+ });
1028
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1029
+ const doc = smithyClient.take(data, {
1030
+ actions: smithyClient._json,
1031
+ arn: smithyClient.expectString,
1032
+ chatChannel: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
1033
+ displayName: smithyClient.expectString,
1034
+ engagements: smithyClient._json,
1035
+ incidentTemplate: smithyClient._json,
1036
+ integrations: smithyClient._json,
1037
+ name: smithyClient.expectString,
1038
+ });
1039
+ Object.assign(contents, doc);
1040
+ return contents;
1041
+ };
1042
+ const de_GetTimelineEventCommand = async (output, context) => {
1043
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1044
+ return de_CommandError(output, context);
1045
+ }
1046
+ const contents = smithyClient.map({
1047
+ $metadata: deserializeMetadata(output),
1048
+ });
1049
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1050
+ const doc = smithyClient.take(data, {
1051
+ event: (_) => de_TimelineEvent(_),
1052
+ });
1053
+ Object.assign(contents, doc);
1054
+ return contents;
1055
+ };
1056
+ const de_ListIncidentFindingsCommand = async (output, context) => {
1057
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1058
+ return de_CommandError(output, context);
1059
+ }
1060
+ const contents = smithyClient.map({
1061
+ $metadata: deserializeMetadata(output),
1062
+ });
1063
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1064
+ const doc = smithyClient.take(data, {
1065
+ findings: (_) => de_FindingSummaryList(_),
1066
+ nextToken: smithyClient.expectString,
1067
+ });
1068
+ Object.assign(contents, doc);
1069
+ return contents;
1070
+ };
1071
+ const de_ListIncidentRecordsCommand = async (output, context) => {
1072
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1073
+ return de_CommandError(output, context);
1074
+ }
1075
+ const contents = smithyClient.map({
1076
+ $metadata: deserializeMetadata(output),
1077
+ });
1078
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1079
+ const doc = smithyClient.take(data, {
1080
+ incidentRecordSummaries: (_) => de_IncidentRecordSummaryList(_),
1081
+ nextToken: smithyClient.expectString,
1082
+ });
1083
+ Object.assign(contents, doc);
1084
+ return contents;
1085
+ };
1086
+ const de_ListRelatedItemsCommand = async (output, context) => {
1087
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1088
+ return de_CommandError(output, context);
1089
+ }
1090
+ const contents = smithyClient.map({
1091
+ $metadata: deserializeMetadata(output),
1092
+ });
1093
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1094
+ const doc = smithyClient.take(data, {
1095
+ nextToken: smithyClient.expectString,
1096
+ relatedItems: smithyClient._json,
1097
+ });
1098
+ Object.assign(contents, doc);
1099
+ return contents;
1100
+ };
1101
+ const de_ListReplicationSetsCommand = async (output, context) => {
1102
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1103
+ return de_CommandError(output, context);
1104
+ }
1105
+ const contents = smithyClient.map({
1106
+ $metadata: deserializeMetadata(output),
1107
+ });
1108
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1109
+ const doc = smithyClient.take(data, {
1110
+ nextToken: smithyClient.expectString,
1111
+ replicationSetArns: smithyClient._json,
1112
+ });
1113
+ Object.assign(contents, doc);
1114
+ return contents;
1115
+ };
1116
+ const de_ListResponsePlansCommand = async (output, context) => {
1117
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1118
+ return de_CommandError(output, context);
1119
+ }
1120
+ const contents = smithyClient.map({
1121
+ $metadata: deserializeMetadata(output),
1122
+ });
1123
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1124
+ const doc = smithyClient.take(data, {
1125
+ nextToken: smithyClient.expectString,
1126
+ responsePlanSummaries: smithyClient._json,
1127
+ });
1128
+ Object.assign(contents, doc);
1129
+ return contents;
1130
+ };
1131
+ const de_ListTagsForResourceCommand = async (output, context) => {
1132
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1133
+ return de_CommandError(output, context);
1134
+ }
1135
+ const contents = smithyClient.map({
1136
+ $metadata: deserializeMetadata(output),
1137
+ });
1138
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1139
+ const doc = smithyClient.take(data, {
1140
+ tags: smithyClient._json,
1141
+ });
1142
+ Object.assign(contents, doc);
1143
+ return contents;
1144
+ };
1145
+ const de_ListTimelineEventsCommand = async (output, context) => {
1146
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1147
+ return de_CommandError(output, context);
1148
+ }
1149
+ const contents = smithyClient.map({
1150
+ $metadata: deserializeMetadata(output),
1151
+ });
1152
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1153
+ const doc = smithyClient.take(data, {
1154
+ eventSummaries: (_) => de_EventSummaryList(_),
1155
+ nextToken: smithyClient.expectString,
1156
+ });
1157
+ Object.assign(contents, doc);
1158
+ return contents;
1159
+ };
1160
+ const de_PutResourcePolicyCommand = async (output, context) => {
1161
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1162
+ return de_CommandError(output, context);
1163
+ }
1164
+ const contents = smithyClient.map({
1165
+ $metadata: deserializeMetadata(output),
1166
+ });
1167
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1168
+ const doc = smithyClient.take(data, {
1169
+ policyId: smithyClient.expectString,
1170
+ });
1171
+ Object.assign(contents, doc);
1172
+ return contents;
1173
+ };
1174
+ const de_StartIncidentCommand = async (output, context) => {
1175
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1176
+ return de_CommandError(output, context);
1177
+ }
1178
+ const contents = smithyClient.map({
1179
+ $metadata: deserializeMetadata(output),
1180
+ });
1181
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1182
+ const doc = smithyClient.take(data, {
1183
+ incidentRecordArn: smithyClient.expectString,
1184
+ });
1185
+ Object.assign(contents, doc);
1186
+ return contents;
1187
+ };
1188
+ const de_TagResourceCommand = async (output, context) => {
1189
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1190
+ return de_CommandError(output, context);
1191
+ }
1192
+ const contents = smithyClient.map({
1193
+ $metadata: deserializeMetadata(output),
1194
+ });
1195
+ await smithyClient.collectBody(output.body, context);
1196
+ return contents;
1197
+ };
1198
+ const de_UntagResourceCommand = async (output, context) => {
1199
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1200
+ return de_CommandError(output, context);
1201
+ }
1202
+ const contents = smithyClient.map({
1203
+ $metadata: deserializeMetadata(output),
1204
+ });
1205
+ await smithyClient.collectBody(output.body, context);
1206
+ return contents;
1207
+ };
1208
+ const de_UpdateDeletionProtectionCommand = async (output, context) => {
1209
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1210
+ return de_CommandError(output, context);
1211
+ }
1212
+ const contents = smithyClient.map({
1213
+ $metadata: deserializeMetadata(output),
1214
+ });
1215
+ await smithyClient.collectBody(output.body, context);
1216
+ return contents;
1217
+ };
1218
+ const de_UpdateIncidentRecordCommand = async (output, context) => {
1219
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1220
+ return de_CommandError(output, context);
1221
+ }
1222
+ const contents = smithyClient.map({
1223
+ $metadata: deserializeMetadata(output),
1224
+ });
1225
+ await smithyClient.collectBody(output.body, context);
1226
+ return contents;
1227
+ };
1228
+ const de_UpdateRelatedItemsCommand = async (output, context) => {
1229
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1230
+ return de_CommandError(output, context);
1231
+ }
1232
+ const contents = smithyClient.map({
1233
+ $metadata: deserializeMetadata(output),
1234
+ });
1235
+ await smithyClient.collectBody(output.body, context);
1236
+ return contents;
1237
+ };
1238
+ const de_UpdateReplicationSetCommand = async (output, context) => {
1239
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1240
+ return de_CommandError(output, context);
1241
+ }
1242
+ const contents = smithyClient.map({
1243
+ $metadata: deserializeMetadata(output),
1244
+ });
1245
+ await smithyClient.collectBody(output.body, context);
1246
+ return contents;
1247
+ };
1248
+ const de_UpdateResponsePlanCommand = async (output, context) => {
1249
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1250
+ return de_CommandError(output, context);
1251
+ }
1252
+ const contents = smithyClient.map({
1253
+ $metadata: deserializeMetadata(output),
1254
+ });
1255
+ await smithyClient.collectBody(output.body, context);
1256
+ return contents;
1257
+ };
1258
+ const de_UpdateTimelineEventCommand = async (output, context) => {
1259
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1260
+ return de_CommandError(output, context);
1261
+ }
1262
+ const contents = smithyClient.map({
1263
+ $metadata: deserializeMetadata(output),
1264
+ });
1265
+ await smithyClient.collectBody(output.body, context);
1266
+ return contents;
1267
+ };
1268
+ const de_CommandError = async (output, context) => {
1269
+ const parsedOutput = {
1270
+ ...output,
1271
+ body: await core$1.parseJsonErrorBody(output.body, context),
1272
+ };
1273
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1274
+ switch (errorCode) {
1275
+ case "AccessDeniedException":
1276
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1277
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
1278
+ case "InternalServerException":
1279
+ case "com.amazonaws.ssmincidents#InternalServerException":
1280
+ throw await de_InternalServerExceptionRes(parsedOutput);
1281
+ case "ResourceNotFoundException":
1282
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1283
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
1284
+ case "ThrottlingException":
1285
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1286
+ throw await de_ThrottlingExceptionRes(parsedOutput);
1287
+ case "ValidationException":
1288
+ case "com.amazonaws.ssmincidents#ValidationException":
1289
+ throw await de_ValidationExceptionRes(parsedOutput);
1290
+ case "ConflictException":
1291
+ case "com.amazonaws.ssmincidents#ConflictException":
1292
+ throw await de_ConflictExceptionRes(parsedOutput);
1293
+ case "ServiceQuotaExceededException":
1294
+ case "com.amazonaws.ssmincidents#ServiceQuotaExceededException":
1295
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
1296
+ default:
1297
+ const parsedBody = parsedOutput.body;
1298
+ return throwDefaultError({
1299
+ output,
1300
+ parsedBody,
1301
+ errorCode,
1302
+ });
1303
+ }
1304
+ };
1305
+ const throwDefaultError = smithyClient.withBaseException(SSMIncidentsServiceException);
1306
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1307
+ const contents = smithyClient.map({});
1308
+ const data = parsedOutput.body;
1309
+ const doc = smithyClient.take(data, {
1310
+ message: smithyClient.expectString,
1311
+ });
1312
+ Object.assign(contents, doc);
1313
+ const exception = new AccessDeniedException({
1314
+ $metadata: deserializeMetadata(parsedOutput),
1315
+ ...contents,
1316
+ });
1317
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1318
+ };
1319
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1320
+ const contents = smithyClient.map({});
1321
+ const data = parsedOutput.body;
1322
+ const doc = smithyClient.take(data, {
1323
+ message: smithyClient.expectString,
1324
+ resourceIdentifier: smithyClient.expectString,
1325
+ resourceType: smithyClient.expectString,
1326
+ retryAfter: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1327
+ });
1328
+ Object.assign(contents, doc);
1329
+ const exception = new ConflictException({
1330
+ $metadata: deserializeMetadata(parsedOutput),
1331
+ ...contents,
1332
+ });
1333
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1334
+ };
1335
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1336
+ const contents = smithyClient.map({});
1337
+ const data = parsedOutput.body;
1338
+ const doc = smithyClient.take(data, {
1339
+ message: smithyClient.expectString,
1340
+ });
1341
+ Object.assign(contents, doc);
1342
+ const exception = new InternalServerException({
1343
+ $metadata: deserializeMetadata(parsedOutput),
1344
+ ...contents,
1345
+ });
1346
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1347
+ };
1348
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1349
+ const contents = smithyClient.map({});
1350
+ const data = parsedOutput.body;
1351
+ const doc = smithyClient.take(data, {
1352
+ message: smithyClient.expectString,
1353
+ resourceIdentifier: smithyClient.expectString,
1354
+ resourceType: smithyClient.expectString,
1355
+ });
1356
+ Object.assign(contents, doc);
1357
+ const exception = new ResourceNotFoundException({
1358
+ $metadata: deserializeMetadata(parsedOutput),
1359
+ ...contents,
1360
+ });
1361
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1362
+ };
1363
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1364
+ const contents = smithyClient.map({});
1365
+ const data = parsedOutput.body;
1366
+ const doc = smithyClient.take(data, {
1367
+ message: smithyClient.expectString,
1368
+ quotaCode: smithyClient.expectString,
1369
+ resourceIdentifier: smithyClient.expectString,
1370
+ resourceType: smithyClient.expectString,
1371
+ serviceCode: smithyClient.expectString,
1372
+ });
1373
+ Object.assign(contents, doc);
1374
+ const exception = new ServiceQuotaExceededException({
1375
+ $metadata: deserializeMetadata(parsedOutput),
1376
+ ...contents,
1377
+ });
1378
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1379
+ };
1380
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1381
+ const contents = smithyClient.map({});
1382
+ const data = parsedOutput.body;
1383
+ const doc = smithyClient.take(data, {
1384
+ message: smithyClient.expectString,
1385
+ quotaCode: smithyClient.expectString,
1386
+ serviceCode: smithyClient.expectString,
1387
+ });
1388
+ Object.assign(contents, doc);
1389
+ const exception = new ThrottlingException({
1390
+ $metadata: deserializeMetadata(parsedOutput),
1391
+ ...contents,
1392
+ });
1393
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1394
+ };
1395
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1396
+ const contents = smithyClient.map({});
1397
+ const data = parsedOutput.body;
1398
+ const doc = smithyClient.take(data, {
1399
+ message: smithyClient.expectString,
1400
+ });
1401
+ Object.assign(contents, doc);
1402
+ const exception = new ValidationException({
1403
+ $metadata: deserializeMetadata(parsedOutput),
1404
+ ...contents,
1405
+ });
1406
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1407
+ };
1408
+ const se_Condition = (input, context) => {
1409
+ return exports.Condition.visit(input, {
1410
+ after: (value) => ({ after: value.getTime() / 1_000 }),
1411
+ before: (value) => ({ before: value.getTime() / 1_000 }),
1412
+ equals: (value) => ({ equals: smithyClient._json(value) }),
1413
+ _: (name, value) => ({ [name]: value }),
1414
+ });
1415
+ };
1416
+ const se_Filter = (input, context) => {
1417
+ return smithyClient.take(input, {
1418
+ condition: (_) => se_Condition(_),
1419
+ key: [],
1420
+ });
1421
+ };
1422
+ const se_FilterList = (input, context) => {
1423
+ return input
1424
+ .filter((e) => e != null)
1425
+ .map((entry) => {
1426
+ return se_Filter(entry);
1427
+ });
1428
+ };
1429
+ const se_TriggerDetails = (input, context) => {
1430
+ return smithyClient.take(input, {
1431
+ rawData: [],
1432
+ source: [],
1433
+ timestamp: (_) => _.getTime() / 1_000,
1434
+ triggerArn: [],
1435
+ });
1436
+ };
1437
+ const de_CloudFormationStackUpdate = (output, context) => {
1438
+ return smithyClient.take(output, {
1439
+ endTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1440
+ stackArn: smithyClient.expectString,
1441
+ startTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1442
+ });
1443
+ };
1444
+ const de_CodeDeployDeployment = (output, context) => {
1445
+ return smithyClient.take(output, {
1446
+ deploymentGroupArn: smithyClient.expectString,
1447
+ deploymentId: smithyClient.expectString,
1448
+ endTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1449
+ startTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1450
+ });
1451
+ };
1452
+ const de_EventSummary = (output, context) => {
1453
+ return smithyClient.take(output, {
1454
+ eventId: smithyClient.expectString,
1455
+ eventReferences: smithyClient._json,
1456
+ eventTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1457
+ eventType: smithyClient.expectString,
1458
+ eventUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1459
+ incidentRecordArn: smithyClient.expectString,
1460
+ });
1461
+ };
1462
+ const de_EventSummaryList = (output, context) => {
1463
+ const retVal = (output || [])
1464
+ .filter((e) => e != null)
1465
+ .map((entry) => {
1466
+ return de_EventSummary(entry);
1467
+ });
1468
+ return retVal;
1469
+ };
1470
+ const de_Finding = (output, context) => {
1471
+ return smithyClient.take(output, {
1472
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1473
+ details: (_) => de_FindingDetails(core$1.awsExpectUnion(_)),
1474
+ id: smithyClient.expectString,
1475
+ lastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1476
+ });
1477
+ };
1478
+ const de_FindingDetails = (output, context) => {
1479
+ if (output.cloudFormationStackUpdate != null) {
1480
+ return {
1481
+ cloudFormationStackUpdate: de_CloudFormationStackUpdate(output.cloudFormationStackUpdate),
1482
+ };
1483
+ }
1484
+ if (output.codeDeployDeployment != null) {
1485
+ return {
1486
+ codeDeployDeployment: de_CodeDeployDeployment(output.codeDeployDeployment),
1487
+ };
1488
+ }
1489
+ return { $unknown: Object.entries(output)[0] };
1490
+ };
1491
+ const de_FindingList = (output, context) => {
1492
+ const retVal = (output || [])
1493
+ .filter((e) => e != null)
1494
+ .map((entry) => {
1495
+ return de_Finding(entry);
1496
+ });
1497
+ return retVal;
1498
+ };
1499
+ const de_FindingSummary = (output, context) => {
1500
+ return smithyClient.take(output, {
1501
+ id: smithyClient.expectString,
1502
+ lastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1503
+ });
1504
+ };
1505
+ const de_FindingSummaryList = (output, context) => {
1506
+ const retVal = (output || [])
1507
+ .filter((e) => e != null)
1508
+ .map((entry) => {
1509
+ return de_FindingSummary(entry);
1510
+ });
1511
+ return retVal;
1512
+ };
1513
+ const de_IncidentRecord = (output, context) => {
1514
+ return smithyClient.take(output, {
1515
+ arn: smithyClient.expectString,
1516
+ automationExecutions: smithyClient._json,
1517
+ chatChannel: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
1518
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1519
+ dedupeString: smithyClient.expectString,
1520
+ impact: smithyClient.expectInt32,
1521
+ incidentRecordSource: smithyClient._json,
1522
+ lastModifiedBy: smithyClient.expectString,
1523
+ lastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1524
+ notificationTargets: smithyClient._json,
1525
+ resolvedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1526
+ status: smithyClient.expectString,
1527
+ summary: smithyClient.expectString,
1528
+ title: smithyClient.expectString,
1529
+ });
1530
+ };
1531
+ const de_IncidentRecordSummary = (output, context) => {
1532
+ return smithyClient.take(output, {
1533
+ arn: smithyClient.expectString,
1534
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1535
+ impact: smithyClient.expectInt32,
1536
+ incidentRecordSource: smithyClient._json,
1537
+ resolvedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1538
+ status: smithyClient.expectString,
1539
+ title: smithyClient.expectString,
1540
+ });
1541
+ };
1542
+ const de_IncidentRecordSummaryList = (output, context) => {
1543
+ const retVal = (output || [])
1544
+ .filter((e) => e != null)
1545
+ .map((entry) => {
1546
+ return de_IncidentRecordSummary(entry);
1547
+ });
1548
+ return retVal;
1549
+ };
1550
+ const de_RegionInfo = (output, context) => {
1551
+ return smithyClient.take(output, {
1552
+ sseKmsKeyId: smithyClient.expectString,
1553
+ status: smithyClient.expectString,
1554
+ statusMessage: smithyClient.expectString,
1555
+ statusUpdateDateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1556
+ });
1557
+ };
1558
+ const de_RegionInfoMap = (output, context) => {
1559
+ return Object.entries(output).reduce((acc, [key, value]) => {
1560
+ if (value === null) {
1561
+ return acc;
1562
+ }
1563
+ acc[key] = de_RegionInfo(value);
1564
+ return acc;
1565
+ }, {});
1566
+ };
1567
+ const de_ReplicationSet = (output, context) => {
1568
+ return smithyClient.take(output, {
1569
+ arn: smithyClient.expectString,
1570
+ createdBy: smithyClient.expectString,
1571
+ createdTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1572
+ deletionProtected: smithyClient.expectBoolean,
1573
+ lastModifiedBy: smithyClient.expectString,
1574
+ lastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1575
+ regionMap: (_) => de_RegionInfoMap(_),
1576
+ status: smithyClient.expectString,
1577
+ });
1578
+ };
1579
+ const de_TimelineEvent = (output, context) => {
1580
+ return smithyClient.take(output, {
1581
+ eventData: smithyClient.expectString,
1582
+ eventId: smithyClient.expectString,
1583
+ eventReferences: smithyClient._json,
1584
+ eventTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1585
+ eventType: smithyClient.expectString,
1586
+ eventUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1587
+ incidentRecordArn: smithyClient.expectString,
1588
+ });
1589
+ };
1590
+ const deserializeMetadata = (output) => ({
1591
+ httpStatusCode: output.statusCode,
1592
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1593
+ extendedRequestId: output.headers["x-amz-id-2"],
1594
+ cfId: output.headers["x-amz-cf-id"],
1595
+ });
1596
+ const _a = "arn";
1597
+ const _eI = "eventId";
1598
+ const _iRA = "incidentRecordArn";
1599
+ const _rA = "resourceArn";
1600
+ const _tK = "tagKeys";
1601
+
1602
+ class BatchGetIncidentFindingsCommand extends smithyClient.Command
1603
+ .classBuilder()
1604
+ .ep(commonParams)
1605
+ .m(function (Command, cs, config, o) {
1606
+ return [
1607
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1608
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1609
+ ];
1610
+ })
1611
+ .s("SSMIncidents", "BatchGetIncidentFindings", {})
1612
+ .n("SSMIncidentsClient", "BatchGetIncidentFindingsCommand")
1613
+ .f(void 0, void 0)
1614
+ .ser(se_BatchGetIncidentFindingsCommand)
1615
+ .de(de_BatchGetIncidentFindingsCommand)
1616
+ .build() {
1617
+ }
1618
+
1619
+ class CreateReplicationSetCommand extends smithyClient.Command
1620
+ .classBuilder()
1621
+ .ep(commonParams)
1622
+ .m(function (Command, cs, config, o) {
1623
+ return [
1624
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1625
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1626
+ ];
1627
+ })
1628
+ .s("SSMIncidents", "CreateReplicationSet", {})
1629
+ .n("SSMIncidentsClient", "CreateReplicationSetCommand")
1630
+ .f(void 0, void 0)
1631
+ .ser(se_CreateReplicationSetCommand)
1632
+ .de(de_CreateReplicationSetCommand)
1633
+ .build() {
1634
+ }
1635
+
1636
+ class CreateResponsePlanCommand extends smithyClient.Command
1637
+ .classBuilder()
1638
+ .ep(commonParams)
1639
+ .m(function (Command, cs, config, o) {
1640
+ return [
1641
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1642
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1643
+ ];
1644
+ })
1645
+ .s("SSMIncidents", "CreateResponsePlan", {})
1646
+ .n("SSMIncidentsClient", "CreateResponsePlanCommand")
1647
+ .f(void 0, void 0)
1648
+ .ser(se_CreateResponsePlanCommand)
1649
+ .de(de_CreateResponsePlanCommand)
1650
+ .build() {
1651
+ }
1652
+
1653
+ class CreateTimelineEventCommand extends smithyClient.Command
1654
+ .classBuilder()
1655
+ .ep(commonParams)
1656
+ .m(function (Command, cs, config, o) {
1657
+ return [
1658
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1659
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1660
+ ];
1661
+ })
1662
+ .s("SSMIncidents", "CreateTimelineEvent", {})
1663
+ .n("SSMIncidentsClient", "CreateTimelineEventCommand")
1664
+ .f(void 0, void 0)
1665
+ .ser(se_CreateTimelineEventCommand)
1666
+ .de(de_CreateTimelineEventCommand)
1667
+ .build() {
1668
+ }
1669
+
1670
+ class DeleteIncidentRecordCommand extends smithyClient.Command
1671
+ .classBuilder()
1672
+ .ep(commonParams)
1673
+ .m(function (Command, cs, config, o) {
1674
+ return [
1675
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1676
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1677
+ ];
1678
+ })
1679
+ .s("SSMIncidents", "DeleteIncidentRecord", {})
1680
+ .n("SSMIncidentsClient", "DeleteIncidentRecordCommand")
1681
+ .f(void 0, void 0)
1682
+ .ser(se_DeleteIncidentRecordCommand)
1683
+ .de(de_DeleteIncidentRecordCommand)
1684
+ .build() {
1685
+ }
1686
+
1687
+ class DeleteReplicationSetCommand extends smithyClient.Command
1688
+ .classBuilder()
1689
+ .ep(commonParams)
1690
+ .m(function (Command, cs, config, o) {
1691
+ return [
1692
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1693
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1694
+ ];
1695
+ })
1696
+ .s("SSMIncidents", "DeleteReplicationSet", {})
1697
+ .n("SSMIncidentsClient", "DeleteReplicationSetCommand")
1698
+ .f(void 0, void 0)
1699
+ .ser(se_DeleteReplicationSetCommand)
1700
+ .de(de_DeleteReplicationSetCommand)
1701
+ .build() {
1702
+ }
1703
+
1704
+ class DeleteResourcePolicyCommand extends smithyClient.Command
1705
+ .classBuilder()
1706
+ .ep(commonParams)
1707
+ .m(function (Command, cs, config, o) {
1708
+ return [
1709
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1710
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1711
+ ];
1712
+ })
1713
+ .s("SSMIncidents", "DeleteResourcePolicy", {})
1714
+ .n("SSMIncidentsClient", "DeleteResourcePolicyCommand")
1715
+ .f(void 0, void 0)
1716
+ .ser(se_DeleteResourcePolicyCommand)
1717
+ .de(de_DeleteResourcePolicyCommand)
1718
+ .build() {
1719
+ }
1720
+
1721
+ class DeleteResponsePlanCommand extends smithyClient.Command
1722
+ .classBuilder()
1723
+ .ep(commonParams)
1724
+ .m(function (Command, cs, config, o) {
1725
+ return [
1726
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1727
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1728
+ ];
1729
+ })
1730
+ .s("SSMIncidents", "DeleteResponsePlan", {})
1731
+ .n("SSMIncidentsClient", "DeleteResponsePlanCommand")
1732
+ .f(void 0, void 0)
1733
+ .ser(se_DeleteResponsePlanCommand)
1734
+ .de(de_DeleteResponsePlanCommand)
1735
+ .build() {
1736
+ }
1737
+
1738
+ class DeleteTimelineEventCommand extends smithyClient.Command
1739
+ .classBuilder()
1740
+ .ep(commonParams)
1741
+ .m(function (Command, cs, config, o) {
1742
+ return [
1743
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1744
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1745
+ ];
1746
+ })
1747
+ .s("SSMIncidents", "DeleteTimelineEvent", {})
1748
+ .n("SSMIncidentsClient", "DeleteTimelineEventCommand")
1749
+ .f(void 0, void 0)
1750
+ .ser(se_DeleteTimelineEventCommand)
1751
+ .de(de_DeleteTimelineEventCommand)
1752
+ .build() {
1753
+ }
1754
+
1755
+ class GetIncidentRecordCommand extends smithyClient.Command
1756
+ .classBuilder()
1757
+ .ep(commonParams)
1758
+ .m(function (Command, cs, config, o) {
1759
+ return [
1760
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1761
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1762
+ ];
1763
+ })
1764
+ .s("SSMIncidents", "GetIncidentRecord", {})
1765
+ .n("SSMIncidentsClient", "GetIncidentRecordCommand")
1766
+ .f(void 0, void 0)
1767
+ .ser(se_GetIncidentRecordCommand)
1768
+ .de(de_GetIncidentRecordCommand)
1769
+ .build() {
1770
+ }
1771
+
1772
+ class GetReplicationSetCommand extends smithyClient.Command
1773
+ .classBuilder()
1774
+ .ep(commonParams)
1775
+ .m(function (Command, cs, config, o) {
1776
+ return [
1777
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1778
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1779
+ ];
1780
+ })
1781
+ .s("SSMIncidents", "GetReplicationSet", {})
1782
+ .n("SSMIncidentsClient", "GetReplicationSetCommand")
1783
+ .f(void 0, void 0)
1784
+ .ser(se_GetReplicationSetCommand)
1785
+ .de(de_GetReplicationSetCommand)
1786
+ .build() {
1787
+ }
1788
+
1789
+ class GetResourcePoliciesCommand extends smithyClient.Command
1790
+ .classBuilder()
1791
+ .ep(commonParams)
1792
+ .m(function (Command, cs, config, o) {
1793
+ return [
1794
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1795
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1796
+ ];
1797
+ })
1798
+ .s("SSMIncidents", "GetResourcePolicies", {})
1799
+ .n("SSMIncidentsClient", "GetResourcePoliciesCommand")
1800
+ .f(void 0, void 0)
1801
+ .ser(se_GetResourcePoliciesCommand)
1802
+ .de(de_GetResourcePoliciesCommand)
1803
+ .build() {
1804
+ }
1805
+
1806
+ class GetResponsePlanCommand extends smithyClient.Command
1807
+ .classBuilder()
1808
+ .ep(commonParams)
1809
+ .m(function (Command, cs, config, o) {
1810
+ return [
1811
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1812
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1813
+ ];
1814
+ })
1815
+ .s("SSMIncidents", "GetResponsePlan", {})
1816
+ .n("SSMIncidentsClient", "GetResponsePlanCommand")
1817
+ .f(void 0, void 0)
1818
+ .ser(se_GetResponsePlanCommand)
1819
+ .de(de_GetResponsePlanCommand)
1820
+ .build() {
1821
+ }
1822
+
1823
+ class GetTimelineEventCommand extends smithyClient.Command
1824
+ .classBuilder()
1825
+ .ep(commonParams)
1826
+ .m(function (Command, cs, config, o) {
1827
+ return [
1828
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1829
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1830
+ ];
1831
+ })
1832
+ .s("SSMIncidents", "GetTimelineEvent", {})
1833
+ .n("SSMIncidentsClient", "GetTimelineEventCommand")
1834
+ .f(void 0, void 0)
1835
+ .ser(se_GetTimelineEventCommand)
1836
+ .de(de_GetTimelineEventCommand)
1837
+ .build() {
1838
+ }
1839
+
1840
+ class ListIncidentFindingsCommand extends smithyClient.Command
1841
+ .classBuilder()
1842
+ .ep(commonParams)
1843
+ .m(function (Command, cs, config, o) {
1844
+ return [
1845
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1846
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1847
+ ];
1848
+ })
1849
+ .s("SSMIncidents", "ListIncidentFindings", {})
1850
+ .n("SSMIncidentsClient", "ListIncidentFindingsCommand")
1851
+ .f(void 0, void 0)
1852
+ .ser(se_ListIncidentFindingsCommand)
1853
+ .de(de_ListIncidentFindingsCommand)
1854
+ .build() {
1855
+ }
1856
+
1857
+ class ListIncidentRecordsCommand extends smithyClient.Command
1858
+ .classBuilder()
1859
+ .ep(commonParams)
1860
+ .m(function (Command, cs, config, o) {
1861
+ return [
1862
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1863
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1864
+ ];
1865
+ })
1866
+ .s("SSMIncidents", "ListIncidentRecords", {})
1867
+ .n("SSMIncidentsClient", "ListIncidentRecordsCommand")
1868
+ .f(void 0, void 0)
1869
+ .ser(se_ListIncidentRecordsCommand)
1870
+ .de(de_ListIncidentRecordsCommand)
1871
+ .build() {
1872
+ }
1873
+
1874
+ class ListRelatedItemsCommand extends smithyClient.Command
1875
+ .classBuilder()
1876
+ .ep(commonParams)
1877
+ .m(function (Command, cs, config, o) {
1878
+ return [
1879
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1880
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1881
+ ];
1882
+ })
1883
+ .s("SSMIncidents", "ListRelatedItems", {})
1884
+ .n("SSMIncidentsClient", "ListRelatedItemsCommand")
1885
+ .f(void 0, void 0)
1886
+ .ser(se_ListRelatedItemsCommand)
1887
+ .de(de_ListRelatedItemsCommand)
1888
+ .build() {
1889
+ }
1890
+
1891
+ class ListReplicationSetsCommand extends smithyClient.Command
1892
+ .classBuilder()
1893
+ .ep(commonParams)
1894
+ .m(function (Command, cs, config, o) {
1895
+ return [
1896
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1897
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1898
+ ];
1899
+ })
1900
+ .s("SSMIncidents", "ListReplicationSets", {})
1901
+ .n("SSMIncidentsClient", "ListReplicationSetsCommand")
1902
+ .f(void 0, void 0)
1903
+ .ser(se_ListReplicationSetsCommand)
1904
+ .de(de_ListReplicationSetsCommand)
1905
+ .build() {
1906
+ }
1907
+
1908
+ class ListResponsePlansCommand extends smithyClient.Command
1909
+ .classBuilder()
1910
+ .ep(commonParams)
1911
+ .m(function (Command, cs, config, o) {
1912
+ return [
1913
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1914
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1915
+ ];
1916
+ })
1917
+ .s("SSMIncidents", "ListResponsePlans", {})
1918
+ .n("SSMIncidentsClient", "ListResponsePlansCommand")
1919
+ .f(void 0, void 0)
1920
+ .ser(se_ListResponsePlansCommand)
1921
+ .de(de_ListResponsePlansCommand)
1922
+ .build() {
1923
+ }
1924
+
1925
+ class ListTagsForResourceCommand extends smithyClient.Command
1926
+ .classBuilder()
1927
+ .ep(commonParams)
1928
+ .m(function (Command, cs, config, o) {
1929
+ return [
1930
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1931
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1932
+ ];
1933
+ })
1934
+ .s("SSMIncidents", "ListTagsForResource", {})
1935
+ .n("SSMIncidentsClient", "ListTagsForResourceCommand")
1936
+ .f(void 0, void 0)
1937
+ .ser(se_ListTagsForResourceCommand)
1938
+ .de(de_ListTagsForResourceCommand)
1939
+ .build() {
1940
+ }
1941
+
1942
+ class ListTimelineEventsCommand extends smithyClient.Command
1943
+ .classBuilder()
1944
+ .ep(commonParams)
1945
+ .m(function (Command, cs, config, o) {
1946
+ return [
1947
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1948
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1949
+ ];
1950
+ })
1951
+ .s("SSMIncidents", "ListTimelineEvents", {})
1952
+ .n("SSMIncidentsClient", "ListTimelineEventsCommand")
1953
+ .f(void 0, void 0)
1954
+ .ser(se_ListTimelineEventsCommand)
1955
+ .de(de_ListTimelineEventsCommand)
1956
+ .build() {
1957
+ }
1958
+
1959
+ class PutResourcePolicyCommand extends smithyClient.Command
1960
+ .classBuilder()
1961
+ .ep(commonParams)
1962
+ .m(function (Command, cs, config, o) {
1963
+ return [
1964
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1965
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1966
+ ];
1967
+ })
1968
+ .s("SSMIncidents", "PutResourcePolicy", {})
1969
+ .n("SSMIncidentsClient", "PutResourcePolicyCommand")
1970
+ .f(void 0, void 0)
1971
+ .ser(se_PutResourcePolicyCommand)
1972
+ .de(de_PutResourcePolicyCommand)
1973
+ .build() {
1974
+ }
1975
+
1976
+ class StartIncidentCommand extends smithyClient.Command
1977
+ .classBuilder()
1978
+ .ep(commonParams)
1979
+ .m(function (Command, cs, config, o) {
1980
+ return [
1981
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1982
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1983
+ ];
1984
+ })
1985
+ .s("SSMIncidents", "StartIncident", {})
1986
+ .n("SSMIncidentsClient", "StartIncidentCommand")
1987
+ .f(void 0, void 0)
1988
+ .ser(se_StartIncidentCommand)
1989
+ .de(de_StartIncidentCommand)
1990
+ .build() {
1991
+ }
1992
+
1993
+ class TagResourceCommand extends smithyClient.Command
1994
+ .classBuilder()
1995
+ .ep(commonParams)
1996
+ .m(function (Command, cs, config, o) {
1997
+ return [
1998
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1999
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2000
+ ];
2001
+ })
2002
+ .s("SSMIncidents", "TagResource", {})
2003
+ .n("SSMIncidentsClient", "TagResourceCommand")
2004
+ .f(void 0, void 0)
2005
+ .ser(se_TagResourceCommand)
2006
+ .de(de_TagResourceCommand)
2007
+ .build() {
2008
+ }
2009
+
2010
+ class UntagResourceCommand extends smithyClient.Command
2011
+ .classBuilder()
2012
+ .ep(commonParams)
2013
+ .m(function (Command, cs, config, o) {
2014
+ return [
2015
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2016
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2017
+ ];
2018
+ })
2019
+ .s("SSMIncidents", "UntagResource", {})
2020
+ .n("SSMIncidentsClient", "UntagResourceCommand")
2021
+ .f(void 0, void 0)
2022
+ .ser(se_UntagResourceCommand)
2023
+ .de(de_UntagResourceCommand)
2024
+ .build() {
2025
+ }
2026
+
2027
+ class UpdateDeletionProtectionCommand extends smithyClient.Command
2028
+ .classBuilder()
2029
+ .ep(commonParams)
2030
+ .m(function (Command, cs, config, o) {
2031
+ return [
2032
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2033
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2034
+ ];
2035
+ })
2036
+ .s("SSMIncidents", "UpdateDeletionProtection", {})
2037
+ .n("SSMIncidentsClient", "UpdateDeletionProtectionCommand")
2038
+ .f(void 0, void 0)
2039
+ .ser(se_UpdateDeletionProtectionCommand)
2040
+ .de(de_UpdateDeletionProtectionCommand)
2041
+ .build() {
2042
+ }
2043
+
2044
+ class UpdateIncidentRecordCommand extends smithyClient.Command
2045
+ .classBuilder()
2046
+ .ep(commonParams)
2047
+ .m(function (Command, cs, config, o) {
2048
+ return [
2049
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2050
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2051
+ ];
2052
+ })
2053
+ .s("SSMIncidents", "UpdateIncidentRecord", {})
2054
+ .n("SSMIncidentsClient", "UpdateIncidentRecordCommand")
2055
+ .f(void 0, void 0)
2056
+ .ser(se_UpdateIncidentRecordCommand)
2057
+ .de(de_UpdateIncidentRecordCommand)
2058
+ .build() {
2059
+ }
2060
+
2061
+ class UpdateRelatedItemsCommand extends smithyClient.Command
2062
+ .classBuilder()
2063
+ .ep(commonParams)
2064
+ .m(function (Command, cs, config, o) {
2065
+ return [
2066
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2067
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2068
+ ];
2069
+ })
2070
+ .s("SSMIncidents", "UpdateRelatedItems", {})
2071
+ .n("SSMIncidentsClient", "UpdateRelatedItemsCommand")
2072
+ .f(void 0, void 0)
2073
+ .ser(se_UpdateRelatedItemsCommand)
2074
+ .de(de_UpdateRelatedItemsCommand)
2075
+ .build() {
2076
+ }
2077
+
2078
+ class UpdateReplicationSetCommand extends smithyClient.Command
2079
+ .classBuilder()
2080
+ .ep(commonParams)
2081
+ .m(function (Command, cs, config, o) {
2082
+ return [
2083
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2084
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2085
+ ];
2086
+ })
2087
+ .s("SSMIncidents", "UpdateReplicationSet", {})
2088
+ .n("SSMIncidentsClient", "UpdateReplicationSetCommand")
2089
+ .f(void 0, void 0)
2090
+ .ser(se_UpdateReplicationSetCommand)
2091
+ .de(de_UpdateReplicationSetCommand)
2092
+ .build() {
2093
+ }
2094
+
2095
+ class UpdateResponsePlanCommand extends smithyClient.Command
2096
+ .classBuilder()
2097
+ .ep(commonParams)
2098
+ .m(function (Command, cs, config, o) {
2099
+ return [
2100
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2101
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2102
+ ];
2103
+ })
2104
+ .s("SSMIncidents", "UpdateResponsePlan", {})
2105
+ .n("SSMIncidentsClient", "UpdateResponsePlanCommand")
2106
+ .f(void 0, void 0)
2107
+ .ser(se_UpdateResponsePlanCommand)
2108
+ .de(de_UpdateResponsePlanCommand)
2109
+ .build() {
2110
+ }
2111
+
2112
+ class UpdateTimelineEventCommand extends smithyClient.Command
2113
+ .classBuilder()
2114
+ .ep(commonParams)
2115
+ .m(function (Command, cs, config, o) {
2116
+ return [
2117
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2118
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2119
+ ];
2120
+ })
2121
+ .s("SSMIncidents", "UpdateTimelineEvent", {})
2122
+ .n("SSMIncidentsClient", "UpdateTimelineEventCommand")
2123
+ .f(void 0, void 0)
2124
+ .ser(se_UpdateTimelineEventCommand)
2125
+ .de(de_UpdateTimelineEventCommand)
2126
+ .build() {
2127
+ }
2128
+
2129
+ const commands = {
2130
+ BatchGetIncidentFindingsCommand,
2131
+ CreateReplicationSetCommand,
2132
+ CreateResponsePlanCommand,
2133
+ CreateTimelineEventCommand,
2134
+ DeleteIncidentRecordCommand,
2135
+ DeleteReplicationSetCommand,
2136
+ DeleteResourcePolicyCommand,
2137
+ DeleteResponsePlanCommand,
2138
+ DeleteTimelineEventCommand,
2139
+ GetIncidentRecordCommand,
2140
+ GetReplicationSetCommand,
2141
+ GetResourcePoliciesCommand,
2142
+ GetResponsePlanCommand,
2143
+ GetTimelineEventCommand,
2144
+ ListIncidentFindingsCommand,
2145
+ ListIncidentRecordsCommand,
2146
+ ListRelatedItemsCommand,
2147
+ ListReplicationSetsCommand,
2148
+ ListResponsePlansCommand,
2149
+ ListTagsForResourceCommand,
2150
+ ListTimelineEventsCommand,
2151
+ PutResourcePolicyCommand,
2152
+ StartIncidentCommand,
2153
+ TagResourceCommand,
2154
+ UntagResourceCommand,
2155
+ UpdateDeletionProtectionCommand,
2156
+ UpdateIncidentRecordCommand,
2157
+ UpdateRelatedItemsCommand,
2158
+ UpdateReplicationSetCommand,
2159
+ UpdateResponsePlanCommand,
2160
+ UpdateTimelineEventCommand,
2161
+ };
2162
+ class SSMIncidents extends SSMIncidentsClient {
2163
+ }
2164
+ smithyClient.createAggregatedClient(commands, SSMIncidents);
2345
2165
 
2346
- // src/SSMIncidents.ts
2347
- var commands = {
2348
- BatchGetIncidentFindingsCommand,
2349
- CreateReplicationSetCommand,
2350
- CreateResponsePlanCommand,
2351
- CreateTimelineEventCommand,
2352
- DeleteIncidentRecordCommand,
2353
- DeleteReplicationSetCommand,
2354
- DeleteResourcePolicyCommand,
2355
- DeleteResponsePlanCommand,
2356
- DeleteTimelineEventCommand,
2357
- GetIncidentRecordCommand,
2358
- GetReplicationSetCommand,
2359
- GetResourcePoliciesCommand,
2360
- GetResponsePlanCommand,
2361
- GetTimelineEventCommand,
2362
- ListIncidentFindingsCommand,
2363
- ListIncidentRecordsCommand,
2364
- ListRelatedItemsCommand,
2365
- ListReplicationSetsCommand,
2366
- ListResponsePlansCommand,
2367
- ListTagsForResourceCommand,
2368
- ListTimelineEventsCommand,
2369
- PutResourcePolicyCommand,
2370
- StartIncidentCommand,
2371
- TagResourceCommand,
2372
- UntagResourceCommand,
2373
- UpdateDeletionProtectionCommand,
2374
- UpdateIncidentRecordCommand,
2375
- UpdateRelatedItemsCommand,
2376
- UpdateReplicationSetCommand,
2377
- UpdateResponsePlanCommand,
2378
- UpdateTimelineEventCommand
2379
- };
2380
- var SSMIncidents = class extends SSMIncidentsClient {
2381
- static {
2382
- __name(this, "SSMIncidents");
2383
- }
2384
- };
2385
- (0, import_smithy_client.createAggregatedClient)(commands, SSMIncidents);
2386
-
2387
- // src/pagination/GetResourcePoliciesPaginator.ts
2388
-
2389
- var paginateGetResourcePolicies = (0, import_core.createPaginator)(SSMIncidentsClient, GetResourcePoliciesCommand, "nextToken", "nextToken", "maxResults");
2390
-
2391
- // src/pagination/ListIncidentFindingsPaginator.ts
2392
-
2393
- var paginateListIncidentFindings = (0, import_core.createPaginator)(SSMIncidentsClient, ListIncidentFindingsCommand, "nextToken", "nextToken", "maxResults");
2394
-
2395
- // src/pagination/ListIncidentRecordsPaginator.ts
2396
-
2397
- var paginateListIncidentRecords = (0, import_core.createPaginator)(SSMIncidentsClient, ListIncidentRecordsCommand, "nextToken", "nextToken", "maxResults");
2398
-
2399
- // src/pagination/ListRelatedItemsPaginator.ts
2400
-
2401
- var paginateListRelatedItems = (0, import_core.createPaginator)(SSMIncidentsClient, ListRelatedItemsCommand, "nextToken", "nextToken", "maxResults");
2166
+ const paginateGetResourcePolicies = core.createPaginator(SSMIncidentsClient, GetResourcePoliciesCommand, "nextToken", "nextToken", "maxResults");
2402
2167
 
2403
- // src/pagination/ListReplicationSetsPaginator.ts
2168
+ const paginateListIncidentFindings = core.createPaginator(SSMIncidentsClient, ListIncidentFindingsCommand, "nextToken", "nextToken", "maxResults");
2404
2169
 
2405
- var paginateListReplicationSets = (0, import_core.createPaginator)(SSMIncidentsClient, ListReplicationSetsCommand, "nextToken", "nextToken", "maxResults");
2170
+ const paginateListIncidentRecords = core.createPaginator(SSMIncidentsClient, ListIncidentRecordsCommand, "nextToken", "nextToken", "maxResults");
2406
2171
 
2407
- // src/pagination/ListResponsePlansPaginator.ts
2172
+ const paginateListRelatedItems = core.createPaginator(SSMIncidentsClient, ListRelatedItemsCommand, "nextToken", "nextToken", "maxResults");
2408
2173
 
2409
- var paginateListResponsePlans = (0, import_core.createPaginator)(SSMIncidentsClient, ListResponsePlansCommand, "nextToken", "nextToken", "maxResults");
2174
+ const paginateListReplicationSets = core.createPaginator(SSMIncidentsClient, ListReplicationSetsCommand, "nextToken", "nextToken", "maxResults");
2410
2175
 
2411
- // src/pagination/ListTimelineEventsPaginator.ts
2176
+ const paginateListResponsePlans = core.createPaginator(SSMIncidentsClient, ListResponsePlansCommand, "nextToken", "nextToken", "maxResults");
2412
2177
 
2413
- var paginateListTimelineEvents = (0, import_core.createPaginator)(SSMIncidentsClient, ListTimelineEventsCommand, "nextToken", "nextToken", "maxResults");
2178
+ const paginateListTimelineEvents = core.createPaginator(SSMIncidentsClient, ListTimelineEventsCommand, "nextToken", "nextToken", "maxResults");
2414
2179
 
2415
- // src/waiters/waitForWaitForReplicationSetActive.ts
2416
- var import_util_waiter = require("@smithy/util-waiter");
2417
- var checkState = /* @__PURE__ */ __name(async (client, input) => {
2418
- let reason;
2419
- try {
2420
- const result = await client.send(new GetReplicationSetCommand(input));
2421
- reason = result;
2422
- try {
2423
- const returnComparator = /* @__PURE__ */ __name(() => {
2424
- return result.replicationSet.status;
2425
- }, "returnComparator");
2426
- if (returnComparator() === "ACTIVE") {
2427
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
2428
- }
2429
- } catch (e) {
2430
- }
2180
+ const checkState$1 = async (client, input) => {
2181
+ let reason;
2431
2182
  try {
2432
- const returnComparator = /* @__PURE__ */ __name(() => {
2433
- return result.replicationSet.status;
2434
- }, "returnComparator");
2435
- if (returnComparator() === "CREATING") {
2436
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2437
- }
2438
- } catch (e) {
2183
+ const result = await client.send(new GetReplicationSetCommand(input));
2184
+ reason = result;
2185
+ try {
2186
+ const returnComparator = () => {
2187
+ return result.replicationSet.status;
2188
+ };
2189
+ if (returnComparator() === "ACTIVE") {
2190
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
2191
+ }
2192
+ }
2193
+ catch (e) { }
2194
+ try {
2195
+ const returnComparator = () => {
2196
+ return result.replicationSet.status;
2197
+ };
2198
+ if (returnComparator() === "CREATING") {
2199
+ return { state: utilWaiter.WaiterState.RETRY, reason };
2200
+ }
2201
+ }
2202
+ catch (e) { }
2203
+ try {
2204
+ const returnComparator = () => {
2205
+ return result.replicationSet.status;
2206
+ };
2207
+ if (returnComparator() === "UPDATING") {
2208
+ return { state: utilWaiter.WaiterState.RETRY, reason };
2209
+ }
2210
+ }
2211
+ catch (e) { }
2212
+ try {
2213
+ const returnComparator = () => {
2214
+ return result.replicationSet.status;
2215
+ };
2216
+ if (returnComparator() === "FAILED") {
2217
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
2218
+ }
2219
+ }
2220
+ catch (e) { }
2439
2221
  }
2440
- try {
2441
- const returnComparator = /* @__PURE__ */ __name(() => {
2442
- return result.replicationSet.status;
2443
- }, "returnComparator");
2444
- if (returnComparator() === "UPDATING") {
2445
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2446
- }
2447
- } catch (e) {
2222
+ catch (exception) {
2223
+ reason = exception;
2448
2224
  }
2449
- try {
2450
- const returnComparator = /* @__PURE__ */ __name(() => {
2451
- return result.replicationSet.status;
2452
- }, "returnComparator");
2453
- if (returnComparator() === "FAILED") {
2454
- return { state: import_util_waiter.WaiterState.FAILURE, reason };
2455
- }
2456
- } catch (e) {
2457
- }
2458
- } catch (exception) {
2459
- reason = exception;
2460
- }
2461
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2462
- }, "checkState");
2463
- var waitForWaitForReplicationSetActive = /* @__PURE__ */ __name(async (params, input) => {
2464
- const serviceDefaults = { minDelay: 30, maxDelay: 30 };
2465
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
2466
- }, "waitForWaitForReplicationSetActive");
2467
- var waitUntilWaitForReplicationSetActive = /* @__PURE__ */ __name(async (params, input) => {
2468
- const serviceDefaults = { minDelay: 30, maxDelay: 30 };
2469
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
2470
- return (0, import_util_waiter.checkExceptions)(result);
2471
- }, "waitUntilWaitForReplicationSetActive");
2472
-
2473
- // src/waiters/waitForWaitForReplicationSetDeleted.ts
2225
+ return { state: utilWaiter.WaiterState.RETRY, reason };
2226
+ };
2227
+ const waitForWaitForReplicationSetActive = async (params, input) => {
2228
+ const serviceDefaults = { minDelay: 30, maxDelay: 30 };
2229
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
2230
+ };
2231
+ const waitUntilWaitForReplicationSetActive = async (params, input) => {
2232
+ const serviceDefaults = { minDelay: 30, maxDelay: 30 };
2233
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
2234
+ return utilWaiter.checkExceptions(result);
2235
+ };
2474
2236
 
2475
- var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
2476
- let reason;
2477
- try {
2478
- const result = await client.send(new GetReplicationSetCommand(input));
2479
- reason = result;
2480
- try {
2481
- const returnComparator = /* @__PURE__ */ __name(() => {
2482
- return result.replicationSet.status;
2483
- }, "returnComparator");
2484
- if (returnComparator() === "DELETING") {
2485
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2486
- }
2487
- } catch (e) {
2488
- }
2237
+ const checkState = async (client, input) => {
2238
+ let reason;
2489
2239
  try {
2490
- const returnComparator = /* @__PURE__ */ __name(() => {
2491
- return result.replicationSet.status;
2492
- }, "returnComparator");
2493
- if (returnComparator() === "FAILED") {
2494
- return { state: import_util_waiter.WaiterState.FAILURE, reason };
2495
- }
2496
- } catch (e) {
2240
+ const result = await client.send(new GetReplicationSetCommand(input));
2241
+ reason = result;
2242
+ try {
2243
+ const returnComparator = () => {
2244
+ return result.replicationSet.status;
2245
+ };
2246
+ if (returnComparator() === "DELETING") {
2247
+ return { state: utilWaiter.WaiterState.RETRY, reason };
2248
+ }
2249
+ }
2250
+ catch (e) { }
2251
+ try {
2252
+ const returnComparator = () => {
2253
+ return result.replicationSet.status;
2254
+ };
2255
+ if (returnComparator() === "FAILED") {
2256
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
2257
+ }
2258
+ }
2259
+ catch (e) { }
2497
2260
  }
2498
- } catch (exception) {
2499
- reason = exception;
2500
- if (exception.name && exception.name == "ResourceNotFoundException") {
2501
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
2261
+ catch (exception) {
2262
+ reason = exception;
2263
+ if (exception.name && exception.name == "ResourceNotFoundException") {
2264
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
2265
+ }
2502
2266
  }
2503
- }
2504
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2505
- }, "checkState");
2506
- var waitForWaitForReplicationSetDeleted = /* @__PURE__ */ __name(async (params, input) => {
2507
- const serviceDefaults = { minDelay: 30, maxDelay: 30 };
2508
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
2509
- }, "waitForWaitForReplicationSetDeleted");
2510
- var waitUntilWaitForReplicationSetDeleted = /* @__PURE__ */ __name(async (params, input) => {
2511
- const serviceDefaults = { minDelay: 30, maxDelay: 30 };
2512
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
2513
- return (0, import_util_waiter.checkExceptions)(result);
2514
- }, "waitUntilWaitForReplicationSetDeleted");
2515
- // Annotate the CommonJS export names for ESM import in node:
2267
+ return { state: utilWaiter.WaiterState.RETRY, reason };
2268
+ };
2269
+ const waitForWaitForReplicationSetDeleted = async (params, input) => {
2270
+ const serviceDefaults = { minDelay: 30, maxDelay: 30 };
2271
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
2272
+ };
2273
+ const waitUntilWaitForReplicationSetDeleted = async (params, input) => {
2274
+ const serviceDefaults = { minDelay: 30, maxDelay: 30 };
2275
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
2276
+ return utilWaiter.checkExceptions(result);
2277
+ };
2516
2278
 
2517
- 0 && (module.exports = {
2518
- SSMIncidentsServiceException,
2519
- __Client,
2520
- SSMIncidentsClient,
2521
- SSMIncidents,
2522
- $Command,
2523
- BatchGetIncidentFindingsCommand,
2524
- CreateReplicationSetCommand,
2525
- CreateResponsePlanCommand,
2526
- CreateTimelineEventCommand,
2527
- DeleteIncidentRecordCommand,
2528
- DeleteReplicationSetCommand,
2529
- DeleteResourcePolicyCommand,
2530
- DeleteResponsePlanCommand,
2531
- DeleteTimelineEventCommand,
2532
- GetIncidentRecordCommand,
2533
- GetReplicationSetCommand,
2534
- GetResourcePoliciesCommand,
2535
- GetResponsePlanCommand,
2536
- GetTimelineEventCommand,
2537
- ListIncidentFindingsCommand,
2538
- ListIncidentRecordsCommand,
2539
- ListRelatedItemsCommand,
2540
- ListReplicationSetsCommand,
2541
- ListResponsePlansCommand,
2542
- ListTagsForResourceCommand,
2543
- ListTimelineEventsCommand,
2544
- PutResourcePolicyCommand,
2545
- StartIncidentCommand,
2546
- TagResourceCommand,
2547
- UntagResourceCommand,
2548
- UpdateDeletionProtectionCommand,
2549
- UpdateIncidentRecordCommand,
2550
- UpdateRelatedItemsCommand,
2551
- UpdateReplicationSetCommand,
2552
- UpdateResponsePlanCommand,
2553
- UpdateTimelineEventCommand,
2554
- paginateGetResourcePolicies,
2555
- paginateListIncidentFindings,
2556
- paginateListIncidentRecords,
2557
- paginateListRelatedItems,
2558
- paginateListReplicationSets,
2559
- paginateListResponsePlans,
2560
- paginateListTimelineEvents,
2561
- waitForWaitForReplicationSetActive,
2562
- waitUntilWaitForReplicationSetActive,
2563
- waitForWaitForReplicationSetDeleted,
2564
- waitUntilWaitForReplicationSetDeleted,
2565
- AccessDeniedException,
2566
- VariableType,
2567
- DynamicSsmParameterValue,
2568
- SsmTargetAccount,
2569
- Action,
2570
- AttributeValueList,
2571
- AutomationExecution,
2572
- FindingDetails,
2573
- InternalServerException,
2574
- ResourceType,
2575
- ResourceNotFoundException,
2576
- ServiceCode,
2577
- ThrottlingException,
2578
- ValidationException,
2579
- ChatChannel,
2580
- Condition,
2581
- ConflictException,
2582
- ServiceQuotaExceededException,
2583
- NotificationTargetItem,
2584
- Integration,
2585
- EventReference,
2586
- IncidentRecordStatus,
2587
- RegionStatus,
2588
- ReplicationSetStatus,
2589
- ItemType,
2590
- ItemValue,
2591
- TimelineEventSort,
2592
- SortOrder,
2593
- RelatedItemsUpdate,
2594
- UpdateReplicationSetAction
2279
+ Object.defineProperty(exports, "$Command", {
2280
+ enumerable: true,
2281
+ get: function () { return smithyClient.Command; }
2595
2282
  });
2596
-
2283
+ Object.defineProperty(exports, "__Client", {
2284
+ enumerable: true,
2285
+ get: function () { return smithyClient.Client; }
2286
+ });
2287
+ exports.AccessDeniedException = AccessDeniedException;
2288
+ exports.BatchGetIncidentFindingsCommand = BatchGetIncidentFindingsCommand;
2289
+ exports.ConflictException = ConflictException;
2290
+ exports.CreateReplicationSetCommand = CreateReplicationSetCommand;
2291
+ exports.CreateResponsePlanCommand = CreateResponsePlanCommand;
2292
+ exports.CreateTimelineEventCommand = CreateTimelineEventCommand;
2293
+ exports.DeleteIncidentRecordCommand = DeleteIncidentRecordCommand;
2294
+ exports.DeleteReplicationSetCommand = DeleteReplicationSetCommand;
2295
+ exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
2296
+ exports.DeleteResponsePlanCommand = DeleteResponsePlanCommand;
2297
+ exports.DeleteTimelineEventCommand = DeleteTimelineEventCommand;
2298
+ exports.GetIncidentRecordCommand = GetIncidentRecordCommand;
2299
+ exports.GetReplicationSetCommand = GetReplicationSetCommand;
2300
+ exports.GetResourcePoliciesCommand = GetResourcePoliciesCommand;
2301
+ exports.GetResponsePlanCommand = GetResponsePlanCommand;
2302
+ exports.GetTimelineEventCommand = GetTimelineEventCommand;
2303
+ exports.IncidentRecordStatus = IncidentRecordStatus;
2304
+ exports.InternalServerException = InternalServerException;
2305
+ exports.ItemType = ItemType;
2306
+ exports.ListIncidentFindingsCommand = ListIncidentFindingsCommand;
2307
+ exports.ListIncidentRecordsCommand = ListIncidentRecordsCommand;
2308
+ exports.ListRelatedItemsCommand = ListRelatedItemsCommand;
2309
+ exports.ListReplicationSetsCommand = ListReplicationSetsCommand;
2310
+ exports.ListResponsePlansCommand = ListResponsePlansCommand;
2311
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
2312
+ exports.ListTimelineEventsCommand = ListTimelineEventsCommand;
2313
+ exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
2314
+ exports.RegionStatus = RegionStatus;
2315
+ exports.ReplicationSetStatus = ReplicationSetStatus;
2316
+ exports.ResourceNotFoundException = ResourceNotFoundException;
2317
+ exports.ResourceType = ResourceType;
2318
+ exports.SSMIncidents = SSMIncidents;
2319
+ exports.SSMIncidentsClient = SSMIncidentsClient;
2320
+ exports.SSMIncidentsServiceException = SSMIncidentsServiceException;
2321
+ exports.ServiceCode = ServiceCode;
2322
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
2323
+ exports.SortOrder = SortOrder;
2324
+ exports.SsmTargetAccount = SsmTargetAccount;
2325
+ exports.StartIncidentCommand = StartIncidentCommand;
2326
+ exports.TagResourceCommand = TagResourceCommand;
2327
+ exports.ThrottlingException = ThrottlingException;
2328
+ exports.TimelineEventSort = TimelineEventSort;
2329
+ exports.UntagResourceCommand = UntagResourceCommand;
2330
+ exports.UpdateDeletionProtectionCommand = UpdateDeletionProtectionCommand;
2331
+ exports.UpdateIncidentRecordCommand = UpdateIncidentRecordCommand;
2332
+ exports.UpdateRelatedItemsCommand = UpdateRelatedItemsCommand;
2333
+ exports.UpdateReplicationSetCommand = UpdateReplicationSetCommand;
2334
+ exports.UpdateResponsePlanCommand = UpdateResponsePlanCommand;
2335
+ exports.UpdateTimelineEventCommand = UpdateTimelineEventCommand;
2336
+ exports.ValidationException = ValidationException;
2337
+ exports.VariableType = VariableType;
2338
+ exports.paginateGetResourcePolicies = paginateGetResourcePolicies;
2339
+ exports.paginateListIncidentFindings = paginateListIncidentFindings;
2340
+ exports.paginateListIncidentRecords = paginateListIncidentRecords;
2341
+ exports.paginateListRelatedItems = paginateListRelatedItems;
2342
+ exports.paginateListReplicationSets = paginateListReplicationSets;
2343
+ exports.paginateListResponsePlans = paginateListResponsePlans;
2344
+ exports.paginateListTimelineEvents = paginateListTimelineEvents;
2345
+ exports.waitForWaitForReplicationSetActive = waitForWaitForReplicationSetActive;
2346
+ exports.waitForWaitForReplicationSetDeleted = waitForWaitForReplicationSetDeleted;
2347
+ exports.waitUntilWaitForReplicationSetActive = waitUntilWaitForReplicationSetActive;
2348
+ exports.waitUntilWaitForReplicationSetDeleted = waitUntilWaitForReplicationSetDeleted;