@aws-sdk/client-ssm-incidents 3.85.0 → 3.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/models/models_0.js +29 -3
- package/dist-cjs/protocols/Aws_restJson1.js +44 -0
- package/dist-es/models/models_0.js +29 -2
- package/dist-es/protocols/Aws_restJson1.js +59 -17
- package/dist-types/SSMIncidents.d.ts +4 -1
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +4 -1
- package/dist-types/models/models_0.d.ts +56 -46
- package/dist-types/ts3.4/models/models_0.d.ts +32 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.92.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.91.0...v3.92.0) (2022-05-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-ssm-incidents
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.90.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.89.0...v3.90.0) (2022-05-12)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-ssm-incidents:** Adding support for dynamic SSM Runbook parameter values. Updating validation pattern for engagements. Adding ConflictException to UpdateReplicationSet API contract. ([67fcba1](https://github.com/aws/aws-sdk-js-v3/commit/67fcba1df63f50c80a3bc11015a8d2d73cf85084))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.87.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.86.0...v3.87.0) (2022-05-09)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-ssm-incidents
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.85.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.84.0...v3.85.0) (2022-05-05)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateTimelineEventOutput = exports.UpdateTimelineEventInput = void 0;
|
|
3
|
+
exports.RegionInfo = exports.RegionStatus = exports.GetReplicationSetInput = exports.GetIncidentRecordOutput = exports.IncidentRecord = exports.IncidentRecordStatus = exports.IncidentRecordSource = exports.GetIncidentRecordInput = exports.Filter = exports.EventSummary = exports.DeleteTimelineEventOutput = exports.DeleteTimelineEventInput = exports.DeleteResponsePlanOutput = exports.DeleteResponsePlanInput = exports.DeleteResourcePolicyOutput = exports.DeleteResourcePolicyInput = exports.DeleteReplicationSetOutput = exports.DeleteReplicationSetInput = exports.DeleteRegionAction = exports.DeleteIncidentRecordOutput = exports.DeleteIncidentRecordInput = exports.CreateTimelineEventOutput = exports.CreateTimelineEventInput = exports.ResourceNotFoundException = exports.CreateResponsePlanOutput = exports.CreateResponsePlanInput = exports.IncidentTemplate = exports.NotificationTargetItem = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ServiceCode = exports.InternalServerException = exports.CreateReplicationSetOutput = exports.CreateReplicationSetInput = exports.RegionMapInputValue = exports.ConflictException = exports.ResourceType = exports.Condition = exports.ChatChannel = exports.EmptyChatChannel = exports.AutomationExecution = exports.AttributeValueList = exports.AddRegionAction = exports.Action = exports.SsmAutomation = exports.SsmTargetAccount = exports.DynamicSsmParameterValue = exports.VariableType = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.UpdateReplicationSetOutput = exports.UpdateReplicationSetInput = exports.UpdateReplicationSetAction = exports.UpdateRelatedItemsOutput = exports.UpdateRelatedItemsInput = exports.UpdateIncidentRecordOutput = exports.UpdateIncidentRecordInput = exports.UpdateDeletionProtectionOutput = exports.UpdateDeletionProtectionInput = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartIncidentOutput = exports.StartIncidentInput = exports.TriggerDetails = exports.RelatedItemsUpdate = exports.PutResourcePolicyOutput = exports.PutResourcePolicyInput = exports.ListTimelineEventsOutput = exports.ListTimelineEventsInput = exports.SortOrder = exports.TimelineEventSort = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListResponsePlansOutput = exports.ResponsePlanSummary = exports.ListResponsePlansInput = exports.ListReplicationSetsOutput = exports.ListReplicationSetsInput = exports.ListRelatedItemsOutput = exports.RelatedItem = exports.ListRelatedItemsInput = exports.ListIncidentRecordsOutput = exports.ListIncidentRecordsInput = exports.ItemIdentifier = exports.ItemValue = exports.ItemType = exports.IncidentRecordSummary = exports.GetTimelineEventOutput = exports.TimelineEvent = exports.GetTimelineEventInput = exports.GetResponsePlanOutput = exports.GetResponsePlanInput = exports.GetResourcePoliciesOutput = exports.ResourcePolicy = exports.GetResourcePoliciesInput = exports.GetReplicationSetOutput = exports.ReplicationSet = exports.ReplicationSetStatus = void 0;
|
|
5
|
+
exports.UpdateTimelineEventOutput = exports.UpdateTimelineEventInput = exports.UpdateResponsePlanOutput = exports.UpdateResponsePlanInput = void 0;
|
|
6
6
|
const SSMIncidentsServiceException_1 = require("./SSMIncidentsServiceException");
|
|
7
7
|
class AccessDeniedException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -17,6 +17,25 @@ class AccessDeniedException extends SSMIncidentsServiceException_1.SSMIncidentsS
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
exports.AccessDeniedException = AccessDeniedException;
|
|
20
|
+
var VariableType;
|
|
21
|
+
(function (VariableType) {
|
|
22
|
+
VariableType["INCIDENT_RECORD_ARN"] = "INCIDENT_RECORD_ARN";
|
|
23
|
+
VariableType["INVOLVED_RESOURCES"] = "INVOLVED_RESOURCES";
|
|
24
|
+
})(VariableType = exports.VariableType || (exports.VariableType = {}));
|
|
25
|
+
var DynamicSsmParameterValue;
|
|
26
|
+
(function (DynamicSsmParameterValue) {
|
|
27
|
+
DynamicSsmParameterValue.visit = (value, visitor) => {
|
|
28
|
+
if (value.variable !== undefined)
|
|
29
|
+
return visitor.variable(value.variable);
|
|
30
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
31
|
+
};
|
|
32
|
+
DynamicSsmParameterValue.filterSensitiveLog = (obj) => {
|
|
33
|
+
if (obj.variable !== undefined)
|
|
34
|
+
return { variable: obj.variable };
|
|
35
|
+
if (obj.$unknown !== undefined)
|
|
36
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
37
|
+
};
|
|
38
|
+
})(DynamicSsmParameterValue = exports.DynamicSsmParameterValue || (exports.DynamicSsmParameterValue = {}));
|
|
20
39
|
var SsmTargetAccount;
|
|
21
40
|
(function (SsmTargetAccount) {
|
|
22
41
|
SsmTargetAccount["IMPACTED_ACCOUNT"] = "IMPACTED_ACCOUNT";
|
|
@@ -26,6 +45,12 @@ var SsmAutomation;
|
|
|
26
45
|
(function (SsmAutomation) {
|
|
27
46
|
SsmAutomation.filterSensitiveLog = (obj) => ({
|
|
28
47
|
...obj,
|
|
48
|
+
...(obj.dynamicParameters && {
|
|
49
|
+
dynamicParameters: Object.entries(obj.dynamicParameters).reduce((acc, [key, value]) => ({
|
|
50
|
+
...acc,
|
|
51
|
+
[key]: DynamicSsmParameterValue.filterSensitiveLog(value),
|
|
52
|
+
}), {}),
|
|
53
|
+
}),
|
|
29
54
|
});
|
|
30
55
|
})(SsmAutomation = exports.SsmAutomation || (exports.SsmAutomation = {}));
|
|
31
56
|
var Action;
|
|
@@ -513,6 +538,7 @@ var ItemType;
|
|
|
513
538
|
ItemType["ATTACHMENT"] = "ATTACHMENT";
|
|
514
539
|
ItemType["AUTOMATION"] = "AUTOMATION";
|
|
515
540
|
ItemType["INCIDENT"] = "INCIDENT";
|
|
541
|
+
ItemType["INVOLVED_RESOURCE"] = "INVOLVED_RESOURCE";
|
|
516
542
|
ItemType["METRIC"] = "METRIC";
|
|
517
543
|
ItemType["OTHER"] = "OTHER";
|
|
518
544
|
ItemType["PARENT"] = "PARENT";
|
|
@@ -2067,6 +2067,9 @@ const deserializeAws_restJson1UpdateReplicationSetCommandError = async (output,
|
|
|
2067
2067
|
case "AccessDeniedException":
|
|
2068
2068
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
2069
2069
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2070
|
+
case "ConflictException":
|
|
2071
|
+
case "com.amazonaws.ssmincidents#ConflictException":
|
|
2072
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2070
2073
|
case "InternalServerException":
|
|
2071
2074
|
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
2072
2075
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -2361,6 +2364,23 @@ const serializeAws_restJson1DeleteRegionAction = (input, context) => {
|
|
|
2361
2364
|
...(input.regionName !== undefined && input.regionName !== null && { regionName: input.regionName }),
|
|
2362
2365
|
};
|
|
2363
2366
|
};
|
|
2367
|
+
const serializeAws_restJson1DynamicSsmParameters = (input, context) => {
|
|
2368
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2369
|
+
if (value === null) {
|
|
2370
|
+
return acc;
|
|
2371
|
+
}
|
|
2372
|
+
return {
|
|
2373
|
+
...acc,
|
|
2374
|
+
[key]: serializeAws_restJson1DynamicSsmParameterValue(value, context),
|
|
2375
|
+
};
|
|
2376
|
+
}, {});
|
|
2377
|
+
};
|
|
2378
|
+
const serializeAws_restJson1DynamicSsmParameterValue = (input, context) => {
|
|
2379
|
+
return models_0_1.DynamicSsmParameterValue.visit(input, {
|
|
2380
|
+
variable: (value) => ({ variable: value }),
|
|
2381
|
+
_: (name, value) => ({ name: value }),
|
|
2382
|
+
});
|
|
2383
|
+
};
|
|
2364
2384
|
const serializeAws_restJson1EmptyChatChannel = (input, context) => {
|
|
2365
2385
|
return {};
|
|
2366
2386
|
};
|
|
@@ -2489,6 +2509,10 @@ const serializeAws_restJson1SsmAutomation = (input, context) => {
|
|
|
2489
2509
|
...(input.documentName !== undefined && input.documentName !== null && { documentName: input.documentName }),
|
|
2490
2510
|
...(input.documentVersion !== undefined &&
|
|
2491
2511
|
input.documentVersion !== null && { documentVersion: input.documentVersion }),
|
|
2512
|
+
...(input.dynamicParameters !== undefined &&
|
|
2513
|
+
input.dynamicParameters !== null && {
|
|
2514
|
+
dynamicParameters: serializeAws_restJson1DynamicSsmParameters(input.dynamicParameters, context),
|
|
2515
|
+
}),
|
|
2492
2516
|
...(input.parameters !== undefined &&
|
|
2493
2517
|
input.parameters !== null && { parameters: serializeAws_restJson1SsmParameters(input.parameters, context) }),
|
|
2494
2518
|
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
@@ -2623,6 +2647,23 @@ const deserializeAws_restJson1ChatChannel = (output, context) => {
|
|
|
2623
2647
|
}
|
|
2624
2648
|
return { $unknown: Object.entries(output)[0] };
|
|
2625
2649
|
};
|
|
2650
|
+
const deserializeAws_restJson1DynamicSsmParameters = (output, context) => {
|
|
2651
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2652
|
+
if (value === null) {
|
|
2653
|
+
return acc;
|
|
2654
|
+
}
|
|
2655
|
+
return {
|
|
2656
|
+
...acc,
|
|
2657
|
+
[key]: deserializeAws_restJson1DynamicSsmParameterValue((0, smithy_client_1.expectUnion)(value), context),
|
|
2658
|
+
};
|
|
2659
|
+
}, {});
|
|
2660
|
+
};
|
|
2661
|
+
const deserializeAws_restJson1DynamicSsmParameterValue = (output, context) => {
|
|
2662
|
+
if ((0, smithy_client_1.expectString)(output.variable) !== undefined) {
|
|
2663
|
+
return { variable: (0, smithy_client_1.expectString)(output.variable) };
|
|
2664
|
+
}
|
|
2665
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2666
|
+
};
|
|
2626
2667
|
const deserializeAws_restJson1EmptyChatChannel = (output, context) => {
|
|
2627
2668
|
return {};
|
|
2628
2669
|
};
|
|
@@ -2886,6 +2927,9 @@ const deserializeAws_restJson1SsmAutomation = (output, context) => {
|
|
|
2886
2927
|
return {
|
|
2887
2928
|
documentName: (0, smithy_client_1.expectString)(output.documentName),
|
|
2888
2929
|
documentVersion: (0, smithy_client_1.expectString)(output.documentVersion),
|
|
2930
|
+
dynamicParameters: output.dynamicParameters !== undefined && output.dynamicParameters !== null
|
|
2931
|
+
? deserializeAws_restJson1DynamicSsmParameters(output.dynamicParameters, context)
|
|
2932
|
+
: undefined,
|
|
2889
2933
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
2890
2934
|
? deserializeAws_restJson1SsmParameters(output.parameters, context)
|
|
2891
2935
|
: undefined,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
1
|
+
import { __assign, __extends, __read } from "tslib";
|
|
2
2
|
import { SSMIncidentsServiceException as __BaseException } from "./SSMIncidentsServiceException";
|
|
3
3
|
var AccessDeniedException = (function (_super) {
|
|
4
4
|
__extends(AccessDeniedException, _super);
|
|
@@ -12,6 +12,26 @@ var AccessDeniedException = (function (_super) {
|
|
|
12
12
|
return AccessDeniedException;
|
|
13
13
|
}(__BaseException));
|
|
14
14
|
export { AccessDeniedException };
|
|
15
|
+
export var VariableType;
|
|
16
|
+
(function (VariableType) {
|
|
17
|
+
VariableType["INCIDENT_RECORD_ARN"] = "INCIDENT_RECORD_ARN";
|
|
18
|
+
VariableType["INVOLVED_RESOURCES"] = "INVOLVED_RESOURCES";
|
|
19
|
+
})(VariableType || (VariableType = {}));
|
|
20
|
+
export var DynamicSsmParameterValue;
|
|
21
|
+
(function (DynamicSsmParameterValue) {
|
|
22
|
+
DynamicSsmParameterValue.visit = function (value, visitor) {
|
|
23
|
+
if (value.variable !== undefined)
|
|
24
|
+
return visitor.variable(value.variable);
|
|
25
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
26
|
+
};
|
|
27
|
+
DynamicSsmParameterValue.filterSensitiveLog = function (obj) {
|
|
28
|
+
var _a;
|
|
29
|
+
if (obj.variable !== undefined)
|
|
30
|
+
return { variable: obj.variable };
|
|
31
|
+
if (obj.$unknown !== undefined)
|
|
32
|
+
return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
|
|
33
|
+
};
|
|
34
|
+
})(DynamicSsmParameterValue || (DynamicSsmParameterValue = {}));
|
|
15
35
|
export var SsmTargetAccount;
|
|
16
36
|
(function (SsmTargetAccount) {
|
|
17
37
|
SsmTargetAccount["IMPACTED_ACCOUNT"] = "IMPACTED_ACCOUNT";
|
|
@@ -19,7 +39,13 @@ export var SsmTargetAccount;
|
|
|
19
39
|
})(SsmTargetAccount || (SsmTargetAccount = {}));
|
|
20
40
|
export var SsmAutomation;
|
|
21
41
|
(function (SsmAutomation) {
|
|
22
|
-
SsmAutomation.filterSensitiveLog = function (obj) { return (__assign({}, obj)
|
|
42
|
+
SsmAutomation.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.dynamicParameters && {
|
|
43
|
+
dynamicParameters: Object.entries(obj.dynamicParameters).reduce(function (acc, _a) {
|
|
44
|
+
var _b;
|
|
45
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
46
|
+
return (__assign(__assign({}, acc), (_b = {}, _b[key] = DynamicSsmParameterValue.filterSensitiveLog(value), _b)));
|
|
47
|
+
}, {}),
|
|
48
|
+
}))); };
|
|
23
49
|
})(SsmAutomation || (SsmAutomation = {}));
|
|
24
50
|
export var Action;
|
|
25
51
|
(function (Action) {
|
|
@@ -414,6 +440,7 @@ export var ItemType;
|
|
|
414
440
|
ItemType["ATTACHMENT"] = "ATTACHMENT";
|
|
415
441
|
ItemType["AUTOMATION"] = "AUTOMATION";
|
|
416
442
|
ItemType["INCIDENT"] = "INCIDENT";
|
|
443
|
+
ItemType["INVOLVED_RESOURCE"] = "INVOLVED_RESOURCE";
|
|
417
444
|
ItemType["METRIC"] = "METRIC";
|
|
418
445
|
ItemType["OTHER"] = "OTHER";
|
|
419
446
|
ItemType["PARENT"] = "PARENT";
|
|
@@ -2,7 +2,7 @@ import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
-
import { AccessDeniedException, Action, AttributeValueList, ChatChannel, Condition, ConflictException, InternalServerException, ItemValue, NotificationTargetItem, RelatedItemsUpdate, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UpdateReplicationSetAction, ValidationException, } from "../models/models_0";
|
|
5
|
+
import { AccessDeniedException, Action, AttributeValueList, ChatChannel, Condition, ConflictException, DynamicSsmParameterValue, InternalServerException, ItemValue, NotificationTargetItem, RelatedItemsUpdate, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UpdateReplicationSetAction, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { SSMIncidentsServiceException as __BaseException } from "../models/SSMIncidentsServiceException";
|
|
7
7
|
export var serializeAws_restJson1CreateReplicationSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
8
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
@@ -2681,27 +2681,31 @@ var deserializeAws_restJson1UpdateReplicationSetCommandError = function (output,
|
|
|
2681
2681
|
switch (_b) {
|
|
2682
2682
|
case "AccessDeniedException": return [3, 2];
|
|
2683
2683
|
case "com.amazonaws.ssmincidents#AccessDeniedException": return [3, 2];
|
|
2684
|
-
case "
|
|
2685
|
-
case "com.amazonaws.ssmincidents#
|
|
2686
|
-
case "
|
|
2687
|
-
case "com.amazonaws.ssmincidents#
|
|
2688
|
-
case "
|
|
2689
|
-
case "com.amazonaws.ssmincidents#
|
|
2690
|
-
case "
|
|
2691
|
-
case "com.amazonaws.ssmincidents#
|
|
2684
|
+
case "ConflictException": return [3, 4];
|
|
2685
|
+
case "com.amazonaws.ssmincidents#ConflictException": return [3, 4];
|
|
2686
|
+
case "InternalServerException": return [3, 6];
|
|
2687
|
+
case "com.amazonaws.ssmincidents#InternalServerException": return [3, 6];
|
|
2688
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2689
|
+
case "com.amazonaws.ssmincidents#ResourceNotFoundException": return [3, 8];
|
|
2690
|
+
case "ThrottlingException": return [3, 10];
|
|
2691
|
+
case "com.amazonaws.ssmincidents#ThrottlingException": return [3, 10];
|
|
2692
|
+
case "ValidationException": return [3, 12];
|
|
2693
|
+
case "com.amazonaws.ssmincidents#ValidationException": return [3, 12];
|
|
2692
2694
|
}
|
|
2693
|
-
return [3,
|
|
2695
|
+
return [3, 14];
|
|
2694
2696
|
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2695
2697
|
case 3: throw _d.sent();
|
|
2696
|
-
case 4: return [4,
|
|
2698
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2697
2699
|
case 5: throw _d.sent();
|
|
2698
|
-
case 6: return [4,
|
|
2700
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2699
2701
|
case 7: throw _d.sent();
|
|
2700
|
-
case 8: return [4,
|
|
2702
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2701
2703
|
case 9: throw _d.sent();
|
|
2702
|
-
case 10: return [4,
|
|
2704
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2703
2705
|
case 11: throw _d.sent();
|
|
2704
|
-
case 12:
|
|
2706
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2707
|
+
case 13: throw _d.sent();
|
|
2708
|
+
case 14:
|
|
2705
2709
|
parsedBody = parsedOutput.body;
|
|
2706
2710
|
response = new __BaseException({
|
|
2707
2711
|
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
@@ -3023,6 +3027,22 @@ var serializeAws_restJson1Condition = function (input, context) {
|
|
|
3023
3027
|
var serializeAws_restJson1DeleteRegionAction = function (input, context) {
|
|
3024
3028
|
return __assign({}, (input.regionName !== undefined && input.regionName !== null && { regionName: input.regionName }));
|
|
3025
3029
|
};
|
|
3030
|
+
var serializeAws_restJson1DynamicSsmParameters = function (input, context) {
|
|
3031
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
3032
|
+
var _b;
|
|
3033
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
3034
|
+
if (value === null) {
|
|
3035
|
+
return acc;
|
|
3036
|
+
}
|
|
3037
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1DynamicSsmParameterValue(value, context), _b));
|
|
3038
|
+
}, {});
|
|
3039
|
+
};
|
|
3040
|
+
var serializeAws_restJson1DynamicSsmParameterValue = function (input, context) {
|
|
3041
|
+
return DynamicSsmParameterValue.visit(input, {
|
|
3042
|
+
variable: function (value) { return ({ variable: value }); },
|
|
3043
|
+
_: function (name, value) { return ({ name: value }); },
|
|
3044
|
+
});
|
|
3045
|
+
};
|
|
3026
3046
|
var serializeAws_restJson1EmptyChatChannel = function (input, context) {
|
|
3027
3047
|
return {};
|
|
3028
3048
|
};
|
|
@@ -3129,8 +3149,11 @@ var serializeAws_restJson1RelatedItemsUpdate = function (input, context) {
|
|
|
3129
3149
|
});
|
|
3130
3150
|
};
|
|
3131
3151
|
var serializeAws_restJson1SsmAutomation = function (input, context) {
|
|
3132
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.documentName !== undefined && input.documentName !== null && { documentName: input.documentName })), (input.documentVersion !== undefined &&
|
|
3133
|
-
input.documentVersion !== null && { documentVersion: input.documentVersion })), (input.
|
|
3152
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.documentName !== undefined && input.documentName !== null && { documentName: input.documentName })), (input.documentVersion !== undefined &&
|
|
3153
|
+
input.documentVersion !== null && { documentVersion: input.documentVersion })), (input.dynamicParameters !== undefined &&
|
|
3154
|
+
input.dynamicParameters !== null && {
|
|
3155
|
+
dynamicParameters: serializeAws_restJson1DynamicSsmParameters(input.dynamicParameters, context),
|
|
3156
|
+
})), (input.parameters !== undefined &&
|
|
3134
3157
|
input.parameters !== null && { parameters: serializeAws_restJson1SsmParameters(input.parameters, context) })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.targetAccount !== undefined && input.targetAccount !== null && { targetAccount: input.targetAccount }));
|
|
3135
3158
|
};
|
|
3136
3159
|
var serializeAws_restJson1SsmParameters = function (input, context) {
|
|
@@ -3254,6 +3277,22 @@ var deserializeAws_restJson1ChatChannel = function (output, context) {
|
|
|
3254
3277
|
}
|
|
3255
3278
|
return { $unknown: Object.entries(output)[0] };
|
|
3256
3279
|
};
|
|
3280
|
+
var deserializeAws_restJson1DynamicSsmParameters = function (output, context) {
|
|
3281
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
3282
|
+
var _b;
|
|
3283
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
3284
|
+
if (value === null) {
|
|
3285
|
+
return acc;
|
|
3286
|
+
}
|
|
3287
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1DynamicSsmParameterValue(__expectUnion(value), context), _b));
|
|
3288
|
+
}, {});
|
|
3289
|
+
};
|
|
3290
|
+
var deserializeAws_restJson1DynamicSsmParameterValue = function (output, context) {
|
|
3291
|
+
if (__expectString(output.variable) !== undefined) {
|
|
3292
|
+
return { variable: __expectString(output.variable) };
|
|
3293
|
+
}
|
|
3294
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3295
|
+
};
|
|
3257
3296
|
var deserializeAws_restJson1EmptyChatChannel = function (output, context) {
|
|
3258
3297
|
return {};
|
|
3259
3298
|
};
|
|
@@ -3516,6 +3555,9 @@ var deserializeAws_restJson1SsmAutomation = function (output, context) {
|
|
|
3516
3555
|
return {
|
|
3517
3556
|
documentName: __expectString(output.documentName),
|
|
3518
3557
|
documentVersion: __expectString(output.documentVersion),
|
|
3558
|
+
dynamicParameters: output.dynamicParameters !== undefined && output.dynamicParameters !== null
|
|
3559
|
+
? deserializeAws_restJson1DynamicSsmParameters(output.dynamicParameters, context)
|
|
3560
|
+
: undefined,
|
|
3519
3561
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
3520
3562
|
? deserializeAws_restJson1SsmParameters(output.parameters, context)
|
|
3521
3563
|
: undefined,
|
|
@@ -165,7 +165,10 @@ export declare class SSMIncidents extends SSMIncidentsClient {
|
|
|
165
165
|
listTimelineEvents(args: ListTimelineEventsCommandInput, cb: (err: any, data?: ListTimelineEventsCommandOutput) => void): void;
|
|
166
166
|
listTimelineEvents(args: ListTimelineEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTimelineEventsCommandOutput) => void): void;
|
|
167
167
|
/**
|
|
168
|
-
* <p>Adds a resource policy to the specified response plan
|
|
168
|
+
* <p>Adds a resource policy to the specified response plan. The resource policy is used to
|
|
169
|
+
* share the response plan using Resource Access Manager (RAM). For more
|
|
170
|
+
* information about cross-account sharing, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/xa.html">Setting up
|
|
171
|
+
* cross-account functionality</a>.</p>
|
|
169
172
|
*/
|
|
170
173
|
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
|
|
171
174
|
putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
@@ -7,7 +7,10 @@ export interface PutResourcePolicyCommandInput extends PutResourcePolicyInput {
|
|
|
7
7
|
export interface PutResourcePolicyCommandOutput extends PutResourcePolicyOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Adds a resource policy to the specified response plan
|
|
10
|
+
* <p>Adds a resource policy to the specified response plan. The resource policy is used to
|
|
11
|
+
* share the response plan using Resource Access Manager (RAM). For more
|
|
12
|
+
* information about cross-account sharing, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/xa.html">Setting up
|
|
13
|
+
* cross-account functionality</a>.</p>
|
|
11
14
|
* @example
|
|
12
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
16
|
* ```javascript
|
|
@@ -11,6 +11,36 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
11
11
|
*/
|
|
12
12
|
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
13
13
|
}
|
|
14
|
+
export declare enum VariableType {
|
|
15
|
+
INCIDENT_RECORD_ARN = "INCIDENT_RECORD_ARN",
|
|
16
|
+
INVOLVED_RESOURCES = "INVOLVED_RESOURCES"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* <p>The dynamic SSM parameter value.</p>
|
|
20
|
+
*/
|
|
21
|
+
export declare type DynamicSsmParameterValue = DynamicSsmParameterValue.VariableMember | DynamicSsmParameterValue.$UnknownMember;
|
|
22
|
+
export declare namespace DynamicSsmParameterValue {
|
|
23
|
+
/**
|
|
24
|
+
* <p>Variable dynamic parameters. A parameter value is determined when an incident is created.</p>
|
|
25
|
+
*/
|
|
26
|
+
interface VariableMember {
|
|
27
|
+
variable: VariableType | string;
|
|
28
|
+
$unknown?: never;
|
|
29
|
+
}
|
|
30
|
+
interface $UnknownMember {
|
|
31
|
+
variable?: never;
|
|
32
|
+
$unknown: [string, any];
|
|
33
|
+
}
|
|
34
|
+
interface Visitor<T> {
|
|
35
|
+
variable: (value: VariableType | string) => T;
|
|
36
|
+
_: (name: string, value: any) => T;
|
|
37
|
+
}
|
|
38
|
+
const visit: <T>(value: DynamicSsmParameterValue, visitor: Visitor<T>) => T;
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
const filterSensitiveLog: (obj: DynamicSsmParameterValue) => any;
|
|
43
|
+
}
|
|
14
44
|
export declare enum SsmTargetAccount {
|
|
15
45
|
IMPACTED_ACCOUNT = "IMPACTED_ACCOUNT",
|
|
16
46
|
RESPONSE_PLAN_OWNER_ACCOUNT = "RESPONSE_PLAN_OWNER_ACCOUNT"
|
|
@@ -21,7 +51,8 @@ export declare enum SsmTargetAccount {
|
|
|
21
51
|
*/
|
|
22
52
|
export interface SsmAutomation {
|
|
23
53
|
/**
|
|
24
|
-
* <p>The Amazon Resource Name (ARN) of the role that the automation document will assume when
|
|
54
|
+
* <p>The Amazon Resource Name (ARN) of the role that the automation document will assume when
|
|
55
|
+
* running commands.</p>
|
|
25
56
|
*/
|
|
26
57
|
roleArn: string | undefined;
|
|
27
58
|
/**
|
|
@@ -33,7 +64,8 @@ export interface SsmAutomation {
|
|
|
33
64
|
*/
|
|
34
65
|
documentVersion?: string;
|
|
35
66
|
/**
|
|
36
|
-
* <p>The account that the automation document will be run in. This can be in either the
|
|
67
|
+
* <p>The account that the automation document will be run in. This can be in either the
|
|
68
|
+
* management account or an application account.</p>
|
|
37
69
|
*/
|
|
38
70
|
targetAccount?: SsmTargetAccount | string;
|
|
39
71
|
/**
|
|
@@ -42,6 +74,12 @@ export interface SsmAutomation {
|
|
|
42
74
|
parameters?: {
|
|
43
75
|
[key: string]: string[];
|
|
44
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* <p>The key-value pair to resolve dynamic parameter values when processing a Systems Manager Automation runbook.</p>
|
|
79
|
+
*/
|
|
80
|
+
dynamicParameters?: {
|
|
81
|
+
[key: string]: DynamicSsmParameterValue;
|
|
82
|
+
};
|
|
45
83
|
}
|
|
46
84
|
export declare namespace SsmAutomation {
|
|
47
85
|
/**
|
|
@@ -189,9 +227,7 @@ export declare namespace ChatChannel {
|
|
|
189
227
|
/**
|
|
190
228
|
* <p>The Amazon SNS targets that Chatbot uses to notify the chat channel
|
|
191
229
|
* of updates to an incident. You can also make updates to the incident through the chat
|
|
192
|
-
* channel
|
|
193
|
-
* by
|
|
194
|
-
* using the Amazon SNS topics. </p>
|
|
230
|
+
* channel by using the Amazon SNS topics. </p>
|
|
195
231
|
*/
|
|
196
232
|
interface ChatbotSnsMember {
|
|
197
233
|
empty?: never;
|
|
@@ -445,7 +481,8 @@ export declare namespace NotificationTargetItem {
|
|
|
445
481
|
const filterSensitiveLog: (obj: NotificationTargetItem) => any;
|
|
446
482
|
}
|
|
447
483
|
/**
|
|
448
|
-
* <p>Basic details used in creating a response plan. The response plan is then used to create
|
|
484
|
+
* <p>Basic details used in creating a response plan. The response plan is then used to create
|
|
485
|
+
* an incident record.</p>
|
|
449
486
|
*/
|
|
450
487
|
export interface IncidentTemplate {
|
|
451
488
|
/**
|
|
@@ -462,7 +499,8 @@ export interface IncidentTemplate {
|
|
|
462
499
|
*/
|
|
463
500
|
summary?: string;
|
|
464
501
|
/**
|
|
465
|
-
* <p>Used to stop Incident Manager from creating multiple incident records for the same incident.
|
|
502
|
+
* <p>Used to stop Incident Manager from creating multiple incident records for the same incident.
|
|
503
|
+
* </p>
|
|
466
504
|
*/
|
|
467
505
|
dedupeString?: string;
|
|
468
506
|
/**
|
|
@@ -574,8 +612,7 @@ export interface CreateTimelineEventInput {
|
|
|
574
612
|
*/
|
|
575
613
|
eventType: string | undefined;
|
|
576
614
|
/**
|
|
577
|
-
* <p>A short description of the event
|
|
578
|
-
* imposed.</p>
|
|
615
|
+
* <p>A short description of the event.</p>
|
|
579
616
|
*/
|
|
580
617
|
eventData: string | undefined;
|
|
581
618
|
}
|
|
@@ -768,7 +805,8 @@ export interface Filter {
|
|
|
768
805
|
*/
|
|
769
806
|
key: string | undefined;
|
|
770
807
|
/**
|
|
771
|
-
* <p>The condition accepts before or after a specified time, equal to a string, or equal to
|
|
808
|
+
* <p>The condition accepts before or after a specified time, equal to a string, or equal to
|
|
809
|
+
* an integer.</p>
|
|
772
810
|
*/
|
|
773
811
|
condition: Condition | undefined;
|
|
774
812
|
}
|
|
@@ -799,7 +837,8 @@ export interface IncidentRecordSource {
|
|
|
799
837
|
*/
|
|
800
838
|
createdBy: string | undefined;
|
|
801
839
|
/**
|
|
802
|
-
* <p>The principal
|
|
840
|
+
* <p>The service principal that assumed the role specified in <code>createdBy</code>. If no
|
|
841
|
+
* service principal assumed the role this will be left blank.</p>
|
|
803
842
|
*/
|
|
804
843
|
invokedBy?: string;
|
|
805
844
|
/**
|
|
@@ -873,7 +912,8 @@ export interface IncidentRecord {
|
|
|
873
912
|
*/
|
|
874
913
|
incidentRecordSource: IncidentRecordSource | undefined;
|
|
875
914
|
/**
|
|
876
|
-
* <p>The string Incident Manager uses to prevent duplicate incidents from being created by the
|
|
915
|
+
* <p>The string Incident Manager uses to prevent duplicate incidents from being created by the
|
|
916
|
+
* same incident in the same account.</p>
|
|
877
917
|
*/
|
|
878
918
|
dedupeString: string | undefined;
|
|
879
919
|
/**
|
|
@@ -1065,7 +1105,8 @@ export declare namespace GetResourcePoliciesInput {
|
|
|
1065
1105
|
const filterSensitiveLog: (obj: GetResourcePoliciesInput) => any;
|
|
1066
1106
|
}
|
|
1067
1107
|
/**
|
|
1068
|
-
* <p>The resource policy that allows Incident Manager to perform actions on resources on your
|
|
1108
|
+
* <p>The resource policy that allows Incident Manager to perform actions on resources on your
|
|
1109
|
+
* behalf.</p>
|
|
1069
1110
|
*/
|
|
1070
1111
|
export interface ResourcePolicy {
|
|
1071
1112
|
/**
|
|
@@ -1264,6 +1305,7 @@ export declare enum ItemType {
|
|
|
1264
1305
|
ATTACHMENT = "ATTACHMENT",
|
|
1265
1306
|
AUTOMATION = "AUTOMATION",
|
|
1266
1307
|
INCIDENT = "INCIDENT",
|
|
1308
|
+
INVOLVED_RESOURCE = "INVOLVED_RESOURCE",
|
|
1267
1309
|
METRIC = "METRIC",
|
|
1268
1310
|
OTHER = "OTHER",
|
|
1269
1311
|
PARENT = "PARENT"
|
|
@@ -1328,39 +1370,7 @@ export interface ItemIdentifier {
|
|
|
1328
1370
|
*/
|
|
1329
1371
|
value: ItemValue | undefined;
|
|
1330
1372
|
/**
|
|
1331
|
-
* <p>The type of related item.
|
|
1332
|
-
* <ul>
|
|
1333
|
-
* <li>
|
|
1334
|
-
* <p>
|
|
1335
|
-
* <code>ANALYSIS</code>
|
|
1336
|
-
* </p>
|
|
1337
|
-
* </li>
|
|
1338
|
-
* <li>
|
|
1339
|
-
* <p>
|
|
1340
|
-
* <code>INCIDENT</code>
|
|
1341
|
-
* </p>
|
|
1342
|
-
* </li>
|
|
1343
|
-
* <li>
|
|
1344
|
-
* <p>
|
|
1345
|
-
* <code>METRIC</code>
|
|
1346
|
-
* </p>
|
|
1347
|
-
* </li>
|
|
1348
|
-
* <li>
|
|
1349
|
-
* <p>
|
|
1350
|
-
* <code>PARENT</code>
|
|
1351
|
-
* </p>
|
|
1352
|
-
* </li>
|
|
1353
|
-
* <li>
|
|
1354
|
-
* <p>
|
|
1355
|
-
* <code>ATTACHMENT</code>
|
|
1356
|
-
* </p>
|
|
1357
|
-
* </li>
|
|
1358
|
-
* <li>
|
|
1359
|
-
* <p>
|
|
1360
|
-
* <code>OTHER</code>
|
|
1361
|
-
* </p>
|
|
1362
|
-
* </li>
|
|
1363
|
-
* </ul>
|
|
1373
|
+
* <p>The type of related item. </p>
|
|
1364
1374
|
*/
|
|
1365
1375
|
type: ItemType | string | undefined;
|
|
1366
1376
|
}
|
|
@@ -7,6 +7,33 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
7
7
|
|
|
8
8
|
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
9
9
|
}
|
|
10
|
+
export declare enum VariableType {
|
|
11
|
+
INCIDENT_RECORD_ARN = "INCIDENT_RECORD_ARN",
|
|
12
|
+
INVOLVED_RESOURCES = "INVOLVED_RESOURCES"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export declare type DynamicSsmParameterValue = DynamicSsmParameterValue.VariableMember | DynamicSsmParameterValue.$UnknownMember;
|
|
16
|
+
export declare namespace DynamicSsmParameterValue {
|
|
17
|
+
|
|
18
|
+
interface VariableMember {
|
|
19
|
+
variable: VariableType | string;
|
|
20
|
+
$unknown?: never;
|
|
21
|
+
}
|
|
22
|
+
interface $UnknownMember {
|
|
23
|
+
variable?: never;
|
|
24
|
+
$unknown: [
|
|
25
|
+
string,
|
|
26
|
+
any
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
interface Visitor<T> {
|
|
30
|
+
variable: (value: VariableType | string) => T;
|
|
31
|
+
_: (name: string, value: any) => T;
|
|
32
|
+
}
|
|
33
|
+
const visit: <T>(value: DynamicSsmParameterValue, visitor: Visitor<T>) => T;
|
|
34
|
+
|
|
35
|
+
const filterSensitiveLog: (obj: DynamicSsmParameterValue) => any;
|
|
36
|
+
}
|
|
10
37
|
export declare enum SsmTargetAccount {
|
|
11
38
|
IMPACTED_ACCOUNT = "IMPACTED_ACCOUNT",
|
|
12
39
|
RESPONSE_PLAN_OWNER_ACCOUNT = "RESPONSE_PLAN_OWNER_ACCOUNT"
|
|
@@ -25,6 +52,10 @@ export interface SsmAutomation {
|
|
|
25
52
|
parameters?: {
|
|
26
53
|
[key: string]: string[];
|
|
27
54
|
};
|
|
55
|
+
|
|
56
|
+
dynamicParameters?: {
|
|
57
|
+
[key: string]: DynamicSsmParameterValue;
|
|
58
|
+
};
|
|
28
59
|
}
|
|
29
60
|
export declare namespace SsmAutomation {
|
|
30
61
|
|
|
@@ -787,6 +818,7 @@ export declare enum ItemType {
|
|
|
787
818
|
ATTACHMENT = "ATTACHMENT",
|
|
788
819
|
AUTOMATION = "AUTOMATION",
|
|
789
820
|
INCIDENT = "INCIDENT",
|
|
821
|
+
INVOLVED_RESOURCE = "INVOLVED_RESOURCE",
|
|
790
822
|
METRIC = "METRIC",
|
|
791
823
|
OTHER = "OTHER",
|
|
792
824
|
PARENT = "PARENT"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm-incidents",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ssm Incidents Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.92.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.92.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.80.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.87.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.78.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.78.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.78.0",
|