@aws-sdk/client-pi 3.721.0 → 3.723.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/dist-cjs/index.js CHANGED
@@ -159,7 +159,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
159
159
  }, "resolveRuntimeExtensions");
160
160
 
161
161
  // src/PIClient.ts
162
- var _PIClient = class _PIClient extends import_smithy_client.Client {
162
+ var PIClient = class extends import_smithy_client.Client {
163
+ static {
164
+ __name(this, "PIClient");
165
+ }
166
+ /**
167
+ * The resolved configuration of PIClient class. This is resolved and normalized from the {@link PIClientConfig | constructor configuration interface}.
168
+ */
169
+ config;
163
170
  constructor(...[configuration]) {
164
171
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
165
172
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -169,7 +176,7 @@ var _PIClient = class _PIClient extends import_smithy_client.Client {
169
176
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
170
177
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
171
178
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
172
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
179
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
173
180
  super(_config_8);
174
181
  this.config = _config_8;
175
182
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -197,8 +204,6 @@ var _PIClient = class _PIClient extends import_smithy_client.Client {
197
204
  super.destroy();
198
205
  }
199
206
  };
200
- __name(_PIClient, "PIClient");
201
- var PIClient = _PIClient;
202
207
 
203
208
  // src/PI.ts
204
209
 
@@ -218,7 +223,10 @@ var import_core2 = require("@aws-sdk/core");
218
223
 
219
224
  // src/models/PIServiceException.ts
220
225
 
221
- var _PIServiceException = class _PIServiceException extends import_smithy_client.ServiceException {
226
+ var PIServiceException = class _PIServiceException extends import_smithy_client.ServiceException {
227
+ static {
228
+ __name(this, "PIServiceException");
229
+ }
222
230
  /**
223
231
  * @internal
224
232
  */
@@ -227,8 +235,6 @@ var _PIServiceException = class _PIServiceException extends import_smithy_client
227
235
  Object.setPrototypeOf(this, _PIServiceException.prototype);
228
236
  }
229
237
  };
230
- __name(_PIServiceException, "PIServiceException");
231
- var PIServiceException = _PIServiceException;
232
238
 
233
239
  // src/models/models_0.ts
234
240
  var AcceptLanguage = {
@@ -257,7 +263,13 @@ var FineGrainedAction = {
257
263
  GET_DIMENSION_KEY_DETAILS: "GetDimensionKeyDetails",
258
264
  GET_RESOURCE_METRICS: "GetResourceMetrics"
259
265
  };
260
- var _InternalServiceError = class _InternalServiceError extends PIServiceException {
266
+ var InternalServiceError = class _InternalServiceError extends PIServiceException {
267
+ static {
268
+ __name(this, "InternalServiceError");
269
+ }
270
+ name = "InternalServiceError";
271
+ $fault = "server";
272
+ Message;
261
273
  /**
262
274
  * @internal
263
275
  */
@@ -267,15 +279,17 @@ var _InternalServiceError = class _InternalServiceError extends PIServiceExcepti
267
279
  $fault: "server",
268
280
  ...opts
269
281
  });
270
- this.name = "InternalServiceError";
271
- this.$fault = "server";
272
282
  Object.setPrototypeOf(this, _InternalServiceError.prototype);
273
283
  this.Message = opts.Message;
274
284
  }
275
285
  };
276
- __name(_InternalServiceError, "InternalServiceError");
277
- var InternalServiceError = _InternalServiceError;
278
- var _InvalidArgumentException = class _InvalidArgumentException extends PIServiceException {
286
+ var InvalidArgumentException = class _InvalidArgumentException extends PIServiceException {
287
+ static {
288
+ __name(this, "InvalidArgumentException");
289
+ }
290
+ name = "InvalidArgumentException";
291
+ $fault = "client";
292
+ Message;
279
293
  /**
280
294
  * @internal
281
295
  */
@@ -285,15 +299,17 @@ var _InvalidArgumentException = class _InvalidArgumentException extends PIServic
285
299
  $fault: "client",
286
300
  ...opts
287
301
  });
288
- this.name = "InvalidArgumentException";
289
- this.$fault = "client";
290
302
  Object.setPrototypeOf(this, _InvalidArgumentException.prototype);
291
303
  this.Message = opts.Message;
292
304
  }
293
305
  };
