@aws-sdk/client-pi 3.35.0 → 3.38.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 (92) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/PI.js +0 -25
  3. package/dist-cjs/PIClient.js +0 -30
  4. package/dist-cjs/commands/DescribeDimensionKeysCommand.js +0 -30
  5. package/dist-cjs/commands/GetDimensionKeyDetailsCommand.js +0 -28
  6. package/dist-cjs/commands/GetResourceMetricsCommand.js +0 -31
  7. package/dist-cjs/commands/index.js +6 -0
  8. package/dist-cjs/endpoints.js +1 -2
  9. package/dist-cjs/index.js +3 -6
  10. package/dist-cjs/models/index.js +0 -1
  11. package/dist-cjs/models/models_0.js +0 -52
  12. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  13. package/dist-cjs/runtimeConfig.browser.js +1 -6
  14. package/dist-cjs/runtimeConfig.js +2 -7
  15. package/dist-cjs/runtimeConfig.native.js +0 -4
  16. package/dist-cjs/runtimeConfig.shared.js +0 -4
  17. package/dist-es/PI.js +0 -1
  18. package/dist-es/PIClient.js +0 -1
  19. package/dist-es/commands/DescribeDimensionKeysCommand.js +0 -1
  20. package/dist-es/commands/GetDimensionKeyDetailsCommand.js +0 -1
  21. package/dist-es/commands/GetResourceMetricsCommand.js +0 -1
  22. package/dist-es/commands/index.js +3 -0
  23. package/dist-es/endpoints.js +1 -2
  24. package/dist-es/index.js +3 -6
  25. package/dist-es/models/index.js +0 -1
  26. package/dist-es/models/models_0.js +0 -1
  27. package/dist-es/protocols/Aws_json1_1.js +0 -1
  28. package/dist-es/runtimeConfig.browser.js +1 -2
  29. package/dist-es/runtimeConfig.js +2 -3
  30. package/dist-es/runtimeConfig.native.js +0 -1
  31. package/dist-es/runtimeConfig.shared.js +0 -1
  32. package/dist-types/commands/index.d.ts +3 -0
  33. package/dist-types/index.d.ts +3 -5
  34. package/dist-types/ts3.4/PI.d.ts +4 -47
  35. package/dist-types/ts3.4/PIClient.d.ts +24 -110
  36. package/dist-types/ts3.4/commands/DescribeDimensionKeysCommand.d.ts +2 -25
  37. package/dist-types/ts3.4/commands/GetDimensionKeyDetailsCommand.d.ts +2 -23
  38. package/dist-types/ts3.4/commands/GetResourceMetricsCommand.d.ts +2 -26
  39. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  40. package/dist-types/ts3.4/index.d.ts +3 -5
  41. package/dist-types/ts3.4/models/models_0.d.ts +82 -588
  42. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  43. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  44. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  45. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  46. package/package.json +33 -30
  47. package/dist-cjs/PI.js.map +0 -1
  48. package/dist-cjs/PIClient.js.map +0 -1
  49. package/dist-cjs/commands/DescribeDimensionKeysCommand.js.map +0 -1
  50. package/dist-cjs/commands/GetDimensionKeyDetailsCommand.js.map +0 -1
  51. package/dist-cjs/commands/GetResourceMetricsCommand.js.map +0 -1
  52. package/dist-cjs/endpoints.js.map +0 -1
  53. package/dist-cjs/index.js.map +0 -1
  54. package/dist-cjs/models/index.js.map +0 -1
  55. package/dist-cjs/models/models_0.js.map +0 -1
  56. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  57. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  58. package/dist-cjs/runtimeConfig.js.map +0 -1
  59. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  60. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  61. package/dist-es/PI.js.map +0 -1
  62. package/dist-es/PIClient.js.map +0 -1
  63. package/dist-es/commands/DescribeDimensionKeysCommand.js.map +0 -1
  64. package/dist-es/commands/GetDimensionKeyDetailsCommand.js.map +0 -1
  65. package/dist-es/commands/GetResourceMetricsCommand.js.map +0 -1
  66. package/dist-es/endpoints.js.map +0 -1
  67. package/dist-es/index.js.map +0 -1
  68. package/dist-es/models/index.js.map +0 -1
  69. package/dist-es/models/models_0.js.map +0 -1
  70. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  71. package/dist-es/runtimeConfig.browser.js.map +0 -1
  72. package/dist-es/runtimeConfig.js.map +0 -1
  73. package/dist-es/runtimeConfig.native.js.map +0 -1
  74. package/dist-es/runtimeConfig.shared.js.map +0 -1
  75. package/jest.config.js +0 -4
  76. package/src/PI.ts +0 -154
  77. package/src/PIClient.ts +0 -272
  78. package/src/commands/DescribeDimensionKeysCommand.ts +0 -100
  79. package/src/commands/GetDimensionKeyDetailsCommand.ts +0 -98
  80. package/src/commands/GetResourceMetricsCommand.ts +0 -101
  81. package/src/endpoints.ts +0 -57
  82. package/src/index.ts +0 -6
  83. package/src/models/index.ts +0 -1
  84. package/src/models/models_0.ts +0 -855
  85. package/src/protocols/Aws_json1_1.ts +0 -786
  86. package/src/runtimeConfig.browser.ts +0 -41
  87. package/src/runtimeConfig.native.ts +0 -17
  88. package/src/runtimeConfig.shared.ts +0 -17
  89. package/src/runtimeConfig.ts +0 -46
  90. package/tsconfig.es.json +0 -10
  91. package/tsconfig.json +0 -33
  92. package/tsconfig.types.json +0 -9
