@aws-sdk/client-pi 3.315.0 → 3.319.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/dist-cjs/PI.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PI = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const DescribeDimensionKeysCommand_1 = require("./commands/DescribeDimensionKeysCommand");
5
6
  const GetDimensionKeyDetailsCommand_1 = require("./commands/GetDimensionKeyDetailsCommand");
6
7
  const GetResourceMetadataCommand_1 = require("./commands/GetResourceMetadataCommand");
@@ -8,90 +9,15 @@ const GetResourceMetricsCommand_1 = require("./commands/GetResourceMetricsComman
8
9
  const ListAvailableResourceDimensionsCommand_1 = require("./commands/ListAvailableResourceDimensionsCommand");
9
10
  const ListAvailableResourceMetricsCommand_1 = require("./commands/ListAvailableResourceMetricsCommand");
10
11
  const PIClient_1 = require("./PIClient");
12
+ const commands = {
13
+ DescribeDimensionKeysCommand: DescribeDimensionKeysCommand_1.DescribeDimensionKeysCommand,
14
+ GetDimensionKeyDetailsCommand: GetDimensionKeyDetailsCommand_1.GetDimensionKeyDetailsCommand,
15
+ GetResourceMetadataCommand: GetResourceMetadataCommand_1.GetResourceMetadataCommand,
16
+ GetResourceMetricsCommand: GetResourceMetricsCommand_1.GetResourceMetricsCommand,
17
+ ListAvailableResourceDimensionsCommand: ListAvailableResourceDimensionsCommand_1.ListAvailableResourceDimensionsCommand,
18
+ ListAvailableResourceMetricsCommand: ListAvailableResourceMetricsCommand_1.ListAvailableResourceMetricsCommand,
19
+ };
11
20
  class PI extends PIClient_1.PIClient {
12
- describeDimensionKeys(args, optionsOrCb, cb) {
13
- const command = new DescribeDimensionKeysCommand_1.DescribeDimensionKeysCommand(args);
14
- if (typeof optionsOrCb === "function") {
15
- this.send(command, optionsOrCb);
16
- }
17
- else if (typeof cb === "function") {
18
- if (typeof optionsOrCb !== "object")
19
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
20
- this.send(command, optionsOrCb || {}, cb);
21
- }
22
- else {
23
- return this.send(command, optionsOrCb);
24
- }
25
- }
26
- getDimensionKeyDetails(args, optionsOrCb, cb) {
27
- const command = new GetDimensionKeyDetailsCommand_1.GetDimensionKeyDetailsCommand(args);
28
- if (typeof optionsOrCb === "function") {
29
- this.send(command, optionsOrCb);
30
- }
31
- else if (typeof cb === "function") {
32
- if (typeof optionsOrCb !== "object")
33
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
- this.send(command, optionsOrCb || {}, cb);
35
- }
36
- else {
37
- return this.send(command, optionsOrCb);
38
- }
39
- }
40
- getResourceMetadata(args, optionsOrCb, cb) {
41
- const command = new GetResourceMetadataCommand_1.GetResourceMetadataCommand(args);
42
- if (typeof optionsOrCb === "function") {
43
- this.send(command, optionsOrCb);
44
- }
45
- else if (typeof cb === "function") {
46
- if (typeof optionsOrCb !== "object")
47
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
- this.send(command, optionsOrCb || {}, cb);
49
- }
50
- else {
51
- return this.send(command, optionsOrCb);
52
- }
53
- }
54
- getResourceMetrics(args, optionsOrCb, cb) {
55
- const command = new GetResourceMetricsCommand_1.GetResourceMetricsCommand(args);
56
- if (typeof optionsOrCb === "function") {
57
- this.send(command, optionsOrCb);
58
- }
59
- else if (typeof cb === "function") {
60
- if (typeof optionsOrCb !== "object")
61
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
- this.send(command, optionsOrCb || {}, cb);
63
- }
64
- else {
65
- return this.send(command, optionsOrCb);
66
- }
67
- }
68
- listAvailableResourceDimensions(args, optionsOrCb, cb) {
69
- const command = new ListAvailableResourceDimensionsCommand_1.ListAvailableResourceDimensionsCommand(args);
70
- if (typeof optionsOrCb === "function") {
71
- this.send(command, optionsOrCb);
72
- }
73
- else if (typeof cb === "function") {
74
- if (typeof optionsOrCb !== "object")
75
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
76
- this.send(command, optionsOrCb || {}, cb);
77
- }
78
- else {
79
- return this.send(command, optionsOrCb);
80
- }
81
- }
82
- listAvailableResourceMetrics(args, optionsOrCb, cb) {
83
- const command = new ListAvailableResourceMetricsCommand_1.ListAvailableResourceMetricsCommand(args);
84
- if (typeof optionsOrCb === "function") {
85
- this.send(command, optionsOrCb);
86
- }
87
- else if (typeof cb === "function") {
88
- if (typeof optionsOrCb !== "object")
89
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
90
- this.send(command, optionsOrCb || {}, cb);
91
- }
92
- else {
93
- return this.send(command, optionsOrCb);
94
- }
95
- }
96
21
  }
97
22
  exports.PI = PI;
23
+ (0, smithy_client_1.createAggregatedClient)(commands, PI);
package/dist-es/PI.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { DescribeDimensionKeysCommand, } from "./commands/DescribeDimensionKeysCommand";
2
3
  import { GetDimensionKeyDetailsCommand, } from "./commands/GetDimensionKeyDetailsCommand";
3
4
  import { GetResourceMetadataCommand, } from "./commands/GetResourceMetadataCommand";
@@ -5,89 +6,14 @@ import { GetResourceMetricsCommand, } from "./commands/GetResourceMetricsCommand
5
6
  import { ListAvailableResourceDimensionsCommand, } from "./commands/ListAvailableResourceDimensionsCommand";
6
7
  import { ListAvailableResourceMetricsCommand, } from "./commands/ListAvailableResourceMetricsCommand";
7
8
  import { PIClient } from "./PIClient";
9
+ const commands = {
10
+ DescribeDimensionKeysCommand,
11
+ GetDimensionKeyDetailsCommand,
12
+ GetResourceMetadataCommand,
13
+ GetResourceMetricsCommand,
14
+ ListAvailableResourceDimensionsCommand,
15
+ ListAvailableResourceMetricsCommand,
16
+ };
8
17
  export class PI extends PIClient {
9
- describeDimensionKeys(args, optionsOrCb, cb) {
10
- const command = new DescribeDimensionKeysCommand(args);
11
- if (typeof optionsOrCb === "function") {
12
- this.send(command, optionsOrCb);
13
- }
14
- else if (typeof cb === "function") {
15
- if (typeof optionsOrCb !== "object")
16
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
17
- this.send(command, optionsOrCb || {}, cb);
18
- }
19
- else {
20
- return this.send(command, optionsOrCb);
21
- }
22
- }
23
- getDimensionKeyDetails(args, optionsOrCb, cb) {
24
- const command = new GetDimensionKeyDetailsCommand(args);
25
- if (typeof optionsOrCb === "function") {
26
- this.send(command, optionsOrCb);
27
- }
28
- else if (typeof cb === "function") {
29
- if (typeof optionsOrCb !== "object")
30
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
31
- this.send(command, optionsOrCb || {}, cb);
32
- }
33
- else {
34
- return this.send(command, optionsOrCb);
35
- }
36
- }
37
- getResourceMetadata(args, optionsOrCb, cb) {
38
- const command = new GetResourceMetadataCommand(args);
39
- if (typeof optionsOrCb === "function") {
40
- this.send(command, optionsOrCb);
41
- }
42
- else if (typeof cb === "function") {
43
- if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
- this.send(command, optionsOrCb || {}, cb);
46
- }
47
- else {
48
- return this.send(command, optionsOrCb);
49
- }
50
- }
51
- getResourceMetrics(args, optionsOrCb, cb) {
52
- const command = new GetResourceMetricsCommand(args);
53
- if (typeof optionsOrCb === "function") {
54
- this.send(command, optionsOrCb);
55
- }
56
- else if (typeof cb === "function") {
57
- if (typeof optionsOrCb !== "object")
58
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
- this.send(command, optionsOrCb || {}, cb);
60
- }
61
- else {
62
- return this.send(command, optionsOrCb);
63
- }
64
- }
65
- listAvailableResourceDimensions(args, optionsOrCb, cb) {
66
- const command = new ListAvailableResourceDimensionsCommand(args);
67
- if (typeof optionsOrCb === "function") {
68
- this.send(command, optionsOrCb);
69
- }
70
- else if (typeof cb === "function") {
71
- if (typeof optionsOrCb !== "object")
72
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
- this.send(command, optionsOrCb || {}, cb);
74
- }
75
- else {
76
- return this.send(command, optionsOrCb);
77
- }
78
- }
79
- listAvailableResourceMetrics(args, optionsOrCb, cb) {
80
- const command = new ListAvailableResourceMetricsCommand(args);
81
- if (typeof optionsOrCb === "function") {
82
- this.send(command, optionsOrCb);
83
- }
84
- else if (typeof cb === "function") {
85
- if (typeof optionsOrCb !== "object")
86
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
- this.send(command, optionsOrCb || {}, cb);
88
- }
89
- else {
90
- return this.send(command, optionsOrCb);
91
- }
92
- }
93
18
  }
19
+ createAggregatedClient(commands, PI);
@@ -6,92 +6,71 @@ import { GetResourceMetricsCommandInput, GetResourceMetricsCommandOutput } from
6
6
  import { ListAvailableResourceDimensionsCommandInput, ListAvailableResourceDimensionsCommandOutput } from "./commands/ListAvailableResourceDimensionsCommand";
7
7
  import { ListAvailableResourceMetricsCommandInput, ListAvailableResourceMetricsCommandOutput } from "./commands/ListAvailableResourceMetricsCommand";
8
8
  import { PIClient } from "./PIClient";
9
- /**
10
- * @public
11
- * <fullname>Amazon RDS Performance Insights</fullname>
12
- * <p>Amazon RDS Performance Insights enables you to monitor and explore different dimensions of database load based on data captured from a running DB instance. The guide
13
- * provides detailed information about Performance Insights data types, parameters and errors.</p>
14
- * <p>When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance. Amazon CloudWatch provides the
15
- * authoritative source for Amazon Web Services service-vended monitoring metrics. Performance Insights offers a domain-specific view of DB load.</p>
16
- * <p>DB load is measured as average active sessions. Performance Insights provides the data to API consumers as a two-dimensional time-series dataset. The time dimension
17
- * provides DB load data for each time point in the queried time range. Each time point decomposes overall load in relation to the requested
18
- * dimensions, measured at that time point. Examples include SQL, Wait event, User, and Host.</p>
19
- * <ul>
20
- * <li>
21
- * <p>To learn more about Performance Insights and Amazon Aurora DB instances, go to the <i>
22
- * <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights.html"> Amazon Aurora User Guide</a>
23
- * </i>. </p>
24
- * </li>
25
- * <li>
26
- * <p>To learn more about Performance Insights and Amazon RDS DB instances, go to the <i>
27
- * <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Amazon RDS User Guide</a>
28
- * </i>. </p>
29
- * </li>
30
- * <li>
31
- * <p>To learn more about Performance Insights and Amazon DocumentDB clusters, go to the <i>
32
- * <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html"> Amazon DocumentDB Developer Guide</a>
33
- * </i>.</p>
34
- * </li>
35
- * </ul>
36
- */
37
- export declare class PI extends PIClient {
9
+ export interface PI {
38
10
  /**
39
- * @public
40
- * <p>For a specific time period, retrieve the top <code>N</code> dimension keys for a metric.
41
- * </p>
42
- * <note>
43
- * <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements,
44
- * only the first 500 bytes are returned.</p>
45
- * </note>
11
+ * @see {@link DescribeDimensionKeysCommand}
46
12
  */
47
13
  describeDimensionKeys(args: DescribeDimensionKeysCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDimensionKeysCommandOutput>;
48
14
  describeDimensionKeys(args: DescribeDimensionKeysCommandInput, cb: (err: any, data?: DescribeDimensionKeysCommandOutput) => void): void;
49
15
  describeDimensionKeys(args: DescribeDimensionKeysCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDimensionKeysCommandOutput) => void): void;
50
16
  /**
51
- * @public
52
- * <p>Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a SQL ID,
53
- * <code>GetDimensionKeyDetails</code> retrieves the full text of the dimension <code>db.sql.statement</code> associated with this ID.
54
- * This operation is useful because <code>GetResourceMetrics</code> and <code>DescribeDimensionKeys</code> don't support retrieval of large
55
- * SQL statement text.</p>
17
+ * @see {@link GetDimensionKeyDetailsCommand}
56
18
  */
57
19
  getDimensionKeyDetails(args: GetDimensionKeyDetailsCommandInput, options?: __HttpHandlerOptions): Promise<GetDimensionKeyDetailsCommandOutput>;
58
20
  getDimensionKeyDetails(args: GetDimensionKeyDetailsCommandInput, cb: (err: any, data?: GetDimensionKeyDetailsCommandOutput) => void): void;
59
21
  getDimensionKeyDetails(args: GetDimensionKeyDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDimensionKeyDetailsCommandOutput) => void): void;
60
22
  /**
61
- * @public
62
- * <p>Retrieve the metadata for different features. For example, the metadata might indicate
63
- * that a feature is turned on or off on a specific DB instance.
64
- * </p>
23
+ * @see {@link GetResourceMetadataCommand}
65
24
  */
66
25
  getResourceMetadata(args: GetResourceMetadataCommandInput, options?: __HttpHandlerOptions): Promise<GetResourceMetadataCommandOutput>;
67
26
  getResourceMetadata(args: GetResourceMetadataCommandInput, cb: (err: any, data?: GetResourceMetadataCommandOutput) => void): void;
68
27
  getResourceMetadata(args: GetResourceMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourceMetadataCommandOutput) => void): void;
69
28
  /**
70
- * @public
71
- * <p>Retrieve Performance Insights metrics for a set of data sources over a time period. You can provide
72
- * specific dimension groups and dimensions, and provide aggregation and filtering criteria for
73
- * each group.</p>
74
- * <note>
75
- * <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements,
76
- * only the first 500 bytes are returned.</p>
77
- * </note>
29
+ * @see {@link GetResourceMetricsCommand}
78
30
  */
79
31
  getResourceMetrics(args: GetResourceMetricsCommandInput, options?: __HttpHandlerOptions): Promise<GetResourceMetricsCommandOutput>;
80
32
  getResourceMetrics(args: GetResourceMetricsCommandInput, cb: (err: any, data?: GetResourceMetricsCommandOutput) => void): void;
81
33
  getResourceMetrics(args: GetResourceMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourceMetricsCommandOutput) => void): void;
