@aws-sdk/client-pi 3.388.0 → 3.392.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 (58) hide show
  1. package/README.md +63 -7
  2. package/dist-cjs/PI.js +14 -0
  3. package/dist-cjs/commands/CreatePerformanceAnalysisReportCommand.js +46 -0
  4. package/dist-cjs/commands/DeletePerformanceAnalysisReportCommand.js +46 -0
  5. package/dist-cjs/commands/GetPerformanceAnalysisReportCommand.js +47 -0
  6. package/dist-cjs/commands/ListPerformanceAnalysisReportsCommand.js +46 -0
  7. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  8. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  9. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/endpoint/ruleset.js +1 -1
  12. package/dist-cjs/models/models_0.js +49 -1
  13. package/dist-cjs/pagination/ListPerformanceAnalysisReportsPaginator.js +29 -0
  14. package/dist-cjs/pagination/index.js +1 -0
  15. package/dist-cjs/protocols/Aws_json1_1.js +417 -1
  16. package/dist-es/PI.js +14 -0
  17. package/dist-es/commands/CreatePerformanceAnalysisReportCommand.js +42 -0
  18. package/dist-es/commands/DeletePerformanceAnalysisReportCommand.js +42 -0
  19. package/dist-es/commands/GetPerformanceAnalysisReportCommand.js +43 -0
  20. package/dist-es/commands/ListPerformanceAnalysisReportsCommand.js +42 -0
  21. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  22. package/dist-es/commands/TagResourceCommand.js +42 -0
  23. package/dist-es/commands/UntagResourceCommand.js +42 -0
  24. package/dist-es/commands/index.js +7 -0
  25. package/dist-es/endpoint/ruleset.js +1 -1
  26. package/dist-es/models/models_0.js +44 -0
  27. package/dist-es/pagination/ListPerformanceAnalysisReportsPaginator.js +25 -0
  28. package/dist-es/pagination/index.js +1 -0
  29. package/dist-es/protocols/Aws_json1_1.js +402 -0
  30. package/dist-types/PI.d.ts +49 -0
  31. package/dist-types/PIClient.d.ts +9 -2
  32. package/dist-types/commands/CreatePerformanceAnalysisReportCommand.d.ts +92 -0
  33. package/dist-types/commands/DeletePerformanceAnalysisReportCommand.d.ts +82 -0
  34. package/dist-types/commands/GetPerformanceAnalysisReportCommand.d.ts +180 -0
  35. package/dist-types/commands/ListPerformanceAnalysisReportsCommand.d.ts +101 -0
  36. package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
  37. package/dist-types/commands/TagResourceCommand.d.ts +87 -0
  38. package/dist-types/commands/UntagResourceCommand.d.ts +84 -0
  39. package/dist-types/commands/index.d.ts +7 -0
  40. package/dist-types/models/models_0.d.ts +633 -51
  41. package/dist-types/pagination/ListPerformanceAnalysisReportsPaginator.d.ts +7 -0
  42. package/dist-types/pagination/index.d.ts +1 -0
  43. package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
  44. package/dist-types/ts3.4/PI.d.ts +119 -0
  45. package/dist-types/ts3.4/PIClient.d.ts +44 -2
  46. package/dist-types/ts3.4/commands/CreatePerformanceAnalysisReportCommand.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/DeletePerformanceAnalysisReportCommand.d.ts +42 -0
  48. package/dist-types/ts3.4/commands/GetPerformanceAnalysisReportCommand.d.ts +42 -0
  49. package/dist-types/ts3.4/commands/ListPerformanceAnalysisReportsCommand.d.ts +42 -0
  50. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  51. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  52. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  53. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  54. package/dist-types/ts3.4/models/models_0.d.ts +171 -29
  55. package/dist-types/ts3.4/pagination/ListPerformanceAnalysisReportsPaginator.d.ts +11 -0
  56. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  57. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
  58. package/package.json +28 -28
package/README.md CHANGED
@@ -48,16 +48,16 @@ using your favorite package manager:
48
48
 
49
49
  The AWS SDK is modulized by clients and commands.
50
50
  To send a request, you only need to import the `PIClient` and
51
- the commands you need, for example `DescribeDimensionKeysCommand`:
51
+ the commands you need, for example `CreatePerformanceAnalysisReportCommand`:
52
52
 
