@aws-sdk/client-pi 3.1076.0 → 3.1078.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.
Files changed (62) hide show
  1. package/dist-cjs/index.js +25 -145
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreatePerformanceAnalysisReportCommand.js +2 -14
  4. package/dist-es/commands/DeletePerformanceAnalysisReportCommand.js +2 -14
  5. package/dist-es/commands/DescribeDimensionKeysCommand.js +2 -14
  6. package/dist-es/commands/GetDimensionKeyDetailsCommand.js +2 -14
  7. package/dist-es/commands/GetPerformanceAnalysisReportCommand.js +2 -14
  8. package/dist-es/commands/GetResourceMetadataCommand.js +2 -14
  9. package/dist-es/commands/GetResourceMetricsCommand.js +2 -14
  10. package/dist-es/commands/ListAvailableResourceDimensionsCommand.js +2 -14
  11. package/dist-es/commands/ListAvailableResourceMetricsCommand.js +2 -14
  12. package/dist-es/commands/ListPerformanceAnalysisReportRecommendationsCommand.js +2 -14
  13. package/dist-es/commands/ListPerformanceAnalysisReportsCommand.js +2 -14
  14. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  15. package/dist-es/commands/TagResourceCommand.js +2 -14
  16. package/dist-es/commands/UntagResourceCommand.js +2 -14
  17. package/dist-es/index.js +1 -0
  18. package/dist-es/runtimeConfig.browser.js +0 -2
  19. package/dist-es/runtimeConfig.js +1 -2
  20. package/dist-es/runtimeConfig.native.js +0 -2
  21. package/dist-es/runtimeConfig.shared.js +2 -0
  22. package/dist-types/commandBuilder.d.ts +18 -0
  23. package/dist-types/commands/CreatePerformanceAnalysisReportCommand.d.ts +3 -8
  24. package/dist-types/commands/DeletePerformanceAnalysisReportCommand.d.ts +3 -8
  25. package/dist-types/commands/DescribeDimensionKeysCommand.d.ts +3 -8
  26. package/dist-types/commands/GetDimensionKeyDetailsCommand.d.ts +3 -8
  27. package/dist-types/commands/GetPerformanceAnalysisReportCommand.d.ts +3 -8
  28. package/dist-types/commands/GetResourceMetadataCommand.d.ts +3 -8
  29. package/dist-types/commands/GetResourceMetricsCommand.d.ts +3 -8
  30. package/dist-types/commands/ListAvailableResourceDimensionsCommand.d.ts +3 -8
  31. package/dist-types/commands/ListAvailableResourceMetricsCommand.d.ts +3 -8
  32. package/dist-types/commands/ListPerformanceAnalysisReportRecommendationsCommand.d.ts +3 -8
  33. package/dist-types/commands/ListPerformanceAnalysisReportsCommand.d.ts +3 -8
  34. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  35. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  36. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  37. package/dist-types/index.d.ts +1 -0
  38. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  39. package/dist-types/runtimeConfig.d.ts +1 -1
  40. package/dist-types/runtimeConfig.native.d.ts +1 -1
  41. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  42. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  43. package/dist-types/ts3.4/commands/CreatePerformanceAnalysisReportCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/DeletePerformanceAnalysisReportCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/DescribeDimensionKeysCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/GetDimensionKeyDetailsCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/GetPerformanceAnalysisReportCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/GetResourceMetadataCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/GetResourceMetricsCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/ListAvailableResourceDimensionsCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/ListAvailableResourceMetricsCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/ListPerformanceAnalysisReportRecommendationsCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/ListPerformanceAnalysisReportsCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/index.d.ts +1 -0
  58. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  59. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  60. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  61. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  62. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultPIHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -716,6 +718,7 @@ const getRuntimeConfig$1 = (config) => {
716
718
  serviceTarget: "PerformanceInsightsv20180227",
717
719
  },
718
720
  serviceId: config?.serviceId ?? "PI",
721
+ sha256: config?.sha256 ?? Sha256,
719
722
  urlParser: config?.urlParser ?? parseUrl,
720
723
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
721
724
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -749,7 +752,6 @@ const getRuntimeConfig = (config) => {
749
752
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
750
753
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
751
754
  }, config),
752
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
753
755
  streamCollector: config?.streamCollector ?? streamCollector,
754
756
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
755
757
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -837,172 +839,50 @@ class PIClient extends Client {
837
839
  }
838
840
  }
839
841
 
