@aws-sdk/client-ssm-incidents 3.299.0 → 3.301.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 (34) hide show
  1. package/dist-cjs/endpoint/ruleset.js +3 -3
  2. package/dist-es/endpoint/ruleset.js +3 -3
  3. package/dist-types/SSMIncidents.d.ts +20 -22
  4. package/dist-types/commands/CreateReplicationSetCommand.d.ts +12 -1
  5. package/dist-types/commands/CreateResponsePlanCommand.d.ts +65 -3
  6. package/dist-types/commands/CreateTimelineEventCommand.d.ts +16 -3
  7. package/dist-types/commands/DeleteIncidentRecordCommand.d.ts +3 -0
  8. package/dist-types/commands/DeleteReplicationSetCommand.d.ts +4 -1
  9. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +5 -1
  10. package/dist-types/commands/DeleteResponsePlanCommand.d.ts +5 -2
  11. package/dist-types/commands/DeleteTimelineEventCommand.d.ts +4 -0
  12. package/dist-types/commands/GetIncidentRecordCommand.d.ts +3 -0
  13. package/dist-types/commands/GetReplicationSetCommand.d.ts +3 -0
  14. package/dist-types/commands/GetResourcePoliciesCommand.d.ts +5 -0
  15. package/dist-types/commands/GetResponsePlanCommand.d.ts +3 -0
  16. package/dist-types/commands/GetTimelineEventCommand.d.ts +4 -0
  17. package/dist-types/commands/ListIncidentRecordsCommand.d.ts +22 -1
  18. package/dist-types/commands/ListRelatedItemsCommand.d.ts +5 -0
  19. package/dist-types/commands/ListReplicationSetsCommand.d.ts +4 -0
  20. package/dist-types/commands/ListResponsePlansCommand.d.ts +4 -0
  21. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
  22. package/dist-types/commands/ListTimelineEventsCommand.d.ts +24 -0
  23. package/dist-types/commands/PutResourcePolicyCommand.d.ts +6 -3
  24. package/dist-types/commands/StartIncidentCommand.d.ts +32 -1
  25. package/dist-types/commands/TagResourceCommand.d.ts +6 -0
  26. package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
  27. package/dist-types/commands/UpdateDeletionProtectionCommand.d.ts +6 -1
  28. package/dist-types/commands/UpdateIncidentRecordCommand.d.ts +22 -3
  29. package/dist-types/commands/UpdateRelatedItemsCommand.d.ts +36 -0
  30. package/dist-types/commands/UpdateReplicationSetCommand.d.ts +15 -0
  31. package/dist-types/commands/UpdateResponsePlanCommand.d.ts +57 -0
  32. package/dist-types/commands/UpdateTimelineEventCommand.d.ts +15 -2
  33. package/dist-types/models/models_0.d.ts +210 -236
  34. package/package.json +8 -8
