@aws-sdk/client-support 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 (68) hide show
  1. package/dist-cjs/index.js +27 -165
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AddAttachmentsToSetCommand.js +2 -14
  4. package/dist-es/commands/AddCommunicationToCaseCommand.js +2 -14
  5. package/dist-es/commands/CreateCaseCommand.js +2 -14
  6. package/dist-es/commands/DescribeAttachmentCommand.js +2 -14
  7. package/dist-es/commands/DescribeCasesCommand.js +2 -14
  8. package/dist-es/commands/DescribeCommunicationsCommand.js +2 -14
  9. package/dist-es/commands/DescribeCreateCaseOptionsCommand.js +2 -14
  10. package/dist-es/commands/DescribeServicesCommand.js +2 -14
  11. package/dist-es/commands/DescribeSeverityLevelsCommand.js +2 -14
  12. package/dist-es/commands/DescribeSupportedLanguagesCommand.js +2 -14
  13. package/dist-es/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.js +2 -14
  14. package/dist-es/commands/DescribeTrustedAdvisorCheckResultCommand.js +2 -14
  15. package/dist-es/commands/DescribeTrustedAdvisorCheckSummariesCommand.js +2 -14
  16. package/dist-es/commands/DescribeTrustedAdvisorChecksCommand.js +2 -14
  17. package/dist-es/commands/RefreshTrustedAdvisorCheckCommand.js +2 -14
  18. package/dist-es/commands/ResolveCaseCommand.js +2 -14
  19. package/dist-es/index.js +1 -0
  20. package/dist-es/runtimeConfig.browser.js +0 -2
  21. package/dist-es/runtimeConfig.js +1 -2
  22. package/dist-es/runtimeConfig.native.js +0 -2
  23. package/dist-es/runtimeConfig.shared.js +2 -0
  24. package/dist-types/commandBuilder.d.ts +18 -0
  25. package/dist-types/commands/AddAttachmentsToSetCommand.d.ts +3 -8
  26. package/dist-types/commands/AddCommunicationToCaseCommand.d.ts +3 -8
  27. package/dist-types/commands/CreateCaseCommand.d.ts +3 -8
  28. package/dist-types/commands/DescribeAttachmentCommand.d.ts +3 -8
  29. package/dist-types/commands/DescribeCasesCommand.d.ts +3 -8
  30. package/dist-types/commands/DescribeCommunicationsCommand.d.ts +3 -8
  31. package/dist-types/commands/DescribeCreateCaseOptionsCommand.d.ts +3 -8
  32. package/dist-types/commands/DescribeServicesCommand.d.ts +3 -8
  33. package/dist-types/commands/DescribeSeverityLevelsCommand.d.ts +3 -8
  34. package/dist-types/commands/DescribeSupportedLanguagesCommand.d.ts +3 -8
  35. package/dist-types/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.d.ts +3 -8
  36. package/dist-types/commands/DescribeTrustedAdvisorCheckResultCommand.d.ts +3 -8
  37. package/dist-types/commands/DescribeTrustedAdvisorCheckSummariesCommand.d.ts +3 -8
  38. package/dist-types/commands/DescribeTrustedAdvisorChecksCommand.d.ts +3 -8
  39. package/dist-types/commands/RefreshTrustedAdvisorCheckCommand.d.ts +3 -8
  40. package/dist-types/commands/ResolveCaseCommand.d.ts +3 -8
  41. package/dist-types/index.d.ts +1 -0
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  43. package/dist-types/runtimeConfig.d.ts +1 -1
  44. package/dist-types/runtimeConfig.native.d.ts +1 -1
  45. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  46. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  47. package/dist-types/ts3.4/commands/AddAttachmentsToSetCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/AddCommunicationToCaseCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/CreateCaseCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/DescribeAttachmentCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/DescribeCasesCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/DescribeCommunicationsCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/DescribeCreateCaseOptionsCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/DescribeServicesCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/DescribeSeverityLevelsCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/DescribeSupportedLanguagesCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/DescribeTrustedAdvisorCheckResultCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/DescribeTrustedAdvisorCheckSummariesCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/DescribeTrustedAdvisorChecksCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/RefreshTrustedAdvisorCheckCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/ResolveCaseCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/index.d.ts +1 -0
  64. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  65. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  66. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  67. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  68. 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 defaultSupportHttpAuthSchemeParametersProvider = 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
 
@@ -906,6 +908,7 @@ const getRuntimeConfig$1 = (config) => {
906
908
  serviceTarget: "AWSSupport_20130415",
907
909
  },
