@aws-sdk/client-pi 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/PI.js +33 -26
- package/dist-es/PIClient.js +28 -22
- package/dist-es/commands/DescribeDimensionKeysCommand.js +28 -21
- package/dist-es/commands/GetDimensionKeyDetailsCommand.js +28 -21
- package/dist-es/commands/GetResourceMetadataCommand.js +28 -21
- package/dist-es/commands/GetResourceMetricsCommand.js +28 -21
- package/dist-es/commands/ListAvailableResourceDimensionsCommand.js +28 -21
- package/dist-es/commands/ListAvailableResourceMetricsCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/PIServiceException.js +10 -5
- package/dist-es/models/models_0.js +62 -111
- package/dist-es/pagination/DescribeDimensionKeysPaginator.js +68 -25
- package/dist-es/pagination/GetResourceMetricsPaginator.js +68 -25
- package/dist-es/pagination/ListAvailableResourceDimensionsPaginator.js +68 -25
- package/dist-es/pagination/ListAvailableResourceMetricsPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +629 -528
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-pi
|
|
@@ -747,10 +747,10 @@ const deserializeAws_json1_1ResponseResourceMetricList = (output, context) => {
|
|
|
747
747
|
return retVal;
|
|
748
748
|
};
|
|
749
749
|
const deserializeMetadata = (output) => {
|
|
750
|
-
var _a;
|
|
750
|
+
var _a, _b;
|
|
751
751
|
return ({
|
|
752
752
|
httpStatusCode: output.statusCode,
|
|
753
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
753
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
754
754
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
755
755
|
cfId: output.headers["x-amz-cf-id"],
|
|
756
756
|
});
|
package/dist-es/PI.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { DescribeDimensionKeysCommand, } from "./commands/DescribeDimensionKeysCommand";
|
|
2
3
|
import { GetDimensionKeyDetailsCommand, } from "./commands/GetDimensionKeyDetailsCommand";
|
|
3
4
|
import { GetResourceMetadataCommand, } from "./commands/GetResourceMetadataCommand";
|
|
@@ -5,89 +6,95 @@ import { GetResourceMetricsCommand, } from "./commands/GetResourceMetricsCommand
|
|
|
5
6
|
import { ListAvailableResourceDimensionsCommand, } from "./commands/ListAvailableResourceDimensionsCommand";
|
|
6
7
|
import { ListAvailableResourceMetricsCommand, } from "./commands/ListAvailableResourceMetricsCommand";
|
|
7
8
|
import { PIClient } from "./PIClient";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
var PI = (function (_super) {
|
|
10
|
+
__extends(PI, _super);
|
|
11
|
+
function PI() {
|
|
12
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
+
}
|
|
14
|
+
PI.prototype.describeDimensionKeys = function (args, optionsOrCb, cb) {
|
|
15
|
+
var command = new DescribeDimensionKeysCommand(args);
|
|
11
16
|
if (typeof optionsOrCb === "function") {
|
|
12
17
|
this.send(command, optionsOrCb);
|
|
13
18
|
}
|
|
14
19
|
else if (typeof cb === "function") {
|
|
15
20
|
if (typeof optionsOrCb !== "object")
|
|
16
|
-
throw new Error(
|
|
21
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
17
22
|
this.send(command, optionsOrCb || {}, cb);
|
|
18
23
|
}
|
|
19
24
|
else {
|
|
20
25
|
return this.send(command, optionsOrCb);
|
|
21
26
|
}
|
|
22
|
-
}
|
|
23
|
-
getDimensionKeyDetails(args, optionsOrCb, cb) {
|
|
24
|
-
|
|
27
|
+
};
|
|
28
|
+
PI.prototype.getDimensionKeyDetails = function (args, optionsOrCb, cb) {
|
|
29
|
+
var command = new GetDimensionKeyDetailsCommand(args);
|
|
25
30
|
if (typeof optionsOrCb === "function") {
|
|
26
31
|
this.send(command, optionsOrCb);
|
|
27
32
|
}
|
|
28
33
|
else if (typeof cb === "function") {
|
|
29
34
|
if (typeof optionsOrCb !== "object")
|
|
30
|
-
throw new Error(
|
|
35
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
31
36
|
this.send(command, optionsOrCb || {}, cb);
|
|
32
37
|
}
|
|
33
38
|
else {
|
|
34
39
|
return this.send(command, optionsOrCb);
|
|
35
40
|
}
|
|
36
|
-
}
|
|
37
|
-
getResourceMetadata(args, optionsOrCb, cb) {
|
|
38
|
-
|
|
41
|
+
};
|
|
42
|
+
PI.prototype.getResourceMetadata = function (args, optionsOrCb, cb) {
|
|
43
|
+
var command = new GetResourceMetadataCommand(args);
|
|
39
44
|
if (typeof optionsOrCb === "function") {
|
|
40
45
|
this.send(command, optionsOrCb);
|
|
41
46
|
}
|
|
42
47
|
else if (typeof cb === "function") {
|
|
43
48
|
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(
|
|
49
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
45
50
|
this.send(command, optionsOrCb || {}, cb);
|
|
46
51
|
}
|
|
47
52
|
else {
|
|
48
53
|
return this.send(command, optionsOrCb);
|
|
49
54
|
}
|
|
50
|
-
}
|
|
51
|
-
getResourceMetrics(args, optionsOrCb, cb) {
|
|
52
|
-
|
|
55
|
+
};
|
|
56
|
+
PI.prototype.getResourceMetrics = function (args, optionsOrCb, cb) {
|
|
57
|
+
var command = new GetResourceMetricsCommand(args);
|
|
53
58
|
if (typeof optionsOrCb === "function") {
|
|
54
59
|
this.send(command, optionsOrCb);
|
|
55
60
|
}
|
|
56
61
|
else if (typeof cb === "function") {
|
|
57
62
|
if (typeof optionsOrCb !== "object")
|
|
58
|
-
throw new Error(
|
|
63
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
59
64
|
this.send(command, optionsOrCb || {}, cb);
|
|
60
65
|
}
|
|
61
66
|
else {
|
|
62
67
|
return this.send(command, optionsOrCb);
|
|
63
68
|
}
|
|
64
|
-
}
|
|
65
|
-
listAvailableResourceDimensions(args, optionsOrCb, cb) {
|
|
66
|
-
|
|
69
|
+
};
|
|
70
|
+
PI.prototype.listAvailableResourceDimensions = function (args, optionsOrCb, cb) {
|
|
71
|
+
var command = new ListAvailableResourceDimensionsCommand(args);
|
|
67
72
|
if (typeof optionsOrCb === "function") {
|
|
68
73
|
this.send(command, optionsOrCb);
|
|
69
74
|
}
|
|
70
75
|
else if (typeof cb === "function") {
|
|
71
76
|
if (typeof optionsOrCb !== "object")
|
|
72
|
-
throw new Error(
|
|
77
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
73
78
|
this.send(command, optionsOrCb || {}, cb);
|
|
74
79
|
}
|
|
75
80
|
else {
|
|
76
81
|
return this.send(command, optionsOrCb);
|
|
77
82
|
}
|
|
78
|
-
}
|
|
79
|
-
listAvailableResourceMetrics(args, optionsOrCb, cb) {
|
|
80
|
-
|
|
83
|
+
};
|
|
84
|
+
PI.prototype.listAvailableResourceMetrics = function (args, optionsOrCb, cb) {
|
|
85
|
+
var command = new ListAvailableResourceMetricsCommand(args);
|
|
81
86
|
if (typeof optionsOrCb === "function") {
|
|
82
87
|
this.send(command, optionsOrCb);
|
|
83
88
|
}
|
|
84
89
|
else if (typeof cb === "function") {
|
|
85
90
|
if (typeof optionsOrCb !== "object")
|
|
86
|
-
throw new Error(
|
|
91
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
87
92
|
this.send(command, optionsOrCb || {}, cb);
|
|
88
93
|
}
|
|
89
94
|
else {
|
|
90
95
|
return this.send(command, optionsOrCb);
|
|
91
96
|
}
|
|
92
|
-
}
|
|
93
|
-
|
|
97
|
+
};
|
|
98
|
+
return PI;
|
|
99
|
+
}(PIClient));
|
|
100
|
+
export { PI };
|
package/dist-es/PIClient.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var PIClient = (function (_super) {
|
|
13
|
+
__extends(PIClient, _super);
|
|
14
|
+
function PIClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
PIClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return PIClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { PIClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DescribeDimensionKeysRequestFilterSensitiveLog, DescribeDimensionKeysResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1DescribeDimensionKeysCommand, serializeAws_json1_1DescribeDimensionKeysCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DescribeDimensionKeysCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeDimensionKeysCommand, _super);
|
|
8
|
+
function DescribeDimensionKeysCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DescribeDimensionKeysCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "PIClient";
|
|
18
|
+
var commandName = "DescribeDimensionKeysCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DescribeDimensionKeysRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DescribeDimensionKeysResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeDimensionKeysCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1DescribeDimensionKeysCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DescribeDimensionKeysCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1DescribeDimensionKeysCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DescribeDimensionKeysCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeDimensionKeysCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { GetDimensionKeyDetailsRequestFilterSensitiveLog, GetDimensionKeyDetailsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1GetDimensionKeyDetailsCommand, serializeAws_json1_1GetDimensionKeyDetailsCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var GetDimensionKeyDetailsCommand = (function (_super) {
|
|
7
|
+
__extends(GetDimensionKeyDetailsCommand, _super);
|
|
8
|
+
function GetDimensionKeyDetailsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
GetDimensionKeyDetailsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "PIClient";
|
|
18
|
+
var commandName = "GetDimensionKeyDetailsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: GetDimensionKeyDetailsRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: GetDimensionKeyDetailsResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetDimensionKeyDetailsCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1GetDimensionKeyDetailsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
GetDimensionKeyDetailsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1GetDimensionKeyDetailsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return GetDimensionKeyDetailsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetDimensionKeyDetailsCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { GetResourceMetadataRequestFilterSensitiveLog, GetResourceMetadataResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1GetResourceMetadataCommand, serializeAws_json1_1GetResourceMetadataCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var GetResourceMetadataCommand = (function (_super) {
|
|
7
|
+
__extends(GetResourceMetadataCommand, _super);
|
|
8
|
+
function GetResourceMetadataCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
GetResourceMetadataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "PIClient";
|
|
18
|
+
var commandName = "GetResourceMetadataCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: GetResourceMetadataRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: GetResourceMetadataResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetResourceMetadataCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1GetResourceMetadataCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
GetResourceMetadataCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1GetResourceMetadataCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return GetResourceMetadataCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetResourceMetadataCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { GetResourceMetricsRequestFilterSensitiveLog, GetResourceMetricsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1GetResourceMetricsCommand, serializeAws_json1_1GetResourceMetricsCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var GetResourceMetricsCommand = (function (_super) {
|
|
7
|
+
__extends(GetResourceMetricsCommand, _super);
|
|
8
|
+
function GetResourceMetricsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
GetResourceMetricsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "PIClient";
|
|
18
|
+
var commandName = "GetResourceMetricsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: GetResourceMetricsRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: GetResourceMetricsResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetResourceMetricsCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1GetResourceMetricsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
GetResourceMetricsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1GetResourceMetricsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return GetResourceMetricsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetResourceMetricsCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ListAvailableResourceDimensionsRequestFilterSensitiveLog, ListAvailableResourceDimensionsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1ListAvailableResourceDimensionsCommand, serializeAws_json1_1ListAvailableResourceDimensionsCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var ListAvailableResourceDimensionsCommand = (function (_super) {
|
|
7
|
+
__extends(ListAvailableResourceDimensionsCommand, _super);
|
|
8
|
+
function ListAvailableResourceDimensionsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ListAvailableResourceDimensionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "PIClient";
|
|
18
|
+
var commandName = "ListAvailableResourceDimensionsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: ListAvailableResourceDimensionsRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ListAvailableResourceDimensionsResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListAvailableResourceDimensionsCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1ListAvailableResourceDimensionsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ListAvailableResourceDimensionsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1ListAvailableResourceDimensionsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ListAvailableResourceDimensionsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListAvailableResourceDimensionsCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ListAvailableResourceMetricsRequestFilterSensitiveLog, ListAvailableResourceMetricsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1ListAvailableResourceMetricsCommand, serializeAws_json1_1ListAvailableResourceMetricsCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var ListAvailableResourceMetricsCommand = (function (_super) {
|
|
7
|
+
__extends(ListAvailableResourceMetricsCommand, _super);
|
|
8
|
+
function ListAvailableResourceMetricsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ListAvailableResourceMetricsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "PIClient";
|
|
18
|
+
var commandName = "ListAvailableResourceMetricsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: ListAvailableResourceMetricsRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ListAvailableResourceMetricsResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListAvailableResourceMetricsCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1ListAvailableResourceMetricsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ListAvailableResourceMetricsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1ListAvailableResourceMetricsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ListAvailableResourceMetricsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListAvailableResourceMetricsCommand };
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
var regionHash = {};
|
|
4
|
+
var partitionHash = {
|
|
4
5
|
aws: {
|
|
5
6
|
regions: [
|
|
6
7
|
"af-south-1",
|
|
@@ -120,9 +121,8 @@ const partitionHash = {
|
|
|
120
121
|
],
|
|
121
122
|
},
|
|
122
123
|
};
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
});
|
|
124
|
+
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
125
|
+
return __generator(this, function (_a) {
|
|
126
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "pi", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
127
|
+
});
|
|
128
|
+
}); };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var PIServiceException = (function (_super) {
|
|
4
|
+
__extends(PIServiceException, _super);
|
|
5
|
+
function PIServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, PIServiceException.prototype);
|
|
8
|
+
return _this;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return PIServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { PIServiceException };
|