53
53
  ```js
54
54
  // ES5 example
55
- const { PIClient, DescribeDimensionKeysCommand } = require("@aws-sdk/client-pi");
55
+ const { PIClient, CreatePerformanceAnalysisReportCommand } = require("@aws-sdk/client-pi");
56
56
  ```
57
57
 
58
58
  ```ts
59
59
  // ES6+ example
60
- import { PIClient, DescribeDimensionKeysCommand } from "@aws-sdk/client-pi";
60
+ import { PIClient, CreatePerformanceAnalysisReportCommand } from "@aws-sdk/client-pi";
61
61
  ```
62
62
 
63
63
  ### Usage
@@ -76,7 +76,7 @@ const client = new PIClient({ region: "REGION" });
76
76
  const params = {
77
77
  /** input parameters */
78
78
  };
79
- const command = new DescribeDimensionKeysCommand(params);
79
+ const command = new CreatePerformanceAnalysisReportCommand(params);
80
80
  ```
81
81
 
82
82
  #### Async/await
@@ -155,7 +155,7 @@ const client = new AWS.PI({ region: "REGION" });
155
155
 
156
156
  // async/await.
157
157
  try {
158
- const data = await client.describeDimensionKeys(params);
158
+ const data = await client.createPerformanceAnalysisReport(params);
159
159
  // process data.
160
160
  } catch (error) {
161
161
  // error handling.
@@ -163,7 +163,7 @@ try {
163
163
 
164
164
  // Promises.
165
165
  client
166
- .describeDimensionKeys(params)
166
+ .createPerformanceAnalysisReport(params)
167
167
  .then((data) => {
168
168
  // process data.
169
169
  })
@@ -172,7 +172,7 @@ client
172
172
  });
173
173
 
174
174
  // callbacks.
175
- client.describeDimensionKeys(params, (err, data) => {
175
+ client.createPerformanceAnalysisReport(params, (err, data) => {
176
176
  // process err and data.
177
177
  });
178
178
  ```
@@ -228,6 +228,22 @@ see LICENSE for more information.
228
228
 
229
229
  ## Client Commands (Operations List)
230
230
 
231
+ <details>
232
+ <summary>
233
+ CreatePerformanceAnalysisReport
234
+ </summary>
235
+
236
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/classes/createperformanceanalysisreportcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/createperformanceanalysisreportcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/createperformanceanalysisreportcommandoutput.html)
237
+
238
+ </details>
239
+ <details>
240
+ <summary>
241
+ DeletePerformanceAnalysisReport
242
+ </summary>
243
+
244
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/classes/deleteperformanceanalysisreportcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/deleteperformanceanalysisreportcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/deleteperformanceanalysisreportcommandoutput.html)
245
+
246
+ </details>
231
247
  <details>
232
248
  <summary>
233
249
  DescribeDimensionKeys
@@ -243,6 +259,14 @@ GetDimensionKeyDetails
243
259
 
244
260
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/classes/getdimensionkeydetailscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/getdimensionkeydetailscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/getdimensionkeydetailscommandoutput.html)
245
261
 
262
+ </details>
263
+ <details>
264
+ <summary>
265
+ GetPerformanceAnalysisReport
266
+ </summary>
267
+
268
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/classes/getperformanceanalysisreportcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/getperformanceanalysisreportcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/getperformanceanalysisreportcommandoutput.html)
269
+
246
270
  </details>
247
271
  <details>
248
272
  <summary>
@@ -276,3 +300,35 @@ ListAvailableResourceMetrics
276
300
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/classes/listavailableresourcemetricscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/listavailableresourcemetricscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/listavailableresourcemetricscommandoutput.html)
277
301
 
278
302
  </details>