82
34
  /**
83
- * @public
84
- * <p>Retrieve the dimensions that can be queried for each specified metric type on a specified DB instance.</p>
35
+ * @see {@link ListAvailableResourceDimensionsCommand}
85
36
  */
86
37
  listAvailableResourceDimensions(args: ListAvailableResourceDimensionsCommandInput, options?: __HttpHandlerOptions): Promise<ListAvailableResourceDimensionsCommandOutput>;
87
38
  listAvailableResourceDimensions(args: ListAvailableResourceDimensionsCommandInput, cb: (err: any, data?: ListAvailableResourceDimensionsCommandOutput) => void): void;
88
39
  listAvailableResourceDimensions(args: ListAvailableResourceDimensionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAvailableResourceDimensionsCommandOutput) => void): void;
89
40
  /**
90
- * @public
91
- * <p>Retrieve metrics of the specified types that can be queried for a specified DB instance.
92
- * </p>
41
+ * @see {@link ListAvailableResourceMetricsCommand}
93
42
  */
94
43
  listAvailableResourceMetrics(args: ListAvailableResourceMetricsCommandInput, options?: __HttpHandlerOptions): Promise<ListAvailableResourceMetricsCommandOutput>;
95
44
  listAvailableResourceMetrics(args: ListAvailableResourceMetricsCommandInput, cb: (err: any, data?: ListAvailableResourceMetricsCommandOutput) => void): void;
