@aws-sdk/client-pi 3.1077.0 → 3.1079.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 (50) hide show
  1. package/dist-cjs/index.js +22 -143
  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-types/commandBuilder.d.ts +18 -0
  19. package/dist-types/commands/CreatePerformanceAnalysisReportCommand.d.ts +3 -8
  20. package/dist-types/commands/DeletePerformanceAnalysisReportCommand.d.ts +3 -8
  21. package/dist-types/commands/DescribeDimensionKeysCommand.d.ts +3 -8
  22. package/dist-types/commands/GetDimensionKeyDetailsCommand.d.ts +3 -8
  23. package/dist-types/commands/GetPerformanceAnalysisReportCommand.d.ts +3 -8
  24. package/dist-types/commands/GetResourceMetadataCommand.d.ts +3 -8
  25. package/dist-types/commands/GetResourceMetricsCommand.d.ts +3 -8
  26. package/dist-types/commands/ListAvailableResourceDimensionsCommand.d.ts +3 -8
  27. package/dist-types/commands/ListAvailableResourceMetricsCommand.d.ts +3 -8
  28. package/dist-types/commands/ListPerformanceAnalysisReportRecommendationsCommand.d.ts +3 -8
  29. package/dist-types/commands/ListPerformanceAnalysisReportsCommand.d.ts +3 -8
  30. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  31. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  32. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  33. package/dist-types/index.d.ts +1 -0
  34. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  35. package/dist-types/ts3.4/commands/CreatePerformanceAnalysisReportCommand.d.ts +7 -16
  36. package/dist-types/ts3.4/commands/DeletePerformanceAnalysisReportCommand.d.ts +7 -16
  37. package/dist-types/ts3.4/commands/DescribeDimensionKeysCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/GetDimensionKeyDetailsCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/GetPerformanceAnalysisReportCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/GetResourceMetadataCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/GetResourceMetricsCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/ListAvailableResourceDimensionsCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/ListAvailableResourceMetricsCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/ListPerformanceAnalysisReportRecommendationsCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/ListPerformanceAnalysisReportsCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/index.d.ts +1 -0
  50. package/package.json +8 -8
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");
@@ -68,7 +69,7 @@ const commonParams = {
68
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
69
70
  };
70
71
 
71
- var version = "3.1076.0";
72
+ var version = "3.1078.0";
72
73
  var packageInfo = {
73
74
  version: version};
74
75
 
@@ -838,172 +839,50 @@ class PIClient extends Client {
838
839
  }
839
840
  }
840
841
 
841
- class CreatePerformanceAnalysisReportCommand extends Command
842
- .classBuilder()
843
- .ep(commonParams)
844
- .m(function (Command, cs, config, o) {
845
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
846
- })
847
- .s("PerformanceInsightsv20180227", "CreatePerformanceAnalysisReport", {})
848
- .n("PIClient", "CreatePerformanceAnalysisReportCommand")
849
- .sc(CreatePerformanceAnalysisReport$)
850
- .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$) {
851
847
  }
852
848
 
