@aws-sdk/client-pi 3.46.0 → 3.48.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/CHANGELOG.md +38 -0
- package/README.md +18 -13
- package/dist-cjs/PI.js +45 -0
- package/dist-cjs/commands/GetResourceMetadataCommand.js +36 -0
- package/dist-cjs/commands/ListAvailableResourceDimensionsCommand.js +36 -0
- package/dist-cjs/commands/ListAvailableResourceMetricsCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/models_0.js +77 -19
- package/dist-cjs/pagination/DescribeDimensionKeysPaginator.js +35 -0
- package/dist-cjs/pagination/GetResourceMetricsPaginator.js +35 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAvailableResourceDimensionsPaginator.js +35 -0
- package/dist-cjs/pagination/ListAvailableResourceMetricsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_json1_1.js +402 -1
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/PI.js +45 -0
- package/dist-es/commands/GetResourceMetadataCommand.js +39 -0
- package/dist-es/commands/ListAvailableResourceDimensionsCommand.js +39 -0
- package/dist-es/commands/ListAvailableResourceMetricsCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +54 -12
- package/dist-es/pagination/DescribeDimensionKeysPaginator.js +74 -0
- package/dist-es/pagination/GetResourceMetricsPaginator.js +74 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAvailableResourceDimensionsPaginator.js +74 -0
- package/dist-es/pagination/ListAvailableResourceMetricsPaginator.js +74 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_json1_1.js +414 -1
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/PI.d.ts +48 -18
- package/dist-types/PIClient.d.ts +27 -15
- package/dist-types/commands/DescribeDimensionKeysCommand.d.ts +2 -2
- package/dist-types/commands/GetDimensionKeyDetailsCommand.d.ts +5 -4
- package/dist-types/commands/GetResourceMetadataCommand.d.ts +37 -0
- package/dist-types/commands/ListAvailableResourceDimensionsCommand.d.ts +35 -0
- package/dist-types/commands/ListAvailableResourceMetricsCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +413 -101
- package/dist-types/pagination/DescribeDimensionKeysPaginator.d.ts +4 -0
- package/dist-types/pagination/GetResourceMetricsPaginator.d.ts +4 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListAvailableResourceDimensionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListAvailableResourceMetricsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/PI.d.ts +15 -0
- package/dist-types/ts3.4/PIClient.d.ts +8 -3
- package/dist-types/ts3.4/commands/GetResourceMetadataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAvailableResourceDimensionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAvailableResourceMetricsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +142 -12
- package/dist-types/ts3.4/pagination/DescribeDimensionKeysPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/GetResourceMetricsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAvailableResourceDimensionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListAvailableResourceMetricsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +35 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2022/01/21 ([#3228](https://github.com/aws/aws-sdk-js-v3/issues/3228)) ([fa713ef](https://github.com/aws/aws-sdk-js-v3/commit/fa713efca6b2f424c27535d000359f08830960b1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-pi
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-pi
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
45
|
|
|
8
46
|
|
package/README.md
CHANGED
|
@@ -9,24 +9,29 @@ AWS SDK for JavaScript PI Client for Node.js, Browser and React Native.
|
|
|
9
9
|
|
|
10
10
|
<fullname>Amazon RDS Performance Insights</fullname>
|
|
11
11
|
|
|
12
|
-
<p>Amazon RDS Performance Insights enables you to monitor and explore different dimensions of
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
<p>Amazon RDS Performance Insights enables you to monitor and explore different dimensions of database load based on
|
|
13
|
+
data captured from a running DB instance. The guide provides detailed information about Performance Insights
|
|
14
|
+
data types, parameters and errors.
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
<p>When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance.
|
|
18
|
+
Amazon CloudWatch provides the authoritative source for Amazon Web Services service-vended monitoring metrics.
|
|
19
|
+
Performance Insights offers a domain-specific view of DB load.
|
|
20
|
+
</p>
|
|
21
|
+
<p>DB load is measured as average active sessions. Performance Insights provides the data to API consumers as a two-dimensional
|
|
22
|
+
time-series dataset. The time dimension provides DB load data for each time point in the
|
|
23
|
+
queried time range. Each time point decomposes overall load in relation to the requested dimensions,
|
|
24
|
+
measured at that time point. Examples include SQL, Wait event, User, and Host.
|
|
25
|
+
</p>
|
|
23
26
|
|
|
24
27
|
<ul>
|
|
25
28
|
<li>
|
|
26
|
-
<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
|
|
29
|
+
<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>.
|
|
30
|
+
</p>
|
|
27
31
|
</li>
|
|
28
32
|
<li>
|
|
29
|
-
<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
|
|
33
|
+
<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>.
|
|
34
|
+
</p>
|
|
30
35
|
</li>
|
|
31
36
|
</ul>
|
|
32
37
|
|
package/dist-cjs/PI.js
CHANGED
|
@@ -3,7 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PI = void 0;
|
|
4
4
|
const DescribeDimensionKeysCommand_1 = require("./commands/DescribeDimensionKeysCommand");
|
|
5
5
|
const GetDimensionKeyDetailsCommand_1 = require("./commands/GetDimensionKeyDetailsCommand");
|
|
6
|
+
const GetResourceMetadataCommand_1 = require("./commands/GetResourceMetadataCommand");
|
|
6
7
|
const GetResourceMetricsCommand_1 = require("./commands/GetResourceMetricsCommand");
|
|
8
|
+
const ListAvailableResourceDimensionsCommand_1 = require("./commands/ListAvailableResourceDimensionsCommand");
|
|
9
|
+
const ListAvailableResourceMetricsCommand_1 = require("./commands/ListAvailableResourceMetricsCommand");
|
|
7
10
|
const PIClient_1 = require("./PIClient");
|
|
8
11
|
class PI extends PIClient_1.PIClient {
|
|
9
12
|
describeDimensionKeys(args, optionsOrCb, cb) {
|
|
@@ -34,6 +37,20 @@ class PI extends PIClient_1.PIClient {
|
|
|
34
37
|
return this.send(command, optionsOrCb);
|
|
35
38
|
}
|
|
36
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
|
+
}
|
|
37
54
|
getResourceMetrics(args, optionsOrCb, cb) {
|
|
38
55
|
const command = new GetResourceMetricsCommand_1.GetResourceMetricsCommand(args);
|
|
39
56
|
if (typeof optionsOrCb === "function") {
|
|
@@ -48,5 +65,33 @@ class PI extends PIClient_1.PIClient {
|
|
|
48
65
|
return this.send(command, optionsOrCb);
|
|
49
66
|
}
|
|
50
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
|
+
}
|
|
51
96
|
}
|
|
52
97
|
exports.PI = PI;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetResourceMetadataCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class GetResourceMetadataCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "PIClient";
|
|
18
|
+
const commandName = "GetResourceMetadataCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetResourceMetadataRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetResourceMetadataResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1GetResourceMetadataCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1GetResourceMetadataCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetResourceMetadataCommand = GetResourceMetadataCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListAvailableResourceDimensionsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListAvailableResourceDimensionsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "PIClient";
|
|
18
|
+
const commandName = "ListAvailableResourceDimensionsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListAvailableResourceDimensionsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListAvailableResourceDimensionsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1ListAvailableResourceDimensionsCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1ListAvailableResourceDimensionsCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListAvailableResourceDimensionsCommand = ListAvailableResourceDimensionsCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListAvailableResourceMetricsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListAvailableResourceMetricsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "PIClient";
|
|
18
|
+
const commandName = "ListAvailableResourceMetricsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListAvailableResourceMetricsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListAvailableResourceMetricsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1ListAvailableResourceMetricsCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1ListAvailableResourceMetricsCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListAvailableResourceMetricsCommand = ListAvailableResourceMetricsCommand;
|
|
@@ -3,4 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./DescribeDimensionKeysCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./GetDimensionKeyDetailsCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./GetResourceMetadataCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./GetResourceMetricsCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListAvailableResourceDimensionsCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListAvailableResourceMetricsCommand"), exports);
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetResourceMetricsResponse = exports.MetricKeyDataPoints = exports.ResponseResourceMetricKey = exports.GetResourceMetricsRequest = exports.MetricQuery = exports.GetDimensionKeyDetailsResponse = exports.GetDimensionKeyDetailsRequest = exports.
|
|
3
|
+
exports.ListAvailableResourceMetricsResponse = exports.ResponseResourceMetric = exports.ListAvailableResourceMetricsRequest = exports.ListAvailableResourceDimensionsResponse = exports.MetricDimensionGroups = exports.ListAvailableResourceDimensionsRequest = exports.GetResourceMetricsResponse = exports.MetricKeyDataPoints = exports.ResponseResourceMetricKey = exports.GetResourceMetricsRequest = exports.MetricQuery = exports.GetResourceMetadataResponse = exports.GetResourceMetadataRequest = exports.GetDimensionKeyDetailsResponse = exports.GetDimensionKeyDetailsRequest = exports.FeatureMetadata = exports.FeatureStatus = exports.DimensionKeyDetail = exports.DimensionGroupDetail = exports.DimensionDetail = exports.DetailStatus = exports.DescribeDimensionKeysResponse = exports.ResponsePartitionKey = exports.DimensionKeyDescription = exports.DescribeDimensionKeysRequest = exports.ServiceType = exports.DimensionGroup = exports.DataPoint = void 0;
|
|
4
4
|
var DataPoint;
|
|
5
5
|
(function (DataPoint) {
|
|
6
6
|
DataPoint.filterSensitiveLog = (obj) => ({
|
|
@@ -15,6 +15,7 @@ var DimensionGroup;
|
|
|
15
15
|
})(DimensionGroup = exports.DimensionGroup || (exports.DimensionGroup = {}));
|
|
16
16
|
var ServiceType;
|
|
17
17
|
(function (ServiceType) {
|
|
18
|
+
ServiceType["DOCDB"] = "DOCDB";
|
|
18
19
|
ServiceType["RDS"] = "RDS";
|
|
19
20
|
})(ServiceType = exports.ServiceType || (exports.ServiceType = {}));
|
|
20
21
|
var DescribeDimensionKeysRequest;
|
|
@@ -41,36 +42,45 @@ var DescribeDimensionKeysResponse;
|
|
|
41
42
|
...obj,
|
|
42
43
|
});
|
|
43
44
|
})(DescribeDimensionKeysResponse = exports.DescribeDimensionKeysResponse || (exports.DescribeDimensionKeysResponse = {}));
|
|
44
|
-
var InternalServiceError;
|
|
45
|
-
(function (InternalServiceError) {
|
|
46
|
-
InternalServiceError.filterSensitiveLog = (obj) => ({
|
|
47
|
-
...obj,
|
|
48
|
-
});
|
|
49
|
-
})(InternalServiceError = exports.InternalServiceError || (exports.InternalServiceError = {}));
|
|
50
|
-
var InvalidArgumentException;
|
|
51
|
-
(function (InvalidArgumentException) {
|
|
52
|
-
InvalidArgumentException.filterSensitiveLog = (obj) => ({
|
|
53
|
-
...obj,
|
|
54
|
-
});
|
|
55
|
-
})(InvalidArgumentException = exports.InvalidArgumentException || (exports.InvalidArgumentException = {}));
|
|
56
|
-
var NotAuthorizedException;
|
|
57
|
-
(function (NotAuthorizedException) {
|
|
58
|
-
NotAuthorizedException.filterSensitiveLog = (obj) => ({
|
|
59
|
-
...obj,
|
|
60
|
-
});
|
|
61
|
-
})(NotAuthorizedException = exports.NotAuthorizedException || (exports.NotAuthorizedException = {}));
|
|
62
45
|
var DetailStatus;
|
|
63
46
|
(function (DetailStatus) {
|
|
64
47
|
DetailStatus["AVAILABLE"] = "AVAILABLE";
|
|
65
48
|
DetailStatus["PROCESSING"] = "PROCESSING";
|
|
66
49
|
DetailStatus["UNAVAILABLE"] = "UNAVAILABLE";
|
|
67
50
|
})(DetailStatus = exports.DetailStatus || (exports.DetailStatus = {}));
|
|
51
|
+
var DimensionDetail;
|
|
52
|
+
(function (DimensionDetail) {
|
|
53
|
+
DimensionDetail.filterSensitiveLog = (obj) => ({
|
|
54
|
+
...obj,
|
|
55
|
+
});
|
|
56
|
+
})(DimensionDetail = exports.DimensionDetail || (exports.DimensionDetail = {}));
|
|
57
|
+
var DimensionGroupDetail;
|
|
58
|
+
(function (DimensionGroupDetail) {
|
|
59
|
+
DimensionGroupDetail.filterSensitiveLog = (obj) => ({
|
|
60
|
+
...obj,
|
|
61
|
+
});
|
|
62
|
+
})(DimensionGroupDetail = exports.DimensionGroupDetail || (exports.DimensionGroupDetail = {}));
|
|
68
63
|
var DimensionKeyDetail;
|
|
69
64
|
(function (DimensionKeyDetail) {
|
|
70
65
|
DimensionKeyDetail.filterSensitiveLog = (obj) => ({
|
|
71
66
|
...obj,
|
|
72
67
|
});
|
|
73
68
|
})(DimensionKeyDetail = exports.DimensionKeyDetail || (exports.DimensionKeyDetail = {}));
|
|
69
|
+
var FeatureStatus;
|
|
70
|
+
(function (FeatureStatus) {
|
|
71
|
+
FeatureStatus["DISABLED"] = "DISABLED";
|
|
72
|
+
FeatureStatus["DISABLED_PENDING_REBOOT"] = "DISABLED_PENDING_REBOOT";
|
|
73
|
+
FeatureStatus["ENABLED"] = "ENABLED";
|
|
74
|
+
FeatureStatus["ENABLED_PENDING_REBOOT"] = "ENABLED_PENDING_REBOOT";
|
|
75
|
+
FeatureStatus["UNKNOWN"] = "UNKNOWN";
|
|
76
|
+
FeatureStatus["UNSUPPORTED"] = "UNSUPPORTED";
|
|
77
|
+
})(FeatureStatus = exports.FeatureStatus || (exports.FeatureStatus = {}));
|
|
78
|
+
var FeatureMetadata;
|
|
79
|
+
(function (FeatureMetadata) {
|
|
80
|
+
FeatureMetadata.filterSensitiveLog = (obj) => ({
|
|
81
|
+
...obj,
|
|
82
|
+
});
|
|
83
|
+
})(FeatureMetadata = exports.FeatureMetadata || (exports.FeatureMetadata = {}));
|
|
74
84
|
var GetDimensionKeyDetailsRequest;
|
|
75
85
|
(function (GetDimensionKeyDetailsRequest) {
|
|
76
86
|
GetDimensionKeyDetailsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -83,6 +93,18 @@ var GetDimensionKeyDetailsResponse;
|
|
|
83
93
|
...obj,
|
|
84
94
|
});
|
|
85
95
|
})(GetDimensionKeyDetailsResponse = exports.GetDimensionKeyDetailsResponse || (exports.GetDimensionKeyDetailsResponse = {}));
|
|
96
|
+
var GetResourceMetadataRequest;
|
|
97
|
+
(function (GetResourceMetadataRequest) {
|
|
98
|
+
GetResourceMetadataRequest.filterSensitiveLog = (obj) => ({
|
|
99
|
+
...obj,
|
|
100
|
+
});
|
|
101
|
+
})(GetResourceMetadataRequest = exports.GetResourceMetadataRequest || (exports.GetResourceMetadataRequest = {}));
|
|
102
|
+
var GetResourceMetadataResponse;
|
|
103
|
+
(function (GetResourceMetadataResponse) {
|
|
104
|
+
GetResourceMetadataResponse.filterSensitiveLog = (obj) => ({
|
|
105
|
+
...obj,
|
|
106
|
+
});
|
|
107
|
+
})(GetResourceMetadataResponse = exports.GetResourceMetadataResponse || (exports.GetResourceMetadataResponse = {}));
|
|
86
108
|
var MetricQuery;
|
|
87
109
|
(function (MetricQuery) {
|
|
88
110
|
MetricQuery.filterSensitiveLog = (obj) => ({
|
|
@@ -113,3 +135,39 @@ var GetResourceMetricsResponse;
|
|
|
113
135
|
...obj,
|
|
114
136
|
});
|
|
115
137
|
})(GetResourceMetricsResponse = exports.GetResourceMetricsResponse || (exports.GetResourceMetricsResponse = {}));
|
|
138
|
+
var ListAvailableResourceDimensionsRequest;
|
|
139
|
+
(function (ListAvailableResourceDimensionsRequest) {
|
|
140
|
+
ListAvailableResourceDimensionsRequest.filterSensitiveLog = (obj) => ({
|
|
141
|
+
...obj,
|
|
142
|
+
});
|
|
143
|
+
})(ListAvailableResourceDimensionsRequest = exports.ListAvailableResourceDimensionsRequest || (exports.ListAvailableResourceDimensionsRequest = {}));
|
|
144
|
+
var MetricDimensionGroups;
|
|
145
|
+
(function (MetricDimensionGroups) {
|
|
146
|
+
MetricDimensionGroups.filterSensitiveLog = (obj) => ({
|
|
147
|
+
...obj,
|
|
148
|
+
});
|
|
149
|
+
})(MetricDimensionGroups = exports.MetricDimensionGroups || (exports.MetricDimensionGroups = {}));
|
|
150
|
+
var ListAvailableResourceDimensionsResponse;
|
|
151
|
+
(function (ListAvailableResourceDimensionsResponse) {
|
|
152
|
+
ListAvailableResourceDimensionsResponse.filterSensitiveLog = (obj) => ({
|
|
153
|
+
...obj,
|
|
154
|
+
});
|
|
155
|
+
})(ListAvailableResourceDimensionsResponse = exports.ListAvailableResourceDimensionsResponse || (exports.ListAvailableResourceDimensionsResponse = {}));
|
|
156
|
+
var ListAvailableResourceMetricsRequest;
|
|
157
|
+
(function (ListAvailableResourceMetricsRequest) {
|
|
158
|
+
ListAvailableResourceMetricsRequest.filterSensitiveLog = (obj) => ({
|
|
159
|
+
...obj,
|
|
160
|
+
});
|
|
161
|
+
})(ListAvailableResourceMetricsRequest = exports.ListAvailableResourceMetricsRequest || (exports.ListAvailableResourceMetricsRequest = {}));
|
|
162
|
+
var ResponseResourceMetric;
|
|
163
|
+
(function (ResponseResourceMetric) {
|
|
164
|
+
ResponseResourceMetric.filterSensitiveLog = (obj) => ({
|
|
165
|
+
...obj,
|
|
166
|
+
});
|
|
167
|
+
})(ResponseResourceMetric = exports.ResponseResourceMetric || (exports.ResponseResourceMetric = {}));
|
|
168
|
+
var ListAvailableResourceMetricsResponse;
|
|
169
|
+
(function (ListAvailableResourceMetricsResponse) {
|
|
170
|
+
ListAvailableResourceMetricsResponse.filterSensitiveLog = (obj) => ({
|
|
171
|
+
...obj,
|
|
172
|
+
});
|
|
173
|
+
})(ListAvailableResourceMetricsResponse = exports.ListAvailableResourceMetricsResponse || (exports.ListAvailableResourceMetricsResponse = {}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateDescribeDimensionKeys = void 0;
|
|
4
|
+
const DescribeDimensionKeysCommand_1 = require("../commands/DescribeDimensionKeysCommand");
|
|
5
|
+
const PI_1 = require("../PI");
|
|
6
|
+
const PIClient_1 = require("../PIClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new DescribeDimensionKeysCommand_1.DescribeDimensionKeysCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.describeDimensionKeys(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateDescribeDimensionKeys(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof PI_1.PI) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof PIClient_1.PIClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected PI | PIClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateDescribeDimensionKeys = paginateDescribeDimensionKeys;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateGetResourceMetrics = void 0;
|
|
4
|
+
const GetResourceMetricsCommand_1 = require("../commands/GetResourceMetricsCommand");
|
|
5
|
+
const PI_1 = require("../PI");
|
|
6
|
+
const PIClient_1 = require("../PIClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new GetResourceMetricsCommand_1.GetResourceMetricsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.getResourceMetrics(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateGetResourceMetrics(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof PI_1.PI) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof PIClient_1.PIClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected PI | PIClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateGetResourceMetrics = paginateGetResourceMetrics;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAvailableResourceDimensions = void 0;
|
|
4
|
+
const ListAvailableResourceDimensionsCommand_1 = require("../commands/ListAvailableResourceDimensionsCommand");
|
|
5
|
+
const PI_1 = require("../PI");
|
|
6
|
+
const PIClient_1 = require("../PIClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListAvailableResourceDimensionsCommand_1.ListAvailableResourceDimensionsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listAvailableResourceDimensions(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListAvailableResourceDimensions(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof PI_1.PI) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof PIClient_1.PIClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected PI | PIClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListAvailableResourceDimensions = paginateListAvailableResourceDimensions;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAvailableResourceMetrics = void 0;
|
|
4
|
+
const ListAvailableResourceMetricsCommand_1 = require("../commands/ListAvailableResourceMetricsCommand");
|
|
5
|
+
const PI_1 = require("../PI");
|
|
6
|
+
const PIClient_1 = require("../PIClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListAvailableResourceMetricsCommand_1.ListAvailableResourceMetricsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listAvailableResourceMetrics(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListAvailableResourceMetrics(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof PI_1.PI) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof PIClient_1.PIClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected PI | PIClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListAvailableResourceMetrics = paginateListAvailableResourceMetrics;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DescribeDimensionKeysPaginator"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./GetResourceMetricsPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListAvailableResourceDimensionsPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListAvailableResourceMetricsPaginator"), exports);
|