@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.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/PI.js +0 -25
- package/dist-cjs/PIClient.js +0 -30
- package/dist-cjs/commands/DescribeDimensionKeysCommand.js +0 -30
- package/dist-cjs/commands/GetDimensionKeyDetailsCommand.js +0 -28
- package/dist-cjs/commands/GetResourceMetricsCommand.js +0 -31
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +3 -6
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -52
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/PI.js +0 -1
- package/dist-es/PIClient.js +0 -1
- package/dist-es/commands/DescribeDimensionKeysCommand.js +0 -1
- package/dist-es/commands/GetDimensionKeyDetailsCommand.js +0 -1
- package/dist-es/commands/GetResourceMetricsCommand.js +0 -1
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +3 -6
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +3 -5
- package/dist-types/ts3.4/PI.d.ts +4 -47
- package/dist-types/ts3.4/PIClient.d.ts +24 -110
- package/dist-types/ts3.4/commands/DescribeDimensionKeysCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/GetDimensionKeyDetailsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetResourceMetricsCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +3 -5
- package/dist-types/ts3.4/models/models_0.d.ts +82 -588
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/PI.js.map +0 -1
- package/dist-cjs/PIClient.js.map +0 -1
- package/dist-cjs/commands/DescribeDimensionKeysCommand.js.map +0 -1
- package/dist-cjs/commands/GetDimensionKeyDetailsCommand.js.map +0 -1
- package/dist-cjs/commands/GetResourceMetricsCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/PI.js.map +0 -1
- package/dist-es/PIClient.js.map +0 -1
- package/dist-es/commands/DescribeDimensionKeysCommand.js.map +0 -1
- package/dist-es/commands/GetDimensionKeyDetailsCommand.js.map +0 -1
- package/dist-es/commands/GetResourceMetricsCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/PI.ts +0 -154
- package/src/PIClient.ts +0 -272
- package/src/commands/DescribeDimensionKeysCommand.ts +0 -100
- package/src/commands/GetDimensionKeyDetailsCommand.ts +0 -98
- package/src/commands/GetResourceMetricsCommand.ts +0 -101
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -6
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -855
- package/src/protocols/Aws_json1_1.ts +0 -786
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
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.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
12
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
46
|
+
* **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
|
|
47
|
+
* **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
7
54
|
|
|
8
55
|
|
package/dist-cjs/PI.js
CHANGED
|
@@ -5,30 +5,6 @@ const DescribeDimensionKeysCommand_1 = require("./commands/DescribeDimensionKeys
|
|
|
5
5
|
const GetDimensionKeyDetailsCommand_1 = require("./commands/GetDimensionKeyDetailsCommand");
|
|
6
6
|
const GetResourceMetricsCommand_1 = require("./commands/GetResourceMetricsCommand");
|
|
7
7
|
const PIClient_1 = require("./PIClient");
|
|
8
|
-
/**
|
|
9
|
-
* <fullname>Amazon RDS Performance Insights</fullname>
|
|
10
|
-
*
|
|
11
|
-
* <p>Amazon RDS Performance Insights enables you to monitor and explore different dimensions of
|
|
12
|
-
* database load based on data captured from a running DB instance. The guide provides detailed
|
|
13
|
-
* information about Performance Insights data types, parameters and errors.</p>
|
|
14
|
-
*
|
|
15
|
-
* <p>When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance. Amazon
|
|
16
|
-
* CloudWatch provides the authoritative source for AWS service-vended monitoring metrics. Performance Insights offers a domain-specific
|
|
17
|
-
* view of DB load. </p>
|
|
18
|
-
* <p>DB load is measured as Average Active Sessions. Performance Insights provides the data to API consumers as a two-dimensional
|
|
19
|
-
* time-series dataset. The time dimension provides DB load data for each time point in the queried time range. Each time
|
|
20
|
-
* point decomposes overall load in relation to the requested dimensions, measured at that time point. Examples include
|
|
21
|
-
* SQL, Wait event, User, and Host.</p>
|
|
22
|
-
*
|
|
23
|
-
* <ul>
|
|
24
|
-
* <li>
|
|
25
|
-
* <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>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <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>
|
|
29
|
-
* </li>
|
|
30
|
-
* </ul>
|
|
31
|
-
*/
|
|
32
8
|
class PI extends PIClient_1.PIClient {
|
|
33
9
|
describeDimensionKeys(args, optionsOrCb, cb) {
|
|
34
10
|
const command = new DescribeDimensionKeysCommand_1.DescribeDimensionKeysCommand(args);
|
|
@@ -74,4 +50,3 @@ class PI extends PIClient_1.PIClient {
|
|
|
74
50
|
}
|
|
75
51
|
}
|
|
76
52
|
exports.PI = PI;
|
|
77
|
-
//# sourceMappingURL=PI.js.map
|
package/dist-cjs/PIClient.js
CHANGED
|
@@ -10,30 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
10
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
|
-
/**
|
|
14
|
-
* <fullname>Amazon RDS Performance Insights</fullname>
|
|
15
|
-
*
|
|
16
|
-
* <p>Amazon RDS Performance Insights enables you to monitor and explore different dimensions of
|
|
17
|
-
* database load based on data captured from a running DB instance. The guide provides detailed
|
|
18
|
-
* information about Performance Insights data types, parameters and errors.</p>
|
|
19
|
-
*
|
|
20
|
-
* <p>When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance. Amazon
|
|
21
|
-
* CloudWatch provides the authoritative source for AWS service-vended monitoring metrics. Performance Insights offers a domain-specific
|
|
22
|
-
* view of DB load. </p>
|
|
23
|
-
* <p>DB load is measured as Average Active Sessions. Performance Insights provides the data to API consumers as a two-dimensional
|
|
24
|
-
* time-series dataset. The time dimension provides DB load data for each time point in the queried time range. Each time
|
|
25
|
-
* point decomposes overall load in relation to the requested dimensions, measured at that time point. Examples include
|
|
26
|
-
* SQL, Wait event, User, and Host.</p>
|
|
27
|
-
*
|
|
28
|
-
* <ul>
|
|
29
|
-
* <li>
|
|
30
|
-
* <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>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
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>.</p>
|
|
34
|
-
* </li>
|
|
35
|
-
* </ul>
|
|
36
|
-
*/
|
|
37
13
|
class PIClient extends smithy_client_1.Client {
|
|
38
14
|
constructor(configuration) {
|
|
39
15
|
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
@@ -52,14 +28,8 @@ class PIClient extends smithy_client_1.Client {
|
|
|
52
28
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
53
29
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
54
30
|
}
|
|
55
|
-
/**
|
|
56
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
57
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
58
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
59
|
-
*/
|
|
60
31
|
destroy() {
|
|
61
32
|
super.destroy();
|
|
62
33
|
}
|
|
63
34
|
}
|
|
64
35
|
exports.PIClient = PIClient;
|
|
65
|
-
//# sourceMappingURL=PIClient.js.map
|
|
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>For a specific time period, retrieve the top <code>N</code> dimension keys for a
|
|
10
|
-
* metric.</p>
|
|
11
|
-
* <note>
|
|
12
|
-
* <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements,
|
|
13
|
-
* only the first 500 bytes are returned.</p>
|
|
14
|
-
* </note>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { PIClient, DescribeDimensionKeysCommand } from "@aws-sdk/client-pi"; // ES Modules import
|
|
19
|
-
* // const { PIClient, DescribeDimensionKeysCommand } = require("@aws-sdk/client-pi"); // CommonJS import
|
|
20
|
-
* const client = new PIClient(config);
|
|
21
|
-
* const command = new DescribeDimensionKeysCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link DescribeDimensionKeysCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link DescribeDimensionKeysCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link PIClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
8
|
class DescribeDimensionKeysCommand extends smithy_client_1.Command {
|
|
31
|
-
// Start section: command_properties
|
|
32
|
-
// End section: command_properties
|
|
33
9
|
constructor(input) {
|
|
34
|
-
// Start section: command_constructor
|
|
35
10
|
super();
|
|
36
11
|
this.input = input;
|
|
37
|
-
// End section: command_constructor
|
|
38
12
|
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
43
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
44
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -63,4 +34,3 @@ class DescribeDimensionKeysCommand extends smithy_client_1.Command {
|
|
|
63
34
|
}
|
|
64
35
|
}
|
|
65
36
|
exports.DescribeDimensionKeysCommand = DescribeDimensionKeysCommand;
|
|
66
|
-
//# sourceMappingURL=DescribeDimensionKeysCommand.js.map
|
|
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a
|
|
10
|
-
* SQL ID, <code>GetDimensionKeyDetails</code> retrieves the full text of the dimension <code>db.sql.statement</code>
|
|
11
|
-
* associated with this ID. This operation is useful because <code>GetResourceMetrics</code> and
|
|
12
|
-
* <code>DescribeDimensionKeys</code> don't support retrieval of large SQL statement text.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { PIClient, GetDimensionKeyDetailsCommand } from "@aws-sdk/client-pi"; // ES Modules import
|
|
17
|
-
* // const { PIClient, GetDimensionKeyDetailsCommand } = require("@aws-sdk/client-pi"); // CommonJS import
|
|
18
|
-
* const client = new PIClient(config);
|
|
19
|
-
* const command = new GetDimensionKeyDetailsCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link GetDimensionKeyDetailsCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link GetDimensionKeyDetailsCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link PIClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class GetDimensionKeyDetailsCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -61,4 +34,3 @@ class GetDimensionKeyDetailsCommand extends smithy_client_1.Command {
|
|
|
61
34
|
}
|
|
62
35
|
}
|
|
63
36
|
exports.GetDimensionKeyDetailsCommand = GetDimensionKeyDetailsCommand;
|
|
64
|
-
//# sourceMappingURL=GetDimensionKeyDetailsCommand.js.map
|
|
@@ -5,41 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Retrieve Performance Insights metrics for a set of data sources, over a time period. You can provide
|
|
10
|
-
* specific dimension groups and dimensions, and provide aggregation and filtering criteria for
|
|
11
|
-
* each group.</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, GetResourceMetricsCommand } from "@aws-sdk/client-pi"; // ES Modules import
|
|
20
|
-
* // const { PIClient, GetResourceMetricsCommand } = require("@aws-sdk/client-pi"); // CommonJS import
|
|
21
|
-
* const client = new PIClient(config);
|
|
22
|
-
* const command = new GetResourceMetricsCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link GetResourceMetricsCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link GetResourceMetricsCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link PIClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
8
|
class GetResourceMetricsCommand extends smithy_client_1.Command {
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
9
|
constructor(input) {
|
|
35
|
-
// Start section: command_constructor
|
|
36
10
|
super();
|
|
37
11
|
this.input = input;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -64,4 +34,3 @@ class GetResourceMetricsCommand extends smithy_client_1.Command {
|
|
|
64
34
|
}
|
|
65
35
|
}
|
|
66
36
|
exports.GetResourceMetricsCommand = GetResourceMetricsCommand;
|
|
67
|
-
//# sourceMappingURL=GetResourceMetricsCommand.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DescribeDimensionKeysCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./GetDimensionKeyDetailsCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./GetResourceMetricsCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -35,7 +35,7 @@ const partitionHash = {
|
|
|
35
35
|
hostname: "pi.{region}.amazonaws.com.cn",
|
|
36
36
|
},
|
|
37
37
|
"aws-iso": {
|
|
38
|
-
regions: ["us-iso-east-1"],
|
|
38
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
39
39
|
hostname: "pi.{region}.c2s.ic.gov",
|
|
40
40
|
},
|
|
41
41
|
"aws-iso-b": {
|
|
@@ -54,4 +54,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
|
|
|
54
54
|
partitionHash,
|
|
55
55
|
});
|
|
56
56
|
exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
|
|
57
|
-
//# sourceMappingURL=endpoints.js.map
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./PIClient"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./PI"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./commands
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
-
tslib_1.__exportStar(require("./models/index"), exports);
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
tslib_1.__exportStar(require("./PIClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -3,18 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GetResourceMetricsResponse = exports.MetricKeyDataPoints = exports.ResponseResourceMetricKey = exports.GetResourceMetricsRequest = exports.MetricQuery = exports.GetDimensionKeyDetailsResponse = exports.GetDimensionKeyDetailsRequest = exports.DimensionKeyDetail = exports.DetailStatus = exports.NotAuthorizedException = exports.InvalidArgumentException = exports.InternalServiceError = 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
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
DataPoint.filterSensitiveLog = (obj) => ({
|
|
10
7
|
...obj,
|
|
11
8
|
});
|
|
12
9
|
})(DataPoint = exports.DataPoint || (exports.DataPoint = {}));
|
|
13
10
|
var DimensionGroup;
|
|
14
11
|
(function (DimensionGroup) {
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
12
|
DimensionGroup.filterSensitiveLog = (obj) => ({
|
|
19
13
|
...obj,
|
|
20
14
|
});
|
|
@@ -25,63 +19,42 @@ var ServiceType;
|
|
|
25
19
|
})(ServiceType = exports.ServiceType || (exports.ServiceType = {}));
|
|
26
20
|
var DescribeDimensionKeysRequest;
|
|
27
21
|
(function (DescribeDimensionKeysRequest) {
|
|
28
|
-
/**
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
22
|
DescribeDimensionKeysRequest.filterSensitiveLog = (obj) => ({
|
|
32
23
|
...obj,
|
|
33
24
|
});
|
|
34
25
|
})(DescribeDimensionKeysRequest = exports.DescribeDimensionKeysRequest || (exports.DescribeDimensionKeysRequest = {}));
|
|
35
26
|
var DimensionKeyDescription;
|
|
36
27
|
(function (DimensionKeyDescription) {
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
28
|
DimensionKeyDescription.filterSensitiveLog = (obj) => ({
|
|
41
29
|
...obj,
|
|
42
30
|
});
|
|
43
31
|
})(DimensionKeyDescription = exports.DimensionKeyDescription || (exports.DimensionKeyDescription = {}));
|
|
44
32
|
var ResponsePartitionKey;
|
|
45
33
|
(function (ResponsePartitionKey) {
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
34
|
ResponsePartitionKey.filterSensitiveLog = (obj) => ({
|
|
50
35
|
...obj,
|
|
51
36
|
});
|
|
52
37
|
})(ResponsePartitionKey = exports.ResponsePartitionKey || (exports.ResponsePartitionKey = {}));
|
|
53
38
|
var DescribeDimensionKeysResponse;
|
|
54
39
|
(function (DescribeDimensionKeysResponse) {
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
40
|
DescribeDimensionKeysResponse.filterSensitiveLog = (obj) => ({
|
|
59
41
|
...obj,
|
|
60
42
|
});
|
|
61
43
|
})(DescribeDimensionKeysResponse = exports.DescribeDimensionKeysResponse || (exports.DescribeDimensionKeysResponse = {}));
|
|
62
44
|
var InternalServiceError;
|
|
63
45
|
(function (InternalServiceError) {
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
46
|
InternalServiceError.filterSensitiveLog = (obj) => ({
|
|
68
47
|
...obj,
|
|
69
48
|
});
|
|
70
49
|
})(InternalServiceError = exports.InternalServiceError || (exports.InternalServiceError = {}));
|
|
71
50
|
var InvalidArgumentException;
|
|
72
51
|
(function (InvalidArgumentException) {
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
52
|
InvalidArgumentException.filterSensitiveLog = (obj) => ({
|
|
77
53
|
...obj,
|
|
78
54
|
});
|
|
79
55
|
})(InvalidArgumentException = exports.InvalidArgumentException || (exports.InvalidArgumentException = {}));
|
|
80
56
|
var NotAuthorizedException;
|
|
81
57
|
(function (NotAuthorizedException) {
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
58
|
NotAuthorizedException.filterSensitiveLog = (obj) => ({
|
|
86
59
|
...obj,
|
|
87
60
|
});
|
|
@@ -94,74 +67,49 @@ var DetailStatus;
|
|
|
94
67
|
})(DetailStatus = exports.DetailStatus || (exports.DetailStatus = {}));
|
|
95
68
|
var DimensionKeyDetail;
|
|
96
69
|
(function (DimensionKeyDetail) {
|
|
97
|
-
/**
|
|
98
|
-
* @internal
|
|
99
|
-
*/
|
|
100
70
|
DimensionKeyDetail.filterSensitiveLog = (obj) => ({
|
|
101
71
|
...obj,
|
|
102
72
|
});
|
|
103
73
|
})(DimensionKeyDetail = exports.DimensionKeyDetail || (exports.DimensionKeyDetail = {}));
|
|
104
74
|
var GetDimensionKeyDetailsRequest;
|
|
105
75
|
(function (GetDimensionKeyDetailsRequest) {
|
|
106
|
-
/**
|
|
107
|
-
* @internal
|
|
108
|
-
*/
|
|
109
76
|
GetDimensionKeyDetailsRequest.filterSensitiveLog = (obj) => ({
|
|
110
77
|
...obj,
|
|
111
78
|
});
|
|
112
79
|
})(GetDimensionKeyDetailsRequest = exports.GetDimensionKeyDetailsRequest || (exports.GetDimensionKeyDetailsRequest = {}));
|
|
113
80
|
var GetDimensionKeyDetailsResponse;
|
|
114
81
|
(function (GetDimensionKeyDetailsResponse) {
|
|
115
|
-
/**
|
|
116
|
-
* @internal
|
|
117
|
-
*/
|
|
118
82
|
GetDimensionKeyDetailsResponse.filterSensitiveLog = (obj) => ({
|
|
119
83
|
...obj,
|
|
120
84
|
});
|
|
121
85
|
})(GetDimensionKeyDetailsResponse = exports.GetDimensionKeyDetailsResponse || (exports.GetDimensionKeyDetailsResponse = {}));
|
|
122
86
|
var MetricQuery;
|
|
123
87
|
(function (MetricQuery) {
|
|
124
|
-
/**
|
|
125
|
-
* @internal
|
|
126
|
-
*/
|
|
127
88
|
MetricQuery.filterSensitiveLog = (obj) => ({
|
|
128
89
|
...obj,
|
|
129
90
|
});
|
|
130
91
|
})(MetricQuery = exports.MetricQuery || (exports.MetricQuery = {}));
|
|
131
92
|
var GetResourceMetricsRequest;
|
|
132
93
|
(function (GetResourceMetricsRequest) {
|
|
133
|
-
/**
|
|
134
|
-
* @internal
|
|
135
|
-
*/
|
|
136
94
|
GetResourceMetricsRequest.filterSensitiveLog = (obj) => ({
|
|
137
95
|
...obj,
|
|
138
96
|
});
|
|
139
97
|
})(GetResourceMetricsRequest = exports.GetResourceMetricsRequest || (exports.GetResourceMetricsRequest = {}));
|
|
140
98
|
var ResponseResourceMetricKey;
|
|
141
99
|
(function (ResponseResourceMetricKey) {
|
|
142
|
-
/**
|
|
143
|
-
* @internal
|
|
144
|
-
*/
|
|
145
100
|
ResponseResourceMetricKey.filterSensitiveLog = (obj) => ({
|
|
146
101
|
...obj,
|
|
147
102
|
});
|
|
148
103
|
})(ResponseResourceMetricKey = exports.ResponseResourceMetricKey || (exports.ResponseResourceMetricKey = {}));
|
|
149
104
|
var MetricKeyDataPoints;
|
|
150
105
|
(function (MetricKeyDataPoints) {
|
|
151
|
-
/**
|
|
152
|
-
* @internal
|
|
153
|
-
*/
|
|
154
106
|
MetricKeyDataPoints.filterSensitiveLog = (obj) => ({
|
|
155
107
|
...obj,
|
|
156
108
|
});
|
|
157
109
|
})(MetricKeyDataPoints = exports.MetricKeyDataPoints || (exports.MetricKeyDataPoints = {}));
|
|
158
110
|
var GetResourceMetricsResponse;
|
|
159
111
|
(function (GetResourceMetricsResponse) {
|
|
160
|
-
/**
|
|
161
|
-
* @internal
|
|
162
|
-
*/
|
|
163
112
|
GetResourceMetricsResponse.filterSensitiveLog = (obj) => ({
|
|
164
113
|
...obj,
|
|
165
114
|
});
|
|
166
115
|
})(GetResourceMetricsResponse = exports.GetResourceMetricsResponse || (exports.GetResourceMetricsResponse = {}));
|
|
167
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -550,14 +550,12 @@ const deserializeMetadata = (output) => {
|
|
|
550
550
|
cfId: output.headers["x-amz-cf-id"],
|
|
551
551
|
});
|
|
552
552
|
};
|
|
553
|
-
// Collect low-level response body stream to Uint8Array.
|
|
554
553
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
555
554
|
if (streamBody instanceof Uint8Array) {
|
|
556
555
|
return Promise.resolve(streamBody);
|
|
557
556
|
}
|
|
558
557
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
559
558
|
};
|
|
560
|
-
// Encode Uint8Array data into string with utf-8.
|
|
561
559
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
562
560
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
563
561
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -583,9 +581,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
583
581
|
}
|
|
584
582
|
return {};
|
|
585
583
|
});
|
|
586
|
-
/**
|
|
587
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
588
|
-
*/
|
|
589
584
|
const loadRestJsonErrorCode = (output, data) => {
|
|
590
585
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
591
586
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -610,4 +605,3 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
610
605
|
}
|
|
611
606
|
return "";
|
|
612
607
|
};
|
|
613
|
-
//# sourceMappingURL=Aws_json1_1.js.map
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
5
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
6
7
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
7
8
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -10,12 +11,7 @@ const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
|
10
11
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
11
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
12
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
13
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
14
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
15
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
15
|
const getRuntimeConfig = (config) => {
|
|
20
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
21
17
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
@@ -39,4 +35,3 @@ const getRuntimeConfig = (config) => {
|
|
|
39
35
|
};
|
|
40
36
|
};
|
|
41
37
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
42
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
5
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
6
7
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
@@ -9,17 +10,12 @@ const hash_node_1 = require("@aws-sdk/hash-node");
|
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
10
11
|
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
11
12
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
12
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
13
13
|
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
14
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
18
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
19
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
20
|
-
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
23
19
|
const getRuntimeConfig = (config) => {
|
|
24
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
25
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
@@ -44,4 +40,3 @@ const getRuntimeConfig = (config) => {
|
|
|
44
40
|
};
|
|
45
41
|
};
|
|
46
42
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
47
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a;
|
|
11
8
|
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
@@ -17,4 +14,3 @@ const getRuntimeConfig = (config) => {
|
|
|
17
14
|
};
|
|
18
15
|
};
|
|
19
16
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
20
|
-
//# sourceMappingURL=runtimeConfig.native.js.map
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpoints_1 = require("./endpoints");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a, _b, _c, _d, _e;
|
|
11
8
|
return ({
|
|
@@ -18,4 +15,3 @@ const getRuntimeConfig = (config) => {
|
|
|
18
15
|
});
|
|
19
16
|
};
|
|
20
17
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
21
|
-
//# sourceMappingURL=runtimeConfig.shared.js.map
|
package/dist-es/PI.js
CHANGED
package/dist-es/PIClient.js
CHANGED
package/dist-es/endpoints.js
CHANGED
|
@@ -33,7 +33,7 @@ var partitionHash = {
|
|
|
33
33
|
hostname: "pi.{region}.amazonaws.com.cn",
|
|
34
34
|
},
|
|
35
35
|
"aws-iso": {
|
|
36
|
-
regions: ["us-iso-east-1"],
|
|
36
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
37
37
|
hostname: "pi.{region}.c2s.ic.gov",
|
|
38
38
|
},
|
|
39
39
|
"aws-iso-b": {
|
|
@@ -50,4 +50,3 @@ export var defaultRegionInfoProvider = function (region, options) { return __awa
|
|
|
50
50
|
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "pi", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
51
51
|
});
|
|
52
52
|
}); };
|
|
53
|
-
//# sourceMappingURL=endpoints.js.map
|
package/dist-es/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export * from "./PIClient";
|
|
2
1
|
export * from "./PI";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./models/index";
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
2
|
+
export * from "./PIClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|