853
- class DeletePerformanceAnalysisReportCommand extends Command
854
- .classBuilder()
855
- .ep(commonParams)
856
- .m(function (Command, cs, config, o) {
857
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
858
- })
859
- .s("PerformanceInsightsv20180227", "DeletePerformanceAnalysisReport", {})
860
- .n("PIClient", "DeletePerformanceAnalysisReportCommand")
861
- .sc(DeletePerformanceAnalysisReport$)
862
- .build() {
849
+ class DeletePerformanceAnalysisReportCommand extends command(_ep0, _mw0, "DeletePerformanceAnalysisReport", DeletePerformanceAnalysisReport$) {
863
850
  }
864
851
 
865
- class DescribeDimensionKeysCommand extends Command
866
- .classBuilder()
867
- .ep(commonParams)
868
- .m(function (Command, cs, config, o) {
869
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
870
- })
871
- .s("PerformanceInsightsv20180227", "DescribeDimensionKeys", {})
872
- .n("PIClient", "DescribeDimensionKeysCommand")
873
- .sc(DescribeDimensionKeys$)
874
- .build() {
852
+ class DescribeDimensionKeysCommand extends command(_ep0, _mw0, "DescribeDimensionKeys", DescribeDimensionKeys$) {
875
853
  }
876
854
 
877
- class GetDimensionKeyDetailsCommand extends Command
878
- .classBuilder()
879
- .ep(commonParams)
880
- .m(function (Command, cs, config, o) {
881
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
882
- })
883
- .s("PerformanceInsightsv20180227", "GetDimensionKeyDetails", {})
884
- .n("PIClient", "GetDimensionKeyDetailsCommand")
885
- .sc(GetDimensionKeyDetails$)
886
- .build() {
855
+ class GetDimensionKeyDetailsCommand extends command(_ep0, _mw0, "GetDimensionKeyDetails", GetDimensionKeyDetails$) {
887
856
  }
888
857
 
889
- class GetPerformanceAnalysisReportCommand extends Command
890
- .classBuilder()
891
- .ep(commonParams)
892
- .m(function (Command, cs, config, o) {
893
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
894
- })
895
- .s("PerformanceInsightsv20180227", "GetPerformanceAnalysisReport", {})
896
- .n("PIClient", "GetPerformanceAnalysisReportCommand")
897
- .sc(GetPerformanceAnalysisReport$)
898
- .build() {
858
+ class GetPerformanceAnalysisReportCommand extends command(_ep0, _mw0, "GetPerformanceAnalysisReport", GetPerformanceAnalysisReport$) {
899
859
  }
900
860
 
901
- class GetResourceMetadataCommand extends Command
902
- .classBuilder()
903
- .ep(commonParams)
904
- .m(function (Command, cs, config, o) {
905
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
906
- })
907
- .s("PerformanceInsightsv20180227", "GetResourceMetadata", {})
908
- .n("PIClient", "GetResourceMetadataCommand")
909
- .sc(GetResourceMetadata$)
910
- .build() {
861
+ class GetResourceMetadataCommand extends command(_ep0, _mw0, "GetResourceMetadata", GetResourceMetadata$) {
911
862
  }
912
863
 
913
- class GetResourceMetricsCommand extends Command
914
- .classBuilder()
915
- .ep(commonParams)
916
- .m(function (Command, cs, config, o) {
917
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
918
- })
919
- .s("PerformanceInsightsv20180227", "GetResourceMetrics", {})
920
- .n("PIClient", "GetResourceMetricsCommand")
921
- .sc(GetResourceMetrics$)
922
- .build() {
864
+ class GetResourceMetricsCommand extends command(_ep0, _mw0, "GetResourceMetrics", GetResourceMetrics$) {
923
865
  }
924
866
 
925
- class ListAvailableResourceDimensionsCommand extends Command
926
- .classBuilder()
927
- .ep(commonParams)
928
- .m(function (Command, cs, config, o) {
929
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
930
- })
931
- .s("PerformanceInsightsv20180227", "ListAvailableResourceDimensions", {})
932
- .n("PIClient", "ListAvailableResourceDimensionsCommand")
933
- .sc(ListAvailableResourceDimensions$)
934
- .build() {
867
+ class ListAvailableResourceDimensionsCommand extends command(_ep0, _mw0, "ListAvailableResourceDimensions", ListAvailableResourceDimensions$) {
935
868
  }
936
869
 
937
- class ListAvailableResourceMetricsCommand extends Command
938
- .classBuilder()
939
- .ep(commonParams)
940
- .m(function (Command, cs, config, o) {
941
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
942
- })
943
- .s("PerformanceInsightsv20180227", "ListAvailableResourceMetrics", {})
944
- .n("PIClient", "ListAvailableResourceMetricsCommand")
945
- .sc(ListAvailableResourceMetrics$)
946
- .build() {
870
+ class ListAvailableResourceMetricsCommand extends command(_ep0, _mw0, "ListAvailableResourceMetrics", ListAvailableResourceMetrics$) {
947
871
  }
948
872
 
949
- class ListPerformanceAnalysisReportRecommendationsCommand extends Command
950
- .classBuilder()
951
- .ep(commonParams)
952
- .m(function (Command, cs, config, o) {
953
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
954
- })
955
- .s("PerformanceInsightsv20180227", "ListPerformanceAnalysisReportRecommendations", {})
956
- .n("PIClient", "ListPerformanceAnalysisReportRecommendationsCommand")
957
- .sc(ListPerformanceAnalysisReportRecommendations$)
958
- .build() {
873
+ class ListPerformanceAnalysisReportRecommendationsCommand extends command(_ep0, _mw0, "ListPerformanceAnalysisReportRecommendations", ListPerformanceAnalysisReportRecommendations$) {
959
874
  }
960
875
 
961
- class ListPerformanceAnalysisReportsCommand extends Command
962
- .classBuilder()
963
- .ep(commonParams)
964
- .m(function (Command, cs, config, o) {
965
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
966
- })
967
- .s("PerformanceInsightsv20180227", "ListPerformanceAnalysisReports", {})
968
- .n("PIClient", "ListPerformanceAnalysisReportsCommand")
969
- .sc(ListPerformanceAnalysisReports$)
970
- .build() {
876
+ class ListPerformanceAnalysisReportsCommand extends command(_ep0, _mw0, "ListPerformanceAnalysisReports", ListPerformanceAnalysisReports$) {
971
877
  }
972
878
 
973
- class ListTagsForResourceCommand extends Command
974
- .classBuilder()
975
- .ep(commonParams)
976
- .m(function (Command, cs, config, o) {
977
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
978
- })
979
- .s("PerformanceInsightsv20180227", "ListTagsForResource", {})
980
- .n("PIClient", "ListTagsForResourceCommand")
981
- .sc(ListTagsForResource$)
982
- .build() {
879
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
983
880
  }
984
881
 
985
- class TagResourceCommand extends Command
986
- .classBuilder()
987
- .ep(commonParams)
988
- .m(function (Command, cs, config, o) {
989
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
990
- })
991
- .s("PerformanceInsightsv20180227", "TagResource", {})
992
- .n("PIClient", "TagResourceCommand")
993
- .sc(TagResource$)
994
- .build() {
882
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
995
883
  }
996
884
 
997
- class UntagResourceCommand extends Command
998
- .classBuilder()
999
- .ep(commonParams)
1000
- .m(function (Command, cs, config, o) {
1001
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1002
- })
1003
- .s("PerformanceInsightsv20180227", "UntagResource", {})
1004
- .n("PIClient", "UntagResourceCommand")
1005
- .sc(UntagResource$)
1006
- .build() {
885
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1007
886
  }
1008
887
 
1009
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";
@@ -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[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreatePerformanceAnalysisReportRequest, CreatePerformanceAnalysisReportResponse } from "../models/models_0";
4
- import type { PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PIClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreatePerformanceAnalysisReportCommandInput extends CreatePerfo
22
19
  export interface CreatePerformanceAnalysisReportCommandOutput extends CreatePerformanceAnalysisReportResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreatePerformanceAnalysisReportCommand_base: {
25
- new (input: CreatePerformanceAnalysisReportCommandInput): import("@smithy/core/client").CommandImpl<CreatePerformanceAnalysisReportCommandInput, CreatePerformanceAnalysisReportCommandOutput, PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreatePerformanceAnalysisReportCommandInput): import("@smithy/core/client").CommandImpl<CreatePerformanceAnalysisReportCommandInput, CreatePerformanceAnalysisReportCommandOutput, PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreatePerformanceAnalysisReportCommandInput): import("@smithy/core/client").CommandImpl<CreatePerformanceAnalysisReportCommandInput, CreatePerformanceAnalysisReportCommandOutput, import("..").PIClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreatePerformanceAnalysisReportCommandInput): import("@smithy/core/client").CommandImpl<CreatePerformanceAnalysisReportCommandInput, CreatePerformanceAnalysisReportCommandOutput, import("..").PIClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a new performance analysis report for a specific time period for the
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DeletePerformanceAnalysisReportRequest, DeletePerformanceAnalysisReportResponse } from "../models/models_0";
4
- import type { PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PIClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeletePerformanceAnalysisReportCommandInput extends DeletePerfo
22
19
  export interface DeletePerformanceAnalysisReportCommandOutput extends DeletePerformanceAnalysisReportResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DeletePerformanceAnalysisReportCommand_base: {
25
- new (input: DeletePerformanceAnalysisReportCommandInput): import("@smithy/core/client").CommandImpl<DeletePerformanceAnalysisReportCommandInput, DeletePerformanceAnalysisReportCommandOutput, PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeletePerformanceAnalysisReportCommandInput): import("@smithy/core/client").CommandImpl<DeletePerformanceAnalysisReportCommandInput, DeletePerformanceAnalysisReportCommandOutput, PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeletePerformanceAnalysisReportCommandInput): import("@smithy/core/client").CommandImpl<DeletePerformanceAnalysisReportCommandInput, DeletePerformanceAnalysisReportCommandOutput, import("..").PIClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeletePerformanceAnalysisReportCommandInput): import("@smithy/core/client").CommandImpl<DeletePerformanceAnalysisReportCommandInput, DeletePerformanceAnalysisReportCommandOutput, import("..").PIClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes a performance analysis report.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DescribeDimensionKeysRequest, DescribeDimensionKeysResponse } from "../models/models_0";
4
- import type { PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PIClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DescribeDimensionKeysCommandInput extends DescribeDimensionKeys
22
19
  export interface DescribeDimensionKeysCommandOutput extends DescribeDimensionKeysResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DescribeDimensionKeysCommand_base: {
25
- new (input: DescribeDimensionKeysCommandInput): import("@smithy/core/client").CommandImpl<DescribeDimensionKeysCommandInput, DescribeDimensionKeysCommandOutput, PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DescribeDimensionKeysCommandInput): import("@smithy/core/client").CommandImpl<DescribeDimensionKeysCommandInput, DescribeDimensionKeysCommandOutput, PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DescribeDimensionKeysCommandInput): import("@smithy/core/client").CommandImpl<DescribeDimensionKeysCommandInput, DescribeDimensionKeysCommandOutput, import("..").PIClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DescribeDimensionKeysCommandInput): import("@smithy/core/client").CommandImpl<DescribeDimensionKeysCommandInput, DescribeDimensionKeysCommandOutput, import("..").PIClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>For a specific time period, retrieve the top <code>N</code> dimension keys for a metric.