@@ -20,13 +20,44 @@ export interface StartIncidentCommandOutput extends StartIncidentOutput, __Metad
20
20
  /**
21
21
  * @public
22
22
  * <p>Used to start an incident from CloudWatch alarms, EventBridge events, or
23
- * manually. </p>
23
+ * manually. </p>
24
24
  * @example
25
25
  * Use a bare-bones client and the command you need to make an API call.
26
26
  * ```javascript
27
27
  * import { SSMIncidentsClient, StartIncidentCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
28
28
  * // const { SSMIncidentsClient, StartIncidentCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
29
29
  * const client = new SSMIncidentsClient(config);
30
+ * const input = { // StartIncidentInput
31
+ * clientToken: "STRING_VALUE",
32
+ * responsePlanArn: "STRING_VALUE", // required
33
+ * title: "STRING_VALUE",
34
+ * impact: Number("int"),
35
+ * triggerDetails: { // TriggerDetails
36
+ * source: "STRING_VALUE", // required
37
+ * triggerArn: "STRING_VALUE",
38
+ * timestamp: new Date("TIMESTAMP"), // required
39
+ * rawData: "STRING_VALUE",
40
+ * },
41
+ * relatedItems: [ // RelatedItemList
42
+ * { // RelatedItem
43
+ * identifier: { // ItemIdentifier
44
+ * value: { // ItemValue Union: only one key present
45
+ * arn: "STRING_VALUE",
46
+ * url: "STRING_VALUE",
47
+ * metricDefinition: "STRING_VALUE",
48
+ * pagerDutyIncidentDetail: { // PagerDutyIncidentDetail
49
+ * id: "STRING_VALUE", // required
50
+ * autoResolve: true || false,
51
+ * secretId: "STRING_VALUE",
52
+ * },
53
+ * },
54
+ * type: "STRING_VALUE", // required
55
+ * },
56
+ * title: "STRING_VALUE",
57
+ * generatedId: "STRING_VALUE",
58
+ * },
59
+ * ],
60
+ * };
30
61
  * const command = new StartIncidentCommand(input);
31
62
  * const response = await client.send(command);
32
63
  * ```
@@ -26,6 +26,12 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
26
26
  * import { SSMIncidentsClient, TagResourceCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
27
27
  * // const { SSMIncidentsClient, TagResourceCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
28
28
  * const client = new SSMIncidentsClient(config);
29
+ * const input = { // TagResourceRequest
30
+ * resourceArn: "STRING_VALUE", // required
31
+ * tags: { // TagMap // required
32
+ * "<keys>": "STRING_VALUE",
33
+ * },
34
+ * };
29
35
  * const command = new TagResourceCommand(input);
30
36
  * const response = await client.send(command);
31
37
  * ```
@@ -26,6 +26,12 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
26
26
  * import { SSMIncidentsClient, UntagResourceCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
27
27
  * // const { SSMIncidentsClient, UntagResourceCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
28
28
  * const client = new SSMIncidentsClient(config);
29
+ * const input = { // UntagResourceRequest
30
+ * resourceArn: "STRING_VALUE", // required
31
+ * tagKeys: [ // TagKeyList // required
32
+ * "STRING_VALUE",
33
+ * ],
34
+ * };
29
35
  * const command = new UntagResourceCommand(input);
30
36
  * const response = await client.send(command);
31
37
  * ```
@@ -20,13 +20,18 @@ export interface UpdateDeletionProtectionCommandOutput extends UpdateDeletionPro
20
20
  /**
21
21
  * @public
22
22
  * <p>Update deletion protection to either allow or deny deletion of the final Region in a
23
- * replication set.</p>
23
+ * replication set.</p>
24
24
  * @example
25
25
  * Use a bare-bones client and the command you need to make an API call.
26
26
  * ```javascript
27
27
  * import { SSMIncidentsClient, UpdateDeletionProtectionCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
28
28
  * // const { SSMIncidentsClient, UpdateDeletionProtectionCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
29
29
  * const client = new SSMIncidentsClient(config);
30
+ * const input = { // UpdateDeletionProtectionInput
31
+ * arn: "STRING_VALUE", // required
32
+ * deletionProtected: true || false, // required
33
+ * clientToken: "STRING_VALUE",
34
+ * };
30
35
  * const command = new UpdateDeletionProtectionCommand(input);
31
36
  * const response = await client.send(command);
32
37
  * ```
@@ -19,15 +19,34 @@ export interface UpdateIncidentRecordCommandOutput extends UpdateIncidentRecordO
19
19
  }
20
20
  /**
21
21
  * @public
22
- * <p>Update the details of an incident record. You can use this operation to update an
23
- * incident record from the defined chat channel. For more information about using actions
24
- * in chat channels, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/chat.html#chat-interact">Interacting through chat</a>.</p>
22
+ * <p>Update the details of an incident record. You can use this operation to update an incident
23
+ * record from the defined chat channel. For more information about using actions in chat
24
+ * channels, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/chat.html#chat-interact">Interacting through chat</a>.</p>
25
25
  * @example
26
26
  * Use a bare-bones client and the command you need to make an API call.
27
27
  * ```javascript
28
28
  * import { SSMIncidentsClient, UpdateIncidentRecordCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
29
29
  * // const { SSMIncidentsClient, UpdateIncidentRecordCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
30
30
  * const client = new SSMIncidentsClient(config);
31
+ * const input = { // UpdateIncidentRecordInput
32
+ * clientToken: "STRING_VALUE",
33
+ * arn: "STRING_VALUE", // required
34
+ * title: "STRING_VALUE",
35
+ * summary: "STRING_VALUE",
36
+ * impact: Number("int"),
37
+ * status: "STRING_VALUE",
38
+ * chatChannel: { // ChatChannel Union: only one key present
39
+ * empty: {},
40
+ * chatbotSns: [ // ChatbotSnsConfigurationSet
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * },
44
+ * notificationTargets: [ // NotificationTargetSet
45
+ * { // NotificationTargetItem Union: only one key present
46
+ * snsTopicArn: "STRING_VALUE",
47
+ * },
48
+ * ],
49
+ * };
31
50
  * const command = new UpdateIncidentRecordCommand(input);
32
51
  * const response = await client.send(command);
33
52
  * ```
@@ -26,6 +26,42 @@ export interface UpdateRelatedItemsCommandOutput extends UpdateRelatedItemsOutpu
26
26
  * import { SSMIncidentsClient, UpdateRelatedItemsCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
27
27
  * // const { SSMIncidentsClient, UpdateRelatedItemsCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
28
28
  * const client = new SSMIncidentsClient(config);
29
+ * const input = { // UpdateRelatedItemsInput
30
+ * clientToken: "STRING_VALUE",
31
+ * incidentRecordArn: "STRING_VALUE", // required
32
+ * relatedItemsUpdate: { // RelatedItemsUpdate Union: only one key present
33
+ * itemToAdd: { // RelatedItem
34
+ * identifier: { // ItemIdentifier
35
+ * value: { // ItemValue Union: only one key present
36
+ * arn: "STRING_VALUE",
37
+ * url: "STRING_VALUE",
38
+ * metricDefinition: "STRING_VALUE",
39
+ * pagerDutyIncidentDetail: { // PagerDutyIncidentDetail
40
+ * id: "STRING_VALUE", // required
41
+ * autoResolve: true || false,
42
+ * secretId: "STRING_VALUE",
43
+ * },
44
+ * },
45
+ * type: "STRING_VALUE", // required
46
+ * },
47
+ * title: "STRING_VALUE",
48
+ * generatedId: "STRING_VALUE",
49
+ * },
50
+ * itemToRemove: {
51
+ * value: {// Union: only one key present
52
+ * arn: "STRING_VALUE",
53
+ * url: "STRING_VALUE",
54
+ * metricDefinition: "STRING_VALUE",
55
+ * pagerDutyIncidentDetail: {
56
+ * id: "STRING_VALUE", // required
57
+ * autoResolve: true || false,
58
+ * secretId: "STRING_VALUE",
59
+ * },
60
+ * },
61
+ * type: "STRING_VALUE", // required
62
+ * },
63
+ * },
64
+ * };
29
65
  * const command = new UpdateRelatedItemsCommand(input);
30
66
  * const response = await client.send(command);
31
67
  * ```
@@ -26,6 +26,21 @@ export interface UpdateReplicationSetCommandOutput extends UpdateReplicationSetO
26
26
  * import { SSMIncidentsClient, UpdateReplicationSetCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
27
27
  * // const { SSMIncidentsClient, UpdateReplicationSetCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
28
28
  * const client = new SSMIncidentsClient(config);
29
+ * const input = { // UpdateReplicationSetInput
30
+ * arn: "STRING_VALUE", // required
31
+ * actions: [ // UpdateActionList // required
32
+ * { // UpdateReplicationSetAction Union: only one key present
33
+ * addRegionAction: { // AddRegionAction
34
+ * regionName: "STRING_VALUE", // required
35
+ * sseKmsKeyId: "STRING_VALUE",
36
+ * },
37
+ * deleteRegionAction: { // DeleteRegionAction
38
+ * regionName: "STRING_VALUE", // required
39
+ * },
40
+ * },
41
+ * ],
42
+ * clientToken: "STRING_VALUE",
43
+ * };
29
44
  * const command = new UpdateReplicationSetCommand(input);
30
45
  * const response = await client.send(command);
31
46
  * ```
@@ -26,6 +26,63 @@ export interface UpdateResponsePlanCommandOutput extends UpdateResponsePlanOutpu
26
26
  * import { SSMIncidentsClient, UpdateResponsePlanCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
27
27
  * // const { SSMIncidentsClient, UpdateResponsePlanCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
28
28
  * const client = new SSMIncidentsClient(config);
29
+ * const input = { // UpdateResponsePlanInput
30
+ * clientToken: "STRING_VALUE",
31
+ * arn: "STRING_VALUE", // required
32
+ * displayName: "STRING_VALUE",
33
+ * incidentTemplateTitle: "STRING_VALUE",
34
+ * incidentTemplateImpact: Number("int"),
35
+ * incidentTemplateSummary: "STRING_VALUE",
36
+ * incidentTemplateDedupeString: "STRING_VALUE",
37
+ * incidentTemplateNotificationTargets: [ // NotificationTargetSet
38
+ * { // NotificationTargetItem Union: only one key present
39
+ * snsTopicArn: "STRING_VALUE",
40
+ * },
41
+ * ],
42
+ * chatChannel: { // ChatChannel Union: only one key present
43
+ * empty: {},
44
+ * chatbotSns: [ // ChatbotSnsConfigurationSet
45
+ * "STRING_VALUE",
46
+ * ],
47
+ * },
48
+ * engagements: [ // EngagementSet
49
+ * "STRING_VALUE",
50
+ * ],
51
+ * actions: [ // ActionsList
52
+ * { // Action Union: only one key present
53
+ * ssmAutomation: { // SsmAutomation
54
+ * roleArn: "STRING_VALUE", // required
55
+ * documentName: "STRING_VALUE", // required
56
+ * documentVersion: "STRING_VALUE",
57
+ * targetAccount: "STRING_VALUE",
58
+ * parameters: { // SsmParameters
59
+ * "<keys>": [ // SsmParameterValues
60
+ * "STRING_VALUE",
61
+ * ],
62
+ * },
63
+ * dynamicParameters: { // DynamicSsmParameters
64
+ * "<keys>": { // DynamicSsmParameterValue Union: only one key present
65
+ * variable: "STRING_VALUE",
66
+ * },
67
+ * },
68
+ * },
69
+ * },
70
+ * ],
71
+ * incidentTemplateTags: { // TagMapUpdate
72
+ * "<keys>": "STRING_VALUE",
73
+ * },
74
+ * integrations: [ // Integrations
75
+ * { // Integration Union: only one key present
76
+ * pagerDutyConfiguration: { // PagerDutyConfiguration
77
+ * name: "STRING_VALUE", // required
78
+ * secretId: "STRING_VALUE", // required
79
+ * pagerDutyIncidentConfiguration: { // PagerDutyIncidentConfiguration
80
+ * serviceId: "STRING_VALUE", // required
81
+ * },
82
+ * },
83
+ * },
84
+ * ],
85
+ * };
29
86
  * const command = new UpdateResponsePlanCommand(input);
30
87
  * const response = await client.send(command);
31
88
  * ```
@@ -19,14 +19,27 @@ export interface UpdateTimelineEventCommandOutput extends UpdateTimelineEventOut
19
19
  }
20
20
  /**
21
21
  * @public
22
- * <p>Updates a timeline event. You can update events of type <code>Custom
23
- * Event</code>.</p>
22
+ * <p>Updates a timeline event. You can update events of type <code>Custom Event</code>.</p>
24
23
  * @example
25
24
  * Use a bare-bones client and the command you need to make an API call.
26
25
  * ```javascript
27
26
  * import { SSMIncidentsClient, UpdateTimelineEventCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
28
27
  * // const { SSMIncidentsClient, UpdateTimelineEventCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
29
28
  * const client = new SSMIncidentsClient(config);
29
+ * const input = { // UpdateTimelineEventInput
30
+ * clientToken: "STRING_VALUE",
31
+ * incidentRecordArn: "STRING_VALUE", // required
32
+ * eventId: "STRING_VALUE", // required
33
+ * eventTime: new Date("TIMESTAMP"),
34
+ * eventType: "STRING_VALUE",
35
+ * eventData: "STRING_VALUE",
36
+ * eventReferences: [ // EventReferenceList
37
+ * { // EventReference Union: only one key present
38
+ * resource: "STRING_VALUE",
39
+ * relatedItemId: "STRING_VALUE",
40
+ * },
41
+ * ],
42
+ * };
30
43
  * const command = new UpdateTimelineEventCommand(input);
31
44
  * const response = await client.send(command);
32
45
  * ```