294
- __name(_InvalidArgumentException, "InvalidArgumentException");
295
- var InvalidArgumentException = _InvalidArgumentException;
296
- var _NotAuthorizedException = class _NotAuthorizedException extends PIServiceException {
306
+ var NotAuthorizedException = class _NotAuthorizedException extends PIServiceException {
307
+ static {
308
+ __name(this, "NotAuthorizedException");
309
+ }
310
+ name = "NotAuthorizedException";
311
+ $fault = "client";
312
+ Message;
297
313
  /**
298
314
  * @internal
299
315
  */
@@ -303,14 +319,10 @@ var _NotAuthorizedException = class _NotAuthorizedException extends PIServiceExc
303
319
  $fault: "client",
304
320
  ...opts
305
321
  });
306
- this.name = "NotAuthorizedException";
307
- this.$fault = "client";
308
322
  Object.setPrototypeOf(this, _NotAuthorizedException.prototype);
309
323
  this.Message = opts.Message;
310
324
  }
311
325
  };
312
- __name(_NotAuthorizedException, "NotAuthorizedException");
313
- var NotAuthorizedException = _NotAuthorizedException;
314
326
  var DetailStatus = {
315
327
  AVAILABLE: "AVAILABLE",
316
328
  PROCESSING: "PROCESSING",
@@ -877,183 +889,196 @@ function sharedHeaders(operation) {
877
889
  __name(sharedHeaders, "sharedHeaders");
878
890
 
879
891
  // src/commands/CreatePerformanceAnalysisReportCommand.ts
880
- var _CreatePerformanceAnalysisReportCommand = class _CreatePerformanceAnalysisReportCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
892
+ var CreatePerformanceAnalysisReportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
881
893
  return [
882
894
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
883
895
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
884
896
  ];
885
897
  }).s("PerformanceInsightsv20180227", "CreatePerformanceAnalysisReport", {}).n("PIClient", "CreatePerformanceAnalysisReportCommand").f(void 0, void 0).ser(se_CreatePerformanceAnalysisReportCommand).de(de_CreatePerformanceAnalysisReportCommand).build() {
898
+ static {
899
+ __name(this, "CreatePerformanceAnalysisReportCommand");
900
+ }
886
901
  };
887
- __name(_CreatePerformanceAnalysisReportCommand, "CreatePerformanceAnalysisReportCommand");
888
- var CreatePerformanceAnalysisReportCommand = _CreatePerformanceAnalysisReportCommand;
889
902
 
890
903
  // src/commands/DeletePerformanceAnalysisReportCommand.ts
891
904
 
892
905
 
893
906
 
894
- var _DeletePerformanceAnalysisReportCommand = class _DeletePerformanceAnalysisReportCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
907
+ var DeletePerformanceAnalysisReportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
895
908
  return [
896
909
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
897
910
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
898
911
  ];
899
912
  }).s("PerformanceInsightsv20180227", "DeletePerformanceAnalysisReport", {}).n("PIClient", "DeletePerformanceAnalysisReportCommand").f(void 0, void 0).ser(se_DeletePerformanceAnalysisReportCommand).de(de_DeletePerformanceAnalysisReportCommand).build() {
913
+ static {
914
+ __name(this, "DeletePerformanceAnalysisReportCommand");
915
+ }
900
916
  };
901
- __name(_DeletePerformanceAnalysisReportCommand, "DeletePerformanceAnalysisReportCommand");
902
- var DeletePerformanceAnalysisReportCommand = _DeletePerformanceAnalysisReportCommand;
903
917
 
904
918
  // src/commands/DescribeDimensionKeysCommand.ts
905
919
 
906
920
 
907
921
 
908
- var _DescribeDimensionKeysCommand = class _DescribeDimensionKeysCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
922
+ var DescribeDimensionKeysCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
909
923
  return [
910
924
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
911
925
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
912
926
  ];
913
927
  }).s("PerformanceInsightsv20180227", "DescribeDimensionKeys", {}).n("PIClient", "DescribeDimensionKeysCommand").f(void 0, void 0).ser(se_DescribeDimensionKeysCommand).de(de_DescribeDimensionKeysCommand).build() {
928
+ static {
929
+ __name(this, "DescribeDimensionKeysCommand");
930
+ }
914
931
  };