@@ -1,2 +1 @@
1
1
  export * from "./models_0";
2
- //# sourceMappingURL=index.js.map
@@ -77,4 +77,3 @@ export var GetResourceMetricsResponse;
77
77
  (function (GetResourceMetricsResponse) {
78
78
  GetResourceMetricsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
79
79
  })(GetResourceMetricsResponse || (GetResourceMetricsResponse = {}));
80
- //# sourceMappingURL=models_0.js.map
@@ -602,4 +602,3 @@ var loadRestJsonErrorCode = function (output, data) {
602
602
  }
603
603
  return "";
604
604
  };
605
- //# sourceMappingURL=Aws_json1_1.js.map
@@ -1,4 +1,5 @@
1
1
  import { __assign } from "tslib";
2
+ import packageInfo from "../package.json";
2
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
4
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
4
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -7,11 +8,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
7
8
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
8
9
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
10
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
10
- import packageInfo from "../package.json";
11
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
12
  export var getRuntimeConfig = function (config) {
13
13
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
14
  var clientSharedValues = getSharedRuntimeConfig(config);
15
15
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
16
  };
17
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -1,4 +1,5 @@
1
1
  import { __assign } from "tslib";
2
+ import packageInfo from "../package.json";
2
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
@@ -6,17 +7,15 @@ import { Hash } from "@aws-sdk/hash-node";
6
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
8
9
  import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
- import packageInfo from "../package.json";
15
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
17
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
20
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
21
21
  };
22
- //# sourceMappingURL=runtimeConfig.js.map
@@ -6,4 +6,3 @@ export var getRuntimeConfig = function (config) {
6
6
  var browserDefaults = getBrowserRuntimeConfig(config);
7
7
  return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
8
8
  };
9
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -11,4 +11,3 @@ export var getRuntimeConfig = function (config) {
11
11
  urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
12
  });
13
13
  };
14
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -0,0 +1,3 @@
1
+ export * from "./DescribeDimensionKeysCommand";
2
+ export * from "./GetDimensionKeyDetailsCommand";
3
+ export * from "./GetResourceMetricsCommand";
@@ -1,6 +1,4 @@
1
- export * from "./PIClient";
2
1
  export * from "./PI";
