@aws-sdk/client-ssm-incidents 3.451.0 → 3.454.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/SSMIncidents.js +4 -0
  3. package/dist-cjs/commands/BatchGetIncidentFindingsCommand.js +51 -0
  4. package/dist-cjs/commands/ListIncidentFindingsCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +77 -67
  7. package/dist-cjs/pagination/ListIncidentFindingsPaginator.js +29 -0
  8. package/dist-cjs/pagination/index.js +1 -0
  9. package/dist-cjs/protocols/Aws_restJson1.js +199 -2
  10. package/dist-es/SSMIncidents.js +4 -0
  11. package/dist-es/commands/BatchGetIncidentFindingsCommand.js +47 -0
  12. package/dist-es/commands/ListIncidentFindingsCommand.js +47 -0
  13. package/dist-es/commands/index.js +2 -0
  14. package/dist-es/models/models_0.js +72 -62
  15. package/dist-es/pagination/ListIncidentFindingsPaginator.js +25 -0
  16. package/dist-es/pagination/index.js +1 -0
  17. package/dist-es/protocols/Aws_restJson1.js +193 -0
  18. package/dist-types/SSMIncidents.d.ts +14 -0
  19. package/dist-types/SSMIncidentsClient.d.ts +4 -2
  20. package/dist-types/commands/BatchGetIncidentFindingsCommand.d.ts +122 -0
  21. package/dist-types/commands/ListIncidentFindingsCommand.d.ts +101 -0
  22. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  23. package/dist-types/commands/index.d.ts +2 -0
  24. package/dist-types/models/models_0.d.ts +467 -157
  25. package/dist-types/pagination/ListIncidentFindingsPaginator.d.ts +7 -0
  26. package/dist-types/pagination/index.d.ts +1 -0
  27. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  28. package/dist-types/ts3.4/SSMIncidents.d.ts +34 -0
  29. package/dist-types/ts3.4/SSMIncidentsClient.d.ts +12 -0
  30. package/dist-types/ts3.4/commands/BatchGetIncidentFindingsCommand.d.ts +42 -0
  31. package/dist-types/ts3.4/commands/ListIncidentFindingsCommand.d.ts +42 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +114 -44
  34. package/dist-types/ts3.4/pagination/ListIncidentFindingsPaginator.d.ts +11 -0
  35. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  36. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  37. package/package.json +2 -2