915
- __name(_DescribeDimensionKeysCommand, "DescribeDimensionKeysCommand");
916
- var DescribeDimensionKeysCommand = _DescribeDimensionKeysCommand;
917
932
 
918
933
  // src/commands/GetDimensionKeyDetailsCommand.ts
919
934
 
920
935
 
921
936
 
922
- var _GetDimensionKeyDetailsCommand = class _GetDimensionKeyDetailsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
937
+ var GetDimensionKeyDetailsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
923
938
  return [
924
939
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
925
940
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
926
941
  ];
927
942
  }).s("PerformanceInsightsv20180227", "GetDimensionKeyDetails", {}).n("PIClient", "GetDimensionKeyDetailsCommand").f(void 0, void 0).ser(se_GetDimensionKeyDetailsCommand).de(de_GetDimensionKeyDetailsCommand).build() {
943
+ static {
944
+ __name(this, "GetDimensionKeyDetailsCommand");
945
+ }
928
946
  };
929
- __name(_GetDimensionKeyDetailsCommand, "GetDimensionKeyDetailsCommand");
930
- var GetDimensionKeyDetailsCommand = _GetDimensionKeyDetailsCommand;
931
947
 
932
948
  // src/commands/GetPerformanceAnalysisReportCommand.ts
933
949
 
934
950
 
935
951
 
936
- var _GetPerformanceAnalysisReportCommand = class _GetPerformanceAnalysisReportCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
952
+ var GetPerformanceAnalysisReportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
937
953
  return [
938
954
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
939
955
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
940
956
  ];
941
957
  }).s("PerformanceInsightsv20180227", "GetPerformanceAnalysisReport", {}).n("PIClient", "GetPerformanceAnalysisReportCommand").f(void 0, GetPerformanceAnalysisReportResponseFilterSensitiveLog).ser(se_GetPerformanceAnalysisReportCommand).de(de_GetPerformanceAnalysisReportCommand).build() {
958
+ static {
959
+ __name(this, "GetPerformanceAnalysisReportCommand");
960
+ }
942
961
  };
943
- __name(_GetPerformanceAnalysisReportCommand, "GetPerformanceAnalysisReportCommand");
944
- var GetPerformanceAnalysisReportCommand = _GetPerformanceAnalysisReportCommand;
945
962
 
946
963
  // src/commands/GetResourceMetadataCommand.ts
947
964
 
948
965
 
949
966
 
950
- var _GetResourceMetadataCommand = class _GetResourceMetadataCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
967
+ var GetResourceMetadataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
951
968
  return [
952
969
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
953
970
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
954
971
  ];
955
972
  }).s("PerformanceInsightsv20180227", "GetResourceMetadata", {}).n("PIClient", "GetResourceMetadataCommand").f(void 0, void 0).ser(se_GetResourceMetadataCommand).de(de_GetResourceMetadataCommand).build() {
973
+ static {
974
+ __name(this, "GetResourceMetadataCommand");
975
+ }
956
976
  };
957
- __name(_GetResourceMetadataCommand, "GetResourceMetadataCommand");
958
- var GetResourceMetadataCommand = _GetResourceMetadataCommand;
959
977
 
960
978
  // src/commands/GetResourceMetricsCommand.ts
961
979
 
962
980
 
963
981
 
964
- var _GetResourceMetricsCommand = class _GetResourceMetricsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
982
+ var GetResourceMetricsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
965
983
  return [
966
984
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
967
985
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
968
986
  ];
969
987
  }).s("PerformanceInsightsv20180227", "GetResourceMetrics", {}).n("PIClient", "GetResourceMetricsCommand").f(void 0, void 0).ser(se_GetResourceMetricsCommand).de(de_GetResourceMetricsCommand).build() {
988
+ static {
989
+ __name(this, "GetResourceMetricsCommand");
990
+ }
970
991
  };
971
- __name(_GetResourceMetricsCommand, "GetResourceMetricsCommand");
972
- var GetResourceMetricsCommand = _GetResourceMetricsCommand;
973
992
 
974
993
  // src/commands/ListAvailableResourceDimensionsCommand.ts
