@aws-sdk/client-codeguru-security 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 (47) hide show
  1. package/dist-cjs/index.js +21 -133
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/BatchGetFindingsCommand.js +2 -14
  4. package/dist-es/commands/CreateScanCommand.js +2 -14
  5. package/dist-es/commands/CreateUploadUrlCommand.js +2 -14
  6. package/dist-es/commands/GetAccountConfigurationCommand.js +2 -14
  7. package/dist-es/commands/GetFindingsCommand.js +2 -14
  8. package/dist-es/commands/GetMetricsSummaryCommand.js +2 -14
  9. package/dist-es/commands/GetScanCommand.js +2 -14
  10. package/dist-es/commands/ListFindingsMetricsCommand.js +2 -14
  11. package/dist-es/commands/ListScansCommand.js +2 -14
  12. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  13. package/dist-es/commands/TagResourceCommand.js +2 -14
  14. package/dist-es/commands/UntagResourceCommand.js +2 -14
  15. package/dist-es/commands/UpdateAccountConfigurationCommand.js +2 -14
  16. package/dist-es/index.js +1 -0
  17. package/dist-types/commandBuilder.d.ts +18 -0
  18. package/dist-types/commands/BatchGetFindingsCommand.d.ts +3 -8
  19. package/dist-types/commands/CreateScanCommand.d.ts +3 -8
  20. package/dist-types/commands/CreateUploadUrlCommand.d.ts +3 -8
  21. package/dist-types/commands/GetAccountConfigurationCommand.d.ts +3 -8
  22. package/dist-types/commands/GetFindingsCommand.d.ts +3 -8
  23. package/dist-types/commands/GetMetricsSummaryCommand.d.ts +3 -8
  24. package/dist-types/commands/GetScanCommand.d.ts +3 -8
  25. package/dist-types/commands/ListFindingsMetricsCommand.d.ts +3 -8
  26. package/dist-types/commands/ListScansCommand.d.ts +3 -8
  27. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  28. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  29. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  30. package/dist-types/commands/UpdateAccountConfigurationCommand.d.ts +3 -8
  31. package/dist-types/index.d.ts +1 -0
  32. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  33. package/dist-types/ts3.4/commands/BatchGetFindingsCommand.d.ts +7 -16
  34. package/dist-types/ts3.4/commands/CreateScanCommand.d.ts +7 -16
  35. package/dist-types/ts3.4/commands/CreateUploadUrlCommand.d.ts +7 -16
  36. package/dist-types/ts3.4/commands/GetAccountConfigurationCommand.d.ts +7 -16
  37. package/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/GetMetricsSummaryCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/GetScanCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/ListFindingsMetricsCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/ListScansCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/UpdateAccountConfigurationCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/index.d.ts +1 -0
  47. 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
 
@@ -907,160 +908,47 @@ class CodeGuruSecurityClient extends Client {
907
908
  }
908
909
  }
909
910
 