3
- export * from "./commands/DescribeDimensionKeysCommand";
4
- export * from "./commands/GetDimensionKeyDetailsCommand";
5
- export * from "./commands/GetResourceMetricsCommand";
6
- export * from "./models/index";
2
+ export * from "./PIClient";
3
+ export * from "./commands";
4
+ export * from "./models";
@@ -3,60 +3,17 @@ import { DescribeDimensionKeysCommandInput, DescribeDimensionKeysCommandOutput }
3
3
  import { GetDimensionKeyDetailsCommandInput, GetDimensionKeyDetailsCommandOutput } from "./commands/GetDimensionKeyDetailsCommand";
4
4
  import { GetResourceMetricsCommandInput, GetResourceMetricsCommandOutput } from "./commands/GetResourceMetricsCommand";
5
5
  import { PIClient } from "./PIClient";
6
- /**
7
- * <fullname>Amazon RDS Performance Insights</fullname>
8
- *
9
- * <p>Amazon RDS Performance Insights enables you to monitor and explore different dimensions of
10
- * database load based on data captured from a running DB instance. The guide provides detailed
11
- * information about Performance Insights data types, parameters and errors.</p>
12
- *
13
- * <p>When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance. Amazon
14
- * CloudWatch provides the authoritative source for AWS service-vended monitoring metrics. Performance Insights offers a domain-specific
15
- * 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
17
- * time-series dataset. The time dimension provides DB load data for each time point in the queried time range. Each time
18
- * point decomposes overall load in relation to the requested dimensions, measured at that time point. Examples include
19
- * SQL, Wait event, User, and Host.</p>
20
- *
21
- * <ul>
22
- * <li>
23
- * <p>To learn more about Performance Insights and Amazon Aurora DB instances, go to the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights.html">Amazon Aurora User Guide</a>.</p>
24
- * </li>
25
- * <li>
26
- * <p>To learn more about Performance Insights and Amazon RDS DB instances, go to the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html">Amazon RDS User Guide</a>.</p>
27
- * </li>
28
- * </ul>
29
- */
6
+
30
7
  export declare class PI extends PIClient {
31
- /**
32
- * <p>For a specific time period, retrieve the top <code>N</code> dimension keys for a
33
- * metric.</p>
34
- * <note>
35
- * <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements,
36
- * only the first 500 bytes are returned.</p>
37
- * </note>
38
- */
8
+
39
9
  describeDimensionKeys(args: DescribeDimensionKeysCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDimensionKeysCommandOutput>;
40
10
  describeDimensionKeys(args: DescribeDimensionKeysCommandInput, cb: (err: any, data?: DescribeDimensionKeysCommandOutput) => void): void;
41
11
  describeDimensionKeys(args: DescribeDimensionKeysCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDimensionKeysCommandOutput) => void): void;
42
- /**
43
- * <p>Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a
44
- * SQL ID, <code>GetDimensionKeyDetails</code> retrieves the full text of the dimension <code>db.sql.statement</code>
45
- * associated with this ID. This operation is useful because <code>GetResourceMetrics</code> and
46
- * <code>DescribeDimensionKeys</code> don't support retrieval of large SQL statement text.</p>
47
- */
12
+
48
13
  getDimensionKeyDetails(args: GetDimensionKeyDetailsCommandInput, options?: __HttpHandlerOptions): Promise<GetDimensionKeyDetailsCommandOutput>;
49
14
  getDimensionKeyDetails(args: GetDimensionKeyDetailsCommandInput, cb: (err: any, data?: GetDimensionKeyDetailsCommandOutput) => void): void;
50
15
  getDimensionKeyDetails(args: GetDimensionKeyDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDimensionKeyDetailsCommandOutput) => void): void;
51
- /**
52
- * <p>Retrieve Performance Insights metrics for a set of data sources, over a time period. You can provide
53
- * specific dimension groups and dimensions, and provide aggregation and filtering criteria for
54
- * each group.</p>
55
- * <note>
56
- * <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements,
57
- * only the first 500 bytes are returned.</p>
58
- * </note>
59
- */
16
+
60
17
  getResourceMetrics(args: GetResourceMetricsCommandInput, options?: __HttpHandlerOptions): Promise<GetResourceMetricsCommandOutput>;