@@ -0,0 +1,122 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { BatchGetIncidentFindingsInput, BatchGetIncidentFindingsOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, SSMIncidentsClientResolvedConfig } from "../SSMIncidentsClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link BatchGetIncidentFindingsCommand}.
14
+ */
15
+ export interface BatchGetIncidentFindingsCommandInput extends BatchGetIncidentFindingsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link BatchGetIncidentFindingsCommand}.
21
+ */
22
+ export interface BatchGetIncidentFindingsCommandOutput extends BatchGetIncidentFindingsOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves details about all specified findings for an incident, including descriptive details about each finding. A finding
27
+ * represents a recent application environment change made by an CodeDeploy
28
+ * deployment or an CloudFormation stack creation or update that can be investigated as a
29
+ * potential cause of the incident.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { SSMIncidentsClient, BatchGetIncidentFindingsCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
34
+ * // const { SSMIncidentsClient, BatchGetIncidentFindingsCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
35
+ * const client = new SSMIncidentsClient(config);
36
+ * const input = { // BatchGetIncidentFindingsInput
37
+ * incidentRecordArn: "STRING_VALUE", // required
38
+ * findingIds: [ // FindingIdList // required
39
+ * "STRING_VALUE",
40
+ * ],
41
+ * };
42
+ * const command = new BatchGetIncidentFindingsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // BatchGetIncidentFindingsOutput
45
+ * // findings: [ // FindingList // required
46
+ * // { // Finding
47
+ * // id: "STRING_VALUE", // required
48
+ * // creationTime: new Date("TIMESTAMP"), // required
49
+ * // lastModifiedTime: new Date("TIMESTAMP"), // required
50
+ * // details: { // FindingDetails Union: only one key present
51
+ * // codeDeployDeployment: { // CodeDeployDeployment
52
+ * // startTime: new Date("TIMESTAMP"), // required
53
+ * // endTime: new Date("TIMESTAMP"),
54
+ * // deploymentGroupArn: "STRING_VALUE", // required
55
+ * // deploymentId: "STRING_VALUE", // required
56
+ * // },
57
+ * // cloudFormationStackUpdate: { // CloudFormationStackUpdate
58
+ * // startTime: new Date("TIMESTAMP"), // required
59
+ * // endTime: new Date("TIMESTAMP"),
60
+ * // stackArn: "STRING_VALUE", // required
61
+ * // },
62
+ * // },
63
+ * // },
64
+ * // ],
65
+ * // errors: [ // BatchGetIncidentFindingsErrorList // required
66
+ * // { // BatchGetIncidentFindingsError
67
+ * // findingId: "STRING_VALUE", // required
68
+ * // code: "STRING_VALUE", // required
69
+ * // message: "STRING_VALUE", // required
70
+ * // },
71
+ * // ],
72
+ * // };
73
+ *
74
+ * ```
75
+ *
76
+ * @param BatchGetIncidentFindingsCommandInput - {@link BatchGetIncidentFindingsCommandInput}
77
+ * @returns {@link BatchGetIncidentFindingsCommandOutput}
78
+ * @see {@link BatchGetIncidentFindingsCommandInput} for command's `input` shape.
79
+ * @see {@link BatchGetIncidentFindingsCommandOutput} for command's `response` shape.
80
+ * @see {@link SSMIncidentsClientResolvedConfig | config} for SSMIncidentsClient's `config` shape.
81
+ *
82
+ * @throws {@link AccessDeniedException} (client fault)
83
+ * <p>You don't have sufficient access to perform this operation.</p>
84
+ *
85
+ * @throws {@link InternalServerException} (server fault)
86
+ * <p>The request processing has failed because of an unknown error, exception or
87
+ * failure.</p>
88
+ *
89
+ * @throws {@link ResourceNotFoundException} (client fault)
90
+ * <p>Request references a resource which doesn't exist. </p>
91
+ *
92
+ * @throws {@link ThrottlingException} (client fault)
93
+ * <p>The request was denied due to request throttling.</p>
94
+ *
95
+ * @throws {@link ValidationException} (client fault)
96
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services
97
+ * service.</p>
98
+ *
99
+ * @throws {@link SSMIncidentsServiceException}
100
+ * <p>Base exception class for all service exceptions from SSMIncidents service.</p>
101
+ *
102
+ */
103
+ export declare class BatchGetIncidentFindingsCommand extends $Command<BatchGetIncidentFindingsCommandInput, BatchGetIncidentFindingsCommandOutput, SSMIncidentsClientResolvedConfig> {
104
+ readonly input: BatchGetIncidentFindingsCommandInput;
105
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
106
+ /**
107
+ * @public
108
+ */
109
+ constructor(input: BatchGetIncidentFindingsCommandInput);
110
+ /**
111
+ * @internal
112
+ */
113
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSMIncidentsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetIncidentFindingsCommandInput, BatchGetIncidentFindingsCommandOutput>;
114
+ /**
115
+ * @internal
116
+ */
117
+ private serialize;
118
+ /**
119
+ * @internal
120
+ */
121
+ private deserialize;
122
+ }
@@ -0,0 +1,101 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ListIncidentFindingsInput, ListIncidentFindingsOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, SSMIncidentsClientResolvedConfig } from "../SSMIncidentsClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListIncidentFindingsCommand}.
14
+ */
15
+ export interface ListIncidentFindingsCommandInput extends ListIncidentFindingsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListIncidentFindingsCommand}.
21
+ */
22
+ export interface ListIncidentFindingsCommandOutput extends ListIncidentFindingsOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves a list of the IDs of findings, plus their last modified times, that have been
27
+ * identified for a specified incident. A finding represents a recent application environment
28
+ * change made by an CloudFormation stack creation or update or an CodeDeploy
29
+ * deployment that can be investigated as a potential cause of the incident.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { SSMIncidentsClient, ListIncidentFindingsCommand } from "@aws-sdk/client-ssm-incidents"; // ES Modules import
34
+ * // const { SSMIncidentsClient, ListIncidentFindingsCommand } = require("@aws-sdk/client-ssm-incidents"); // CommonJS import
35
+ * const client = new SSMIncidentsClient(config);
36
+ * const input = { // ListIncidentFindingsInput
37
+ * incidentRecordArn: "STRING_VALUE", // required
38
+ * maxResults: Number("int"),
39
+ * nextToken: "STRING_VALUE",
40
+ * };
41
+ * const command = new ListIncidentFindingsCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListIncidentFindingsOutput
44
+ * // findings: [ // FindingSummaryList // required
45
+ * // { // FindingSummary
46
+ * // id: "STRING_VALUE", // required
47
+ * // lastModifiedTime: new Date("TIMESTAMP"), // required
48
+ * // },
49
+ * // ],
50
+ * // nextToken: "STRING_VALUE",
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param ListIncidentFindingsCommandInput - {@link ListIncidentFindingsCommandInput}
56
+ * @returns {@link ListIncidentFindingsCommandOutput}
57
+ * @see {@link ListIncidentFindingsCommandInput} for command's `input` shape.
58
+ * @see {@link ListIncidentFindingsCommandOutput} for command's `response` shape.
59
+ * @see {@link SSMIncidentsClientResolvedConfig | config} for SSMIncidentsClient's `config` shape.
60
+ *
61
+ * @throws {@link AccessDeniedException} (client fault)
62
+ * <p>You don't have sufficient access to perform this operation.</p>
63
+ *
64
+ * @throws {@link InternalServerException} (server fault)
65
+ * <p>The request processing has failed because of an unknown error, exception or
66
+ * failure.</p>
67
+ *
68
+ * @throws {@link ResourceNotFoundException} (client fault)
69
+ * <p>Request references a resource which doesn't exist. </p>
70
+ *
71
+ * @throws {@link ThrottlingException} (client fault)
72
+ * <p>The request was denied due to request throttling.</p>
73
+ *
74
+ * @throws {@link ValidationException} (client fault)
75
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services
76
+ * service.</p>
77
+ *
78
+ * @throws {@link SSMIncidentsServiceException}
79
+ * <p>Base exception class for all service exceptions from SSMIncidents service.</p>
80
+ *
81
+ */
82
+ export declare class ListIncidentFindingsCommand extends $Command<ListIncidentFindingsCommandInput, ListIncidentFindingsCommandOutput, SSMIncidentsClientResolvedConfig> {
83
+ readonly input: ListIncidentFindingsCommandInput;
84
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
85
+ /**
86
+ * @public
87
+ */
88
+ constructor(input: ListIncidentFindingsCommandInput);
89
+ /**
90
+ * @internal
91
+ */
92
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSMIncidentsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListIncidentFindingsCommandInput, ListIncidentFindingsCommandOutput>;
93
+ /**
94
+ * @internal
95
+ */
96
+ private serialize;
97
+ /**
98
+ * @internal
99
+ */
100
+ private deserialize;
101
+ }
@@ -23,7 +23,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Lists the tags that are attached to the specified response plan.</p>
26
+ * <p>Lists the tags that are attached to the specified response plan or incident.</p>
27
27
  * @example
28
28
  * Use a bare-bones client and the command you need to make an API call.
29
29
  * ```javascript
@@ -1,3 +1,4 @@
1
+ export * from "./BatchGetIncidentFindingsCommand";
1
2
  export * from "./CreateReplicationSetCommand";
2
3
  export * from "./CreateResponsePlanCommand";
3
4
  export * from "./CreateTimelineEventCommand";
@@ -11,6 +12,7 @@ export * from "./GetReplicationSetCommand";
11
12
  export * from "./GetResourcePoliciesCommand";
12
13
  export * from "./GetResponsePlanCommand";
13
14
  export * from "./GetTimelineEventCommand";
15
+ export * from "./ListIncidentFindingsCommand";
14
16
  export * from "./ListIncidentRecordsCommand";
15
17
  export * from "./ListRelatedItemsCommand";
16
18
  export * from "./ListReplicationSetsCommand";