303
+ <details>
304
+ <summary>
305
+ ListPerformanceAnalysisReports
306
+ </summary>
307
+
308
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/classes/listperformanceanalysisreportscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/listperformanceanalysisreportscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/listperformanceanalysisreportscommandoutput.html)
309
+
310
+ </details>
311
+ <details>
312
+ <summary>
313
+ ListTagsForResource
314
+ </summary>
315
+
316
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/classes/listtagsforresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/listtagsforresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/listtagsforresourcecommandoutput.html)
317
+
318
+ </details>
319
+ <details>
320
+ <summary>
321
+ TagResource
322
+ </summary>
323
+
324
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/classes/tagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/tagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/tagresourcecommandoutput.html)
325
+
326
+ </details>
327
+ <details>
328
+ <summary>
329
+ UntagResource
330
+ </summary>
331
+
332
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/classes/untagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/untagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pi/interfaces/untagresourcecommandoutput.html)
333
+
334
+ </details>
package/dist-cjs/PI.js CHANGED
@@ -2,20 +2,34 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PI = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
+ const CreatePerformanceAnalysisReportCommand_1 = require("./commands/CreatePerformanceAnalysisReportCommand");
6
+ const DeletePerformanceAnalysisReportCommand_1 = require("./commands/DeletePerformanceAnalysisReportCommand");
5
7
  const DescribeDimensionKeysCommand_1 = require("./commands/DescribeDimensionKeysCommand");
6
8
  const GetDimensionKeyDetailsCommand_1 = require("./commands/GetDimensionKeyDetailsCommand");
9
+ const GetPerformanceAnalysisReportCommand_1 = require("./commands/GetPerformanceAnalysisReportCommand");
7
10
  const GetResourceMetadataCommand_1 = require("./commands/GetResourceMetadataCommand");
8
11
  const GetResourceMetricsCommand_1 = require("./commands/GetResourceMetricsCommand");
9
12
  const ListAvailableResourceDimensionsCommand_1 = require("./commands/ListAvailableResourceDimensionsCommand");
10
13
  const ListAvailableResourceMetricsCommand_1 = require("./commands/ListAvailableResourceMetricsCommand");
14
+ const ListPerformanceAnalysisReportsCommand_1 = require("./commands/ListPerformanceAnalysisReportsCommand");
15
+ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
16
+ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
17
+ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
11
18
  const PIClient_1 = require("./PIClient");
12
19
  const commands = {
20
+ CreatePerformanceAnalysisReportCommand: CreatePerformanceAnalysisReportCommand_1.CreatePerformanceAnalysisReportCommand,
21
+ DeletePerformanceAnalysisReportCommand: DeletePerformanceAnalysisReportCommand_1.DeletePerformanceAnalysisReportCommand,
13
22
  DescribeDimensionKeysCommand: DescribeDimensionKeysCommand_1.DescribeDimensionKeysCommand,
14
23
  GetDimensionKeyDetailsCommand: GetDimensionKeyDetailsCommand_1.GetDimensionKeyDetailsCommand,
24
+ GetPerformanceAnalysisReportCommand: GetPerformanceAnalysisReportCommand_1.GetPerformanceAnalysisReportCommand,
15
25
  GetResourceMetadataCommand: GetResourceMetadataCommand_1.GetResourceMetadataCommand,
16
26
  GetResourceMetricsCommand: GetResourceMetricsCommand_1.GetResourceMetricsCommand,
17
27
  ListAvailableResourceDimensionsCommand: ListAvailableResourceDimensionsCommand_1.ListAvailableResourceDimensionsCommand,
18
28
  ListAvailableResourceMetricsCommand: ListAvailableResourceMetricsCommand_1.ListAvailableResourceMetricsCommand,
29
+ ListPerformanceAnalysisReportsCommand: ListPerformanceAnalysisReportsCommand_1.ListPerformanceAnalysisReportsCommand,
30
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
31
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
32
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
19
33
  };
20
34
  class PI extends PIClient_1.PIClient {
21
35
  }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatePerformanceAnalysisReportCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class CreatePerformanceAnalysisReportCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreatePerformanceAnalysisReportCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "PIClient";