975
994
 
976
995
 
977
996
 
978
- var _ListAvailableResourceDimensionsCommand = class _ListAvailableResourceDimensionsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
997
+ var ListAvailableResourceDimensionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
979
998
  return [
980
999
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
981
1000
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
982
1001
  ];
983
1002
  }).s("PerformanceInsightsv20180227", "ListAvailableResourceDimensions", {}).n("PIClient", "ListAvailableResourceDimensionsCommand").f(void 0, void 0).ser(se_ListAvailableResourceDimensionsCommand).de(de_ListAvailableResourceDimensionsCommand).build() {
1003
+ static {
1004
+ __name(this, "ListAvailableResourceDimensionsCommand");
1005
+ }
984
1006
  };
985
- __name(_ListAvailableResourceDimensionsCommand, "ListAvailableResourceDimensionsCommand");
986
- var ListAvailableResourceDimensionsCommand = _ListAvailableResourceDimensionsCommand;
987
1007
 
988
1008
  // src/commands/ListAvailableResourceMetricsCommand.ts
989
1009
 
990
1010
 
991
1011
 
992
- var _ListAvailableResourceMetricsCommand = class _ListAvailableResourceMetricsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1012
+ var ListAvailableResourceMetricsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
993
1013
  return [
994
1014
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
995
1015
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
996
1016
  ];
997
1017
  }).s("PerformanceInsightsv20180227", "ListAvailableResourceMetrics", {}).n("PIClient", "ListAvailableResourceMetricsCommand").f(void 0, void 0).ser(se_ListAvailableResourceMetricsCommand).de(de_ListAvailableResourceMetricsCommand).build() {
1018
+ static {
1019
+ __name(this, "ListAvailableResourceMetricsCommand");
1020
+ }
998
1021
  };
999
- __name(_ListAvailableResourceMetricsCommand, "ListAvailableResourceMetricsCommand");
1000
- var ListAvailableResourceMetricsCommand = _ListAvailableResourceMetricsCommand;
1001
1022
 
1002
1023
  // src/commands/ListPerformanceAnalysisReportsCommand.ts
1003
1024
 
1004
1025
 
1005
1026
 
1006
- var _ListPerformanceAnalysisReportsCommand = class _ListPerformanceAnalysisReportsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1027
+ var ListPerformanceAnalysisReportsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1007
1028
  return [
1008
1029
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1009
1030
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1010
1031
  ];
1011
1032
  }).s("PerformanceInsightsv20180227", "ListPerformanceAnalysisReports", {}).n("PIClient", "ListPerformanceAnalysisReportsCommand").f(void 0, void 0).ser(se_ListPerformanceAnalysisReportsCommand).de(de_ListPerformanceAnalysisReportsCommand).build() {
1033
+ static {
1034
+ __name(this, "ListPerformanceAnalysisReportsCommand");
1035
+ }
1012
1036
  };
1013
- __name(_ListPerformanceAnalysisReportsCommand, "ListPerformanceAnalysisReportsCommand");
1014
- var ListPerformanceAnalysisReportsCommand = _ListPerformanceAnalysisReportsCommand;
1015
1037
 
1016
1038
  // src/commands/ListTagsForResourceCommand.ts
1017
1039
 
1018
1040
 
1019
1041
 
1020
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1042
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1021
1043
  return [
1022
1044
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1023
1045
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1024
1046
  ];
1025
1047
  }).s("PerformanceInsightsv20180227", "ListTagsForResource", {}).n("PIClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1048
+ static {
1049
+ __name(this, "ListTagsForResourceCommand");
1050
+ }
1026
1051
  };
1027
- __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1028
- var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1029
1052
 
1030
1053
  // src/commands/TagResourceCommand.ts
1031
1054
 
1032
1055
 
1033
1056
 
1034
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1057
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1035
1058
  return [
1036
1059
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1037
1060
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1038
1061
  ];
1039
1062
  }).s("PerformanceInsightsv20180227", "TagResource", {}).n("PIClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1063
+ static {
1064
+ __name(this, "TagResourceCommand");
1065
+ }
1040
1066
  };
1041
- __name(_TagResourceCommand, "TagResourceCommand");
1042
- var TagResourceCommand = _TagResourceCommand;
1043
1067
 
