@aws-sdk/client-ssm-incidents 3.121.0 → 3.123.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.123.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.122.0...v3.123.0) (2022-07-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-ssm-incidents:** Adds support for tagging incident-record on creation by providing incident tags in the template within a response-plan. ([3aff9aa](https://github.com/aws/aws-sdk-js-v3/commit/3aff9aa485fa3dd3d347e3bd212d6d0b12d6946d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -712,6 +712,10 @@ const serializeAws_restJson1UpdateResponsePlanCommand = async (input, context) =
|
|
|
712
712
|
}),
|
|
713
713
|
...(input.incidentTemplateSummary !== undefined &&
|
|
714
714
|
input.incidentTemplateSummary !== null && { incidentTemplateSummary: input.incidentTemplateSummary }),
|
|
715
|
+
...(input.incidentTemplateTags !== undefined &&
|
|
716
|
+
input.incidentTemplateTags !== null && {
|
|
717
|
+
incidentTemplateTags: serializeAws_restJson1TagMapUpdate(input.incidentTemplateTags, context),
|
|
718
|
+
}),
|
|
715
719
|
...(input.incidentTemplateTitle !== undefined &&
|
|
716
720
|
input.incidentTemplateTitle !== null && { incidentTemplateTitle: input.incidentTemplateTitle }),
|
|
717
721
|
});
|
|
@@ -2444,6 +2448,8 @@ const serializeAws_restJson1IncidentTemplate = (input, context) => {
|
|
|
2444
2448
|
return {
|
|
2445
2449
|
...(input.dedupeString !== undefined && input.dedupeString !== null && { dedupeString: input.dedupeString }),
|
|
2446
2450
|
...(input.impact !== undefined && input.impact !== null && { impact: input.impact }),
|
|
2451
|
+
...(input.incidentTags !== undefined &&
|
|
2452
|
+
input.incidentTags !== null && { incidentTags: serializeAws_restJson1TagMap(input.incidentTags, context) }),
|
|
2447
2453
|
...(input.notificationTargets !== undefined &&
|
|
2448
2454
|
input.notificationTargets !== null && {
|
|
2449
2455
|
notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
|
|
@@ -2590,6 +2596,17 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2590
2596
|
};
|
|
2591
2597
|
}, {});
|
|
2592
2598
|
};
|
|
2599
|
+
const serializeAws_restJson1TagMapUpdate = (input, context) => {
|
|
2600
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2601
|
+
if (value === null) {
|
|
2602
|
+
return acc;
|
|
2603
|
+
}
|
|
2604
|
+
return {
|
|
2605
|
+
...acc,
|
|
2606
|
+
[key]: value,
|
|
2607
|
+
};
|
|
2608
|
+
}, {});
|
|
2609
|
+
};
|
|
2593
2610
|
const serializeAws_restJson1TriggerDetails = (input, context) => {
|
|
2594
2611
|
return {
|
|
2595
2612
|
...(input.rawData !== undefined && input.rawData !== null && { rawData: input.rawData }),
|
|
@@ -2803,6 +2820,9 @@ const deserializeAws_restJson1IncidentTemplate = (output, context) => {
|
|
|
2803
2820
|
return {
|
|
2804
2821
|
dedupeString: (0, smithy_client_1.expectString)(output.dedupeString),
|
|
2805
2822
|
impact: (0, smithy_client_1.expectInt32)(output.impact),
|
|
2823
|
+
incidentTags: output.incidentTags !== undefined && output.incidentTags !== null
|
|
2824
|
+
? deserializeAws_restJson1TagMap(output.incidentTags, context)
|
|
2825
|
+
: undefined,
|
|
2806
2826
|
notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
|
|
2807
2827
|
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
2808
2828
|
: undefined,
|
|
@@ -726,7 +726,7 @@ export var serializeAws_restJson1UpdateResponsePlanCommand = function (input, co
|
|
|
726
726
|
"content-type": "application/json",
|
|
727
727
|
};
|
|
728
728
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateResponsePlan";
|
|
729
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions !== undefined &&
|
|
729
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions !== undefined &&
|
|
730
730
|
input.actions !== null && { actions: serializeAws_restJson1ActionsList(input.actions, context) })), (input.arn !== undefined && input.arn !== null && { arn: input.arn })), (input.chatChannel !== undefined &&
|
|
731
731
|
input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName })), (input.engagements !== undefined &&
|
|
732
732
|
input.engagements !== null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) })), (input.incidentTemplateDedupeString !== undefined &&
|
|
@@ -737,7 +737,10 @@ export var serializeAws_restJson1UpdateResponsePlanCommand = function (input, co
|
|
|
737
737
|
input.incidentTemplateNotificationTargets !== null && {
|
|
738
738
|
incidentTemplateNotificationTargets: serializeAws_restJson1NotificationTargetSet(input.incidentTemplateNotificationTargets, context),
|
|
739
739
|
})), (input.incidentTemplateSummary !== undefined &&
|
|
740
|
-
input.incidentTemplateSummary !== null && { incidentTemplateSummary: input.incidentTemplateSummary })), (input.
|
|
740
|
+
input.incidentTemplateSummary !== null && { incidentTemplateSummary: input.incidentTemplateSummary })), (input.incidentTemplateTags !== undefined &&
|
|
741
|
+
input.incidentTemplateTags !== null && {
|
|
742
|
+
incidentTemplateTags: serializeAws_restJson1TagMapUpdate(input.incidentTemplateTags, context),
|
|
743
|
+
})), (input.incidentTemplateTitle !== undefined &&
|
|
741
744
|
input.incidentTemplateTitle !== null && { incidentTemplateTitle: input.incidentTemplateTitle })));
|
|
742
745
|
return [2, new __HttpRequest({
|
|
743
746
|
protocol: protocol,
|
|
@@ -3100,7 +3103,8 @@ var serializeAws_restJson1FilterList = function (input, context) {
|
|
|
3100
3103
|
});
|
|
3101
3104
|
};
|
|
3102
3105
|
var serializeAws_restJson1IncidentTemplate = function (input, context) {
|
|
3103
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.dedupeString !== undefined && input.dedupeString !== null && { dedupeString: input.dedupeString })), (input.impact !== undefined && input.impact !== null && { impact: input.impact })), (input.
|
|
3106
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.dedupeString !== undefined && input.dedupeString !== null && { dedupeString: input.dedupeString })), (input.impact !== undefined && input.impact !== null && { impact: input.impact })), (input.incidentTags !== undefined &&
|
|
3107
|
+
input.incidentTags !== null && { incidentTags: serializeAws_restJson1TagMap(input.incidentTags, context) })), (input.notificationTargets !== undefined &&
|
|
3104
3108
|
input.notificationTargets !== null && {
|
|
3105
3109
|
notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
|
|
3106
3110
|
})), (input.summary !== undefined && input.summary !== null && { summary: input.summary })), (input.title !== undefined && input.title !== null && { title: input.title }));
|
|
@@ -3225,6 +3229,16 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
3225
3229
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
3226
3230
|
}, {});
|
|
3227
3231
|
};
|
|
3232
|
+
var serializeAws_restJson1TagMapUpdate = function (input, context) {
|
|
3233
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
3234
|
+
var _b;
|
|
3235
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
3236
|
+
if (value === null) {
|
|
3237
|
+
return acc;
|
|
3238
|
+
}
|
|
3239
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
3240
|
+
}, {});
|
|
3241
|
+
};
|
|
3228
3242
|
var serializeAws_restJson1TriggerDetails = function (input, context) {
|
|
3229
3243
|
return __assign(__assign(__assign(__assign({}, (input.rawData !== undefined && input.rawData !== null && { rawData: input.rawData })), (input.source !== undefined && input.source !== null && { source: input.source })), (input.timestamp !== undefined &&
|
|
3230
3244
|
input.timestamp !== null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.triggerArn !== undefined && input.triggerArn !== null && { triggerArn: input.triggerArn }));
|
|
@@ -3432,6 +3446,9 @@ var deserializeAws_restJson1IncidentTemplate = function (output, context) {
|
|
|
3432
3446
|
return {
|
|
3433
3447
|
dedupeString: __expectString(output.dedupeString),
|
|
3434
3448
|
impact: __expectInt32(output.impact),
|
|
3449
|
+
incidentTags: output.incidentTags !== undefined && output.incidentTags !== null
|
|
3450
|
+
? deserializeAws_restJson1TagMap(output.incidentTags, context)
|
|
3451
|
+
: undefined,
|
|
3435
3452
|
notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
|
|
3436
3453
|
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
3437
3454
|
: undefined,
|
|
@@ -21,7 +21,8 @@ export declare enum VariableType {
|
|
|
21
21
|
export declare type DynamicSsmParameterValue = DynamicSsmParameterValue.VariableMember | DynamicSsmParameterValue.$UnknownMember;
|
|
22
22
|
export declare namespace DynamicSsmParameterValue {
|
|
23
23
|
/**
|
|
24
|
-
* <p>Variable dynamic parameters. A parameter value is determined when an incident is
|
|
24
|
+
* <p>Variable dynamic parameters. A parameter value is determined when an incident is
|
|
25
|
+
* created.</p>
|
|
25
26
|
*/
|
|
26
27
|
interface VariableMember {
|
|
27
28
|
variable: VariableType | string;
|
|
@@ -73,7 +74,8 @@ export interface SsmAutomation {
|
|
|
73
74
|
*/
|
|
74
75
|
parameters?: Record<string, string[]>;
|
|
75
76
|
/**
|
|
76
|
-
* <p>The key-value pair to resolve dynamic parameter values when processing a Systems Manager
|
|
77
|
+
* <p>The key-value pair to resolve dynamic parameter values when processing a Systems Manager
|
|
78
|
+
* Automation runbook.</p>
|
|
77
79
|
*/
|
|
78
80
|
dynamicParameters?: Record<string, DynamicSsmParameterValue>;
|
|
79
81
|
}
|
|
@@ -502,6 +504,10 @@ export interface IncidentTemplate {
|
|
|
502
504
|
* incident.</p>
|
|
503
505
|
*/
|
|
504
506
|
notificationTargets?: NotificationTargetItem[];
|
|
507
|
+
/**
|
|
508
|
+
* <p>Tags to apply to an incident when calling the <code>StartIncident</code> API action.</p>
|
|
509
|
+
*/
|
|
510
|
+
incidentTags?: Record<string, string>;
|
|
505
511
|
}
|
|
506
512
|
export declare namespace IncidentTemplate {
|
|
507
513
|
/**
|
|
@@ -1799,7 +1805,8 @@ export interface StartIncidentInput {
|
|
|
1799
1805
|
clientToken?: string;
|
|
1800
1806
|
/**
|
|
1801
1807
|
* <p>The Amazon Resource Name (ARN) of the response plan that pre-defines summary, chat
|
|
1802
|
-
* channels, Amazon SNS topics, runbooks, title, and impact of the incident.
|
|
1808
|
+
* channels, Amazon SNS topics, runbooks, title, and impact of the incident.
|
|
1809
|
+
* </p>
|
|
1803
1810
|
*/
|
|
1804
1811
|
responsePlanArn: string | undefined;
|
|
1805
1812
|
/**
|
|
@@ -1826,12 +1833,12 @@ export interface StartIncidentInput {
|
|
|
1826
1833
|
* </li>
|
|
1827
1834
|
* <li>
|
|
1828
1835
|
* <p>
|
|
1829
|
-
* <code>3</code> -
|
|
1836
|
+
* <code>3</code> - Medium impact, the application is providing reduced service
|
|
1830
1837
|
* to customers.</p>
|
|
1831
1838
|
* </li>
|
|
1832
1839
|
* <li>
|
|
1833
1840
|
* <p>
|
|
1834
|
-
* <code>4</code> -
|
|
1841
|
+
* <code>4</code> - Low impact, customer might aren't impacted by the problem
|
|
1835
1842
|
* yet.</p>
|
|
1836
1843
|
* </li>
|
|
1837
1844
|
* <li>
|
|
@@ -2156,23 +2163,23 @@ export interface UpdateResponsePlanInput {
|
|
|
2156
2163
|
* </p>
|
|
2157
2164
|
* <ul>
|
|
2158
2165
|
* <li>
|
|
2159
|
-
*
|
|
2166
|
+
* <p>
|
|
2160
2167
|
* <code>5</code> - Severe impact</p>
|
|
2161
2168
|
* </li>
|
|
2162
2169
|
* <li>
|
|
2163
|
-
*
|
|
2170
|
+
* <p>
|
|
2164
2171
|
* <code>4</code> - High impact</p>
|
|
2165
2172
|
* </li>
|
|
2166
2173
|
* <li>
|
|
2167
|
-
*
|
|
2174
|
+
* <p>
|
|
2168
2175
|
* <code>3</code> - Medium impact</p>
|
|
2169
2176
|
* </li>
|
|
2170
2177
|
* <li>
|
|
2171
|
-
*
|
|
2178
|
+
* <p>
|
|
2172
2179
|
* <code>2</code> - Low impact</p>
|
|
2173
2180
|
* </li>
|
|
2174
2181
|
* <li>
|
|
2175
|
-
*
|
|
2182
|
+
* <p>
|
|
2176
2183
|
* <code>1</code> - No impact</p>
|
|
2177
2184
|
* </li>
|
|
2178
2185
|
* </ul>
|
|
@@ -2200,13 +2207,20 @@ export interface UpdateResponsePlanInput {
|
|
|
2200
2207
|
*/
|
|
2201
2208
|
chatChannel?: ChatChannel;
|
|
2202
2209
|
/**
|
|
2203
|
-
* <p>The contacts and escalation plans that Incident Manager engages at the start of the
|
|
2210
|
+
* <p>The contacts and escalation plans that Incident Manager engages at the start of the
|
|
2211
|
+
* incident.</p>
|
|
2204
2212
|
*/
|
|
2205
2213
|
engagements?: string[];
|
|
2206
2214
|
/**
|
|
2207
2215
|
* <p>The actions that this response plan takes at the beginning of an incident.</p>
|
|
2208
2216
|
*/
|
|
2209
2217
|
actions?: Action[];
|
|
2218
|
+
/**
|
|
2219
|
+
* <p>Tags to apply to an incident when calling the <code>StartIncident</code> API action.
|
|
2220
|
+
* To call this action, you must also have permission to call the <code>TagResource</code>
|
|
2221
|
+
* API action for the incident record resource.</p>
|
|
2222
|
+
*/
|
|
2223
|
+
incidentTemplateTags?: Record<string, string>;
|
|
2210
2224
|
}
|
|
2211
2225
|
export declare namespace UpdateResponsePlanInput {
|
|
2212
2226
|
/**
|
|
@@ -353,6 +353,8 @@ export interface IncidentTemplate {
|
|
|
353
353
|
dedupeString?: string;
|
|
354
354
|
|
|
355
355
|
notificationTargets?: NotificationTargetItem[];
|
|
356
|
+
|
|
357
|
+
incidentTags?: Record<string, string>;
|
|
356
358
|
}
|
|
357
359
|
export declare namespace IncidentTemplate {
|
|
358
360
|
|
|
@@ -1286,6 +1288,8 @@ export interface UpdateResponsePlanInput {
|
|
|
1286
1288
|
engagements?: string[];
|
|
1287
1289
|
|
|
1288
1290
|
actions?: Action[];
|
|
1291
|
+
|
|
1292
|
+
incidentTemplateTags?: Record<string, string>;
|
|
1289
1293
|
}
|
|
1290
1294
|
export declare namespace UpdateResponsePlanInput {
|
|
1291
1295
|
|
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.123.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",
|