28
+ const commandName = "CreatePerformanceAnalysisReportCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.se_CreatePerformanceAnalysisReportCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.de_CreatePerformanceAnalysisReportCommand)(output, context);
44
+ }
45
+ }
46
+ exports.CreatePerformanceAnalysisReportCommand = CreatePerformanceAnalysisReportCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletePerformanceAnalysisReportCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class DeletePerformanceAnalysisReportCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeletePerformanceAnalysisReportCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "PIClient";
28
+ const commandName = "DeletePerformanceAnalysisReportCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.se_DeletePerformanceAnalysisReportCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.de_DeletePerformanceAnalysisReportCommand)(output, context);
44
+ }
45
+ }
46
+ exports.DeletePerformanceAnalysisReportCommand = DeletePerformanceAnalysisReportCommand;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetPerformanceAnalysisReportCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const models_0_1 = require("../models/models_0");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class GetPerformanceAnalysisReportCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetPerformanceAnalysisReportCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "PIClient";
29
+ const commandName = "GetPerformanceAnalysisReportCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: models_0_1.GetPerformanceAnalysisReportResponseFilterSensitiveLog,
36
+ };
37
+ const { requestHandler } = configuration;
38
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
39
+ }
40
+ serialize(input, context) {
41
+ return (0, Aws_json1_1_1.se_GetPerformanceAnalysisReportCommand)(input, context);
42
+ }
43
+ deserialize(output, context) {
44
+ return (0, Aws_json1_1_1.de_GetPerformanceAnalysisReportCommand)(output, context);
45
+ }
46
+ }
47
+ exports.GetPerformanceAnalysisReportCommand = GetPerformanceAnalysisReportCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListPerformanceAnalysisReportsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class ListPerformanceAnalysisReportsCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListPerformanceAnalysisReportsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "PIClient";
28
+ const commandName = "ListPerformanceAnalysisReportsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.se_ListPerformanceAnalysisReportsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.de_ListPerformanceAnalysisReportsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListPerformanceAnalysisReportsCommand = ListPerformanceAnalysisReportsCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListTagsForResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class ListTagsForResourceCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "PIClient";
28
+ const commandName = "ListTagsForResourceCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.se_ListTagsForResourceCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.de_ListTagsForResourceCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TagResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class TagResourceCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, TagResourceCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "PIClient";
28
+ const commandName = "TagResourceCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.se_TagResourceCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.de_TagResourceCommand)(output, context);
44
+ }
45
+ }
46
+ exports.TagResourceCommand = TagResourceCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UntagResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class UntagResourceCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "PIClient";
28
+ const commandName = "UntagResourceCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.se_UntagResourceCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.de_UntagResourceCommand)(output, context);
44
+ }
45
+ }
46
+ exports.UntagResourceCommand = UntagResourceCommand;
@@ -1,9 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreatePerformanceAnalysisReportCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeletePerformanceAnalysisReportCommand"), exports);
4
6
  tslib_1.__exportStar(require("./DescribeDimensionKeysCommand"), exports);
5
7
  tslib_1.__exportStar(require("./GetDimensionKeyDetailsCommand"), exports);
8
+ tslib_1.__exportStar(require("./GetPerformanceAnalysisReportCommand"), exports);
6
9
  tslib_1.__exportStar(require("./GetResourceMetadataCommand"), exports);
7
10
  tslib_1.__exportStar(require("./GetResourceMetricsCommand"), exports);
8
11
  tslib_1.__exportStar(require("./ListAvailableResourceDimensionsCommand"), exports);
9
12
  tslib_1.__exportStar(require("./ListAvailableResourceMetricsCommand"), exports);
13
+ tslib_1.__exportStar(require("./ListPerformanceAnalysisReportsCommand"), exports);
14
+ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
15
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
16
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const q = "required", r = "fn", s = "argv", t = "ref";
5
5
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pi-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pi.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://pi.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://pi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://pi-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://pi.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://pi.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -1,11 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PeriodAlignment = exports.FeatureStatus = exports.DetailStatus = exports.NotAuthorizedException = exports.InvalidArgumentException = exports.InternalServiceError = exports.ServiceType = void 0;
3
+ exports.GetPerformanceAnalysisReportResponseFilterSensitiveLog = exports.AnalysisReportFilterSensitiveLog = exports.InsightFilterSensitiveLog = exports.RecommendationFilterSensitiveLog = exports.PeriodAlignment = exports.TextFormat = exports.FeatureStatus = exports.DetailStatus = exports.NotAuthorizedException = exports.InvalidArgumentException = exports.InternalServiceError = exports.AnalysisStatus = exports.ServiceType = exports.Severity = exports.ContextType = exports.AcceptLanguage = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
4
5
  const PIServiceException_1 = require("./PIServiceException");