1044
1068
  // src/commands/UntagResourceCommand.ts
1045
1069
 
1046
1070
 
1047
1071
 
1048
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1072
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1049
1073
  return [
1050
1074
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1051
1075
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1052
1076
  ];
1053
1077
  }).s("PerformanceInsightsv20180227", "UntagResource", {}).n("PIClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1078
+ static {
1079
+ __name(this, "UntagResourceCommand");
1080
+ }
1054
1081
  };
1055
- __name(_UntagResourceCommand, "UntagResourceCommand");
1056
- var UntagResourceCommand = _UntagResourceCommand;
1057
1082
 
1058
1083
  // src/PI.ts
1059
1084
  var commands = {
@@ -1071,10 +1096,11 @@ var commands = {
1071
1096
  TagResourceCommand,
1072
1097
  UntagResourceCommand
1073
1098
  };
1074
- var _PI = class _PI extends PIClient {
1099
+ var PI = class extends PIClient {
1100
+ static {
1101
+ __name(this, "PI");
1102
+ }
1075
1103
  };
1076
- __name(_PI, "PI");
1077
- var PI = _PI;
1078
1104
  (0, import_smithy_client.createAggregatedClient)(commands, PI);
1079
1105
 
1080
1106
  // src/pagination/DescribeDimensionKeysPaginator.ts
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class PIClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -27,40 +27,43 @@ export const FineGrainedAction = {
27
27
  GET_RESOURCE_METRICS: "GetResourceMetrics",
28
28
  };
29
29
  export class InternalServiceError extends __BaseException {
30
+ name = "InternalServiceError";
31
+ $fault = "server";
32
+ Message;
30
33
  constructor(opts) {
31
34
  super({
32
35
  name: "InternalServiceError",
33
36
  $fault: "server",
34
37
  ...opts,
35
38
  });
36
- this.name = "InternalServiceError";
37
- this.$fault = "server";
38
39
  Object.setPrototypeOf(this, InternalServiceError.prototype);
39
40
  this.Message = opts.Message;
40
41
  }
41
42
  }
42
43
  export class InvalidArgumentException extends __BaseException {
44
+ name = "InvalidArgumentException";
45
+ $fault = "client";
46
+ Message;
43
47
  constructor(opts) {
44
48
  super({
45
49
  name: "InvalidArgumentException",
46
50
  $fault: "client",
47
51
  ...opts,
48
52
  });
49
- this.name = "InvalidArgumentException";
50
- this.$fault = "client";
51
53
  Object.setPrototypeOf(this, InvalidArgumentException.prototype);
52
54
  this.Message = opts.Message;
53
55
  }
54
56
  }
55
57
  export class NotAuthorizedException extends __BaseException {
58
+ name = "NotAuthorizedException";
59
+ $fault = "client";
60
+ Message;
56
61
  constructor(opts) {
57
62
  super({
58
63
  name: "NotAuthorizedException",
59
64
  $fault: "client",
60
65
  ...opts,
61
66
  });
62
- this.name = "NotAuthorizedException";
63
- this.$fault = "client";
64
67
  Object.setPrototypeOf(this, NotAuthorizedException.prototype);
65
68
  this.Message = opts.Message;
66
69
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: PIClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: PIClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: PIClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: PIClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: PIClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: PIClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: PIClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: PIClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
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.721.0",
4
+ "version": "3.723.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-pi",
@@ -20,56 +20,56 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.721.0",
24
- "@aws-sdk/client-sts": "3.721.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.721.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.721.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.721.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-utf8": "^4.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@tsconfig/node16": "16.1.3",
65
- "@types/node": "^16.18.96",
64
+ "@tsconfig/node18": "18.2.4",
65
+ "@types/node": "^18.19.69",
66
66
  "concurrently": "7.0.0",
67
67
  "downlevel-dts": "0.10.1",
68
68
  "rimraf": "3.0.2",
69
- "typescript": "~4.9.5"
69
+ "typescript": "~5.2.2"
70
70
  },
71
71
  "engines": {
72
- "node": ">=16.0.0"
72
+ "node": ">=18.0.0"
73
73
  },
74
74
  "typesVersions": {
75
75
  "<4.0": {