@aws-sdk/client-application-auto-scaling 3.1076.0 → 3.1078.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist-cjs/index.js +25 -145
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/DeleteScalingPolicyCommand.js +2 -14
  4. package/dist-es/commands/DeleteScheduledActionCommand.js +2 -14
  5. package/dist-es/commands/DeregisterScalableTargetCommand.js +2 -14
  6. package/dist-es/commands/DescribeScalableTargetsCommand.js +2 -14
  7. package/dist-es/commands/DescribeScalingActivitiesCommand.js +2 -14
  8. package/dist-es/commands/DescribeScalingPoliciesCommand.js +2 -14
  9. package/dist-es/commands/DescribeScheduledActionsCommand.js +2 -14
  10. package/dist-es/commands/GetPredictiveScalingForecastCommand.js +2 -14
  11. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  12. package/dist-es/commands/PutScalingPolicyCommand.js +2 -14
  13. package/dist-es/commands/PutScheduledActionCommand.js +2 -14
  14. package/dist-es/commands/RegisterScalableTargetCommand.js +2 -14
  15. package/dist-es/commands/TagResourceCommand.js +2 -14
  16. package/dist-es/commands/UntagResourceCommand.js +2 -14
  17. package/dist-es/index.js +1 -0
  18. package/dist-es/runtimeConfig.browser.js +0 -2
  19. package/dist-es/runtimeConfig.js +1 -2
  20. package/dist-es/runtimeConfig.native.js +0 -2
  21. package/dist-es/runtimeConfig.shared.js +2 -0
  22. package/dist-types/commandBuilder.d.ts +18 -0
  23. package/dist-types/commands/DeleteScalingPolicyCommand.d.ts +3 -8
  24. package/dist-types/commands/DeleteScheduledActionCommand.d.ts +3 -8
  25. package/dist-types/commands/DeregisterScalableTargetCommand.d.ts +3 -8
  26. package/dist-types/commands/DescribeScalableTargetsCommand.d.ts +3 -8
  27. package/dist-types/commands/DescribeScalingActivitiesCommand.d.ts +3 -8
  28. package/dist-types/commands/DescribeScalingPoliciesCommand.d.ts +3 -8
  29. package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +3 -8
  30. package/dist-types/commands/GetPredictiveScalingForecastCommand.d.ts +3 -8
  31. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  32. package/dist-types/commands/PutScalingPolicyCommand.d.ts +3 -8
  33. package/dist-types/commands/PutScheduledActionCommand.d.ts +3 -8
  34. package/dist-types/commands/RegisterScalableTargetCommand.d.ts +3 -8
  35. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  36. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  37. package/dist-types/index.d.ts +1 -0
  38. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  39. package/dist-types/runtimeConfig.d.ts +1 -1
  40. package/dist-types/runtimeConfig.native.d.ts +1 -1
  41. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  42. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  43. package/dist-types/ts3.4/commands/DeleteScalingPolicyCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/DeleteScheduledActionCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/DeregisterScalableTargetCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/DescribeScalableTargetsCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/DescribeScalingActivitiesCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/DescribeScalingPoliciesCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/DescribeScheduledActionsCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/GetPredictiveScalingForecastCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/PutScalingPolicyCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/PutScheduledActionCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/RegisterScalableTargetCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/index.d.ts +1 -0
  58. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  59. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  60. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  61. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  62. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultApplicationAutoScalingHttpAuthSchemeParametersProvider = 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
 
@@ -920,6 +922,7 @@ const getRuntimeConfig$1 = (config) => {
920
922
  serviceTarget: "AnyScaleFrontendService",
921
923
  },
922
924
  serviceId: config?.serviceId ?? "Application Auto Scaling",
925
+ sha256: config?.sha256 ?? Sha256,
923
926
  urlParser: config?.urlParser ?? parseUrl,
924
927
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
925
928
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -953,7 +956,6 @@ const getRuntimeConfig = (config) => {
953
956
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
954
957
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
955
958
  }, config),
956
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
957
959
  streamCollector: config?.streamCollector ?? streamCollector,
958
960
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
959
961
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1041,172 +1043,50 @@ class ApplicationAutoScalingClient extends Client {
1041
1043
  }
1042
1044
  }
1043
1045
 