61
18
  getResourceMetrics(args: GetResourceMetricsCommandInput, cb: (err: any, data?: GetResourceMetricsCommandOutput) => void): void;
62
19
  getResourceMetrics(args: GetResourceMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourceMetricsCommandOutput) => void): void;
@@ -12,145 +12,59 @@ import { GetResourceMetricsCommandInput, GetResourceMetricsCommandOutput } from
12
12
  export declare type ServiceInputTypes = DescribeDimensionKeysCommandInput | GetDimensionKeyDetailsCommandInput | GetResourceMetricsCommandInput;
13
13
  export declare type ServiceOutputTypes = DescribeDimensionKeysCommandOutput | GetDimensionKeyDetailsCommandOutput | GetResourceMetricsCommandOutput;
14
14
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
15
- /**
16
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
17
- */
15
+
18
16
  requestHandler?: __HttpHandler;
19
- /**
20
- * A constructor for a class implementing the {@link __Hash} interface
21
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
22
- * @internal
23
- */
17
+
24
18
  sha256?: __HashConstructor;
25
- /**
26
- * The function that will be used to convert strings into HTTP endpoints.
27
- * @internal
28
- */
19
+
29
20
  urlParser?: __UrlParser;
30
- /**
31
- * A function that can calculate the length of a request body.
32
- * @internal
33
- */
21
+
34
22
  bodyLengthChecker?: (body: any) => number | undefined;
35
- /**
36
- * A function that converts a stream into an array of bytes.
37
- * @internal
38
- */
23
+
39
24
  streamCollector?: __StreamCollector;
40
- /**
41
- * The function that will be used to convert a base64-encoded string to a byte array.
42
- * @internal
43
- */
25
+
44
26
  base64Decoder?: __Decoder;
45
- /**
46
- * The function that will be used to convert binary data to a base64-encoded string.
47
- * @internal
48
- */
27
+
49
28
  base64Encoder?: __Encoder;
50
- /**
51
- * The function that will be used to convert a UTF8-encoded string to a byte array.
52
- * @internal
53
- */
29
+
54
30
  utf8Decoder?: __Decoder;
55
- /**
56
- * The function that will be used to convert binary data to a UTF-8 encoded string.
57
- * @internal
58
- */
31
+
59
32
  utf8Encoder?: __Encoder;
60
- /**
61
- * The runtime environment.
62
- * @internal
63
- */
33
+
64
34
  runtime?: string;
65
- /**
66
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
67
- * trait of an operation.
68
- */
35
+
69
36
  disableHostPrefix?: boolean;
70
- /**
71
- * Value for how many times a request will be made at most in case of retry.
72
- */
37
+
73
38
  maxAttempts?: number | __Provider<number>;
74
- /**
75
- * Specifies which retry algorithm to use.
76
- */
39
+
77
40
  retryMode?: string | __Provider<string>;
78
- /**
79
- * Optional logger for logging debug/info/warn/error.
80
- */
41
+
81
42
  logger?: __Logger;
82
- /**
83
- * Unique service identifier.
84
- * @internal
85
- */
43
+
86
44
  serviceId?: string;
87
- /**
88
- * The AWS region to which this client will send requests
89
- */
45
+
90
46
  region?: string | __Provider<string>;
91
- /**
92
- * Default credentials provider; Not available in browser runtime.
93
- * @internal
94
- */
47
+
95
48
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
96
- /**
97
- * Fetch related hostname, signing name or signing region with given region.
98
- * @internal
99
- */
49
+
100
50
  regionInfoProvider?: RegionInfoProvider;
101
- /**
102
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
103
- * @internal
104
- */
51
+
105
52
  defaultUserAgentProvider?: Provider<__UserAgent>;
106
53
  }
107
54
  declare type PIClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
108
- /**
109
- * The configuration interface of PIClient class constructor that set the region, credentials and other options.
110
- */
55
+
111
56
  export interface PIClientConfig extends PIClientConfigType {
112
57
  }
