@aws-sdk/client-sfn 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 (131) hide show
  1. package/dist-cjs/index.js +51 -378
  2. package/dist-es/commandBuilder.js +10 -0
  3. package/dist-es/commands/CreateActivityCommand.js +2 -14
  4. package/dist-es/commands/CreateStateMachineAliasCommand.js +2 -14
  5. package/dist-es/commands/CreateStateMachineCommand.js +2 -14
  6. package/dist-es/commands/DeleteActivityCommand.js +2 -14
  7. package/dist-es/commands/DeleteStateMachineAliasCommand.js +2 -14
  8. package/dist-es/commands/DeleteStateMachineCommand.js +2 -14
  9. package/dist-es/commands/DeleteStateMachineVersionCommand.js +2 -14
  10. package/dist-es/commands/DescribeActivityCommand.js +2 -14
  11. package/dist-es/commands/DescribeExecutionCommand.js +2 -14
  12. package/dist-es/commands/DescribeMapRunCommand.js +2 -14
  13. package/dist-es/commands/DescribeStateMachineAliasCommand.js +2 -14
  14. package/dist-es/commands/DescribeStateMachineCommand.js +2 -14
  15. package/dist-es/commands/DescribeStateMachineForExecutionCommand.js +2 -14
  16. package/dist-es/commands/GetActivityTaskCommand.js +2 -18
  17. package/dist-es/commands/GetExecutionHistoryCommand.js +2 -14
  18. package/dist-es/commands/ListActivitiesCommand.js +2 -14
  19. package/dist-es/commands/ListExecutionsCommand.js +2 -14
  20. package/dist-es/commands/ListMapRunsCommand.js +2 -14
  21. package/dist-es/commands/ListStateMachineAliasesCommand.js +2 -14
  22. package/dist-es/commands/ListStateMachineVersionsCommand.js +2 -14
  23. package/dist-es/commands/ListStateMachinesCommand.js +2 -14
  24. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  25. package/dist-es/commands/PublishStateMachineVersionCommand.js +2 -14
  26. package/dist-es/commands/RedriveExecutionCommand.js +2 -14
  27. package/dist-es/commands/SendTaskFailureCommand.js +2 -14
  28. package/dist-es/commands/SendTaskHeartbeatCommand.js +2 -14
  29. package/dist-es/commands/SendTaskSuccessCommand.js +2 -14
  30. package/dist-es/commands/StartExecutionCommand.js +2 -14
  31. package/dist-es/commands/StartSyncExecutionCommand.js +2 -14
  32. package/dist-es/commands/StopExecutionCommand.js +2 -14
  33. package/dist-es/commands/TagResourceCommand.js +2 -14
  34. package/dist-es/commands/TestStateCommand.js +2 -14
  35. package/dist-es/commands/UntagResourceCommand.js +2 -14
  36. package/dist-es/commands/UpdateMapRunCommand.js +2 -14
  37. package/dist-es/commands/UpdateStateMachineAliasCommand.js +2 -14
  38. package/dist-es/commands/UpdateStateMachineCommand.js +2 -14
  39. package/dist-es/commands/ValidateStateMachineDefinitionCommand.js +2 -14
  40. package/dist-es/index.js +1 -0
  41. package/dist-es/runtimeConfig.browser.js +0 -2
  42. package/dist-es/runtimeConfig.js +1 -2
  43. package/dist-es/runtimeConfig.native.js +0 -2
  44. package/dist-es/runtimeConfig.shared.js +2 -0
  45. package/dist-types/commandBuilder.d.ts +22 -0
  46. package/dist-types/commands/CreateActivityCommand.d.ts +3 -8
  47. package/dist-types/commands/CreateStateMachineAliasCommand.d.ts +3 -8
  48. package/dist-types/commands/CreateStateMachineCommand.d.ts +3 -8
  49. package/dist-types/commands/DeleteActivityCommand.d.ts +3 -8
  50. package/dist-types/commands/DeleteStateMachineAliasCommand.d.ts +3 -8
  51. package/dist-types/commands/DeleteStateMachineCommand.d.ts +3 -8
  52. package/dist-types/commands/DeleteStateMachineVersionCommand.d.ts +3 -8
  53. package/dist-types/commands/DescribeActivityCommand.d.ts +3 -8
  54. package/dist-types/commands/DescribeExecutionCommand.d.ts +3 -8
  55. package/dist-types/commands/DescribeMapRunCommand.d.ts +3 -8
  56. package/dist-types/commands/DescribeStateMachineAliasCommand.d.ts +3 -8
  57. package/dist-types/commands/DescribeStateMachineCommand.d.ts +3 -8
  58. package/dist-types/commands/DescribeStateMachineForExecutionCommand.d.ts +3 -8
  59. package/dist-types/commands/GetActivityTaskCommand.d.ts +3 -8
  60. package/dist-types/commands/GetExecutionHistoryCommand.d.ts +3 -8
  61. package/dist-types/commands/ListActivitiesCommand.d.ts +3 -8
  62. package/dist-types/commands/ListExecutionsCommand.d.ts +3 -8
  63. package/dist-types/commands/ListMapRunsCommand.d.ts +3 -8
  64. package/dist-types/commands/ListStateMachineAliasesCommand.d.ts +3 -8
  65. package/dist-types/commands/ListStateMachineVersionsCommand.d.ts +3 -8
  66. package/dist-types/commands/ListStateMachinesCommand.d.ts +3 -8
  67. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  68. package/dist-types/commands/PublishStateMachineVersionCommand.d.ts +3 -8
  69. package/dist-types/commands/RedriveExecutionCommand.d.ts +3 -8
  70. package/dist-types/commands/SendTaskFailureCommand.d.ts +3 -8
  71. package/dist-types/commands/SendTaskHeartbeatCommand.d.ts +3 -8
  72. package/dist-types/commands/SendTaskSuccessCommand.d.ts +3 -8
  73. package/dist-types/commands/StartExecutionCommand.d.ts +3 -8
  74. package/dist-types/commands/StartSyncExecutionCommand.d.ts +3 -8
  75. package/dist-types/commands/StopExecutionCommand.d.ts +3 -8
  76. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  77. package/dist-types/commands/TestStateCommand.d.ts +3 -8
  78. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  79. package/dist-types/commands/UpdateMapRunCommand.d.ts +3 -8
  80. package/dist-types/commands/UpdateStateMachineAliasCommand.d.ts +3 -8
  81. package/dist-types/commands/UpdateStateMachineCommand.d.ts +3 -8
  82. package/dist-types/commands/ValidateStateMachineDefinitionCommand.d.ts +3 -8
  83. package/dist-types/index.d.ts +1 -0
  84. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  85. package/dist-types/runtimeConfig.d.ts +1 -1
  86. package/dist-types/runtimeConfig.native.d.ts +1 -1
  87. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  88. package/dist-types/ts3.4/commandBuilder.d.ts +52 -0
  89. package/dist-types/ts3.4/commands/CreateActivityCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/CreateStateMachineAliasCommand.d.ts +7 -16
  91. package/dist-types/ts3.4/commands/CreateStateMachineCommand.d.ts +7 -16
  92. package/dist-types/ts3.4/commands/DeleteActivityCommand.d.ts +7 -16
  93. package/dist-types/ts3.4/commands/DeleteStateMachineAliasCommand.d.ts +7 -16
  94. package/dist-types/ts3.4/commands/DeleteStateMachineCommand.d.ts +7 -16
  95. package/dist-types/ts3.4/commands/DeleteStateMachineVersionCommand.d.ts +7 -16
  96. package/dist-types/ts3.4/commands/DescribeActivityCommand.d.ts +7 -16
  97. package/dist-types/ts3.4/commands/DescribeExecutionCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/DescribeMapRunCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/commands/DescribeStateMachineAliasCommand.d.ts +7 -16
  100. package/dist-types/ts3.4/commands/DescribeStateMachineCommand.d.ts +7 -16
  101. package/dist-types/ts3.4/commands/DescribeStateMachineForExecutionCommand.d.ts +7 -16
  102. package/dist-types/ts3.4/commands/GetActivityTaskCommand.d.ts +7 -16
  103. package/dist-types/ts3.4/commands/GetExecutionHistoryCommand.d.ts +7 -16
  104. package/dist-types/ts3.4/commands/ListActivitiesCommand.d.ts +7 -16
  105. package/dist-types/ts3.4/commands/ListExecutionsCommand.d.ts +7 -16
  106. package/dist-types/ts3.4/commands/ListMapRunsCommand.d.ts +7 -16
  107. package/dist-types/ts3.4/commands/ListStateMachineAliasesCommand.d.ts +7 -16
  108. package/dist-types/ts3.4/commands/ListStateMachineVersionsCommand.d.ts +7 -16
  109. package/dist-types/ts3.4/commands/ListStateMachinesCommand.d.ts +7 -16
  110. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  111. package/dist-types/ts3.4/commands/PublishStateMachineVersionCommand.d.ts +7 -16
  112. package/dist-types/ts3.4/commands/RedriveExecutionCommand.d.ts +7 -16
  113. package/dist-types/ts3.4/commands/SendTaskFailureCommand.d.ts +7 -16
  114. package/dist-types/ts3.4/commands/SendTaskHeartbeatCommand.d.ts +7 -16
  115. package/dist-types/ts3.4/commands/SendTaskSuccessCommand.d.ts +7 -16
  116. package/dist-types/ts3.4/commands/StartExecutionCommand.d.ts +7 -16
  117. package/dist-types/ts3.4/commands/StartSyncExecutionCommand.d.ts +7 -16
  118. package/dist-types/ts3.4/commands/StopExecutionCommand.d.ts +7 -16
  119. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  120. package/dist-types/ts3.4/commands/TestStateCommand.d.ts +7 -16
  121. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  122. package/dist-types/ts3.4/commands/UpdateMapRunCommand.d.ts +7 -16
  123. package/dist-types/ts3.4/commands/UpdateStateMachineAliasCommand.d.ts +7 -16
  124. package/dist-types/ts3.4/commands/UpdateStateMachineCommand.d.ts +7 -16
  125. package/dist-types/ts3.4/commands/ValidateStateMachineDefinitionCommand.d.ts +7 -16
  126. package/dist-types/ts3.4/index.d.ts +1 -0
  127. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  128. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  129. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  130. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  131. 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, getLongPollPlugin } = 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_0Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultSFNHttpAuthSchemeParametersProvider = 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
 
