@aws-sdk/client-pi 3.54.1 → 3.55.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 +8 -0
- package/dist-cjs/PIClient.js +13 -13
- package/dist-cjs/commands/DescribeDimensionKeysCommand.js +3 -3
- package/dist-cjs/commands/GetDimensionKeyDetailsCommand.js +3 -3
- package/dist-cjs/commands/GetResourceMetadataCommand.js +3 -3
- package/dist-cjs/commands/GetResourceMetricsCommand.js +3 -3
- package/dist-cjs/commands/ListAvailableResourceDimensionsCommand.js +3 -3
- package/dist-cjs/commands/ListAvailableResourceMetricsCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_json1_1.js +39 -39
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/PI.js +6 -6
- package/dist-es/pagination/DescribeDimensionKeysPaginator.js +4 -4
- package/dist-es/pagination/GetResourceMetricsPaginator.js +4 -4
- package/dist-es/pagination/ListAvailableResourceDimensionsPaginator.js +4 -4
- package/dist-es/pagination/ListAvailableResourceMetricsPaginator.js +4 -4
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-pi
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-sdk/client-pi
|
package/dist-cjs/PIClient.js
CHANGED
|
@@ -12,21 +12,21 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
13
|
class PIClient extends smithy_client_1.Client {
|
|
14
14
|
constructor(configuration) {
|
|
15
|
-
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
16
|
-
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
17
|
-
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
18
|
-
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
19
|
-
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
20
|
-
const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
21
|
-
const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
|
|
15
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
16
|
+
const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
|
|
17
|
+
const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
|
|
18
|
+
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
19
|
+
const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
|
|
20
|
+
const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
|
|
21
|
+
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
|
|
22
22
|
super(_config_6);
|
|
23
23
|
this.config = _config_6;
|
|
24
|
-
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
25
|
-
this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
|
|
26
|
-
this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
|
|
27
|
-
this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
|
|
28
|
-
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
29
|
-
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
25
|
+
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
26
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
27
|
+
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
28
|
+
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
29
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
30
30
|
}
|
|
31
31
|
destroy() {
|
|
32
32
|
super.destroy();
|
|
@@ -11,7 +11,7 @@ class DescribeDimensionKeysCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "PIClient";
|
|
@@ -27,10 +27,10 @@ class DescribeDimensionKeysCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_json1_1_1.serializeAws_json1_1DescribeDimensionKeysCommand(input, context);
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1DescribeDimensionKeysCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_json1_1_1.deserializeAws_json1_1DescribeDimensionKeysCommand(output, context);
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeDimensionKeysCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.DescribeDimensionKeysCommand = DescribeDimensionKeysCommand;
|
|
@@ -11,7 +11,7 @@ class GetDimensionKeyDetailsCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "PIClient";
|
|
@@ -27,10 +27,10 @@ class GetDimensionKeyDetailsCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_json1_1_1.serializeAws_json1_1GetDimensionKeyDetailsCommand(input, context);
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1GetDimensionKeyDetailsCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_json1_1_1.deserializeAws_json1_1GetDimensionKeyDetailsCommand(output, context);
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1GetDimensionKeyDetailsCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.GetDimensionKeyDetailsCommand = GetDimensionKeyDetailsCommand;
|
|
@@ -11,7 +11,7 @@ class GetResourceMetadataCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "PIClient";
|
|
@@ -27,10 +27,10 @@ class GetResourceMetadataCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_json1_1_1.serializeAws_json1_1GetResourceMetadataCommand(input, context);
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1GetResourceMetadataCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_json1_1_1.deserializeAws_json1_1GetResourceMetadataCommand(output, context);
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1GetResourceMetadataCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.GetResourceMetadataCommand = GetResourceMetadataCommand;
|
|
@@ -11,7 +11,7 @@ class GetResourceMetricsCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "PIClient";
|
|
@@ -27,10 +27,10 @@ class GetResourceMetricsCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_json1_1_1.serializeAws_json1_1GetResourceMetricsCommand(input, context);
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1GetResourceMetricsCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_json1_1_1.deserializeAws_json1_1GetResourceMetricsCommand(output, context);
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1GetResourceMetricsCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.GetResourceMetricsCommand = GetResourceMetricsCommand;
|
|
@@ -11,7 +11,7 @@ class ListAvailableResourceDimensionsCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "PIClient";
|
|
@@ -27,10 +27,10 @@ class ListAvailableResourceDimensionsCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_json1_1_1.serializeAws_json1_1ListAvailableResourceDimensionsCommand(input, context);
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListAvailableResourceDimensionsCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_json1_1_1.deserializeAws_json1_1ListAvailableResourceDimensionsCommand(output, context);
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListAvailableResourceDimensionsCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.ListAvailableResourceDimensionsCommand = ListAvailableResourceDimensionsCommand;
|
|
@@ -11,7 +11,7 @@ class ListAvailableResourceMetricsCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "PIClient";
|
|
@@ -27,10 +27,10 @@ class ListAvailableResourceMetricsCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_json1_1_1.serializeAws_json1_1ListAvailableResourceMetricsCommand(input, context);
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListAvailableResourceMetricsCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_json1_1_1.deserializeAws_json1_1ListAvailableResourceMetricsCommand(output, context);
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListAvailableResourceMetricsCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.ListAvailableResourceMetricsCommand = ListAvailableResourceMetricsCommand;
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -122,7 +122,7 @@ const partitionHash = {
|
|
|
122
122
|
],
|
|
123
123
|
},
|
|
124
124
|
};
|
|
125
|
-
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
125
|
+
const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
|
|
126
126
|
...options,
|
|
127
127
|
signingService: "pi",
|
|
128
128
|
regionHash,
|
|
@@ -104,7 +104,7 @@ const deserializeAws_json1_1DescribeDimensionKeysCommandError = async (output, c
|
|
|
104
104
|
$fault: "client",
|
|
105
105
|
$metadata: deserializeMetadata(output),
|
|
106
106
|
});
|
|
107
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
107
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
const deserializeAws_json1_1GetDimensionKeyDetailsCommand = async (output, context) => {
|
|
@@ -146,7 +146,7 @@ const deserializeAws_json1_1GetDimensionKeyDetailsCommandError = async (output,
|
|
|
146
146
|
$fault: "client",
|
|
147
147
|
$metadata: deserializeMetadata(output),
|
|
148
148
|
});
|
|
149
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
149
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
const deserializeAws_json1_1GetResourceMetadataCommand = async (output, context) => {
|
|
@@ -188,7 +188,7 @@ const deserializeAws_json1_1GetResourceMetadataCommandError = async (output, con
|
|
|
188
188
|
$fault: "client",
|
|
189
189
|
$metadata: deserializeMetadata(output),
|
|
190
190
|
});
|
|
191
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
191
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
194
|
const deserializeAws_json1_1GetResourceMetricsCommand = async (output, context) => {
|
|
@@ -230,7 +230,7 @@ const deserializeAws_json1_1GetResourceMetricsCommandError = async (output, cont
|
|
|
230
230
|
$fault: "client",
|
|
231
231
|
$metadata: deserializeMetadata(output),
|
|
232
232
|
});
|
|
233
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
233
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
234
234
|
}
|
|
235
235
|
};
|
|
236
236
|
const deserializeAws_json1_1ListAvailableResourceDimensionsCommand = async (output, context) => {
|
|
@@ -272,7 +272,7 @@ const deserializeAws_json1_1ListAvailableResourceDimensionsCommandError = async
|
|
|
272
272
|
$fault: "client",
|
|
273
273
|
$metadata: deserializeMetadata(output),
|
|
274
274
|
});
|
|
275
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
275
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
278
|
const deserializeAws_json1_1ListAvailableResourceMetricsCommand = async (output, context) => {
|
|
@@ -314,7 +314,7 @@ const deserializeAws_json1_1ListAvailableResourceMetricsCommandError = async (ou
|
|
|
314
314
|
$fault: "client",
|
|
315
315
|
$metadata: deserializeMetadata(output),
|
|
316
316
|
});
|
|
317
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
317
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
320
|
const deserializeAws_json1_1InternalServiceErrorResponse = async (parsedOutput, context) => {
|
|
@@ -324,7 +324,7 @@ const deserializeAws_json1_1InternalServiceErrorResponse = async (parsedOutput,
|
|
|
324
324
|
$metadata: deserializeMetadata(parsedOutput),
|
|
325
325
|
...deserialized,
|
|
326
326
|
});
|
|
327
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
327
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
328
328
|
};
|
|
329
329
|
const deserializeAws_json1_1InvalidArgumentExceptionResponse = async (parsedOutput, context) => {
|
|
330
330
|
const body = parsedOutput.body;
|
|
@@ -333,7 +333,7 @@ const deserializeAws_json1_1InvalidArgumentExceptionResponse = async (parsedOutp
|
|
|
333
333
|
$metadata: deserializeMetadata(parsedOutput),
|
|
334
334
|
...deserialized,
|
|
335
335
|
});
|
|
336
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
336
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
337
337
|
};
|
|
338
338
|
const deserializeAws_json1_1NotAuthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
339
339
|
const body = parsedOutput.body;
|
|
@@ -342,7 +342,7 @@ const deserializeAws_json1_1NotAuthorizedExceptionResponse = async (parsedOutput
|
|
|
342
342
|
$metadata: deserializeMetadata(parsedOutput),
|
|
343
343
|
...deserialized,
|
|
344
344
|
});
|
|
345
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
345
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
346
346
|
};
|
|
347
347
|
const serializeAws_json1_1AdditionalMetricsList = (input, context) => {
|
|
348
348
|
return input
|
|
@@ -521,16 +521,16 @@ const deserializeAws_json1_1AdditionalMetricsMap = (output, context) => {
|
|
|
521
521
|
}
|
|
522
522
|
return {
|
|
523
523
|
...acc,
|
|
524
|
-
[key]: smithy_client_1.limitedParseDouble(value),
|
|
524
|
+
[key]: (0, smithy_client_1.limitedParseDouble)(value),
|
|
525
525
|
};
|
|
526
526
|
}, {});
|
|
527
527
|
};
|
|
528
528
|
const deserializeAws_json1_1DataPoint = (output, context) => {
|
|
529
529
|
return {
|
|
530
530
|
Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
|
|
531
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Timestamp)))
|
|
531
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
|
|
532
532
|
: undefined,
|
|
533
|
-
Value: smithy_client_1.limitedParseDouble(output.Value),
|
|
533
|
+
Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
|
|
534
534
|
};
|
|
535
535
|
};
|
|
536
536
|
const deserializeAws_json1_1DataPointsList = (output, context) => {
|
|
@@ -547,15 +547,15 @@ const deserializeAws_json1_1DataPointsList = (output, context) => {
|
|
|
547
547
|
const deserializeAws_json1_1DescribeDimensionKeysResponse = (output, context) => {
|
|
548
548
|
return {
|
|
549
549
|
AlignedEndTime: output.AlignedEndTime !== undefined && output.AlignedEndTime !== null
|
|
550
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.AlignedEndTime)))
|
|
550
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AlignedEndTime)))
|
|
551
551
|
: undefined,
|
|
552
552
|
AlignedStartTime: output.AlignedStartTime !== undefined && output.AlignedStartTime !== null
|
|
553
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.AlignedStartTime)))
|
|
553
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AlignedStartTime)))
|
|
554
554
|
: undefined,
|
|
555
555
|
Keys: output.Keys !== undefined && output.Keys !== null
|
|
556
556
|
? deserializeAws_json1_1DimensionKeyDescriptionList(output.Keys, context)
|
|
557
557
|
: undefined,
|
|
558
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
558
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
559
559
|
PartitionKeys: output.PartitionKeys !== undefined && output.PartitionKeys !== null
|
|
560
560
|
? deserializeAws_json1_1ResponsePartitionKeyList(output.PartitionKeys, context)
|
|
561
561
|
: undefined,
|
|
@@ -563,7 +563,7 @@ const deserializeAws_json1_1DescribeDimensionKeysResponse = (output, context) =>
|
|
|
563
563
|
};
|
|
564
564
|
const deserializeAws_json1_1DimensionDetail = (output, context) => {
|
|
565
565
|
return {
|
|
566
|
-
Identifier: smithy_client_1.expectString(output.Identifier),
|
|
566
|
+
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
567
567
|
};
|
|
568
568
|
};
|
|
569
569
|
const deserializeAws_json1_1DimensionDetailList = (output, context) => {
|
|
@@ -582,7 +582,7 @@ const deserializeAws_json1_1DimensionGroupDetail = (output, context) => {
|
|
|
582
582
|
Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
|
|
583
583
|
? deserializeAws_json1_1DimensionDetailList(output.Dimensions, context)
|
|
584
584
|
: undefined,
|
|
585
|
-
Group: smithy_client_1.expectString(output.Group),
|
|
585
|
+
Group: (0, smithy_client_1.expectString)(output.Group),
|
|
586
586
|
};
|
|
587
587
|
};
|
|
588
588
|
const deserializeAws_json1_1DimensionGroupDetailList = (output, context) => {
|
|
@@ -607,7 +607,7 @@ const deserializeAws_json1_1DimensionKeyDescription = (output, context) => {
|
|
|
607
607
|
Partitions: output.Partitions !== undefined && output.Partitions !== null
|
|
608
608
|
? deserializeAws_json1_1MetricValuesList(output.Partitions, context)
|
|
609
609
|
: undefined,
|
|
610
|
-
Total: smithy_client_1.limitedParseDouble(output.Total),
|
|
610
|
+
Total: (0, smithy_client_1.limitedParseDouble)(output.Total),
|
|
611
611
|
};
|
|
612
612
|
};
|
|
613
613
|
const deserializeAws_json1_1DimensionKeyDescriptionList = (output, context) => {
|
|
@@ -623,9 +623,9 @@ const deserializeAws_json1_1DimensionKeyDescriptionList = (output, context) => {
|
|
|
623
623
|
};
|
|
624
624
|
const deserializeAws_json1_1DimensionKeyDetail = (output, context) => {
|
|
625
625
|
return {
|
|
626
|
-
Dimension: smithy_client_1.expectString(output.Dimension),
|
|
627
|
-
Status: smithy_client_1.expectString(output.Status),
|
|
628
|
-
Value: smithy_client_1.expectString(output.Value),
|
|
626
|
+
Dimension: (0, smithy_client_1.expectString)(output.Dimension),
|
|
627
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
628
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
629
629
|
};
|
|
630
630
|
};
|
|
631
631
|
const deserializeAws_json1_1DimensionKeyDetailList = (output, context) => {
|
|
@@ -646,13 +646,13 @@ const deserializeAws_json1_1DimensionMap = (output, context) => {
|
|
|
646
646
|
}
|
|
647
647
|
return {
|
|
648
648
|
...acc,
|
|
649
|
-
[key]: smithy_client_1.expectString(value),
|
|
649
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
650
650
|
};
|
|
651
651
|
}, {});
|
|
652
652
|
};
|
|
653
653
|
const deserializeAws_json1_1FeatureMetadata = (output, context) => {
|
|
654
654
|
return {
|
|
655
|
-
Status: smithy_client_1.expectString(output.Status),
|
|
655
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
656
656
|
};
|
|
657
657
|
};
|
|
658
658
|
const deserializeAws_json1_1FeatureMetadataMap = (output, context) => {
|
|
@@ -678,32 +678,32 @@ const deserializeAws_json1_1GetResourceMetadataResponse = (output, context) => {
|
|
|
678
678
|
Features: output.Features !== undefined && output.Features !== null
|
|
679
679
|
? deserializeAws_json1_1FeatureMetadataMap(output.Features, context)
|
|
680
680
|
: undefined,
|
|
681
|
-
Identifier: smithy_client_1.expectString(output.Identifier),
|
|
681
|
+
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
682
682
|
};
|
|
683
683
|
};
|
|
684
684
|
const deserializeAws_json1_1GetResourceMetricsResponse = (output, context) => {
|
|
685
685
|
return {
|
|
686
686
|
AlignedEndTime: output.AlignedEndTime !== undefined && output.AlignedEndTime !== null
|
|
687
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.AlignedEndTime)))
|
|
687
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AlignedEndTime)))
|
|
688
688
|
: undefined,
|
|
689
689
|
AlignedStartTime: output.AlignedStartTime !== undefined && output.AlignedStartTime !== null
|
|
690
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.AlignedStartTime)))
|
|
690
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AlignedStartTime)))
|
|
691
691
|
: undefined,
|
|
692
|
-
Identifier: smithy_client_1.expectString(output.Identifier),
|
|
692
|
+
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
693
693
|
MetricList: output.MetricList !== undefined && output.MetricList !== null
|
|
694
694
|
? deserializeAws_json1_1MetricKeyDataPointsList(output.MetricList, context)
|
|
695
695
|
: undefined,
|
|
696
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
696
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
697
697
|
};
|
|
698
698
|
};
|
|
699
699
|
const deserializeAws_json1_1InternalServiceError = (output, context) => {
|
|
700
700
|
return {
|
|
701
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
701
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
702
702
|
};
|
|
703
703
|
};
|
|
704
704
|
const deserializeAws_json1_1InvalidArgumentException = (output, context) => {
|
|
705
705
|
return {
|
|
706
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
706
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
707
707
|
};
|
|
708
708
|
};
|
|
709
709
|
const deserializeAws_json1_1ListAvailableResourceDimensionsResponse = (output, context) => {
|
|
@@ -711,7 +711,7 @@ const deserializeAws_json1_1ListAvailableResourceDimensionsResponse = (output, c
|
|
|
711
711
|
MetricDimensions: output.MetricDimensions !== undefined && output.MetricDimensions !== null
|
|
712
712
|
? deserializeAws_json1_1MetricDimensionsList(output.MetricDimensions, context)
|
|
713
713
|
: undefined,
|
|
714
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
714
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
715
715
|
};
|
|
716
716
|
};
|
|
717
717
|
const deserializeAws_json1_1ListAvailableResourceMetricsResponse = (output, context) => {
|
|
@@ -719,7 +719,7 @@ const deserializeAws_json1_1ListAvailableResourceMetricsResponse = (output, cont
|
|
|
719
719
|
Metrics: output.Metrics !== undefined && output.Metrics !== null
|
|
720
720
|
? deserializeAws_json1_1ResponseResourceMetricList(output.Metrics, context)
|
|
721
721
|
: undefined,
|
|
722
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
722
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
723
723
|
};
|
|
724
724
|
};
|
|
725
725
|
const deserializeAws_json1_1MetricDimensionGroups = (output, context) => {
|
|
@@ -727,7 +727,7 @@ const deserializeAws_json1_1MetricDimensionGroups = (output, context) => {
|
|
|
727
727
|
Groups: output.Groups !== undefined && output.Groups !== null
|
|
728
728
|
? deserializeAws_json1_1DimensionGroupDetailList(output.Groups, context)
|
|
729
729
|
: undefined,
|
|
730
|
-
Metric: smithy_client_1.expectString(output.Metric),
|
|
730
|
+
Metric: (0, smithy_client_1.expectString)(output.Metric),
|
|
731
731
|
};
|
|
732
732
|
};
|
|
733
733
|
const deserializeAws_json1_1MetricDimensionsList = (output, context) => {
|
|
@@ -769,13 +769,13 @@ const deserializeAws_json1_1MetricValuesList = (output, context) => {
|
|
|
769
769
|
if (entry === null) {
|
|
770
770
|
return null;
|
|
771
771
|
}
|
|
772
|
-
return smithy_client_1.limitedParseDouble(entry);
|
|
772
|
+
return (0, smithy_client_1.limitedParseDouble)(entry);
|
|
773
773
|
});
|
|
774
774
|
return retVal;
|
|
775
775
|
};
|
|
776
776
|
const deserializeAws_json1_1NotAuthorizedException = (output, context) => {
|
|
777
777
|
return {
|
|
778
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
778
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
779
779
|
};
|
|
780
780
|
};
|
|
781
781
|
const deserializeAws_json1_1ResponsePartitionKey = (output, context) => {
|
|
@@ -798,9 +798,9 @@ const deserializeAws_json1_1ResponsePartitionKeyList = (output, context) => {
|
|
|
798
798
|
};
|
|
799
799
|
const deserializeAws_json1_1ResponseResourceMetric = (output, context) => {
|
|
800
800
|
return {
|
|
801
|
-
Description: smithy_client_1.expectString(output.Description),
|
|
802
|
-
Metric: smithy_client_1.expectString(output.Metric),
|
|
803
|
-
Unit: smithy_client_1.expectString(output.Unit),
|
|
801
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
802
|
+
Metric: (0, smithy_client_1.expectString)(output.Metric),
|
|
803
|
+
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
804
804
|
};
|
|
805
805
|
};
|
|
806
806
|
const deserializeAws_json1_1ResponseResourceMetricKey = (output, context) => {
|
|
@@ -808,7 +808,7 @@ const deserializeAws_json1_1ResponseResourceMetricKey = (output, context) => {
|
|
|
808
808
|
Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
|
|
809
809
|
? deserializeAws_json1_1DimensionMap(output.Dimensions, context)
|
|
810
810
|
: undefined,
|
|
811
|
-
Metric: smithy_client_1.expectString(output.Metric),
|
|
811
|
+
Metric: (0, smithy_client_1.expectString)(output.Metric),
|
|
812
812
|
};
|
|
813
813
|
};
|
|
814
814
|
const deserializeAws_json1_1ResponseResourceMetricList = (output, context) => {
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
package/dist-es/PI.js
CHANGED
|
@@ -18,7 +18,7 @@ var PI = (function (_super) {
|
|
|
18
18
|
}
|
|
19
19
|
else if (typeof cb === "function") {
|
|
20
20
|
if (typeof optionsOrCb !== "object")
|
|
21
|
-
throw new Error("Expect http options but get "
|
|
21
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
22
22
|
this.send(command, optionsOrCb || {}, cb);
|
|
23
23
|
}
|
|
24
24
|
else {
|
|
@@ -32,7 +32,7 @@ var PI = (function (_super) {
|
|
|
32
32
|
}
|
|
33
33
|
else if (typeof cb === "function") {
|
|
34
34
|
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error("Expect http options but get "
|
|
35
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
36
36
|
this.send(command, optionsOrCb || {}, cb);
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
@@ -46,7 +46,7 @@ var PI = (function (_super) {
|
|
|
46
46
|
}
|
|
47
47
|
else if (typeof cb === "function") {
|
|
48
48
|
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error("Expect http options but get "
|
|
49
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
50
50
|
this.send(command, optionsOrCb || {}, cb);
|
|
51
51
|
}
|
|
52
52
|
else {
|
|
@@ -60,7 +60,7 @@ var PI = (function (_super) {
|
|
|
60
60
|
}
|
|
61
61
|
else if (typeof cb === "function") {
|
|
62
62
|
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error("Expect http options but get "
|
|
63
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
64
64
|
this.send(command, optionsOrCb || {}, cb);
|
|
65
65
|
}
|
|
66
66
|
else {
|
|
@@ -74,7 +74,7 @@ var PI = (function (_super) {
|
|
|
74
74
|
}
|
|
75
75
|
else if (typeof cb === "function") {
|
|
76
76
|
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error("Expect http options but get "
|
|
77
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
78
78
|
this.send(command, optionsOrCb || {}, cb);
|
|
79
79
|
}
|
|
80
80
|
else {
|
|
@@ -88,7 +88,7 @@ var PI = (function (_super) {
|
|
|
88
88
|
}
|
|
89
89
|
else if (typeof cb === "function") {
|
|
90
90
|
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error("Expect http options but get "
|
|
91
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
92
92
|
this.send(command, optionsOrCb || {}, cb);
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new DescribeDimensionKeysCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new DescribeDimensionKeysCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.describeDimensionKeys.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.describeDimensionKeys.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateDescribeDimensionKeys(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof PI)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof PIClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new GetResourceMetricsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetResourceMetricsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.getResourceMetrics.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.getResourceMetrics.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateGetResourceMetrics(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof PI)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof PIClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListAvailableResourceDimensionsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListAvailableResourceDimensionsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listAvailableResourceDimensions.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listAvailableResourceDimensions.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListAvailableResourceDimensions(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof PI)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof PIClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListAvailableResourceMetricsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListAvailableResourceMetricsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listAvailableResourceMetrics.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listAvailableResourceMetrics.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListAvailableResourceMetrics(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof PI)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof PIClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: PIClientConfig) => {
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
23
|
serviceId: string;
|
|
24
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
24
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
29
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
30
30
|
tls?: boolean | undefined;
|
|
31
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: PIClientConfig) => {
|
|
|
19
19
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
21
|
serviceId: string;
|
|
22
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
27
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
28
|
tls?: boolean | undefined;
|
|
29
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-pi",
|
|
3
3
|
"description": "AWS SDK for JavaScript Pi Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.55.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,47 +18,47 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
51
|
-
"tslib": "^2.3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.55.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.55.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.55.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.55.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.55.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.55.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.55.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.55.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.55.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.55.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.55.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.55.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.55.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.55.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.55.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.55.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.55.0",
|
|
39
|
+
"@aws-sdk/types": "3.55.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.55.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.55.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.55.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.55.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.55.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.55.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.55.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.55.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.55.0",
|
|
51
|
+
"tslib": "^2.3.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.55.0",
|
|
55
55
|
"@tsconfig/recommended": "1.0.1",
|
|
56
56
|
"@types/node": "^12.7.5",
|
|
57
57
|
"concurrently": "7.0.0",
|
|
58
58
|
"downlevel-dts": "0.7.0",
|
|
59
59
|
"rimraf": "3.0.2",
|
|
60
60
|
"typedoc": "0.19.2",
|
|
61
|
-
"typescript": "~4.
|
|
61
|
+
"typescript": "~4.6.2"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=12.0.0"
|