1044
- class DeleteScalingPolicyCommand extends Command
1045
- .classBuilder()
1046
- .ep(commonParams)
1047
- .m(function (Command, cs, config, o) {
1048
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1049
- })
1050
- .s("AnyScaleFrontendService", "DeleteScalingPolicy", {})
1051
- .n("ApplicationAutoScalingClient", "DeleteScalingPolicyCommand")
1052
- .sc(DeleteScalingPolicy$)
1053
- .build() {
1046
+ const command = makeBuilder(commonParams, "AnyScaleFrontendService", "ApplicationAutoScalingClient", getEndpointPlugin);
1047
+ const _ep0 = {};
1048
+ const _mw0 = (Command, cs, config, o) => [];
1049
+
1050
+ class DeleteScalingPolicyCommand extends command(_ep0, _mw0, "DeleteScalingPolicy", DeleteScalingPolicy$) {
1054
1051
  }
1055
1052
 
1056
- class DeleteScheduledActionCommand extends Command
1057
- .classBuilder()
1058
- .ep(commonParams)
1059
- .m(function (Command, cs, config, o) {
1060
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1061
- })
1062
- .s("AnyScaleFrontendService", "DeleteScheduledAction", {})
1063
- .n("ApplicationAutoScalingClient", "DeleteScheduledActionCommand")
1064
- .sc(DeleteScheduledAction$)
1065
- .build() {
1053
+ class DeleteScheduledActionCommand extends command(_ep0, _mw0, "DeleteScheduledAction", DeleteScheduledAction$) {
1066
1054
  }
1067
1055
 
1068
- class DeregisterScalableTargetCommand extends Command
1069
- .classBuilder()
1070
- .ep(commonParams)
1071
- .m(function (Command, cs, config, o) {
1072
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1073
- })
1074
- .s("AnyScaleFrontendService", "DeregisterScalableTarget", {})
1075
- .n("ApplicationAutoScalingClient", "DeregisterScalableTargetCommand")
1076
- .sc(DeregisterScalableTarget$)
1077
- .build() {
1056
+ class DeregisterScalableTargetCommand extends command(_ep0, _mw0, "DeregisterScalableTarget", DeregisterScalableTarget$) {
1078
1057
  }
1079
1058
 
1080
- class DescribeScalableTargetsCommand extends Command
1081
- .classBuilder()
1082
- .ep(commonParams)
1083
- .m(function (Command, cs, config, o) {
1084
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1085
- })
1086
- .s("AnyScaleFrontendService", "DescribeScalableTargets", {})
1087
- .n("ApplicationAutoScalingClient", "DescribeScalableTargetsCommand")
1088
- .sc(DescribeScalableTargets$)
1089
- .build() {
1059
+ class DescribeScalableTargetsCommand extends command(_ep0, _mw0, "DescribeScalableTargets", DescribeScalableTargets$) {
1090
1060
  }
1091
1061
 
1092
- class DescribeScalingActivitiesCommand extends Command
1093
- .classBuilder()
1094
- .ep(commonParams)
1095
- .m(function (Command, cs, config, o) {
1096
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1097
- })
1098
- .s("AnyScaleFrontendService", "DescribeScalingActivities", {})
1099
- .n("ApplicationAutoScalingClient", "DescribeScalingActivitiesCommand")
1100
- .sc(DescribeScalingActivities$)
1101
- .build() {
1062
+ class DescribeScalingActivitiesCommand extends command(_ep0, _mw0, "DescribeScalingActivities", DescribeScalingActivities$) {
1102
1063
  }
1103
1064
 
1104
- class DescribeScalingPoliciesCommand extends Command
1105
- .classBuilder()
1106
- .ep(commonParams)
1107
- .m(function (Command, cs, config, o) {
1108
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1109
- })
1110
- .s("AnyScaleFrontendService", "DescribeScalingPolicies", {})
1111
- .n("ApplicationAutoScalingClient", "DescribeScalingPoliciesCommand")
1112
- .sc(DescribeScalingPolicies$)
1113
- .build() {
1065
+ class DescribeScalingPoliciesCommand extends command(_ep0, _mw0, "DescribeScalingPolicies", DescribeScalingPolicies$) {
1114
1066
  }
1115
1067
 
1116
- class DescribeScheduledActionsCommand extends Command
1117
- .classBuilder()
1118
- .ep(commonParams)
1119
- .m(function (Command, cs, config, o) {
1120
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1121
- })
1122
- .s("AnyScaleFrontendService", "DescribeScheduledActions", {})
1123
- .n("ApplicationAutoScalingClient", "DescribeScheduledActionsCommand")
1124
- .sc(DescribeScheduledActions$)
1125
- .build() {
1068
+ class DescribeScheduledActionsCommand extends command(_ep0, _mw0, "DescribeScheduledActions", DescribeScheduledActions$) {
1126
1069
  }
1127
1070
 
1128
- class GetPredictiveScalingForecastCommand extends Command
1129
- .classBuilder()
1130
- .ep(commonParams)
1131
- .m(function (Command, cs, config, o) {
1132
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1133
- })
1134
- .s("AnyScaleFrontendService", "GetPredictiveScalingForecast", {})
1135
- .n("ApplicationAutoScalingClient", "GetPredictiveScalingForecastCommand")
1136
- .sc(GetPredictiveScalingForecast$)
1137
- .build() {
1071
+ class GetPredictiveScalingForecastCommand extends command(_ep0, _mw0, "GetPredictiveScalingForecast", GetPredictiveScalingForecast$) {
1138
1072
  }
1139
1073
 
1140
- class ListTagsForResourceCommand extends Command
1141
- .classBuilder()
1142
- .ep(commonParams)
1143
- .m(function (Command, cs, config, o) {
1144
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1145
- })
1146
- .s("AnyScaleFrontendService", "ListTagsForResource", {})
1147
- .n("ApplicationAutoScalingClient", "ListTagsForResourceCommand")
1148
- .sc(ListTagsForResource$)
1149
- .build() {
1074
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1150
1075
  }
1151
1076
 
1152
- class PutScalingPolicyCommand extends Command
1153
- .classBuilder()
1154
- .ep(commonParams)
1155
- .m(function (Command, cs, config, o) {
1156
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1157
- })
1158
- .s("AnyScaleFrontendService", "PutScalingPolicy", {})
1159
- .n("ApplicationAutoScalingClient", "PutScalingPolicyCommand")
1160
- .sc(PutScalingPolicy$)
1161
- .build() {
1077
+ class PutScalingPolicyCommand extends command(_ep0, _mw0, "PutScalingPolicy", PutScalingPolicy$) {
1162
1078
  }
1163
1079
 
1164
- class PutScheduledActionCommand extends Command
1165
- .classBuilder()
1166
- .ep(commonParams)
1167
- .m(function (Command, cs, config, o) {
1168
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1169
- })
1170
- .s("AnyScaleFrontendService", "PutScheduledAction", {})
1171
- .n("ApplicationAutoScalingClient", "PutScheduledActionCommand")
1172
- .sc(PutScheduledAction$)
1173
- .build() {
1080
+ class PutScheduledActionCommand extends command(_ep0, _mw0, "PutScheduledAction", PutScheduledAction$) {
1174
1081
  }
1175
1082
 
1176
- class RegisterScalableTargetCommand extends Command
1177
- .classBuilder()
1178
- .ep(commonParams)
1179
- .m(function (Command, cs, config, o) {
1180
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1181
- })
1182
- .s("AnyScaleFrontendService", "RegisterScalableTarget", {})
1183
- .n("ApplicationAutoScalingClient", "RegisterScalableTargetCommand")
1184
- .sc(RegisterScalableTarget$)
1185
- .build() {
1083
+ class RegisterScalableTargetCommand extends command(_ep0, _mw0, "RegisterScalableTarget", RegisterScalableTarget$) {
1186
1084
  }
1187
1085
 
1188
- class TagResourceCommand extends Command
1189
- .classBuilder()
1190
- .ep(commonParams)
1191
- .m(function (Command, cs, config, o) {
1192
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1193
- })
1194
- .s("AnyScaleFrontendService", "TagResource", {})
1195
- .n("ApplicationAutoScalingClient", "TagResourceCommand")
1196
- .sc(TagResource$)
1197
- .build() {
1086
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1198
1087
  }
1199
1088
 
1200
- class UntagResourceCommand extends Command
1201
- .classBuilder()
1202
- .ep(commonParams)
1203
- .m(function (Command, cs, config, o) {
1204
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1205
- })
1206
- .s("AnyScaleFrontendService", "UntagResource", {})
1207
- .n("ApplicationAutoScalingClient", "UntagResourceCommand")
1208
- .sc(UntagResource$)
1209
- .build() {
1089
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1210
1090
  }
1211
1091
 
1212
1092
  const paginateDescribeScalableTargets = createPaginator(ApplicationAutoScalingClient, DescribeScalableTargetsCommand, "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, "AnyScaleFrontendService", "ApplicationAutoScalingClient", 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 { DeleteScalingPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteScalingPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AnyScaleFrontendService", "DeleteScalingPolicy", {})
13
- .n("ApplicationAutoScalingClient", "DeleteScalingPolicyCommand")
14
- .sc(DeleteScalingPolicy$)
15
- .build() {
3
+ export class DeleteScalingPolicyCommand extends command(_ep0, _mw0, "DeleteScalingPolicy", DeleteScalingPolicy$) {
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 { DeleteScheduledAction$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteScheduledActionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AnyScaleFrontendService", "DeleteScheduledAction", {})
13
- .n("ApplicationAutoScalingClient", "DeleteScheduledActionCommand")
14
- .sc(DeleteScheduledAction$)
15
- .build() {
3
+ export class DeleteScheduledActionCommand extends command(_ep0, _mw0, "DeleteScheduledAction", DeleteScheduledAction$) {
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 { DeregisterScalableTarget$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeregisterScalableTargetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AnyScaleFrontendService", "DeregisterScalableTarget", {})
13
- .n("ApplicationAutoScalingClient", "DeregisterScalableTargetCommand")
14
- .sc(DeregisterScalableTarget$)
15
- .build() {
3
+ export class DeregisterScalableTargetCommand extends command(_ep0, _mw0, "DeregisterScalableTarget", DeregisterScalableTarget$) {
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 { DescribeScalableTargets$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeScalableTargetsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AnyScaleFrontendService", "DescribeScalableTargets", {})
13
- .n("ApplicationAutoScalingClient", "DescribeScalableTargetsCommand")
14
- .sc(DescribeScalableTargets$)
15
- .build() {
3
+ export class DescribeScalableTargetsCommand extends command(_ep0, _mw0, "DescribeScalableTargets", DescribeScalableTargets$) {
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 { DescribeScalingActivities$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeScalingActivitiesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AnyScaleFrontendService", "DescribeScalingActivities", {})
13
- .n("ApplicationAutoScalingClient", "DescribeScalingActivitiesCommand")
14
- .sc(DescribeScalingActivities$)
15
- .build() {
3
+ export class DescribeScalingActivitiesCommand extends command(_ep0, _mw0, "DescribeScalingActivities", DescribeScalingActivities$) {
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 { DescribeScalingPolicies$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeScalingPoliciesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AnyScaleFrontendService", "DescribeScalingPolicies", {})
13
- .n("ApplicationAutoScalingClient", "DescribeScalingPoliciesCommand")
14
- .sc(DescribeScalingPolicies$)
15
- .build() {
3
+ export class DescribeScalingPoliciesCommand extends command(_ep0, _mw0, "DescribeScalingPolicies", DescribeScalingPolicies$) {
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 { DescribeScheduledActions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeScheduledActionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AnyScaleFrontendService", "DescribeScheduledActions", {})
13
- .n("ApplicationAutoScalingClient", "DescribeScheduledActionsCommand")
14
- .sc(DescribeScheduledActions$)
15
- .build() {
3
+ export class DescribeScheduledActionsCommand extends command(_ep0, _mw0, "DescribeScheduledActions", DescribeScheduledActions$) {
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 { GetPredictiveScalingForecast$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetPredictiveScalingForecastCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AnyScaleFrontendService", "GetPredictiveScalingForecast", {})
13
- .n("ApplicationAutoScalingClient", "GetPredictiveScalingForecastCommand")
14
- .sc(GetPredictiveScalingForecast$)
15
- .build() {
3
+ export class GetPredictiveScalingForecastCommand extends command(_ep0, _mw0, "GetPredictiveScalingForecast", GetPredictiveScalingForecast$) {
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("AnyScaleFrontendService", "ListTagsForResource", {})
13
- .n("ApplicationAutoScalingClient", "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 { PutScalingPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutScalingPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AnyScaleFrontendService", "PutScalingPolicy", {})
13
- .n("ApplicationAutoScalingClient", "PutScalingPolicyCommand")
14
- .sc(PutScalingPolicy$)
15
- .build() {
3
+ export class PutScalingPolicyCommand extends command(_ep0, _mw0, "PutScalingPolicy", PutScalingPolicy$) {
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 { PutScheduledAction$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutScheduledActionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AnyScaleFrontendService", "PutScheduledAction", {})
13
- .n("ApplicationAutoScalingClient", "PutScheduledActionCommand")
14
- .sc(PutScheduledAction$)
15
- .build() {
3
+ export class PutScheduledActionCommand extends command(_ep0, _mw0, "PutScheduledAction", PutScheduledAction$) {
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 { RegisterScalableTarget$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RegisterScalableTargetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AnyScaleFrontendService", "RegisterScalableTarget", {})
13
- .n("ApplicationAutoScalingClient", "RegisterScalableTargetCommand")
14
- .sc(RegisterScalableTarget$)
15
- .build() {
3
+ export class RegisterScalableTargetCommand extends command(_ep0, _mw0, "RegisterScalableTarget", RegisterScalableTarget$) {
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("AnyScaleFrontendService", "TagResource", {})
13
- .n("ApplicationAutoScalingClient", "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("AnyScaleFrontendService", "UntagResource", {})
13
- .n("ApplicationAutoScalingClient", "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 "./ApplicationAutoScalingClient";
2
2
  export * from "./ApplicationAutoScaling";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "AnyScaleFrontendService",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "Application Auto Scaling",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { ApplicationAutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./ApplicationAutoScalingClient";
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, ApplicationAutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, ApplicationAutoScalingClientResolvedConfig, 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[];