113
58
  declare type PIClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
114
- /**
115
- * The resolved configuration interface of PIClient class. This is resolved and normalized from the {@link PIClientConfig | constructor configuration interface}.
116
- */
59
+
117
60
  export interface PIClientResolvedConfig extends PIClientResolvedConfigType {
118
61
  }
119
- /**
120
- * <fullname>Amazon RDS Performance Insights</fullname>
121
- *
122
- * <p>Amazon RDS Performance Insights enables you to monitor and explore different dimensions of
123
- * database load based on data captured from a running DB instance. The guide provides detailed
124
- * information about Performance Insights data types, parameters and errors.</p>
125
- *
126
- * <p>When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance. Amazon
127
- * CloudWatch provides the authoritative source for AWS service-vended monitoring metrics. Performance Insights offers a domain-specific
128
- * view of DB load. </p>
129
- * <p>DB load is measured as Average Active Sessions. Performance Insights provides the data to API consumers as a two-dimensional
130
- * time-series dataset. The time dimension provides DB load data for each time point in the queried time range. Each time
131
- * point decomposes overall load in relation to the requested dimensions, measured at that time point. Examples include
132
- * SQL, Wait event, User, and Host.</p>
133
- *
134
- * <ul>
135
- * <li>
136
- * <p>To learn more about Performance Insights and Amazon Aurora DB instances, go to the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights.html">Amazon Aurora User Guide</a>.</p>
137
- * </li>
138
- * <li>
139
- * <p>To learn more about Performance Insights and Amazon RDS DB instances, go to the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html">Amazon RDS User Guide</a>.</p>
140
- * </li>
141
- * </ul>
142
- */
62
+
143
63
  export declare class PIClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, PIClientResolvedConfig> {
144
- /**
145
- * The resolved configuration of PIClient class. This is resolved and normalized from the {@link PIClientConfig | constructor configuration interface}.
146
- */
64
+
147
65
  readonly config: PIClientResolvedConfig;
148
66
  constructor(configuration: PIClientConfig);
149
- /**
150
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
151
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
152
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
153
- */
67
+
154
68
  destroy(): void;
155
69
  }
156
70
  export {};
@@ -6,34 +6,11 @@ export interface DescribeDimensionKeysCommandInput extends DescribeDimensionKeys
6
6
  }
7
7
  export interface DescribeDimensionKeysCommandOutput extends DescribeDimensionKeysResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>For a specific time period, retrieve the top <code>N</code> dimension keys for a