6
+ exports.AcceptLanguage = {
7
+ EN_US: "EN_US",
8
+ };
9
+ exports.ContextType = {
10
+ CAUSAL: "CAUSAL",
11
+ CONTEXTUAL: "CONTEXTUAL",
12
+ };
13
+ exports.Severity = {
14
+ HIGH: "HIGH",
15
+ LOW: "LOW",
16
+ MEDIUM: "MEDIUM",
17
+ };
5
18
  exports.ServiceType = {
6
19
  DOCDB: "DOCDB",
7
20
  RDS: "RDS",
8
21
  };
22
+ exports.AnalysisStatus = {
23
+ FAILED: "FAILED",
24
+ RUNNING: "RUNNING",
25
+ SUCCEEDED: "SUCCEEDED",
26
+ };
9
27
  class InternalServiceError extends PIServiceException_1.PIServiceException {
10
28
  constructor(opts) {
11
29
  super({
@@ -61,7 +79,37 @@ exports.FeatureStatus = {
61
79
  UNKNOWN: "UNKNOWN",
62
80
  UNSUPPORTED: "UNSUPPORTED",
63
81
  };
82
+ exports.TextFormat = {
83
+ MARKDOWN: "MARKDOWN",
84
+ PLAIN_TEXT: "PLAIN_TEXT",
85
+ };
64
86
  exports.PeriodAlignment = {
65
87
  END_TIME: "END_TIME",
66
88
  START_TIME: "START_TIME",
67
89
  };
90
+ const RecommendationFilterSensitiveLog = (obj) => ({
91
+ ...obj,
92
+ ...(obj.RecommendationDescription && { RecommendationDescription: smithy_client_1.SENSITIVE_STRING }),
93
+ });
94
+ exports.RecommendationFilterSensitiveLog = RecommendationFilterSensitiveLog;
95
+ const InsightFilterSensitiveLog = (obj) => ({
96
+ ...obj,
97
+ ...(obj.SupportingInsights && {
98
+ SupportingInsights: obj.SupportingInsights.map((item) => (0, exports.InsightFilterSensitiveLog)(item)),
99
+ }),
100
+ ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }),
101
+ ...(obj.Recommendations && {
102
+ Recommendations: obj.Recommendations.map((item) => (0, exports.RecommendationFilterSensitiveLog)(item)),
103
+ }),
104
+ });
105
+ exports.InsightFilterSensitiveLog = InsightFilterSensitiveLog;
106
+ const AnalysisReportFilterSensitiveLog = (obj) => ({
107
+ ...obj,
108
+ ...(obj.Insights && { Insights: obj.Insights.map((item) => (0, exports.InsightFilterSensitiveLog)(item)) }),
109
+ });
110
+ exports.AnalysisReportFilterSensitiveLog = AnalysisReportFilterSensitiveLog;
111
+ const GetPerformanceAnalysisReportResponseFilterSensitiveLog = (obj) => ({
112
+ ...obj,
113
+ ...(obj.AnalysisReport && { AnalysisReport: (0, exports.AnalysisReportFilterSensitiveLog)(obj.AnalysisReport) }),
114
+ });
115
+ exports.GetPerformanceAnalysisReportResponseFilterSensitiveLog = GetPerformanceAnalysisReportResponseFilterSensitiveLog;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListPerformanceAnalysisReports = void 0;
4
+ const ListPerformanceAnalysisReportsCommand_1 = require("../commands/ListPerformanceAnalysisReportsCommand");
5
+ const PIClient_1 = require("../PIClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListPerformanceAnalysisReportsCommand_1.ListPerformanceAnalysisReportsCommand(input), ...args);
8
+ };
9
+ async function* paginateListPerformanceAnalysisReports(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof PIClient_1.PIClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected PI | PIClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListPerformanceAnalysisReports = paginateListPerformanceAnalysisReports;
@@ -6,3 +6,4 @@ tslib_1.__exportStar(require("./GetResourceMetricsPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./Interfaces"), exports);
7
7
  tslib_1.__exportStar(require("./ListAvailableResourceDimensionsPaginator"), exports);
8
8
  tslib_1.__exportStar(require("./ListAvailableResourceMetricsPaginator"), exports);
9
+ tslib_1.__exportStar(require("./ListPerformanceAnalysisReportsPaginator"), exports);