910
- class BatchGetFindingsCommand extends Command
911
- .classBuilder()
912
- .ep(commonParams)
913
- .m(function (Command, cs, config, o) {
914
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
915
- })
916
- .s("AwsCodeGuruSecurity", "BatchGetFindings", {})
917
- .n("CodeGuruSecurityClient", "BatchGetFindingsCommand")
918
- .sc(BatchGetFindings$)
919
- .build() {
911
+ const command = makeBuilder(commonParams, "AwsCodeGuruSecurity", "CodeGuruSecurityClient", getEndpointPlugin);
912
+ const _ep0 = {};
913
+ const _mw0 = (Command, cs, config, o) => [];
914
+
915
+ class BatchGetFindingsCommand extends command(_ep0, _mw0, "BatchGetFindings", BatchGetFindings$) {
920
916
  }
921
917
 
922
- class CreateScanCommand extends Command
923
- .classBuilder()
924
- .ep(commonParams)
925
- .m(function (Command, cs, config, o) {
926
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
927
- })
928
- .s("AwsCodeGuruSecurity", "CreateScan", {})
929
- .n("CodeGuruSecurityClient", "CreateScanCommand")
930
- .sc(CreateScan$)
931
- .build() {
918
+ class CreateScanCommand extends command(_ep0, _mw0, "CreateScan", CreateScan$) {
932
919
  }
933
920
 
934
- class CreateUploadUrlCommand extends Command
935
- .classBuilder()
936
- .ep(commonParams)
937
- .m(function (Command, cs, config, o) {
938
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
939
- })
940
- .s("AwsCodeGuruSecurity", "CreateUploadUrl", {})
941
- .n("CodeGuruSecurityClient", "CreateUploadUrlCommand")
942
- .sc(CreateUploadUrl$)
943
- .build() {
921
+ class CreateUploadUrlCommand extends command(_ep0, _mw0, "CreateUploadUrl", CreateUploadUrl$) {
944
922
  }
945
923
 
946
- class GetAccountConfigurationCommand extends Command
947
- .classBuilder()
948
- .ep(commonParams)
949
- .m(function (Command, cs, config, o) {
950
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
951
- })
952
- .s("AwsCodeGuruSecurity", "GetAccountConfiguration", {})
953
- .n("CodeGuruSecurityClient", "GetAccountConfigurationCommand")
954
- .sc(GetAccountConfiguration$)
955
- .build() {
924
+ class GetAccountConfigurationCommand extends command(_ep0, _mw0, "GetAccountConfiguration", GetAccountConfiguration$) {
956
925
  }
957
926
 
958
- class GetFindingsCommand extends Command
959
- .classBuilder()
960
- .ep(commonParams)
961
- .m(function (Command, cs, config, o) {
962
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
963
- })
964
- .s("AwsCodeGuruSecurity", "GetFindings", {})
965
- .n("CodeGuruSecurityClient", "GetFindingsCommand")
966
- .sc(GetFindings$)
967
- .build() {
927
+ class GetFindingsCommand extends command(_ep0, _mw0, "GetFindings", GetFindings$) {
968
928
  }
969
929
 
970
- class GetMetricsSummaryCommand extends Command
971
- .classBuilder()
972
- .ep(commonParams)
973
- .m(function (Command, cs, config, o) {
974
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
975
- })
976
- .s("AwsCodeGuruSecurity", "GetMetricsSummary", {})
977
- .n("CodeGuruSecurityClient", "GetMetricsSummaryCommand")
978
- .sc(GetMetricsSummary$)
979
- .build() {
930
+ class GetMetricsSummaryCommand extends command(_ep0, _mw0, "GetMetricsSummary", GetMetricsSummary$) {
980
931
  }
981
932
 
982
- class GetScanCommand extends Command
983
- .classBuilder()
984
- .ep(commonParams)
985
- .m(function (Command, cs, config, o) {
986
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
987
- })
988
- .s("AwsCodeGuruSecurity", "GetScan", {})
989
- .n("CodeGuruSecurityClient", "GetScanCommand")
990
- .sc(GetScan$)
991
- .build() {
933
+ class GetScanCommand extends command(_ep0, _mw0, "GetScan", GetScan$) {
992
934
  }
993
935
 
994
- class ListFindingsMetricsCommand extends Command
995
- .classBuilder()
996
- .ep(commonParams)
997
- .m(function (Command, cs, config, o) {
998
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
999
- })
1000
- .s("AwsCodeGuruSecurity", "ListFindingsMetrics", {})
1001
- .n("CodeGuruSecurityClient", "ListFindingsMetricsCommand")
1002
- .sc(ListFindingsMetrics$)
1003
- .build() {
936
+ class ListFindingsMetricsCommand extends command(_ep0, _mw0, "ListFindingsMetrics", ListFindingsMetrics$) {
1004
937
  }
1005
938
 
1006
- class ListScansCommand extends Command
1007
- .classBuilder()
1008
- .ep(commonParams)
1009
- .m(function (Command, cs, config, o) {
1010
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1011
- })
1012
- .s("AwsCodeGuruSecurity", "ListScans", {})
1013
- .n("CodeGuruSecurityClient", "ListScansCommand")
1014
- .sc(ListScans$)
1015
- .build() {
939
+ class ListScansCommand extends command(_ep0, _mw0, "ListScans", ListScans$) {
1016
940
  }
1017
941
 
1018
- class ListTagsForResourceCommand extends Command
1019
- .classBuilder()
1020
- .ep(commonParams)
1021
- .m(function (Command, cs, config, o) {
1022
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1023
- })
1024
- .s("AwsCodeGuruSecurity", "ListTagsForResource", {})
1025
- .n("CodeGuruSecurityClient", "ListTagsForResourceCommand")
1026
- .sc(ListTagsForResource$)
1027
- .build() {
942
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1028
943
  }
1029
944
 
1030
- class TagResourceCommand extends Command
1031
- .classBuilder()
1032
- .ep(commonParams)
1033
- .m(function (Command, cs, config, o) {
1034
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1035
- })
1036
- .s("AwsCodeGuruSecurity", "TagResource", {})
1037
- .n("CodeGuruSecurityClient", "TagResourceCommand")
1038
- .sc(TagResource$)
1039
- .build() {
945
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1040
946
  }
1041
947
 
1042
- class UntagResourceCommand extends Command
1043
- .classBuilder()
1044
- .ep(commonParams)
1045
- .m(function (Command, cs, config, o) {
1046
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1047
- })
1048
- .s("AwsCodeGuruSecurity", "UntagResource", {})
1049
- .n("CodeGuruSecurityClient", "UntagResourceCommand")
1050
- .sc(UntagResource$)
1051
- .build() {
948
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1052
949
  }
1053
950
 
1054
- class UpdateAccountConfigurationCommand extends Command
1055
- .classBuilder()
1056
- .ep(commonParams)
1057
- .m(function (Command, cs, config, o) {
1058
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1059
- })
1060
- .s("AwsCodeGuruSecurity", "UpdateAccountConfiguration", {})
1061
- .n("CodeGuruSecurityClient", "UpdateAccountConfigurationCommand")
1062
- .sc(UpdateAccountConfiguration$)
1063
- .build() {
951
+ class UpdateAccountConfigurationCommand extends command(_ep0, _mw0, "UpdateAccountConfiguration", UpdateAccountConfiguration$) {
1064
952
  }
1065
953
 
1066
954
  const paginateGetFindings = createPaginator(CodeGuruSecurityClient, GetFindingsCommand, "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, "AwsCodeGuruSecurity", "CodeGuruSecurityClient", 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 { BatchGetFindings$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class BatchGetFindingsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AwsCodeGuruSecurity", "BatchGetFindings", {})
13
- .n("CodeGuruSecurityClient", "BatchGetFindingsCommand")
14
- .sc(BatchGetFindings$)
15
- .build() {
3
+ export class BatchGetFindingsCommand extends command(_ep0, _mw0, "BatchGetFindings", BatchGetFindings$) {
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 { CreateScan$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateScanCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AwsCodeGuruSecurity", "CreateScan", {})
13
- .n("CodeGuruSecurityClient", "CreateScanCommand")
14
- .sc(CreateScan$)
15
- .build() {
3
+ export class CreateScanCommand extends command(_ep0, _mw0, "CreateScan", CreateScan$) {
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 { CreateUploadUrl$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateUploadUrlCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AwsCodeGuruSecurity", "CreateUploadUrl", {})
13
- .n("CodeGuruSecurityClient", "CreateUploadUrlCommand")
14
- .sc(CreateUploadUrl$)
15
- .build() {
3
+ export class CreateUploadUrlCommand extends command(_ep0, _mw0, "CreateUploadUrl", CreateUploadUrl$) {
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 { GetAccountConfiguration$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetAccountConfigurationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AwsCodeGuruSecurity", "GetAccountConfiguration", {})
13
- .n("CodeGuruSecurityClient", "GetAccountConfigurationCommand")
14
- .sc(GetAccountConfiguration$)
15
- .build() {
3
+ export class GetAccountConfigurationCommand extends command(_ep0, _mw0, "GetAccountConfiguration", GetAccountConfiguration$) {
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 { GetFindings$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetFindingsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AwsCodeGuruSecurity", "GetFindings", {})
13
- .n("CodeGuruSecurityClient", "GetFindingsCommand")
14
- .sc(GetFindings$)
15
- .build() {
3
+ export class GetFindingsCommand extends command(_ep0, _mw0, "GetFindings", GetFindings$) {
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 { GetMetricsSummary$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetMetricsSummaryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AwsCodeGuruSecurity", "GetMetricsSummary", {})
13
- .n("CodeGuruSecurityClient", "GetMetricsSummaryCommand")
14
- .sc(GetMetricsSummary$)
15
- .build() {
3
+ export class GetMetricsSummaryCommand extends command(_ep0, _mw0, "GetMetricsSummary", GetMetricsSummary$) {
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 { GetScan$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetScanCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AwsCodeGuruSecurity", "GetScan", {})
13
- .n("CodeGuruSecurityClient", "GetScanCommand")
14
- .sc(GetScan$)
15
- .build() {
3
+ export class GetScanCommand extends command(_ep0, _mw0, "GetScan", GetScan$) {
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 { ListFindingsMetrics$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListFindingsMetricsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AwsCodeGuruSecurity", "ListFindingsMetrics", {})
13
- .n("CodeGuruSecurityClient", "ListFindingsMetricsCommand")
14
- .sc(ListFindingsMetrics$)
15
- .build() {
3
+ export class ListFindingsMetricsCommand extends command(_ep0, _mw0, "ListFindingsMetrics", ListFindingsMetrics$) {
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 { ListScans$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListScansCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AwsCodeGuruSecurity", "ListScans", {})
13
- .n("CodeGuruSecurityClient", "ListScansCommand")
14
- .sc(ListScans$)
15
- .build() {
3
+ export class ListScansCommand extends command(_ep0, _mw0, "ListScans", ListScans$) {
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("AwsCodeGuruSecurity", "ListTagsForResource", {})
13
- .n("CodeGuruSecurityClient", "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("AwsCodeGuruSecurity", "TagResource", {})
13
- .n("CodeGuruSecurityClient", "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("AwsCodeGuruSecurity", "UntagResource", {})
13
- .n("CodeGuruSecurityClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
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 { UpdateAccountConfiguration$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateAccountConfigurationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AwsCodeGuruSecurity", "UpdateAccountConfiguration", {})
13
- .n("CodeGuruSecurityClient", "UpdateAccountConfigurationCommand")
14
- .sc(UpdateAccountConfiguration$)
15
- .build() {
3
+ export class UpdateAccountConfigurationCommand extends command(_ep0, _mw0, "UpdateAccountConfiguration", UpdateAccountConfiguration$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./CodeGuruSecurityClient";
2
2
  export * from "./CodeGuruSecurity";
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 { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./CodeGuruSecurityClient";
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, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, CodeGuruSecurityClientResolvedConfig, 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
- import type { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
4
2
  import type { BatchGetFindingsRequest, BatchGetFindingsResponse } from "../models/models_0";
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 BatchGetFindingsCommandInput extends BatchGetFindingsRequest {
22
19
  export interface BatchGetFindingsCommandOutput extends BatchGetFindingsResponse, __MetadataBearer {
23
20
  }
24
21
  declare const BatchGetFindingsCommand_base: {
25
- new (input: BatchGetFindingsCommandInput): import("@smithy/core/client").CommandImpl<BatchGetFindingsCommandInput, BatchGetFindingsCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: BatchGetFindingsCommandInput): import("@smithy/core/client").CommandImpl<BatchGetFindingsCommandInput, BatchGetFindingsCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: BatchGetFindingsCommandInput): import("@smithy/core/client").CommandImpl<BatchGetFindingsCommandInput, BatchGetFindingsCommandOutput, import("..").CodeGuruSecurityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: BatchGetFindingsCommandInput): import("@smithy/core/client").CommandImpl<BatchGetFindingsCommandInput, BatchGetFindingsCommandOutput, import("..").CodeGuruSecurityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Returns a list of requested findings from standard scans.</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
- import type { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
4
2
  import type { CreateScanRequest, CreateScanResponse } from "../models/models_0";
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 CreateScanCommandInput extends CreateScanRequest {
22
19
  export interface CreateScanCommandOutput extends CreateScanResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateScanCommand_base: {
25
- new (input: CreateScanCommandInput): import("@smithy/core/client").CommandImpl<CreateScanCommandInput, CreateScanCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateScanCommandInput): import("@smithy/core/client").CommandImpl<CreateScanCommandInput, CreateScanCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateScanCommandInput): import("@smithy/core/client").CommandImpl<CreateScanCommandInput, CreateScanCommandOutput, import("..").CodeGuruSecurityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateScanCommandInput): import("@smithy/core/client").CommandImpl<CreateScanCommandInput, CreateScanCommandOutput, import("..").CodeGuruSecurityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Use to create a scan using code uploaded to an Amazon S3 bucket.</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
- import type { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
4
2
  import type { CreateUploadUrlRequest, CreateUploadUrlResponse } from "../models/models_0";
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 CreateUploadUrlCommandInput extends CreateUploadUrlRequest {
22
19
  export interface CreateUploadUrlCommandOutput extends CreateUploadUrlResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateUploadUrlCommand_base: {
25
- new (input: CreateUploadUrlCommandInput): import("@smithy/core/client").CommandImpl<CreateUploadUrlCommandInput, CreateUploadUrlCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateUploadUrlCommandInput): import("@smithy/core/client").CommandImpl<CreateUploadUrlCommandInput, CreateUploadUrlCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateUploadUrlCommandInput): import("@smithy/core/client").CommandImpl<CreateUploadUrlCommandInput, CreateUploadUrlCommandOutput, import("..").CodeGuruSecurityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateUploadUrlCommandInput): import("@smithy/core/client").CommandImpl<CreateUploadUrlCommandInput, CreateUploadUrlCommandOutput, import("..").CodeGuruSecurityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Generates a pre-signed URL, request headers used to upload a code resource, and code artifact identifier for the uploaded resource.</p> <p>You can upload your code resource to the URL with the request headers using any HTTP client.</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
- import type { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
4
2
  import type { GetAccountConfigurationRequest, GetAccountConfigurationResponse } from "../models/models_0";
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 GetAccountConfigurationCommandInput extends GetAccountConfigura
22
19
  export interface GetAccountConfigurationCommandOutput extends GetAccountConfigurationResponse, __MetadataBearer {
23
20
  }
24
21
  declare const GetAccountConfigurationCommand_base: {
25
- new (input: GetAccountConfigurationCommandInput): import("@smithy/core/client").CommandImpl<GetAccountConfigurationCommandInput, GetAccountConfigurationCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [GetAccountConfigurationCommandInput]): import("@smithy/core/client").CommandImpl<GetAccountConfigurationCommandInput, GetAccountConfigurationCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetAccountConfigurationCommandInput): import("@smithy/core/client").CommandImpl<GetAccountConfigurationCommandInput, GetAccountConfigurationCommandOutput, import("..").CodeGuruSecurityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [GetAccountConfigurationCommandInput]): import("@smithy/core/client").CommandImpl<GetAccountConfigurationCommandInput, GetAccountConfigurationCommandOutput, import("..").CodeGuruSecurityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Use to get the encryption configuration for an account.</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
- import type { CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruSecurityClient";
4
2
  import type { GetFindingsRequest, GetFindingsResponse } from "../models/models_0";
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 GetFindingsCommandInput extends GetFindingsRequest {
22
19
  export interface GetFindingsCommandOutput extends GetFindingsResponse, __MetadataBearer {
23
20
  }
24
21
  declare const GetFindingsCommand_base: {
25
- new (input: GetFindingsCommandInput): import("@smithy/core/client").CommandImpl<GetFindingsCommandInput, GetFindingsCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetFindingsCommandInput): import("@smithy/core/client").CommandImpl<GetFindingsCommandInput, GetFindingsCommandOutput, CodeGuruSecurityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetFindingsCommandInput): import("@smithy/core/client").CommandImpl<GetFindingsCommandInput, GetFindingsCommandOutput, import("..").CodeGuruSecurityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetFindingsCommandInput): import("@smithy/core/client").CommandImpl<GetFindingsCommandInput, GetFindingsCommandOutput, import("..").CodeGuruSecurityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Returns a list of all findings generated by a particular scan.</p>