840
- class CreatePerformanceAnalysisReportCommand extends Command
841
- .classBuilder()
842
- .ep(commonParams)
843
- .m(function (Command, cs, config, o) {
844
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
845
- })
846
- .s("PerformanceInsightsv20180227", "CreatePerformanceAnalysisReport", {})
847
- .n("PIClient", "CreatePerformanceAnalysisReportCommand")
848
- .sc(CreatePerformanceAnalysisReport$)
849
- .build() {
842
+ const command = makeBuilder(commonParams, "PerformanceInsightsv20180227", "PIClient", getEndpointPlugin);
843
+ const _ep0 = {};
844
+ const _mw0 = (Command, cs, config, o) => [];
845
+
846
+ class CreatePerformanceAnalysisReportCommand extends command(_ep0, _mw0, "CreatePerformanceAnalysisReport", CreatePerformanceAnalysisReport$) {
850
847
  }
851
848
 
852
- class DeletePerformanceAnalysisReportCommand extends Command
853
- .classBuilder()
854
- .ep(commonParams)
855
- .m(function (Command, cs, config, o) {
856
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
857
- })
858
- .s("PerformanceInsightsv20180227", "DeletePerformanceAnalysisReport", {})
859
- .n("PIClient", "DeletePerformanceAnalysisReportCommand")
860
- .sc(DeletePerformanceAnalysisReport$)
861
- .build() {
849
+ class DeletePerformanceAnalysisReportCommand extends command(_ep0, _mw0, "DeletePerformanceAnalysisReport", DeletePerformanceAnalysisReport$) {
862
850
  }
863
851
 
864
- class DescribeDimensionKeysCommand extends Command
865
- .classBuilder()
866
- .ep(commonParams)
867
- .m(function (Command, cs, config, o) {
868
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
869
- })
870
- .s("PerformanceInsightsv20180227", "DescribeDimensionKeys", {})
871
- .n("PIClient", "DescribeDimensionKeysCommand")
872
- .sc(DescribeDimensionKeys$)
873
- .build() {
852
+ class DescribeDimensionKeysCommand extends command(_ep0, _mw0, "DescribeDimensionKeys", DescribeDimensionKeys$) {
874
853
  }
875
854
 
876
- class GetDimensionKeyDetailsCommand extends Command
877
- .classBuilder()
878
- .ep(commonParams)
879
- .m(function (Command, cs, config, o) {
880
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
881
- })
882
- .s("PerformanceInsightsv20180227", "GetDimensionKeyDetails", {})
883
- .n("PIClient", "GetDimensionKeyDetailsCommand")
884
- .sc(GetDimensionKeyDetails$)
885
- .build() {
855
+ class GetDimensionKeyDetailsCommand extends command(_ep0, _mw0, "GetDimensionKeyDetails", GetDimensionKeyDetails$) {
886
856
  }
887
857
 
888
- class GetPerformanceAnalysisReportCommand extends Command
889
- .classBuilder()
890
- .ep(commonParams)
891
- .m(function (Command, cs, config, o) {
892
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
893
- })
894
- .s("PerformanceInsightsv20180227", "GetPerformanceAnalysisReport", {})
895
- .n("PIClient", "GetPerformanceAnalysisReportCommand")
896
- .sc(GetPerformanceAnalysisReport$)
897
- .build() {
858
+ class GetPerformanceAnalysisReportCommand extends command(_ep0, _mw0, "GetPerformanceAnalysisReport", GetPerformanceAnalysisReport$) {
898
859
  }
899
860
 
900
- class GetResourceMetadataCommand extends Command
901
- .classBuilder()
902
- .ep(commonParams)
903
- .m(function (Command, cs, config, o) {
904
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
905
- })
906
- .s("PerformanceInsightsv20180227", "GetResourceMetadata", {})
907
- .n("PIClient", "GetResourceMetadataCommand")
908
- .sc(GetResourceMetadata$)
909
- .build() {
861
+ class GetResourceMetadataCommand extends command(_ep0, _mw0, "GetResourceMetadata", GetResourceMetadata$) {
910
862
  }
911
863
 
912
- class GetResourceMetricsCommand extends Command
913
- .classBuilder()
914
- .ep(commonParams)
915
- .m(function (Command, cs, config, o) {
916
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
917
- })
918
- .s("PerformanceInsightsv20180227", "GetResourceMetrics", {})
919
- .n("PIClient", "GetResourceMetricsCommand")
920
- .sc(GetResourceMetrics$)
921
- .build() {
864
+ class GetResourceMetricsCommand extends command(_ep0, _mw0, "GetResourceMetrics", GetResourceMetrics$) {
922
865
  }
923
866
 
924
- class ListAvailableResourceDimensionsCommand extends Command
925
- .classBuilder()
926
- .ep(commonParams)
927
- .m(function (Command, cs, config, o) {
928
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
929
- })
930
- .s("PerformanceInsightsv20180227", "ListAvailableResourceDimensions", {})
931
- .n("PIClient", "ListAvailableResourceDimensionsCommand")
932
- .sc(ListAvailableResourceDimensions$)
933
- .build() {
867
+ class ListAvailableResourceDimensionsCommand extends command(_ep0, _mw0, "ListAvailableResourceDimensions", ListAvailableResourceDimensions$) {
934
868
  }
935
869
 
936
- class ListAvailableResourceMetricsCommand extends Command
937
- .classBuilder()
938
- .ep(commonParams)
939
- .m(function (Command, cs, config, o) {
940
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
941
- })
942
- .s("PerformanceInsightsv20180227", "ListAvailableResourceMetrics", {})
943
- .n("PIClient", "ListAvailableResourceMetricsCommand")
944
- .sc(ListAvailableResourceMetrics$)
945
- .build() {
870
+ class ListAvailableResourceMetricsCommand extends command(_ep0, _mw0, "ListAvailableResourceMetrics", ListAvailableResourceMetrics$) {
946
871
  }
947
872
 
948
- class ListPerformanceAnalysisReportRecommendationsCommand extends Command
949
- .classBuilder()
950
- .ep(commonParams)
951
- .m(function (Command, cs, config, o) {
952
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
953
- })
954
- .s("PerformanceInsightsv20180227", "ListPerformanceAnalysisReportRecommendations", {})
955
- .n("PIClient", "ListPerformanceAnalysisReportRecommendationsCommand")
956
- .sc(ListPerformanceAnalysisReportRecommendations$)
957
- .build() {
873
+ class ListPerformanceAnalysisReportRecommendationsCommand extends command(_ep0, _mw0, "ListPerformanceAnalysisReportRecommendations", ListPerformanceAnalysisReportRecommendations$) {
958
874
  }
959
875
 
960
- class ListPerformanceAnalysisReportsCommand extends Command
961
- .classBuilder()
962
- .ep(commonParams)
963
- .m(function (Command, cs, config, o) {
964
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
965
- })
966
- .s("PerformanceInsightsv20180227", "ListPerformanceAnalysisReports", {})
967
- .n("PIClient", "ListPerformanceAnalysisReportsCommand")
968
- .sc(ListPerformanceAnalysisReports$)
969
- .build() {
876
+ class ListPerformanceAnalysisReportsCommand extends command(_ep0, _mw0, "ListPerformanceAnalysisReports", ListPerformanceAnalysisReports$) {
970
877
  }
971
878
 
972
- class ListTagsForResourceCommand extends Command
973
- .classBuilder()
974
- .ep(commonParams)
975
- .m(function (Command, cs, config, o) {
976
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
977
- })
978
- .s("PerformanceInsightsv20180227", "ListTagsForResource", {})
979
- .n("PIClient", "ListTagsForResourceCommand")
980
- .sc(ListTagsForResource$)
981
- .build() {
879
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
982
880
  }
983
881
 
984
- class TagResourceCommand extends Command
985
- .classBuilder()
986
- .ep(commonParams)
987
- .m(function (Command, cs, config, o) {
988
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
989
- })
990
- .s("PerformanceInsightsv20180227", "TagResource", {})
991
- .n("PIClient", "TagResourceCommand")
992
- .sc(TagResource$)
993
- .build() {
882
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
994
883
  }
995
884
 
996
- class UntagResourceCommand extends Command
997
- .classBuilder()
998
- .ep(commonParams)
999
- .m(function (Command, cs, config, o) {
1000
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1001
- })
1002
- .s("PerformanceInsightsv20180227", "UntagResource", {})
1003
- .n("PIClient", "UntagResourceCommand")
1004
- .sc(UntagResource$)
1005
- .build() {
885
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1006
886
  }
1007
887
 
1008
888
  const paginateDescribeDimensionKeys = createPaginator(PIClient, DescribeDimensionKeysCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "PerformanceInsightsv20180227", "PIClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreatePerformanceAnalysisReport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreatePerformanceAnalysisReportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "CreatePerformanceAnalysisReport", {})
13
- .n("PIClient", "CreatePerformanceAnalysisReportCommand")
14
- .sc(CreatePerformanceAnalysisReport$)
15
- .build() {
3
+ export class CreatePerformanceAnalysisReportCommand extends command(_ep0, _mw0, "CreatePerformanceAnalysisReport", CreatePerformanceAnalysisReport$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeletePerformanceAnalysisReport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeletePerformanceAnalysisReportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "DeletePerformanceAnalysisReport", {})
13
- .n("PIClient", "DeletePerformanceAnalysisReportCommand")
14
- .sc(DeletePerformanceAnalysisReport$)
15
- .build() {
3
+ export class DeletePerformanceAnalysisReportCommand extends command(_ep0, _mw0, "DeletePerformanceAnalysisReport", DeletePerformanceAnalysisReport$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeDimensionKeys$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeDimensionKeysCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "DescribeDimensionKeys", {})
13
- .n("PIClient", "DescribeDimensionKeysCommand")
14
- .sc(DescribeDimensionKeys$)
15
- .build() {
3
+ export class DescribeDimensionKeysCommand extends command(_ep0, _mw0, "DescribeDimensionKeys", DescribeDimensionKeys$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetDimensionKeyDetails$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetDimensionKeyDetailsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "GetDimensionKeyDetails", {})
13
- .n("PIClient", "GetDimensionKeyDetailsCommand")
14
- .sc(GetDimensionKeyDetails$)
15
- .build() {
3
+ export class GetDimensionKeyDetailsCommand extends command(_ep0, _mw0, "GetDimensionKeyDetails", GetDimensionKeyDetails$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetPerformanceAnalysisReport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetPerformanceAnalysisReportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "GetPerformanceAnalysisReport", {})
13
- .n("PIClient", "GetPerformanceAnalysisReportCommand")
14
- .sc(GetPerformanceAnalysisReport$)
15
- .build() {
3
+ export class GetPerformanceAnalysisReportCommand extends command(_ep0, _mw0, "GetPerformanceAnalysisReport", GetPerformanceAnalysisReport$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetResourceMetadata$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetResourceMetadataCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "GetResourceMetadata", {})
13
- .n("PIClient", "GetResourceMetadataCommand")
14
- .sc(GetResourceMetadata$)
15
- .build() {
3
+ export class GetResourceMetadataCommand extends command(_ep0, _mw0, "GetResourceMetadata", GetResourceMetadata$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetResourceMetrics$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetResourceMetricsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "GetResourceMetrics", {})
13
- .n("PIClient", "GetResourceMetricsCommand")
14
- .sc(GetResourceMetrics$)
15
- .build() {
3
+ export class GetResourceMetricsCommand extends command(_ep0, _mw0, "GetResourceMetrics", GetResourceMetrics$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListAvailableResourceDimensions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListAvailableResourceDimensionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "ListAvailableResourceDimensions", {})
13
- .n("PIClient", "ListAvailableResourceDimensionsCommand")
14
- .sc(ListAvailableResourceDimensions$)
15
- .build() {
3
+ export class ListAvailableResourceDimensionsCommand extends command(_ep0, _mw0, "ListAvailableResourceDimensions", ListAvailableResourceDimensions$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListAvailableResourceMetrics$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListAvailableResourceMetricsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "ListAvailableResourceMetrics", {})
13
- .n("PIClient", "ListAvailableResourceMetricsCommand")
14
- .sc(ListAvailableResourceMetrics$)
15
- .build() {
3
+ export class ListAvailableResourceMetricsCommand extends command(_ep0, _mw0, "ListAvailableResourceMetrics", ListAvailableResourceMetrics$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListPerformanceAnalysisReportRecommendations$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListPerformanceAnalysisReportRecommendationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "ListPerformanceAnalysisReportRecommendations", {})
13
- .n("PIClient", "ListPerformanceAnalysisReportRecommendationsCommand")
14
- .sc(ListPerformanceAnalysisReportRecommendations$)
15
- .build() {
3
+ export class ListPerformanceAnalysisReportRecommendationsCommand extends command(_ep0, _mw0, "ListPerformanceAnalysisReportRecommendations", ListPerformanceAnalysisReportRecommendations$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListPerformanceAnalysisReports$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListPerformanceAnalysisReportsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "ListPerformanceAnalysisReports", {})
13
- .n("PIClient", "ListPerformanceAnalysisReportsCommand")
14
- .sc(ListPerformanceAnalysisReports$)
15
- .build() {
3
+ export class ListPerformanceAnalysisReportsCommand extends command(_ep0, _mw0, "ListPerformanceAnalysisReports", ListPerformanceAnalysisReports$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "ListTagsForResource", {})
13
- .n("PIClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "TagResource", {})
13
- .n("PIClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PerformanceInsightsv20180227", "UntagResource", {})
13
- .n("PIClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./PIClient";
2
2
  export * from "./PI";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -32,6 +33,7 @@ export const getRuntimeConfig = (config) => {
32
33
  serviceTarget: "PerformanceInsightsv20180227",
33
34
  },
34
35
  serviceId: config?.serviceId ?? "PI",
36
+ sha256: config?.sha256 ?? Sha256,
35
37
  urlParser: config?.urlParser ?? parseUrl,
36
38
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
37
39
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./PIClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];