@@ -2076,6 +2078,7 @@ const getRuntimeConfig$1 = (config) => {
2076
2078
  serviceTarget: "AWSStepFunctions",
2077
2079
  },
2078
2080
  serviceId: config?.serviceId ?? "SFN",
2081
+ sha256: config?.sha256 ?? Sha256,
2079
2082
  urlParser: config?.urlParser ?? parseUrl,
2080
2083
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
2081
2084
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -2109,7 +2112,6 @@ const getRuntimeConfig = (config) => {
2109
2112
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
2110
2113
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
2111
2114
  }, config),
2112
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
2113
2115
  streamCollector: config?.streamCollector ?? streamCollector,
2114
2116
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
2115
2117
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -2197,451 +2199,122 @@ class SFNClient extends Client {
2197
2199
  }
2198
2200
  }
2199
2201
 
2200
- class CreateActivityCommand extends Command
2201
- .classBuilder()
2202
- .ep(commonParams)
2203
- .m(function (Command, cs, config, o) {
2204
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2205
- })
2206
- .s("AWSStepFunctions", "CreateActivity", {})
2207
- .n("SFNClient", "CreateActivityCommand")
2208
- .sc(CreateActivity$)
2209
- .build() {
2202
+ const command = makeBuilder(commonParams, "AWSStepFunctions", "SFNClient", getEndpointPlugin);
2203
+ const _ep0 = {};
2204
+ const _mw0 = (Command, cs, config, o) => [];
2205
+ const _mw1 = (Command, cs, config, o) => [
2206
+ getLongPollPlugin(config),
2207
+ ];
2208
+
2209
+ class CreateActivityCommand extends command(_ep0, _mw0, "CreateActivity", CreateActivity$) {
2210
2210
  }
2211
2211
 
2212
- class CreateStateMachineAliasCommand extends Command
2213
- .classBuilder()
2214
- .ep(commonParams)
2215
- .m(function (Command, cs, config, o) {
2216
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2217
- })
2218
- .s("AWSStepFunctions", "CreateStateMachineAlias", {})
2219
- .n("SFNClient", "CreateStateMachineAliasCommand")
2220
- .sc(CreateStateMachineAlias$)
2221
- .build() {
2212
+ class CreateStateMachineAliasCommand extends command(_ep0, _mw0, "CreateStateMachineAlias", CreateStateMachineAlias$) {
2222
2213
  }
2223
2214
 
2224
- class CreateStateMachineCommand extends Command
2225
- .classBuilder()
2226
- .ep(commonParams)
2227
- .m(function (Command, cs, config, o) {
2228
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2229
- })
2230
- .s("AWSStepFunctions", "CreateStateMachine", {})
2231
- .n("SFNClient", "CreateStateMachineCommand")
2232
- .sc(CreateStateMachine$)
2233
- .build() {
2215
+ class CreateStateMachineCommand extends command(_ep0, _mw0, "CreateStateMachine", CreateStateMachine$) {
2234
2216
  }
2235
2217
 
2236
- class DeleteActivityCommand extends Command
2237
- .classBuilder()
2238
- .ep(commonParams)
2239
- .m(function (Command, cs, config, o) {
2240
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2241
- })
2242
- .s("AWSStepFunctions", "DeleteActivity", {})
2243
- .n("SFNClient", "DeleteActivityCommand")
2244
- .sc(DeleteActivity$)
2245
- .build() {
2218
+ class DeleteActivityCommand extends command(_ep0, _mw0, "DeleteActivity", DeleteActivity$) {
2246
2219
  }
2247
2220
 
2248
- class DeleteStateMachineAliasCommand extends Command
2249
- .classBuilder()
2250
- .ep(commonParams)
2251
- .m(function (Command, cs, config, o) {
2252
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2253
- })
2254
- .s("AWSStepFunctions", "DeleteStateMachineAlias", {})
2255
- .n("SFNClient", "DeleteStateMachineAliasCommand")
2256
- .sc(DeleteStateMachineAlias$)
2257
- .build() {
2221
+ class DeleteStateMachineAliasCommand extends command(_ep0, _mw0, "DeleteStateMachineAlias", DeleteStateMachineAlias$) {
2258
2222
  }
2259
2223
 
2260
- class DeleteStateMachineCommand extends Command
2261
- .classBuilder()
2262
- .ep(commonParams)
2263
- .m(function (Command, cs, config, o) {
2264
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2265
- })
2266
- .s("AWSStepFunctions", "DeleteStateMachine", {})
2267
- .n("SFNClient", "DeleteStateMachineCommand")
2268
- .sc(DeleteStateMachine$)
2269
- .build() {
2224
+ class DeleteStateMachineCommand extends command(_ep0, _mw0, "DeleteStateMachine", DeleteStateMachine$) {
2270
2225
  }
2271
2226
 
2272
- class DeleteStateMachineVersionCommand extends Command
2273
- .classBuilder()
2274
- .ep(commonParams)
2275
- .m(function (Command, cs, config, o) {
2276
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2277
- })
2278
- .s("AWSStepFunctions", "DeleteStateMachineVersion", {})
2279
- .n("SFNClient", "DeleteStateMachineVersionCommand")
2280
- .sc(DeleteStateMachineVersion$)
2281
- .build() {
2227
+ class DeleteStateMachineVersionCommand extends command(_ep0, _mw0, "DeleteStateMachineVersion", DeleteStateMachineVersion$) {
2282
2228
  }
2283
2229
 
2284
- class DescribeActivityCommand extends Command
2285
- .classBuilder()
2286
- .ep(commonParams)
2287
- .m(function (Command, cs, config, o) {
2288
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2289
- })
2290
- .s("AWSStepFunctions", "DescribeActivity", {})
2291
- .n("SFNClient", "DescribeActivityCommand")
2292
- .sc(DescribeActivity$)
2293
- .build() {
2230
+ class DescribeActivityCommand extends command(_ep0, _mw0, "DescribeActivity", DescribeActivity$) {
2294
2231
  }
2295
2232
 
2296
- class DescribeExecutionCommand extends Command
2297
- .classBuilder()
2298
- .ep(commonParams)
2299
- .m(function (Command, cs, config, o) {
2300
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2301
- })
2302
- .s("AWSStepFunctions", "DescribeExecution", {})
2303
- .n("SFNClient", "DescribeExecutionCommand")
2304
- .sc(DescribeExecution$)
2305
- .build() {
2233
+ class DescribeExecutionCommand extends command(_ep0, _mw0, "DescribeExecution", DescribeExecution$) {
2306
2234
  }
2307
2235
 
2308
- class DescribeMapRunCommand extends Command
2309
- .classBuilder()
2310
- .ep(commonParams)
2311
- .m(function (Command, cs, config, o) {
2312
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2313
- })
2314
- .s("AWSStepFunctions", "DescribeMapRun", {})
2315
- .n("SFNClient", "DescribeMapRunCommand")
2316
- .sc(DescribeMapRun$)
2317
- .build() {
2236
+ class DescribeMapRunCommand extends command(_ep0, _mw0, "DescribeMapRun", DescribeMapRun$) {
2318
2237
  }
2319
2238
 
2320
- class DescribeStateMachineAliasCommand extends Command
2321
- .classBuilder()
2322
- .ep(commonParams)
2323
- .m(function (Command, cs, config, o) {
2324
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2325
- })
2326
- .s("AWSStepFunctions", "DescribeStateMachineAlias", {})
2327
- .n("SFNClient", "DescribeStateMachineAliasCommand")
2328
- .sc(DescribeStateMachineAlias$)
2329
- .build() {
2239
+ class DescribeStateMachineAliasCommand extends command(_ep0, _mw0, "DescribeStateMachineAlias", DescribeStateMachineAlias$) {
2330
2240
  }
2331
2241
 
2332
- class DescribeStateMachineCommand extends Command
2333
- .classBuilder()
2334
- .ep(commonParams)
2335
- .m(function (Command, cs, config, o) {
2336
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2337
- })
2338
- .s("AWSStepFunctions", "DescribeStateMachine", {})
2339
- .n("SFNClient", "DescribeStateMachineCommand")
2340
- .sc(DescribeStateMachine$)
2341
- .build() {
2242
+ class DescribeStateMachineCommand extends command(_ep0, _mw0, "DescribeStateMachine", DescribeStateMachine$) {
2342
2243
  }
2343
2244
 
2344
- class DescribeStateMachineForExecutionCommand extends Command
2345
- .classBuilder()
2346
- .ep(commonParams)
2347
- .m(function (Command, cs, config, o) {
2348
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2349
- })
2350
- .s("AWSStepFunctions", "DescribeStateMachineForExecution", {})
2351
- .n("SFNClient", "DescribeStateMachineForExecutionCommand")
2352
- .sc(DescribeStateMachineForExecution$)
2353
- .build() {
2245
+ class DescribeStateMachineForExecutionCommand extends command(_ep0, _mw0, "DescribeStateMachineForExecution", DescribeStateMachineForExecution$) {
2354
2246
  }
2355
2247
 
2356
- class GetActivityTaskCommand extends Command
2357
- .classBuilder()
2358
- .ep(commonParams)
2359
- .m(function (Command, cs, config, o) {
2360
- return [
2361
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2362
- getLongPollPlugin(config),
2363
- ];
2364
- })
2365
- .s("AWSStepFunctions", "GetActivityTask", {})
2366
- .n("SFNClient", "GetActivityTaskCommand")
2367
- .sc(GetActivityTask$)
2368
- .build() {
2248
+ class GetActivityTaskCommand extends command(_ep0, _mw1, "GetActivityTask", GetActivityTask$) {
2369
2249
  }
2370
2250
 
2371
- class GetExecutionHistoryCommand extends Command
2372
- .classBuilder()
2373
- .ep(commonParams)
2374
- .m(function (Command, cs, config, o) {
2375
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2376
- })
2377
- .s("AWSStepFunctions", "GetExecutionHistory", {})
2378
- .n("SFNClient", "GetExecutionHistoryCommand")
2379
- .sc(GetExecutionHistory$)
2380
- .build() {
2251
+ class GetExecutionHistoryCommand extends command(_ep0, _mw0, "GetExecutionHistory", GetExecutionHistory$) {
2381
2252
  }
2382
2253
 
2383
- class ListActivitiesCommand extends Command
2384
- .classBuilder()
2385
- .ep(commonParams)
2386
- .m(function (Command, cs, config, o) {
2387
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2388
- })
2389
- .s("AWSStepFunctions", "ListActivities", {})
2390
- .n("SFNClient", "ListActivitiesCommand")
2391
- .sc(ListActivities$)
2392
- .build() {
2254
+ class ListActivitiesCommand extends command(_ep0, _mw0, "ListActivities", ListActivities$) {
2393
2255
  }
2394
2256
 
2395
- class ListExecutionsCommand extends Command
2396
- .classBuilder()
2397
- .ep(commonParams)
2398
- .m(function (Command, cs, config, o) {
2399
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2400
- })
2401
- .s("AWSStepFunctions", "ListExecutions", {})
2402
- .n("SFNClient", "ListExecutionsCommand")
2403
- .sc(ListExecutions$)
2404
- .build() {
2257
+ class ListExecutionsCommand extends command(_ep0, _mw0, "ListExecutions", ListExecutions$) {
2405
2258
  }
2406
2259
 
2407
- class ListMapRunsCommand extends Command
2408
- .classBuilder()
2409
- .ep(commonParams)
2410
- .m(function (Command, cs, config, o) {
2411
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2412
- })
2413
- .s("AWSStepFunctions", "ListMapRuns", {})
2414
- .n("SFNClient", "ListMapRunsCommand")
2415
- .sc(ListMapRuns$)
2416
- .build() {
2260
+ class ListMapRunsCommand extends command(_ep0, _mw0, "ListMapRuns", ListMapRuns$) {
2417
2261
  }
2418
2262
 
2419
- class ListStateMachineAliasesCommand extends Command
2420
- .classBuilder()
2421
- .ep(commonParams)
2422
- .m(function (Command, cs, config, o) {
2423
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2424
- })
2425
- .s("AWSStepFunctions", "ListStateMachineAliases", {})
2426
- .n("SFNClient", "ListStateMachineAliasesCommand")
2427
- .sc(ListStateMachineAliases$)
2428
- .build() {
2263
+ class ListStateMachineAliasesCommand extends command(_ep0, _mw0, "ListStateMachineAliases", ListStateMachineAliases$) {
2429
2264
  }
2430
2265
 
2431
- class ListStateMachinesCommand extends Command
2432
- .classBuilder()
2433
- .ep(commonParams)
2434
- .m(function (Command, cs, config, o) {
2435
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2436
- })
2437
- .s("AWSStepFunctions", "ListStateMachines", {})
2438
- .n("SFNClient", "ListStateMachinesCommand")
2439
- .sc(ListStateMachines$)
2440
- .build() {
2266
+ class ListStateMachinesCommand extends command(_ep0, _mw0, "ListStateMachines", ListStateMachines$) {
2441
2267
  }
2442
2268
 
2443
- class ListStateMachineVersionsCommand extends Command
2444
- .classBuilder()
2445
- .ep(commonParams)
2446
- .m(function (Command, cs, config, o) {
2447
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2448
- })
2449
- .s("AWSStepFunctions", "ListStateMachineVersions", {})
2450
- .n("SFNClient", "ListStateMachineVersionsCommand")
2451
- .sc(ListStateMachineVersions$)
2452
- .build() {
2269
+ class ListStateMachineVersionsCommand extends command(_ep0, _mw0, "ListStateMachineVersions", ListStateMachineVersions$) {
2453
2270
  }
2454
2271
 
2455
- class ListTagsForResourceCommand extends Command
2456
- .classBuilder()
2457
- .ep(commonParams)
2458
- .m(function (Command, cs, config, o) {
2459
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2460
- })
2461
- .s("AWSStepFunctions", "ListTagsForResource", {})
2462
- .n("SFNClient", "ListTagsForResourceCommand")
2463
- .sc(ListTagsForResource$)
2464
- .build() {
2272
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
2465
2273
  }
2466
2274
 
2467
- class PublishStateMachineVersionCommand extends Command
2468
- .classBuilder()
2469
- .ep(commonParams)
2470
- .m(function (Command, cs, config, o) {
2471
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2472
- })
2473
- .s("AWSStepFunctions", "PublishStateMachineVersion", {})
2474
- .n("SFNClient", "PublishStateMachineVersionCommand")
2475
- .sc(PublishStateMachineVersion$)
2476
- .build() {
2275
+ class PublishStateMachineVersionCommand extends command(_ep0, _mw0, "PublishStateMachineVersion", PublishStateMachineVersion$) {
2477
2276
  }
2478
2277
 
2479
- class RedriveExecutionCommand extends Command
2480
- .classBuilder()
2481
- .ep(commonParams)
2482
- .m(function (Command, cs, config, o) {
2483
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2484
- })
2485
- .s("AWSStepFunctions", "RedriveExecution", {})
2486
- .n("SFNClient", "RedriveExecutionCommand")
2487
- .sc(RedriveExecution$)
2488
- .build() {
2278
+ class RedriveExecutionCommand extends command(_ep0, _mw0, "RedriveExecution", RedriveExecution$) {
2489
2279
  }
2490
2280
 
2491
- class SendTaskFailureCommand extends Command
2492
- .classBuilder()
2493
- .ep(commonParams)
2494
- .m(function (Command, cs, config, o) {
2495
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2496
- })
2497
- .s("AWSStepFunctions", "SendTaskFailure", {})
2498
- .n("SFNClient", "SendTaskFailureCommand")
2499
- .sc(SendTaskFailure$)
2500
- .build() {
2281
+ class SendTaskFailureCommand extends command(_ep0, _mw0, "SendTaskFailure", SendTaskFailure$) {
2501
2282
  }
2502
2283
 
2503
- class SendTaskHeartbeatCommand extends Command
2504
- .classBuilder()
2505
- .ep(commonParams)
2506
- .m(function (Command, cs, config, o) {
2507
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2508
- })
2509
- .s("AWSStepFunctions", "SendTaskHeartbeat", {})
2510
- .n("SFNClient", "SendTaskHeartbeatCommand")
2511
- .sc(SendTaskHeartbeat$)
2512
- .build() {
2284
+ class SendTaskHeartbeatCommand extends command(_ep0, _mw0, "SendTaskHeartbeat", SendTaskHeartbeat$) {
2513
2285
  }
2514
2286
 
2515
- class SendTaskSuccessCommand extends Command
2516
- .classBuilder()
2517
- .ep(commonParams)
2518
- .m(function (Command, cs, config, o) {
2519
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2520
- })
2521
- .s("AWSStepFunctions", "SendTaskSuccess", {})
2522
- .n("SFNClient", "SendTaskSuccessCommand")
2523
- .sc(SendTaskSuccess$)
2524
- .build() {
2287
+ class SendTaskSuccessCommand extends command(_ep0, _mw0, "SendTaskSuccess", SendTaskSuccess$) {
2525
2288
  }
2526
2289
 
2527
- class StartExecutionCommand extends Command
2528
- .classBuilder()
2529
- .ep(commonParams)
2530
- .m(function (Command, cs, config, o) {
2531
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2532
- })
2533
- .s("AWSStepFunctions", "StartExecution", {})
2534
- .n("SFNClient", "StartExecutionCommand")
2535
- .sc(StartExecution$)
2536
- .build() {
2290
+ class StartExecutionCommand extends command(_ep0, _mw0, "StartExecution", StartExecution$) {
2537
2291
  }
2538
2292
 
2539
- class StartSyncExecutionCommand extends Command
2540
- .classBuilder()
2541
- .ep(commonParams)
2542
- .m(function (Command, cs, config, o) {
2543
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2544
- })
2545
- .s("AWSStepFunctions", "StartSyncExecution", {})
2546
- .n("SFNClient", "StartSyncExecutionCommand")
2547
- .sc(StartSyncExecution$)
2548
- .build() {
2293
+ class StartSyncExecutionCommand extends command(_ep0, _mw0, "StartSyncExecution", StartSyncExecution$) {
2549
2294
  }
2550
2295
 
2551
- class StopExecutionCommand extends Command
2552
- .classBuilder()
2553
- .ep(commonParams)
2554
- .m(function (Command, cs, config, o) {
2555
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2556
- })
2557
- .s("AWSStepFunctions", "StopExecution", {})
2558
- .n("SFNClient", "StopExecutionCommand")
2559
- .sc(StopExecution$)
2560
- .build() {
2296
+ class StopExecutionCommand extends command(_ep0, _mw0, "StopExecution", StopExecution$) {
2561
2297
  }
2562
2298
 
2563
- class TagResourceCommand extends Command
2564
- .classBuilder()
2565
- .ep(commonParams)
2566
- .m(function (Command, cs, config, o) {
2567
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2568
- })
2569
- .s("AWSStepFunctions", "TagResource", {})
2570
- .n("SFNClient", "TagResourceCommand")
2571
- .sc(TagResource$)
2572
- .build() {
2299
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
2573
2300
  }
2574
2301
 
2575
- class TestStateCommand extends Command
2576
- .classBuilder()
2577
- .ep(commonParams)
2578
- .m(function (Command, cs, config, o) {
2579
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2580
- })
2581
- .s("AWSStepFunctions", "TestState", {})
2582
- .n("SFNClient", "TestStateCommand")
2583
- .sc(TestState$)
2584
- .build() {
2302
+ class TestStateCommand extends command(_ep0, _mw0, "TestState", TestState$) {
2585
2303
  }
2586
2304
 
2587
- class UntagResourceCommand extends Command
2588
- .classBuilder()
2589
- .ep(commonParams)
2590
- .m(function (Command, cs, config, o) {
2591
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2592
- })
2593
- .s("AWSStepFunctions", "UntagResource", {})
2594
- .n("SFNClient", "UntagResourceCommand")
2595
- .sc(UntagResource$)
2596
- .build() {
2305
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
2597
2306
  }
2598
2307
 
2599
- class UpdateMapRunCommand extends Command
2600
- .classBuilder()
2601
- .ep(commonParams)
2602
- .m(function (Command, cs, config, o) {
2603
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2604
- })
2605
- .s("AWSStepFunctions", "UpdateMapRun", {})
2606
- .n("SFNClient", "UpdateMapRunCommand")
2607
- .sc(UpdateMapRun$)
2608
- .build() {
2308
+ class UpdateMapRunCommand extends command(_ep0, _mw0, "UpdateMapRun", UpdateMapRun$) {
2609
2309
  }
2610
2310
 
2611
- class UpdateStateMachineAliasCommand extends Command
2612
- .classBuilder()
2613
- .ep(commonParams)
2614
- .m(function (Command, cs, config, o) {
2615
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2616
- })
2617
- .s("AWSStepFunctions", "UpdateStateMachineAlias", {})
2618
- .n("SFNClient", "UpdateStateMachineAliasCommand")
2619
- .sc(UpdateStateMachineAlias$)
2620
- .build() {
2311
+ class UpdateStateMachineAliasCommand extends command(_ep0, _mw0, "UpdateStateMachineAlias", UpdateStateMachineAlias$) {
2621
2312
  }
2622
2313
 
2623
- class UpdateStateMachineCommand extends Command
2624
- .classBuilder()
2625
- .ep(commonParams)
2626
- .m(function (Command, cs, config, o) {
2627
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2628
- })
2629
- .s("AWSStepFunctions", "UpdateStateMachine", {})
2630
- .n("SFNClient", "UpdateStateMachineCommand")
2631
- .sc(UpdateStateMachine$)
2632
- .build() {
2314
+ class UpdateStateMachineCommand extends command(_ep0, _mw0, "UpdateStateMachine", UpdateStateMachine$) {
2633
2315
  }
2634
2316
 
2635
- class ValidateStateMachineDefinitionCommand extends Command
2636
- .classBuilder()
2637
- .ep(commonParams)
2638
- .m(function (Command, cs, config, o) {
2639
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
2640
- })
2641
- .s("AWSStepFunctions", "ValidateStateMachineDefinition", {})
2642
- .n("SFNClient", "ValidateStateMachineDefinitionCommand")
2643
- .sc(ValidateStateMachineDefinition$)
2644
- .build() {
2317
+ class ValidateStateMachineDefinitionCommand extends command(_ep0, _mw0, "ValidateStateMachineDefinition", ValidateStateMachineDefinition$) {
2645
2318
  }
2646
2319
 
2647
2320
  const paginateGetExecutionHistory = createPaginator(SFNClient, GetExecutionHistoryCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,10 @@
1
+ import { getLongPollPlugin } from "@aws-sdk/core/client";
2
+ import { makeBuilder } from "@smithy/core/client";
3
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
4
+ import { commonParams } from "./endpoint/EndpointParameters";
5
+ export const command = makeBuilder(commonParams, "AWSStepFunctions", "SFNClient", getEndpointPlugin);
6
+ export const _ep0 = {};
7
+ export const _mw0 = (Command, cs, config, o) => [];
8
+ export const _mw1 = (Command, cs, config, o) => [
9
+ getLongPollPlugin(config),
10
+ ];
@@ -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 { CreateActivity$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateActivityCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSStepFunctions", "CreateActivity", {})
13
- .n("SFNClient", "CreateActivityCommand")
14
- .sc(CreateActivity$)
15
- .build() {
3
+ export class CreateActivityCommand extends command(_ep0, _mw0, "CreateActivity", CreateActivity$) {
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 { CreateStateMachineAlias$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateStateMachineAliasCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSStepFunctions", "CreateStateMachineAlias", {})
13
- .n("SFNClient", "CreateStateMachineAliasCommand")
14
- .sc(CreateStateMachineAlias$)
15
- .build() {
3
+ export class CreateStateMachineAliasCommand extends command(_ep0, _mw0, "CreateStateMachineAlias", CreateStateMachineAlias$) {
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 { CreateStateMachine$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateStateMachineCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSStepFunctions", "CreateStateMachine", {})
13
- .n("SFNClient", "CreateStateMachineCommand")
14
- .sc(CreateStateMachine$)
15
- .build() {
3
+ export class CreateStateMachineCommand extends command(_ep0, _mw0, "CreateStateMachine", CreateStateMachine$) {
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 { DeleteActivity$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteActivityCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSStepFunctions", "DeleteActivity", {})
13
- .n("SFNClient", "DeleteActivityCommand")
14
- .sc(DeleteActivity$)
15
- .build() {
3
+ export class DeleteActivityCommand extends command(_ep0, _mw0, "DeleteActivity", DeleteActivity$) {
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 { DeleteStateMachineAlias$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteStateMachineAliasCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSStepFunctions", "DeleteStateMachineAlias", {})
13
- .n("SFNClient", "DeleteStateMachineAliasCommand")
14
- .sc(DeleteStateMachineAlias$)
15
- .build() {
3
+ export class DeleteStateMachineAliasCommand extends command(_ep0, _mw0, "DeleteStateMachineAlias", DeleteStateMachineAlias$) {
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 { DeleteStateMachine$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteStateMachineCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSStepFunctions", "DeleteStateMachine", {})
13
- .n("SFNClient", "DeleteStateMachineCommand")
14
- .sc(DeleteStateMachine$)
15
- .build() {
3
+ export class DeleteStateMachineCommand extends command(_ep0, _mw0, "DeleteStateMachine", DeleteStateMachine$) {
16
4
  }