908
910
  serviceId: config?.serviceId ?? "Support",
911
+ sha256: config?.sha256 ?? Sha256,
909
912
  urlParser: config?.urlParser ?? parseUrl,
910
913
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
911
914
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -939,7 +942,6 @@ const getRuntimeConfig = (config) => {
939
942
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
940
943
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
941
944
  }, config),
942
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
943
945
  streamCollector: config?.streamCollector ?? streamCollector,
944
946
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
945
947
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1027,196 +1029,56 @@ class SupportClient extends Client {
1027
1029
  }
1028
1030
  }
1029
1031
 
1030
- class AddAttachmentsToSetCommand extends Command
1031
- .classBuilder()
1032
- .ep(commonParams)
1033
- .m(function (Command, cs, config, o) {
1034
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1035
- })
1036
- .s("AWSSupport_20130415", "AddAttachmentsToSet", {})
1037
- .n("SupportClient", "AddAttachmentsToSetCommand")
1038
- .sc(AddAttachmentsToSet$)
1039
- .build() {
1032
+ const command = makeBuilder(commonParams, "AWSSupport_20130415", "SupportClient", getEndpointPlugin);
1033
+ const _ep0 = {};
1034
+ const _mw0 = (Command, cs, config, o) => [];
1035
+
1036
+ class AddAttachmentsToSetCommand extends command(_ep0, _mw0, "AddAttachmentsToSet", AddAttachmentsToSet$) {
1040
1037
  }
1041
1038
 
1042
- class AddCommunicationToCaseCommand extends Command
1043
- .classBuilder()
1044
- .ep(commonParams)
1045
- .m(function (Command, cs, config, o) {
1046
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1047
- })
1048
- .s("AWSSupport_20130415", "AddCommunicationToCase", {})
1049
- .n("SupportClient", "AddCommunicationToCaseCommand")
1050
- .sc(AddCommunicationToCase$)
1051
- .build() {
1039
+ class AddCommunicationToCaseCommand extends command(_ep0, _mw0, "AddCommunicationToCase", AddCommunicationToCase$) {
1052
1040
  }
1053
1041
 
1054
- class CreateCaseCommand extends Command
1055
- .classBuilder()
1056
- .ep(commonParams)
1057
- .m(function (Command, cs, config, o) {
1058
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1059
- })
1060
- .s("AWSSupport_20130415", "CreateCase", {})
1061
- .n("SupportClient", "CreateCaseCommand")
1062
- .sc(CreateCase$)
1063
- .build() {
1042
+ class CreateCaseCommand extends command(_ep0, _mw0, "CreateCase", CreateCase$) {
1064
1043
  }
1065
1044
 
1066
- class DescribeAttachmentCommand extends Command
1067
- .classBuilder()
1068
- .ep(commonParams)
1069
- .m(function (Command, cs, config, o) {
1070
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1071
- })
1072
- .s("AWSSupport_20130415", "DescribeAttachment", {})
1073
- .n("SupportClient", "DescribeAttachmentCommand")
1074
- .sc(DescribeAttachment$)
1075
- .build() {
1045
+ class DescribeAttachmentCommand extends command(_ep0, _mw0, "DescribeAttachment", DescribeAttachment$) {
1076
1046
  }
1077
1047
 
1078
- class DescribeCasesCommand extends Command
1079
- .classBuilder()
1080
- .ep(commonParams)
1081
- .m(function (Command, cs, config, o) {
1082
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1083
- })
1084
- .s("AWSSupport_20130415", "DescribeCases", {})
1085
- .n("SupportClient", "DescribeCasesCommand")
1086
- .sc(DescribeCases$)
1087
- .build() {
1048
+ class DescribeCasesCommand extends command(_ep0, _mw0, "DescribeCases", DescribeCases$) {
1088
1049
  }
1089
1050
 
1090
- class DescribeCommunicationsCommand extends Command
1091
- .classBuilder()
1092
- .ep(commonParams)
1093
- .m(function (Command, cs, config, o) {
1094
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1095
- })
1096
- .s("AWSSupport_20130415", "DescribeCommunications", {})
1097
- .n("SupportClient", "DescribeCommunicationsCommand")
1098
- .sc(DescribeCommunications$)
1099
- .build() {
1051
+ class DescribeCommunicationsCommand extends command(_ep0, _mw0, "DescribeCommunications", DescribeCommunications$) {
1100
1052
  }
1101
1053
 
1102
- class DescribeCreateCaseOptionsCommand extends Command
1103
- .classBuilder()
1104
- .ep(commonParams)
1105
- .m(function (Command, cs, config, o) {
1106
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1107
- })
1108
- .s("AWSSupport_20130415", "DescribeCreateCaseOptions", {})
1109
- .n("SupportClient", "DescribeCreateCaseOptionsCommand")
1110
- .sc(DescribeCreateCaseOptions$)
1111
- .build() {
1054
+ class DescribeCreateCaseOptionsCommand extends command(_ep0, _mw0, "DescribeCreateCaseOptions", DescribeCreateCaseOptions$) {
1112
1055
  }
1113
1056
 
1114
- class DescribeServicesCommand extends Command
1115
- .classBuilder()
1116
- .ep(commonParams)
1117
- .m(function (Command, cs, config, o) {
1118
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1119
- })
1120
- .s("AWSSupport_20130415", "DescribeServices", {})
1121
- .n("SupportClient", "DescribeServicesCommand")
1122
- .sc(DescribeServices$)
1123
- .build() {
1057
+ class DescribeServicesCommand extends command(_ep0, _mw0, "DescribeServices", DescribeServices$) {
1124
1058
  }
1125
1059
 
1126
- class DescribeSeverityLevelsCommand extends Command
1127
- .classBuilder()
1128
- .ep(commonParams)
1129
- .m(function (Command, cs, config, o) {
1130
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1131
- })
1132
- .s("AWSSupport_20130415", "DescribeSeverityLevels", {})
1133
- .n("SupportClient", "DescribeSeverityLevelsCommand")
1134
- .sc(DescribeSeverityLevels$)
1135
- .build() {
1060
+ class DescribeSeverityLevelsCommand extends command(_ep0, _mw0, "DescribeSeverityLevels", DescribeSeverityLevels$) {
1136
1061
  }
1137
1062
 
1138
- class DescribeSupportedLanguagesCommand extends Command
1139
- .classBuilder()
1140
- .ep(commonParams)
1141
- .m(function (Command, cs, config, o) {
1142
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1143
- })
1144
- .s("AWSSupport_20130415", "DescribeSupportedLanguages", {})
1145
- .n("SupportClient", "DescribeSupportedLanguagesCommand")
1146
- .sc(DescribeSupportedLanguages$)
1147
- .build() {
1063
+ class DescribeSupportedLanguagesCommand extends command(_ep0, _mw0, "DescribeSupportedLanguages", DescribeSupportedLanguages$) {
1148
1064
  }
1149
1065
 
1150
- class DescribeTrustedAdvisorCheckRefreshStatusesCommand extends Command
1151
- .classBuilder()
1152
- .ep(commonParams)
1153
- .m(function (Command, cs, config, o) {
1154
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1155
- })
1156
- .s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckRefreshStatuses", {})
1157
- .n("SupportClient", "DescribeTrustedAdvisorCheckRefreshStatusesCommand")
1158
- .sc(DescribeTrustedAdvisorCheckRefreshStatuses$)
1159
- .build() {
1066
+ class DescribeTrustedAdvisorCheckRefreshStatusesCommand extends command(_ep0, _mw0, "DescribeTrustedAdvisorCheckRefreshStatuses", DescribeTrustedAdvisorCheckRefreshStatuses$) {
1160
1067
  }
1161
1068
 
1162
- class DescribeTrustedAdvisorCheckResultCommand extends Command
1163
- .classBuilder()
1164
- .ep(commonParams)
1165
- .m(function (Command, cs, config, o) {
1166
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1167
- })
1168
- .s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckResult", {})
1169
- .n("SupportClient", "DescribeTrustedAdvisorCheckResultCommand")
1170
- .sc(DescribeTrustedAdvisorCheckResult$)
1171
- .build() {
1069
+ class DescribeTrustedAdvisorCheckResultCommand extends command(_ep0, _mw0, "DescribeTrustedAdvisorCheckResult", DescribeTrustedAdvisorCheckResult$) {
1172
1070
  }
1173
1071
 
1174
- class DescribeTrustedAdvisorChecksCommand extends Command
1175
- .classBuilder()
1176
- .ep(commonParams)
1177
- .m(function (Command, cs, config, o) {
1178
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1179
- })
1180
- .s("AWSSupport_20130415", "DescribeTrustedAdvisorChecks", {})
1181
- .n("SupportClient", "DescribeTrustedAdvisorChecksCommand")
1182
- .sc(DescribeTrustedAdvisorChecks$)
1183
- .build() {
1072
+ class DescribeTrustedAdvisorChecksCommand extends command(_ep0, _mw0, "DescribeTrustedAdvisorChecks", DescribeTrustedAdvisorChecks$) {
1184
1073
  }
1185
1074
 
1186
- class DescribeTrustedAdvisorCheckSummariesCommand extends Command
1187
- .classBuilder()
1188
- .ep(commonParams)
1189
- .m(function (Command, cs, config, o) {
1190
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1191
- })
1192
- .s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckSummaries", {})
1193
- .n("SupportClient", "DescribeTrustedAdvisorCheckSummariesCommand")
1194
- .sc(DescribeTrustedAdvisorCheckSummaries$)
1195
- .build() {
1075
+ class DescribeTrustedAdvisorCheckSummariesCommand extends command(_ep0, _mw0, "DescribeTrustedAdvisorCheckSummaries", DescribeTrustedAdvisorCheckSummaries$) {
1196
1076
  }
1197
1077
 
1198
- class RefreshTrustedAdvisorCheckCommand extends Command
1199
- .classBuilder()
1200
- .ep(commonParams)
1201
- .m(function (Command, cs, config, o) {
1202
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1203
- })
1204
- .s("AWSSupport_20130415", "RefreshTrustedAdvisorCheck", {})
1205
- .n("SupportClient", "RefreshTrustedAdvisorCheckCommand")
1206
- .sc(RefreshTrustedAdvisorCheck$)
1207
- .build() {
1078
+ class RefreshTrustedAdvisorCheckCommand extends command(_ep0, _mw0, "RefreshTrustedAdvisorCheck", RefreshTrustedAdvisorCheck$) {
1208
1079
  }
1209
1080
 
1210
- class ResolveCaseCommand extends Command
1211
- .classBuilder()
1212
- .ep(commonParams)
1213
- .m(function (Command, cs, config, o) {
1214
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1215
- })
1216
- .s("AWSSupport_20130415", "ResolveCase", {})
1217
- .n("SupportClient", "ResolveCaseCommand")
1218
- .sc(ResolveCase$)
1219
- .build() {
1081
+ class ResolveCaseCommand extends command(_ep0, _mw0, "ResolveCase", ResolveCase$) {
1220
1082
  }
1221
1083
 
1222
1084
  const paginateDescribeCases = createPaginator(SupportClient, DescribeCasesCommand, "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, "AWSSupport_20130415", "SupportClient", 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 { AddAttachmentsToSet$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AddAttachmentsToSetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "AddAttachmentsToSet", {})
13
- .n("SupportClient", "AddAttachmentsToSetCommand")
14
- .sc(AddAttachmentsToSet$)
15
- .build() {
3
+ export class AddAttachmentsToSetCommand extends command(_ep0, _mw0, "AddAttachmentsToSet", AddAttachmentsToSet$) {
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 { AddCommunicationToCase$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AddCommunicationToCaseCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "AddCommunicationToCase", {})
13
- .n("SupportClient", "AddCommunicationToCaseCommand")
14
- .sc(AddCommunicationToCase$)
15
- .build() {
3
+ export class AddCommunicationToCaseCommand extends command(_ep0, _mw0, "AddCommunicationToCase", AddCommunicationToCase$) {
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 { CreateCase$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateCaseCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "CreateCase", {})
13
- .n("SupportClient", "CreateCaseCommand")
14
- .sc(CreateCase$)
15
- .build() {
3
+ export class CreateCaseCommand extends command(_ep0, _mw0, "CreateCase", CreateCase$) {
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 { DescribeAttachment$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeAttachmentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "DescribeAttachment", {})
13
- .n("SupportClient", "DescribeAttachmentCommand")
14
- .sc(DescribeAttachment$)
15
- .build() {
3
+ export class DescribeAttachmentCommand extends command(_ep0, _mw0, "DescribeAttachment", DescribeAttachment$) {
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 { DescribeCases$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeCasesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "DescribeCases", {})
13
- .n("SupportClient", "DescribeCasesCommand")
14
- .sc(DescribeCases$)
15
- .build() {
3
+ export class DescribeCasesCommand extends command(_ep0, _mw0, "DescribeCases", DescribeCases$) {
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 { DescribeCommunications$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeCommunicationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "DescribeCommunications", {})
13
- .n("SupportClient", "DescribeCommunicationsCommand")
14
- .sc(DescribeCommunications$)
15
- .build() {
3
+ export class DescribeCommunicationsCommand extends command(_ep0, _mw0, "DescribeCommunications", DescribeCommunications$) {
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 { DescribeCreateCaseOptions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeCreateCaseOptionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "DescribeCreateCaseOptions", {})
13
- .n("SupportClient", "DescribeCreateCaseOptionsCommand")
14
- .sc(DescribeCreateCaseOptions$)
15
- .build() {
3
+ export class DescribeCreateCaseOptionsCommand extends command(_ep0, _mw0, "DescribeCreateCaseOptions", DescribeCreateCaseOptions$) {
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 { DescribeServices$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeServicesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "DescribeServices", {})
13
- .n("SupportClient", "DescribeServicesCommand")
14
- .sc(DescribeServices$)
15
- .build() {
3
+ export class DescribeServicesCommand extends command(_ep0, _mw0, "DescribeServices", DescribeServices$) {
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 { DescribeSeverityLevels$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeSeverityLevelsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "DescribeSeverityLevels", {})
13
- .n("SupportClient", "DescribeSeverityLevelsCommand")
14
- .sc(DescribeSeverityLevels$)
15
- .build() {
3
+ export class DescribeSeverityLevelsCommand extends command(_ep0, _mw0, "DescribeSeverityLevels", DescribeSeverityLevels$) {
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 { DescribeSupportedLanguages$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeSupportedLanguagesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "DescribeSupportedLanguages", {})
13
- .n("SupportClient", "DescribeSupportedLanguagesCommand")
14
- .sc(DescribeSupportedLanguages$)
15
- .build() {
3
+ export class DescribeSupportedLanguagesCommand extends command(_ep0, _mw0, "DescribeSupportedLanguages", DescribeSupportedLanguages$) {
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 { DescribeTrustedAdvisorCheckRefreshStatuses$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeTrustedAdvisorCheckRefreshStatusesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckRefreshStatuses", {})
13
- .n("SupportClient", "DescribeTrustedAdvisorCheckRefreshStatusesCommand")
14
- .sc(DescribeTrustedAdvisorCheckRefreshStatuses$)
15
- .build() {
3
+ export class DescribeTrustedAdvisorCheckRefreshStatusesCommand extends command(_ep0, _mw0, "DescribeTrustedAdvisorCheckRefreshStatuses", DescribeTrustedAdvisorCheckRefreshStatuses$) {
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 { DescribeTrustedAdvisorCheckResult$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeTrustedAdvisorCheckResultCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckResult", {})
13
- .n("SupportClient", "DescribeTrustedAdvisorCheckResultCommand")
14
- .sc(DescribeTrustedAdvisorCheckResult$)
15
- .build() {
3
+ export class DescribeTrustedAdvisorCheckResultCommand extends command(_ep0, _mw0, "DescribeTrustedAdvisorCheckResult", DescribeTrustedAdvisorCheckResult$) {
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 { DescribeTrustedAdvisorCheckSummaries$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeTrustedAdvisorCheckSummariesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckSummaries", {})
13
- .n("SupportClient", "DescribeTrustedAdvisorCheckSummariesCommand")
14
- .sc(DescribeTrustedAdvisorCheckSummaries$)
15
- .build() {
3
+ export class DescribeTrustedAdvisorCheckSummariesCommand extends command(_ep0, _mw0, "DescribeTrustedAdvisorCheckSummaries", DescribeTrustedAdvisorCheckSummaries$) {
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 { DescribeTrustedAdvisorChecks$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeTrustedAdvisorChecksCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "DescribeTrustedAdvisorChecks", {})
13
- .n("SupportClient", "DescribeTrustedAdvisorChecksCommand")
14
- .sc(DescribeTrustedAdvisorChecks$)
15
- .build() {
3
+ export class DescribeTrustedAdvisorChecksCommand extends command(_ep0, _mw0, "DescribeTrustedAdvisorChecks", DescribeTrustedAdvisorChecks$) {
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 { RefreshTrustedAdvisorCheck$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RefreshTrustedAdvisorCheckCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "RefreshTrustedAdvisorCheck", {})
13
- .n("SupportClient", "RefreshTrustedAdvisorCheckCommand")
14
- .sc(RefreshTrustedAdvisorCheck$)
15
- .build() {
3
+ export class RefreshTrustedAdvisorCheckCommand extends command(_ep0, _mw0, "RefreshTrustedAdvisorCheck", RefreshTrustedAdvisorCheck$) {
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 { ResolveCase$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ResolveCaseCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSupport_20130415", "ResolveCase", {})
13
- .n("SupportClient", "ResolveCaseCommand")
14
- .sc(ResolveCase$)
15
- .build() {
3
+ export class ResolveCaseCommand extends command(_ep0, _mw0, "ResolveCase", ResolveCase$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./SupportClient";
2
2
  export * from "./Support";
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/errors";
@@ -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),