96
45
  listAvailableResourceMetrics(args: ListAvailableResourceMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAvailableResourceMetricsCommandOutput) => void): void;
97
46
  }
47
+ /**
48
+ * @public
49
+ * <fullname>Amazon RDS Performance Insights</fullname>
50
+ * <p>Amazon RDS Performance Insights enables you to monitor and explore different dimensions of database load based on data captured from a running DB instance. The guide
51
+ * provides detailed information about Performance Insights data types, parameters and errors.</p>
52
+ * <p>When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance. Amazon CloudWatch provides the
53
+ * authoritative source for Amazon Web Services service-vended monitoring metrics. Performance Insights offers a domain-specific view of DB load.</p>
54
+ * <p>DB load is measured as average active sessions. Performance Insights provides the data to API consumers as a two-dimensional time-series dataset. The time dimension
55
+ * provides DB load data for each time point in the queried time range. Each time point decomposes overall load in relation to the requested
56
+ * dimensions, measured at that time point. Examples include SQL, Wait event, User, and Host.</p>
57
+ * <ul>
58
+ * <li>
59
+ * <p>To learn more about Performance Insights and Amazon Aurora DB instances, go to the <i>
60
+ * <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights.html"> Amazon Aurora User Guide</a>
61
+ * </i>. </p>
62
+ * </li>
63
+ * <li>
64
+ * <p>To learn more about Performance Insights and Amazon RDS DB instances, go to the <i>
65
+ * <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Amazon RDS User Guide</a>
66
+ * </i>. </p>
67
+ * </li>
68
+ * <li>
69
+ * <p>To learn more about Performance Insights and Amazon DocumentDB clusters, go to the <i>
70
+ * <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html"> Amazon DocumentDB Developer Guide</a>
71
+ * </i>.</p>
72
+ * </li>
73
+ * </ul>
74
+ */
75
+ export declare class PI extends PIClient implements PI {
76
+ }
@@ -24,7 +24,7 @@ import {
24
24
  ListAvailableResourceMetricsCommandOutput,
25
25
  } from "./commands/ListAvailableResourceMetricsCommand";
26
26
  import { PIClient } from "./PIClient";
27
- export declare class PI extends PIClient {
27
+ export interface PI {
28
28
  describeDimensionKeys(
29
29
  args: DescribeDimensionKeysCommandInput,
30
30
  options?: __HttpHandlerOptions
@@ -104,3 +104,4 @@ export declare class PI extends PIClient {
104
104
  cb: (err: any, data?: ListAvailableResourceMetricsCommandOutput) => void
105
105
  ): void;
106
106
  }
107
+ export declare class PI extends PIClient implements PI {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pi",
3
3
  "description": "AWS SDK for JavaScript Pi Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.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",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",