11
- * metric.</p>
12
- * <note>
13
- * <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements,
14
- * only the first 500 bytes are returned.</p>
15
- * </note>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { PIClient, DescribeDimensionKeysCommand } from "@aws-sdk/client-pi"; // ES Modules import
20
- * // const { PIClient, DescribeDimensionKeysCommand } = require("@aws-sdk/client-pi"); // CommonJS import
21
- * const client = new PIClient(config);
22
- * const command = new DescribeDimensionKeysCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link DescribeDimensionKeysCommandInput} for command's `input` shape.
27
- * @see {@link DescribeDimensionKeysCommandOutput} for command's `response` shape.
28
- * @see {@link PIClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
9
+
31
10
  export declare class DescribeDimensionKeysCommand extends $Command<DescribeDimensionKeysCommandInput, DescribeDimensionKeysCommandOutput, PIClientResolvedConfig> {
32
11
  readonly input: DescribeDimensionKeysCommandInput;
33
12
  constructor(input: DescribeDimensionKeysCommandInput);
34
- /**
35
- * @internal
36
- */
13
+
37
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PIClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeDimensionKeysCommandInput, DescribeDimensionKeysCommandOutput>;
38
15
  private serialize;
39
16
  private deserialize;
@@ -6,32 +6,11 @@ export interface GetDimensionKeyDetailsCommandInput extends GetDimensionKeyDetai
6
6
  }
7
7
  export interface GetDimensionKeyDetailsCommandOutput extends GetDimensionKeyDetailsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a
11
- * SQL ID, <code>GetDimensionKeyDetails</code> retrieves the full text of the dimension <code>db.sql.statement</code>
12
- * associated with this ID. This operation is useful because <code>GetResourceMetrics</code> and
13
- * <code>DescribeDimensionKeys</code> don't support retrieval of large SQL statement text.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { PIClient, GetDimensionKeyDetailsCommand } from "@aws-sdk/client-pi"; // ES Modules import
18
- * // const { PIClient, GetDimensionKeyDetailsCommand } = require("@aws-sdk/client-pi"); // CommonJS import
19
- * const client = new PIClient(config);
20
- * const command = new GetDimensionKeyDetailsCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link GetDimensionKeyDetailsCommandInput} for command's `input` shape.
25
- * @see {@link GetDimensionKeyDetailsCommandOutput} for command's `response` shape.
26
- * @see {@link PIClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
9
+
29
10
  export declare class GetDimensionKeyDetailsCommand extends $Command<GetDimensionKeyDetailsCommandInput, GetDimensionKeyDetailsCommandOutput, PIClientResolvedConfig> {
30
11
  readonly input: GetDimensionKeyDetailsCommandInput;
31
12
  constructor(input: GetDimensionKeyDetailsCommandInput);
32
- /**
33
- * @internal
34
- */
13
+
35
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PIClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDimensionKeyDetailsCommandInput, GetDimensionKeyDetailsCommandOutput>;
36
15
  private serialize;
37
16
  private deserialize;
@@ -6,35 +6,11 @@ export interface GetResourceMetricsCommandInput extends GetResourceMetricsReques
6
6
  }
7
7
  export interface GetResourceMetricsCommandOutput extends GetResourceMetricsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Retrieve Performance Insights metrics for a set of data sources, over a time period. You can provide
11
- * specific dimension groups and dimensions, and provide aggregation and filtering criteria for
12
- * each group.</p>
13
- * <note>
14
- * <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements,
15
- * only the first 500 bytes are returned.</p>
16
- * </note>
17
- * @example
18
- * Use a bare-bones client and the command you need to make an API call.
19
- * ```javascript
20
- * import { PIClient, GetResourceMetricsCommand } from "@aws-sdk/client-pi"; // ES Modules import
21
- * // const { PIClient, GetResourceMetricsCommand } = require("@aws-sdk/client-pi"); // CommonJS import
22
- * const client = new PIClient(config);
23
- * const command = new GetResourceMetricsCommand(input);
24
- * const response = await client.send(command);
25
- * ```
26
- *
27
- * @see {@link GetResourceMetricsCommandInput} for command's `input` shape.
28
- * @see {@link GetResourceMetricsCommandOutput} for command's `response` shape.
29
- * @see {@link PIClientResolvedConfig | config} for command's `input` shape.
30
- *
31
- */
9
+
32
10
  export declare class GetResourceMetricsCommand extends $Command<GetResourceMetricsCommandInput, GetResourceMetricsCommandOutput, PIClientResolvedConfig> {
33
11
  readonly input: GetResourceMetricsCommandInput;
34
12
  constructor(input: GetResourceMetricsCommandInput);
35
- /**
36
- * @internal
37
- */
13
+
38
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PIClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetResourceMetricsCommandInput, GetResourceMetricsCommandOutput>;
39
15
  private serialize;
40
16
  private deserialize;
@@ -0,0 +1,3 @@
1
+ export * from "./DescribeDimensionKeysCommand";
2
+ export * from "./GetDimensionKeyDetailsCommand";
3
+ export * from "./GetResourceMetricsCommand";
@@ -1,6 +1,4 @@
1
- export * from "./PIClient";
2
1
  export * from "./PI";
3
- export * from "./commands/DescribeDimensionKeysCommand";
4
- export * from "./commands/GetDimensionKeyDetailsCommand";
5
- export * from "./commands/GetResourceMetricsCommand";
6
- export * from "./models/index";
2
+ export * from "./PIClient";
3
+ export * from "./commands";
4
+ export * from "./models";