@aws-sdk/client-swf 3.582.0 → 3.585.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.
- package/README.md +16 -0
- package/dist-cjs/index.js +103 -0
- package/dist-es/SWF.js +4 -0
- package/dist-es/commands/DeleteActivityTypeCommand.js +24 -0
- package/dist-es/commands/DeleteWorkflowTypeCommand.js +24 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_json1_0.js +45 -1
- package/dist-types/SWF.d.ts +14 -0
- package/dist-types/SWFClient.d.ts +4 -2
- package/dist-types/commands/DeleteActivityTypeCommand.d.ts +109 -0
- package/dist-types/commands/DeleteWorkflowTypeCommand.d.ts +110 -0
- package/dist-types/commands/DeprecateActivityTypeCommand.d.ts +0 -4
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +42 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
- package/dist-types/ts3.4/SWF.d.ts +34 -0
- package/dist-types/ts3.4/SWFClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DeleteActivityTypeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteWorkflowTypeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +15 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -247,6 +247,22 @@ CountPendingDecisionTasks
|
|
|
247
247
|
|
|
248
248
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/swf/command/CountPendingDecisionTasksCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-swf/Interface/CountPendingDecisionTasksCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-swf/Interface/CountPendingDecisionTasksCommandOutput/)
|
|
249
249
|
|
|
250
|
+
</details>
|
|
251
|
+
<details>
|
|
252
|
+
<summary>
|
|
253
|
+
DeleteActivityType
|
|
254
|
+
</summary>
|
|
255
|
+
|
|
256
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/swf/command/DeleteActivityTypeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-swf/Interface/DeleteActivityTypeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-swf/Interface/DeleteActivityTypeCommandOutput/)
|
|
257
|
+
|
|
258
|
+
</details>
|
|
259
|
+
<details>
|
|
260
|
+
<summary>
|
|
261
|
+
DeleteWorkflowType
|
|
262
|
+
</summary>
|
|
263
|
+
|
|
264
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/swf/command/DeleteWorkflowTypeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-swf/Interface/DeleteWorkflowTypeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-swf/Interface/DeleteWorkflowTypeCommandOutput/)
|
|
265
|
+
|
|
250
266
|
</details>
|
|
251
267
|
<details>
|
|
252
268
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -35,6 +35,8 @@ __export(src_exports, {
|
|
|
35
35
|
DecisionTaskTimeoutType: () => DecisionTaskTimeoutType,
|
|
36
36
|
DecisionType: () => DecisionType,
|
|
37
37
|
DefaultUndefinedFault: () => DefaultUndefinedFault,
|
|
38
|
+
DeleteActivityTypeCommand: () => DeleteActivityTypeCommand,
|
|
39
|
+
DeleteWorkflowTypeCommand: () => DeleteWorkflowTypeCommand,
|
|
38
40
|
DeprecateActivityTypeCommand: () => DeprecateActivityTypeCommand,
|
|
39
41
|
DeprecateDomainCommand: () => DeprecateDomainCommand,
|
|
40
42
|
DeprecateWorkflowTypeCommand: () => DeprecateWorkflowTypeCommand,
|
|
@@ -88,6 +90,7 @@ __export(src_exports, {
|
|
|
88
90
|
TooManyTagsFault: () => TooManyTagsFault,
|
|
89
91
|
TypeAlreadyExistsFault: () => TypeAlreadyExistsFault,
|
|
90
92
|
TypeDeprecatedFault: () => TypeDeprecatedFault,
|
|
93
|
+
TypeNotDeprecatedFault: () => TypeNotDeprecatedFault,
|
|
91
94
|
UndeprecateActivityTypeCommand: () => UndeprecateActivityTypeCommand,
|
|
92
95
|
UndeprecateDomainCommand: () => UndeprecateDomainCommand,
|
|
93
96
|
UndeprecateWorkflowTypeCommand: () => UndeprecateWorkflowTypeCommand,
|
|
@@ -528,6 +531,23 @@ var _DefaultUndefinedFault = class _DefaultUndefinedFault extends SWFServiceExce
|
|
|
528
531
|
};
|
|
529
532
|
__name(_DefaultUndefinedFault, "DefaultUndefinedFault");
|
|
530
533
|
var DefaultUndefinedFault = _DefaultUndefinedFault;
|
|
534
|
+
var _TypeNotDeprecatedFault = class _TypeNotDeprecatedFault extends SWFServiceException {
|
|
535
|
+
/**
|
|
536
|
+
* @internal
|
|
537
|
+
*/
|
|
538
|
+
constructor(opts) {
|
|
539
|
+
super({
|
|
540
|
+
name: "TypeNotDeprecatedFault",
|
|
541
|
+
$fault: "client",
|
|
542
|
+
...opts
|
|
543
|
+
});
|
|
544
|
+
this.name = "TypeNotDeprecatedFault";
|
|
545
|
+
this.$fault = "client";
|
|
546
|
+
Object.setPrototypeOf(this, _TypeNotDeprecatedFault.prototype);
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
__name(_TypeNotDeprecatedFault, "TypeNotDeprecatedFault");
|
|
550
|
+
var TypeNotDeprecatedFault = _TypeNotDeprecatedFault;
|
|
531
551
|
var _TypeDeprecatedFault = class _TypeDeprecatedFault extends SWFServiceException {
|
|
532
552
|
/**
|
|
533
553
|
* @internal
|
|
@@ -677,6 +697,18 @@ var se_CountPendingDecisionTasksCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
677
697
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
678
698
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
679
699
|
}, "se_CountPendingDecisionTasksCommand");
|
|
700
|
+
var se_DeleteActivityTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
701
|
+
const headers = sharedHeaders("DeleteActivityType");
|
|
702
|
+
let body;
|
|
703
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
704
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
705
|
+
}, "se_DeleteActivityTypeCommand");
|
|
706
|
+
var se_DeleteWorkflowTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
707
|
+
const headers = sharedHeaders("DeleteWorkflowType");
|
|
708
|
+
let body;
|
|
709
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
710
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
711
|
+
}, "se_DeleteWorkflowTypeCommand");
|
|
680
712
|
var se_DeprecateActivityTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
681
713
|
const headers = sharedHeaders("DeprecateActivityType");
|
|
682
714
|
let body;
|
|
@@ -927,6 +959,26 @@ var de_CountPendingDecisionTasksCommand = /* @__PURE__ */ __name(async (output,
|
|
|
927
959
|
};
|
|
928
960
|
return response;
|
|
929
961
|
}, "de_CountPendingDecisionTasksCommand");
|
|
962
|
+
var de_DeleteActivityTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
963
|
+
if (output.statusCode >= 300) {
|
|
964
|
+
return de_CommandError(output, context);
|
|
965
|
+
}
|
|
966
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
967
|
+
const response = {
|
|
968
|
+
$metadata: deserializeMetadata(output)
|
|
969
|
+
};
|
|
970
|
+
return response;
|
|
971
|
+
}, "de_DeleteActivityTypeCommand");
|
|
972
|
+
var de_DeleteWorkflowTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
973
|
+
if (output.statusCode >= 300) {
|
|
974
|
+
return de_CommandError(output, context);
|
|
975
|
+
}
|
|
976
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
977
|
+
const response = {
|
|
978
|
+
$metadata: deserializeMetadata(output)
|
|
979
|
+
};
|
|
980
|
+
return response;
|
|
981
|
+
}, "de_DeleteWorkflowTypeCommand");
|
|
930
982
|
var de_DeprecateActivityTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
931
983
|
if (output.statusCode >= 300) {
|
|
932
984
|
return de_CommandError(output, context);
|
|
@@ -1315,6 +1367,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1315
1367
|
case "UnknownResourceFault":
|
|
1316
1368
|
case "com.amazonaws.swf#UnknownResourceFault":
|
|
1317
1369
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
1370
|
+
case "TypeNotDeprecatedFault":
|
|
1371
|
+
case "com.amazonaws.swf#TypeNotDeprecatedFault":
|
|
1372
|
+
throw await de_TypeNotDeprecatedFaultRes(parsedOutput, context);
|
|
1318
1373
|
case "TypeDeprecatedFault":
|
|
1319
1374
|
case "com.amazonaws.swf#TypeDeprecatedFault":
|
|
1320
1375
|
throw await de_TypeDeprecatedFaultRes(parsedOutput, context);
|
|
@@ -1420,6 +1475,15 @@ var de_TypeDeprecatedFaultRes = /* @__PURE__ */ __name(async (parsedOutput, cont
|
|
|
1420
1475
|
});
|
|
1421
1476
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1422
1477
|
}, "de_TypeDeprecatedFaultRes");
|
|
1478
|
+
var de_TypeNotDeprecatedFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1479
|
+
const body = parsedOutput.body;
|
|
1480
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1481
|
+
const exception = new TypeNotDeprecatedFault({
|
|
1482
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1483
|
+
...deserialized
|
|
1484
|
+
});
|
|
1485
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1486
|
+
}, "de_TypeNotDeprecatedFaultRes");
|
|
1423
1487
|
var de_UnknownResourceFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1424
1488
|
const body = parsedOutput.body;
|
|
1425
1489
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -1759,6 +1823,40 @@ var _CountPendingDecisionTasksCommand = class _CountPendingDecisionTasksCommand
|
|
|
1759
1823
|
__name(_CountPendingDecisionTasksCommand, "CountPendingDecisionTasksCommand");
|
|
1760
1824
|
var CountPendingDecisionTasksCommand = _CountPendingDecisionTasksCommand;
|
|
1761
1825
|
|
|
1826
|
+
// src/commands/DeleteActivityTypeCommand.ts
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
var _DeleteActivityTypeCommand = class _DeleteActivityTypeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1832
|
+
...commonParams
|
|
1833
|
+
}).m(function(Command, cs, config, o) {
|
|
1834
|
+
return [
|
|
1835
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1836
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1837
|
+
];
|
|
1838
|
+
}).s("SimpleWorkflowService", "DeleteActivityType", {}).n("SWFClient", "DeleteActivityTypeCommand").f(void 0, void 0).ser(se_DeleteActivityTypeCommand).de(de_DeleteActivityTypeCommand).build() {
|
|
1839
|
+
};
|
|
1840
|
+
__name(_DeleteActivityTypeCommand, "DeleteActivityTypeCommand");
|
|
1841
|
+
var DeleteActivityTypeCommand = _DeleteActivityTypeCommand;
|
|
1842
|
+
|
|
1843
|
+
// src/commands/DeleteWorkflowTypeCommand.ts
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
var _DeleteWorkflowTypeCommand = class _DeleteWorkflowTypeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1849
|
+
...commonParams
|
|
1850
|
+
}).m(function(Command, cs, config, o) {
|
|
1851
|
+
return [
|
|
1852
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1853
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1854
|
+
];
|
|
1855
|
+
}).s("SimpleWorkflowService", "DeleteWorkflowType", {}).n("SWFClient", "DeleteWorkflowTypeCommand").f(void 0, void 0).ser(se_DeleteWorkflowTypeCommand).de(de_DeleteWorkflowTypeCommand).build() {
|
|
1856
|
+
};
|
|
1857
|
+
__name(_DeleteWorkflowTypeCommand, "DeleteWorkflowTypeCommand");
|
|
1858
|
+
var DeleteWorkflowTypeCommand = _DeleteWorkflowTypeCommand;
|
|
1859
|
+
|
|
1762
1860
|
// src/commands/DeprecateActivityTypeCommand.ts
|
|
1763
1861
|
|
|
1764
1862
|
|
|
@@ -2326,6 +2424,8 @@ var commands = {
|
|
|
2326
2424
|
CountOpenWorkflowExecutionsCommand,
|
|
2327
2425
|
CountPendingActivityTasksCommand,
|
|
2328
2426
|
CountPendingDecisionTasksCommand,
|
|
2427
|
+
DeleteActivityTypeCommand,
|
|
2428
|
+
DeleteWorkflowTypeCommand,
|
|
2329
2429
|
DeprecateActivityTypeCommand,
|
|
2330
2430
|
DeprecateDomainCommand,
|
|
2331
2431
|
DeprecateWorkflowTypeCommand,
|
|
@@ -2405,6 +2505,8 @@ var paginatePollForDecisionTask = (0, import_core.createPaginator)(SWFClient, Po
|
|
|
2405
2505
|
CountOpenWorkflowExecutionsCommand,
|
|
2406
2506
|
CountPendingActivityTasksCommand,
|
|
2407
2507
|
CountPendingDecisionTasksCommand,
|
|
2508
|
+
DeleteActivityTypeCommand,
|
|
2509
|
+
DeleteWorkflowTypeCommand,
|
|
2408
2510
|
DeprecateActivityTypeCommand,
|
|
2409
2511
|
DeprecateDomainCommand,
|
|
2410
2512
|
DeprecateWorkflowTypeCommand,
|
|
@@ -2473,6 +2575,7 @@ var paginatePollForDecisionTask = (0, import_core.createPaginator)(SWFClient, Po
|
|
|
2473
2575
|
WorkflowExecutionCancelRequestedCause,
|
|
2474
2576
|
WorkflowExecutionTerminatedCause,
|
|
2475
2577
|
DefaultUndefinedFault,
|
|
2578
|
+
TypeNotDeprecatedFault,
|
|
2476
2579
|
TypeDeprecatedFault,
|
|
2477
2580
|
DomainDeprecatedFault,
|
|
2478
2581
|
ExecutionStatus,
|
package/dist-es/SWF.js
CHANGED
|
@@ -3,6 +3,8 @@ import { CountClosedWorkflowExecutionsCommand, } from "./commands/CountClosedWor
|
|
|
3
3
|
import { CountOpenWorkflowExecutionsCommand, } from "./commands/CountOpenWorkflowExecutionsCommand";
|
|
4
4
|
import { CountPendingActivityTasksCommand, } from "./commands/CountPendingActivityTasksCommand";
|
|
5
5
|
import { CountPendingDecisionTasksCommand, } from "./commands/CountPendingDecisionTasksCommand";
|
|
6
|
+
import { DeleteActivityTypeCommand, } from "./commands/DeleteActivityTypeCommand";
|
|
7
|
+
import { DeleteWorkflowTypeCommand, } from "./commands/DeleteWorkflowTypeCommand";
|
|
6
8
|
import { DeprecateActivityTypeCommand, } from "./commands/DeprecateActivityTypeCommand";
|
|
7
9
|
import { DeprecateDomainCommand, } from "./commands/DeprecateDomainCommand";
|
|
8
10
|
import { DeprecateWorkflowTypeCommand, } from "./commands/DeprecateWorkflowTypeCommand";
|
|
@@ -42,6 +44,8 @@ const commands = {
|
|
|
42
44
|
CountOpenWorkflowExecutionsCommand,
|
|
43
45
|
CountPendingActivityTasksCommand,
|
|
44
46
|
CountPendingDecisionTasksCommand,
|
|
47
|
+
DeleteActivityTypeCommand,
|
|
48
|
+
DeleteWorkflowTypeCommand,
|
|
45
49
|
DeprecateActivityTypeCommand,
|
|
46
50
|
DeprecateDomainCommand,
|
|
47
51
|
DeprecateWorkflowTypeCommand,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DeleteActivityTypeCommand, se_DeleteActivityTypeCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteActivityTypeCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("SimpleWorkflowService", "DeleteActivityType", {})
|
|
19
|
+
.n("SWFClient", "DeleteActivityTypeCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_DeleteActivityTypeCommand)
|
|
22
|
+
.de(de_DeleteActivityTypeCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DeleteWorkflowTypeCommand, se_DeleteWorkflowTypeCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteWorkflowTypeCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("SimpleWorkflowService", "DeleteWorkflowType", {})
|
|
19
|
+
.n("SWFClient", "DeleteWorkflowTypeCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_DeleteWorkflowTypeCommand)
|
|
22
|
+
.de(de_DeleteWorkflowTypeCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -2,6 +2,8 @@ export * from "./CountClosedWorkflowExecutionsCommand";
|
|
|
2
2
|
export * from "./CountOpenWorkflowExecutionsCommand";
|
|
3
3
|
export * from "./CountPendingActivityTasksCommand";
|
|
4
4
|
export * from "./CountPendingDecisionTasksCommand";
|
|
5
|
+
export * from "./DeleteActivityTypeCommand";
|
|
6
|
+
export * from "./DeleteWorkflowTypeCommand";
|
|
5
7
|
export * from "./DeprecateActivityTypeCommand";
|
|
6
8
|
export * from "./DeprecateDomainCommand";
|
|
7
9
|
export * from "./DeprecateWorkflowTypeCommand";
|
|
@@ -232,6 +232,18 @@ export class DefaultUndefinedFault extends __BaseException {
|
|
|
232
232
|
Object.setPrototypeOf(this, DefaultUndefinedFault.prototype);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
+
export class TypeNotDeprecatedFault extends __BaseException {
|
|
236
|
+
constructor(opts) {
|
|
237
|
+
super({
|
|
238
|
+
name: "TypeNotDeprecatedFault",
|
|
239
|
+
$fault: "client",
|
|
240
|
+
...opts,
|
|
241
|
+
});
|
|
242
|
+
this.name = "TypeNotDeprecatedFault";
|
|
243
|
+
this.$fault = "client";
|
|
244
|
+
Object.setPrototypeOf(this, TypeNotDeprecatedFault.prototype);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
235
247
|
export class TypeDeprecatedFault extends __BaseException {
|
|
236
248
|
constructor(opts) {
|
|
237
249
|
super({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { DefaultUndefinedFault, DomainAlreadyExistsFault, DomainDeprecatedFault, LimitExceededFault, OperationNotPermittedFault, TooManyTagsFault, TypeAlreadyExistsFault, TypeDeprecatedFault, UnknownResourceFault, WorkflowExecutionAlreadyStartedFault, } from "../models/models_0";
|
|
4
|
+
import { DefaultUndefinedFault, DomainAlreadyExistsFault, DomainDeprecatedFault, LimitExceededFault, OperationNotPermittedFault, TooManyTagsFault, TypeAlreadyExistsFault, TypeDeprecatedFault, TypeNotDeprecatedFault, UnknownResourceFault, WorkflowExecutionAlreadyStartedFault, } from "../models/models_0";
|
|
5
5
|
import { SWFServiceException as __BaseException } from "../models/SWFServiceException";
|
|
6
6
|
export const se_CountClosedWorkflowExecutionsCommand = async (input, context) => {
|
|
7
7
|
const headers = sharedHeaders("CountClosedWorkflowExecutions");
|
|
@@ -27,6 +27,18 @@ export const se_CountPendingDecisionTasksCommand = async (input, context) => {
|
|
|
27
27
|
body = JSON.stringify(_json(input));
|
|
28
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
29
|
};
|
|
30
|
+
export const se_DeleteActivityTypeCommand = async (input, context) => {
|
|
31
|
+
const headers = sharedHeaders("DeleteActivityType");
|
|
32
|
+
let body;
|
|
33
|
+
body = JSON.stringify(_json(input));
|
|
34
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
+
};
|
|
36
|
+
export const se_DeleteWorkflowTypeCommand = async (input, context) => {
|
|
37
|
+
const headers = sharedHeaders("DeleteWorkflowType");
|
|
38
|
+
let body;
|
|
39
|
+
body = JSON.stringify(_json(input));
|
|
40
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
+
};
|
|
30
42
|
export const se_DeprecateActivityTypeCommand = async (input, context) => {
|
|
31
43
|
const headers = sharedHeaders("DeprecateActivityType");
|
|
32
44
|
let body;
|
|
@@ -277,6 +289,26 @@ export const de_CountPendingDecisionTasksCommand = async (output, context) => {
|
|
|
277
289
|
};
|
|
278
290
|
return response;
|
|
279
291
|
};
|
|
292
|
+
export const de_DeleteActivityTypeCommand = async (output, context) => {
|
|
293
|
+
if (output.statusCode >= 300) {
|
|
294
|
+
return de_CommandError(output, context);
|
|
295
|
+
}
|
|
296
|
+
await collectBody(output.body, context);
|
|
297
|
+
const response = {
|
|
298
|
+
$metadata: deserializeMetadata(output),
|
|
299
|
+
};
|
|
300
|
+
return response;
|
|
301
|
+
};
|
|
302
|
+
export const de_DeleteWorkflowTypeCommand = async (output, context) => {
|
|
303
|
+
if (output.statusCode >= 300) {
|
|
304
|
+
return de_CommandError(output, context);
|
|
305
|
+
}
|
|
306
|
+
await collectBody(output.body, context);
|
|
307
|
+
const response = {
|
|
308
|
+
$metadata: deserializeMetadata(output),
|
|
309
|
+
};
|
|
310
|
+
return response;
|
|
311
|
+
};
|
|
280
312
|
export const de_DeprecateActivityTypeCommand = async (output, context) => {
|
|
281
313
|
if (output.statusCode >= 300) {
|
|
282
314
|
return de_CommandError(output, context);
|
|
@@ -665,6 +697,9 @@ const de_CommandError = async (output, context) => {
|
|
|
665
697
|
case "UnknownResourceFault":
|
|
666
698
|
case "com.amazonaws.swf#UnknownResourceFault":
|
|
667
699
|
throw await de_UnknownResourceFaultRes(parsedOutput, context);
|
|
700
|
+
case "TypeNotDeprecatedFault":
|
|
701
|
+
case "com.amazonaws.swf#TypeNotDeprecatedFault":
|
|
702
|
+
throw await de_TypeNotDeprecatedFaultRes(parsedOutput, context);
|
|
668
703
|
case "TypeDeprecatedFault":
|
|
669
704
|
case "com.amazonaws.swf#TypeDeprecatedFault":
|
|
670
705
|
throw await de_TypeDeprecatedFaultRes(parsedOutput, context);
|
|
@@ -770,6 +805,15 @@ const de_TypeDeprecatedFaultRes = async (parsedOutput, context) => {
|
|
|
770
805
|
});
|
|
771
806
|
return __decorateServiceException(exception, body);
|
|
772
807
|
};
|
|
808
|
+
const de_TypeNotDeprecatedFaultRes = async (parsedOutput, context) => {
|
|
809
|
+
const body = parsedOutput.body;
|
|
810
|
+
const deserialized = _json(body);
|
|
811
|
+
const exception = new TypeNotDeprecatedFault({
|
|
812
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
813
|
+
...deserialized,
|
|
814
|
+
});
|
|
815
|
+
return __decorateServiceException(exception, body);
|
|
816
|
+
};
|
|
773
817
|
const de_UnknownResourceFaultRes = async (parsedOutput, context) => {
|
|
774
818
|
const body = parsedOutput.body;
|
|
775
819
|
const deserialized = _json(body);
|
package/dist-types/SWF.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { CountClosedWorkflowExecutionsCommandInput, CountClosedWorkflowExecution
|
|
|
3
3
|
import { CountOpenWorkflowExecutionsCommandInput, CountOpenWorkflowExecutionsCommandOutput } from "./commands/CountOpenWorkflowExecutionsCommand";
|
|
4
4
|
import { CountPendingActivityTasksCommandInput, CountPendingActivityTasksCommandOutput } from "./commands/CountPendingActivityTasksCommand";
|
|
5
5
|
import { CountPendingDecisionTasksCommandInput, CountPendingDecisionTasksCommandOutput } from "./commands/CountPendingDecisionTasksCommand";
|
|
6
|
+
import { DeleteActivityTypeCommandInput, DeleteActivityTypeCommandOutput } from "./commands/DeleteActivityTypeCommand";
|
|
7
|
+
import { DeleteWorkflowTypeCommandInput, DeleteWorkflowTypeCommandOutput } from "./commands/DeleteWorkflowTypeCommand";
|
|
6
8
|
import { DeprecateActivityTypeCommandInput, DeprecateActivityTypeCommandOutput } from "./commands/DeprecateActivityTypeCommand";
|
|
7
9
|
import { DeprecateDomainCommandInput, DeprecateDomainCommandOutput } from "./commands/DeprecateDomainCommand";
|
|
8
10
|
import { DeprecateWorkflowTypeCommandInput, DeprecateWorkflowTypeCommandOutput } from "./commands/DeprecateWorkflowTypeCommand";
|
|
@@ -62,6 +64,18 @@ export interface SWF {
|
|
|
62
64
|
countPendingDecisionTasks(args: CountPendingDecisionTasksCommandInput, options?: __HttpHandlerOptions): Promise<CountPendingDecisionTasksCommandOutput>;
|
|
63
65
|
countPendingDecisionTasks(args: CountPendingDecisionTasksCommandInput, cb: (err: any, data?: CountPendingDecisionTasksCommandOutput) => void): void;
|
|
64
66
|
countPendingDecisionTasks(args: CountPendingDecisionTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CountPendingDecisionTasksCommandOutput) => void): void;
|
|
67
|
+
/**
|
|
68
|
+
* @see {@link DeleteActivityTypeCommand}
|
|
69
|
+
*/
|
|
70
|
+
deleteActivityType(args: DeleteActivityTypeCommandInput, options?: __HttpHandlerOptions): Promise<DeleteActivityTypeCommandOutput>;
|
|
71
|
+
deleteActivityType(args: DeleteActivityTypeCommandInput, cb: (err: any, data?: DeleteActivityTypeCommandOutput) => void): void;
|
|
72
|
+
deleteActivityType(args: DeleteActivityTypeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteActivityTypeCommandOutput) => void): void;
|
|
73
|
+
/**
|
|
74
|
+
* @see {@link DeleteWorkflowTypeCommand}
|
|
75
|
+
*/
|
|
76
|
+
deleteWorkflowType(args: DeleteWorkflowTypeCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWorkflowTypeCommandOutput>;
|
|
77
|
+
deleteWorkflowType(args: DeleteWorkflowTypeCommandInput, cb: (err: any, data?: DeleteWorkflowTypeCommandOutput) => void): void;
|
|
78
|
+
deleteWorkflowType(args: DeleteWorkflowTypeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWorkflowTypeCommandOutput) => void): void;
|
|
65
79
|
/**
|
|
66
80
|
* @see {@link DeprecateActivityTypeCommand}
|
|
67
81
|
*/
|
|
@@ -11,6 +11,8 @@ import { CountClosedWorkflowExecutionsCommandInput, CountClosedWorkflowExecution
|
|
|
11
11
|
import { CountOpenWorkflowExecutionsCommandInput, CountOpenWorkflowExecutionsCommandOutput } from "./commands/CountOpenWorkflowExecutionsCommand";
|
|
12
12
|
import { CountPendingActivityTasksCommandInput, CountPendingActivityTasksCommandOutput } from "./commands/CountPendingActivityTasksCommand";
|
|
13
13
|
import { CountPendingDecisionTasksCommandInput, CountPendingDecisionTasksCommandOutput } from "./commands/CountPendingDecisionTasksCommand";
|
|
14
|
+
import { DeleteActivityTypeCommandInput, DeleteActivityTypeCommandOutput } from "./commands/DeleteActivityTypeCommand";
|
|
15
|
+
import { DeleteWorkflowTypeCommandInput, DeleteWorkflowTypeCommandOutput } from "./commands/DeleteWorkflowTypeCommand";
|
|
14
16
|
import { DeprecateActivityTypeCommandInput, DeprecateActivityTypeCommandOutput } from "./commands/DeprecateActivityTypeCommand";
|
|
15
17
|
import { DeprecateDomainCommandInput, DeprecateDomainCommandOutput } from "./commands/DeprecateDomainCommand";
|
|
16
18
|
import { DeprecateWorkflowTypeCommandInput, DeprecateWorkflowTypeCommandOutput } from "./commands/DeprecateWorkflowTypeCommand";
|
|
@@ -50,11 +52,11 @@ export { __Client };
|
|
|
50
52
|
/**
|
|
51
53
|
* @public
|
|
52
54
|
*/
|
|
53
|
-
export type ServiceInputTypes = CountClosedWorkflowExecutionsCommandInput | CountOpenWorkflowExecutionsCommandInput | CountPendingActivityTasksCommandInput | CountPendingDecisionTasksCommandInput | DeprecateActivityTypeCommandInput | DeprecateDomainCommandInput | DeprecateWorkflowTypeCommandInput | DescribeActivityTypeCommandInput | DescribeDomainCommandInput | DescribeWorkflowExecutionCommandInput | DescribeWorkflowTypeCommandInput | GetWorkflowExecutionHistoryCommandInput | ListActivityTypesCommandInput | ListClosedWorkflowExecutionsCommandInput | ListDomainsCommandInput | ListOpenWorkflowExecutionsCommandInput | ListTagsForResourceCommandInput | ListWorkflowTypesCommandInput | PollForActivityTaskCommandInput | PollForDecisionTaskCommandInput | RecordActivityTaskHeartbeatCommandInput | RegisterActivityTypeCommandInput | RegisterDomainCommandInput | RegisterWorkflowTypeCommandInput | RequestCancelWorkflowExecutionCommandInput | RespondActivityTaskCanceledCommandInput | RespondActivityTaskCompletedCommandInput | RespondActivityTaskFailedCommandInput | RespondDecisionTaskCompletedCommandInput | SignalWorkflowExecutionCommandInput | StartWorkflowExecutionCommandInput | TagResourceCommandInput | TerminateWorkflowExecutionCommandInput | UndeprecateActivityTypeCommandInput | UndeprecateDomainCommandInput | UndeprecateWorkflowTypeCommandInput | UntagResourceCommandInput;
|
|
55
|
+
export type ServiceInputTypes = CountClosedWorkflowExecutionsCommandInput | CountOpenWorkflowExecutionsCommandInput | CountPendingActivityTasksCommandInput | CountPendingDecisionTasksCommandInput | DeleteActivityTypeCommandInput | DeleteWorkflowTypeCommandInput | DeprecateActivityTypeCommandInput | DeprecateDomainCommandInput | DeprecateWorkflowTypeCommandInput | DescribeActivityTypeCommandInput | DescribeDomainCommandInput | DescribeWorkflowExecutionCommandInput | DescribeWorkflowTypeCommandInput | GetWorkflowExecutionHistoryCommandInput | ListActivityTypesCommandInput | ListClosedWorkflowExecutionsCommandInput | ListDomainsCommandInput | ListOpenWorkflowExecutionsCommandInput | ListTagsForResourceCommandInput | ListWorkflowTypesCommandInput | PollForActivityTaskCommandInput | PollForDecisionTaskCommandInput | RecordActivityTaskHeartbeatCommandInput | RegisterActivityTypeCommandInput | RegisterDomainCommandInput | RegisterWorkflowTypeCommandInput | RequestCancelWorkflowExecutionCommandInput | RespondActivityTaskCanceledCommandInput | RespondActivityTaskCompletedCommandInput | RespondActivityTaskFailedCommandInput | RespondDecisionTaskCompletedCommandInput | SignalWorkflowExecutionCommandInput | StartWorkflowExecutionCommandInput | TagResourceCommandInput | TerminateWorkflowExecutionCommandInput | UndeprecateActivityTypeCommandInput | UndeprecateDomainCommandInput | UndeprecateWorkflowTypeCommandInput | UntagResourceCommandInput;
|
|
54
56
|
/**
|
|
55
57
|
* @public
|
|
56
58
|
*/
|
|
57
|
-
export type ServiceOutputTypes = CountClosedWorkflowExecutionsCommandOutput | CountOpenWorkflowExecutionsCommandOutput | CountPendingActivityTasksCommandOutput | CountPendingDecisionTasksCommandOutput | DeprecateActivityTypeCommandOutput | DeprecateDomainCommandOutput | DeprecateWorkflowTypeCommandOutput | DescribeActivityTypeCommandOutput | DescribeDomainCommandOutput | DescribeWorkflowExecutionCommandOutput | DescribeWorkflowTypeCommandOutput | GetWorkflowExecutionHistoryCommandOutput | ListActivityTypesCommandOutput | ListClosedWorkflowExecutionsCommandOutput | ListDomainsCommandOutput | ListOpenWorkflowExecutionsCommandOutput | ListTagsForResourceCommandOutput | ListWorkflowTypesCommandOutput | PollForActivityTaskCommandOutput | PollForDecisionTaskCommandOutput | RecordActivityTaskHeartbeatCommandOutput | RegisterActivityTypeCommandOutput | RegisterDomainCommandOutput | RegisterWorkflowTypeCommandOutput | RequestCancelWorkflowExecutionCommandOutput | RespondActivityTaskCanceledCommandOutput | RespondActivityTaskCompletedCommandOutput | RespondActivityTaskFailedCommandOutput | RespondDecisionTaskCompletedCommandOutput | SignalWorkflowExecutionCommandOutput | StartWorkflowExecutionCommandOutput | TagResourceCommandOutput | TerminateWorkflowExecutionCommandOutput | UndeprecateActivityTypeCommandOutput | UndeprecateDomainCommandOutput | UndeprecateWorkflowTypeCommandOutput | UntagResourceCommandOutput;
|
|
59
|
+
export type ServiceOutputTypes = CountClosedWorkflowExecutionsCommandOutput | CountOpenWorkflowExecutionsCommandOutput | CountPendingActivityTasksCommandOutput | CountPendingDecisionTasksCommandOutput | DeleteActivityTypeCommandOutput | DeleteWorkflowTypeCommandOutput | DeprecateActivityTypeCommandOutput | DeprecateDomainCommandOutput | DeprecateWorkflowTypeCommandOutput | DescribeActivityTypeCommandOutput | DescribeDomainCommandOutput | DescribeWorkflowExecutionCommandOutput | DescribeWorkflowTypeCommandOutput | GetWorkflowExecutionHistoryCommandOutput | ListActivityTypesCommandOutput | ListClosedWorkflowExecutionsCommandOutput | ListDomainsCommandOutput | ListOpenWorkflowExecutionsCommandOutput | ListTagsForResourceCommandOutput | ListWorkflowTypesCommandOutput | PollForActivityTaskCommandOutput | PollForDecisionTaskCommandOutput | RecordActivityTaskHeartbeatCommandOutput | RegisterActivityTypeCommandOutput | RegisterDomainCommandOutput | RegisterWorkflowTypeCommandOutput | RequestCancelWorkflowExecutionCommandOutput | RespondActivityTaskCanceledCommandOutput | RespondActivityTaskCompletedCommandOutput | RespondActivityTaskFailedCommandOutput | RespondDecisionTaskCompletedCommandOutput | SignalWorkflowExecutionCommandOutput | StartWorkflowExecutionCommandOutput | TagResourceCommandOutput | TerminateWorkflowExecutionCommandOutput | UndeprecateActivityTypeCommandOutput | UndeprecateDomainCommandOutput | UndeprecateWorkflowTypeCommandOutput | UntagResourceCommandOutput;
|
|
58
60
|
/**
|
|
59
61
|
* @public
|
|
60
62
|
*/
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DeleteActivityTypeInput } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link DeleteActivityTypeCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface DeleteActivityTypeCommandInput extends DeleteActivityTypeInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link DeleteActivityTypeCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface DeleteActivityTypeCommandOutput extends __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const DeleteActivityTypeCommand_base: {
|
|
24
|
+
new (input: DeleteActivityTypeCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteActivityTypeCommandInput, DeleteActivityTypeCommandOutput, SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: DeleteActivityTypeCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteActivityTypeCommandInput, DeleteActivityTypeCommandOutput, SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* <p>Deletes the specified <i>activity type</i>.</p>
|
|
30
|
+
* <p>Note: Prior to deletion, activity types must first be <b>deprecated</b>. </p>
|
|
31
|
+
* <p>
|
|
32
|
+
* After an activity type has been deleted, you cannot schedule new activities of that type. Activities that started before the type was deleted will continue to run.
|
|
33
|
+
* </p>
|
|
34
|
+
* <p>
|
|
35
|
+
* <b>Access Control</b>
|
|
36
|
+
* </p>
|
|
37
|
+
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p>
|
|
38
|
+
* <ul>
|
|
39
|
+
* <li>
|
|
40
|
+
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
41
|
+
* only specified domains.</p>
|
|
42
|
+
* </li>
|
|
43
|
+
* <li>
|
|
44
|
+
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
45
|
+
* action.</p>
|
|
46
|
+
* </li>
|
|
47
|
+
* <li>
|
|
48
|
+
* <p>Constrain the following parameters by using a <code>Condition</code> element with
|
|
49
|
+
* the appropriate keys.</p>
|
|
50
|
+
* <ul>
|
|
51
|
+
* <li>
|
|
52
|
+
* <p>
|
|
53
|
+
* <code>activityType.name</code>: String constraint. The key is
|
|
54
|
+
* <code>swf:activityType.name</code>.</p>
|
|
55
|
+
* </li>
|
|
56
|
+
* <li>
|
|
57
|
+
* <p>
|
|
58
|
+
* <code>activityType.version</code>: String constraint. The key is
|
|
59
|
+
* <code>swf:activityType.version</code>.</p>
|
|
60
|
+
* </li>
|
|
61
|
+
* </ul>
|
|
62
|
+
* </li>
|
|
63
|
+
* </ul>
|
|
64
|
+
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
65
|
+
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
66
|
+
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
67
|
+
* For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
|
|
68
|
+
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
69
|
+
* @example
|
|
70
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
71
|
+
* ```javascript
|
|
72
|
+
* import { SWFClient, DeleteActivityTypeCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
73
|
+
* // const { SWFClient, DeleteActivityTypeCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
74
|
+
* const client = new SWFClient(config);
|
|
75
|
+
* const input = { // DeleteActivityTypeInput
|
|
76
|
+
* domain: "STRING_VALUE", // required
|
|
77
|
+
* activityType: { // ActivityType
|
|
78
|
+
* name: "STRING_VALUE", // required
|
|
79
|
+
* version: "STRING_VALUE", // required
|
|
80
|
+
* },
|
|
81
|
+
* };
|
|
82
|
+
* const command = new DeleteActivityTypeCommand(input);
|
|
83
|
+
* const response = await client.send(command);
|
|
84
|
+
* // {};
|
|
85
|
+
*
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @param DeleteActivityTypeCommandInput - {@link DeleteActivityTypeCommandInput}
|
|
89
|
+
* @returns {@link DeleteActivityTypeCommandOutput}
|
|
90
|
+
* @see {@link DeleteActivityTypeCommandInput} for command's `input` shape.
|
|
91
|
+
* @see {@link DeleteActivityTypeCommandOutput} for command's `response` shape.
|
|
92
|
+
* @see {@link SWFClientResolvedConfig | config} for SWFClient's `config` shape.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link OperationNotPermittedFault} (client fault)
|
|
95
|
+
* <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link TypeNotDeprecatedFault} (client fault)
|
|
98
|
+
* <p>Returned when the resource type has not been deprecated.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link UnknownResourceFault} (client fault)
|
|
101
|
+
* <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link SWFServiceException}
|
|
104
|
+
* <p>Base exception class for all service exceptions from SWF service.</p>
|
|
105
|
+
*
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
export declare class DeleteActivityTypeCommand extends DeleteActivityTypeCommand_base {
|
|
109
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DeleteWorkflowTypeInput } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link DeleteWorkflowTypeCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface DeleteWorkflowTypeCommandInput extends DeleteWorkflowTypeInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link DeleteWorkflowTypeCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface DeleteWorkflowTypeCommandOutput extends __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const DeleteWorkflowTypeCommand_base: {
|
|
24
|
+
new (input: DeleteWorkflowTypeCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteWorkflowTypeCommandInput, DeleteWorkflowTypeCommandOutput, SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: DeleteWorkflowTypeCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteWorkflowTypeCommandInput, DeleteWorkflowTypeCommandOutput, SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* <p>Deletes the specified <i>workflow type</i>.</p>
|
|
30
|
+
* <p>Note: Prior to deletion, workflow types must first be <b>deprecated</b>.</p>
|
|
31
|
+
* <p>
|
|
32
|
+
* After a workflow type has been deleted, you cannot create new executions of that type. Executions that
|
|
33
|
+
* started before the type was deleted will continue to run.
|
|
34
|
+
* </p>
|
|
35
|
+
* <p>
|
|
36
|
+
* <b>Access Control</b>
|
|
37
|
+
* </p>
|
|
38
|
+
* <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p>
|
|
39
|
+
* <ul>
|
|
40
|
+
* <li>
|
|
41
|
+
* <p>Use a <code>Resource</code> element with the domain name to limit the action to
|
|
42
|
+
* only specified domains.</p>
|
|
43
|
+
* </li>
|
|
44
|
+
* <li>
|
|
45
|
+
* <p>Use an <code>Action</code> element to allow or deny permission to call this
|
|
46
|
+
* action.</p>
|
|
47
|
+
* </li>
|
|
48
|
+
* <li>
|
|
49
|
+
* <p>Constrain the following parameters by using a <code>Condition</code> element with
|
|
50
|
+
* the appropriate keys.</p>
|
|
51
|
+
* <ul>
|
|
52
|
+
* <li>
|
|
53
|
+
* <p>
|
|
54
|
+
* <code>workflowType.name</code>: String constraint. The key is
|
|
55
|
+
* <code>swf:workflowType.name</code>.</p>
|
|
56
|
+
* </li>
|
|
57
|
+
* <li>
|
|
58
|
+
* <p>
|
|
59
|
+
* <code>workflowType.version</code>: String constraint. The key is
|
|
60
|
+
* <code>swf:workflowType.version</code>.</p>
|
|
61
|
+
* </li>
|
|
62
|
+
* </ul>
|
|
63
|
+
* </li>
|
|
64
|
+
* </ul>
|
|
65
|
+
* <p>If the caller doesn't have sufficient permissions to invoke the action, or the
|
|
66
|
+
* parameter values fall outside the specified constraints, the action fails. The associated
|
|
67
|
+
* event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
|
|
68
|
+
* For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
|
|
69
|
+
* Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
|
|
70
|
+
* @example
|
|
71
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
72
|
+
* ```javascript
|
|
73
|
+
* import { SWFClient, DeleteWorkflowTypeCommand } from "@aws-sdk/client-swf"; // ES Modules import
|
|
74
|
+
* // const { SWFClient, DeleteWorkflowTypeCommand } = require("@aws-sdk/client-swf"); // CommonJS import
|
|
75
|
+
* const client = new SWFClient(config);
|
|
76
|
+
* const input = { // DeleteWorkflowTypeInput
|
|
77
|
+
* domain: "STRING_VALUE", // required
|
|
78
|
+
* workflowType: { // WorkflowType
|
|
79
|
+
* name: "STRING_VALUE", // required
|
|
80
|
+
* version: "STRING_VALUE", // required
|
|
81
|
+
* },
|
|
82
|
+
* };
|
|
83
|
+
* const command = new DeleteWorkflowTypeCommand(input);
|
|
84
|
+
* const response = await client.send(command);
|
|
85
|
+
* // {};
|
|
86
|
+
*
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* @param DeleteWorkflowTypeCommandInput - {@link DeleteWorkflowTypeCommandInput}
|
|
90
|
+
* @returns {@link DeleteWorkflowTypeCommandOutput}
|
|
91
|
+
* @see {@link DeleteWorkflowTypeCommandInput} for command's `input` shape.
|
|
92
|
+
* @see {@link DeleteWorkflowTypeCommandOutput} for command's `response` shape.
|
|
93
|
+
* @see {@link SWFClientResolvedConfig | config} for SWFClient's `config` shape.
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link OperationNotPermittedFault} (client fault)
|
|
96
|
+
* <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link TypeNotDeprecatedFault} (client fault)
|
|
99
|
+
* <p>Returned when the resource type has not been deprecated.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link UnknownResourceFault} (client fault)
|
|
102
|
+
* <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link SWFServiceException}
|
|
105
|
+
* <p>Base exception class for all service exceptions from SWF service.</p>
|
|
106
|
+
*
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
export declare class DeleteWorkflowTypeCommand extends DeleteWorkflowTypeCommand_base {
|
|
110
|
+
}
|
|
@@ -29,10 +29,6 @@ declare const DeprecateActivityTypeCommand_base: {
|
|
|
29
29
|
* <p>Deprecates the specified <i>activity type</i>. After an activity type has
|
|
30
30
|
* been deprecated, you cannot create new tasks of that activity type. Tasks of this type that
|
|
31
31
|
* were scheduled before the type was deprecated continue to run.</p>
|
|
32
|
-
* <note>
|
|
33
|
-
* <p>This operation is eventually consistent. The results are best effort and may not
|
|
34
|
-
* exactly reflect recent updates and changes.</p>
|
|
35
|
-
* </note>
|
|
36
32
|
* <p>
|
|
37
33
|
* <b>Access Control</b>
|
|
38
34
|
* </p>
|
|
@@ -2,6 +2,8 @@ export * from "./CountClosedWorkflowExecutionsCommand";
|
|
|
2
2
|
export * from "./CountOpenWorkflowExecutionsCommand";
|
|
3
3
|
export * from "./CountPendingActivityTasksCommand";
|
|
4
4
|
export * from "./CountPendingDecisionTasksCommand";
|
|
5
|
+
export * from "./DeleteActivityTypeCommand";
|
|
6
|
+
export * from "./DeleteWorkflowTypeCommand";
|
|
5
7
|
export * from "./DeprecateActivityTypeCommand";
|
|
6
8
|
export * from "./DeprecateDomainCommand";
|
|
7
9
|
export * from "./DeprecateWorkflowTypeCommand";
|
|
@@ -4483,6 +4483,48 @@ export declare class DefaultUndefinedFault extends __BaseException {
|
|
|
4483
4483
|
*/
|
|
4484
4484
|
constructor(opts: __ExceptionOptionType<DefaultUndefinedFault, __BaseException>);
|
|
4485
4485
|
}
|
|
4486
|
+
/**
|
|
4487
|
+
* @public
|
|
4488
|
+
*/
|
|
4489
|
+
export interface DeleteActivityTypeInput {
|
|
4490
|
+
/**
|
|
4491
|
+
* <p>The name of the domain in which the activity type is registered.</p>
|
|
4492
|
+
* @public
|
|
4493
|
+
*/
|
|
4494
|
+
domain: string | undefined;
|
|
4495
|
+
/**
|
|
4496
|
+
* <p>The activity type to delete.</p>
|
|
4497
|
+
* @public
|
|
4498
|
+
*/
|
|
4499
|
+
activityType: ActivityType | undefined;
|
|
4500
|
+
}
|
|
4501
|
+
/**
|
|
4502
|
+
* <p>Returned when the resource type has not been deprecated.</p>
|
|
4503
|
+
* @public
|
|
4504
|
+
*/
|
|
4505
|
+
export declare class TypeNotDeprecatedFault extends __BaseException {
|
|
4506
|
+
readonly name: "TypeNotDeprecatedFault";
|
|
4507
|
+
readonly $fault: "client";
|
|
4508
|
+
/**
|
|
4509
|
+
* @internal
|
|
4510
|
+
*/
|
|
4511
|
+
constructor(opts: __ExceptionOptionType<TypeNotDeprecatedFault, __BaseException>);
|
|
4512
|
+
}
|
|
4513
|
+
/**
|
|
4514
|
+
* @public
|
|
4515
|
+
*/
|
|
4516
|
+
export interface DeleteWorkflowTypeInput {
|
|
4517
|
+
/**
|
|
4518
|
+
* <p>The name of the domain in which the workflow type is registered.</p>
|
|
4519
|
+
* @public
|
|
4520
|
+
*/
|
|
4521
|
+
domain: string | undefined;
|
|
4522
|
+
/**
|
|
4523
|
+
* <p>The workflow type to delete.</p>
|
|
4524
|
+
* @public
|
|
4525
|
+
*/
|
|
4526
|
+
workflowType: WorkflowType | undefined;
|
|
4527
|
+
}
|
|
4486
4528
|
/**
|
|
4487
4529
|
* @public
|
|
4488
4530
|
*/
|
|
@@ -4,6 +4,8 @@ import { CountClosedWorkflowExecutionsCommandInput, CountClosedWorkflowExecution
|
|
|
4
4
|
import { CountOpenWorkflowExecutionsCommandInput, CountOpenWorkflowExecutionsCommandOutput } from "../commands/CountOpenWorkflowExecutionsCommand";
|
|
5
5
|
import { CountPendingActivityTasksCommandInput, CountPendingActivityTasksCommandOutput } from "../commands/CountPendingActivityTasksCommand";
|
|
6
6
|
import { CountPendingDecisionTasksCommandInput, CountPendingDecisionTasksCommandOutput } from "../commands/CountPendingDecisionTasksCommand";
|
|
7
|
+
import { DeleteActivityTypeCommandInput, DeleteActivityTypeCommandOutput } from "../commands/DeleteActivityTypeCommand";
|
|
8
|
+
import { DeleteWorkflowTypeCommandInput, DeleteWorkflowTypeCommandOutput } from "../commands/DeleteWorkflowTypeCommand";
|
|
7
9
|
import { DeprecateActivityTypeCommandInput, DeprecateActivityTypeCommandOutput } from "../commands/DeprecateActivityTypeCommand";
|
|
8
10
|
import { DeprecateDomainCommandInput, DeprecateDomainCommandOutput } from "../commands/DeprecateDomainCommand";
|
|
9
11
|
import { DeprecateWorkflowTypeCommandInput, DeprecateWorkflowTypeCommandOutput } from "../commands/DeprecateWorkflowTypeCommand";
|
|
@@ -53,6 +55,14 @@ export declare const se_CountPendingActivityTasksCommand: (input: CountPendingAc
|
|
|
53
55
|
* serializeAws_json1_0CountPendingDecisionTasksCommand
|
|
54
56
|
*/
|
|
55
57
|
export declare const se_CountPendingDecisionTasksCommand: (input: CountPendingDecisionTasksCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
58
|
+
/**
|
|
59
|
+
* serializeAws_json1_0DeleteActivityTypeCommand
|
|
60
|
+
*/
|
|
61
|
+
export declare const se_DeleteActivityTypeCommand: (input: DeleteActivityTypeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
62
|
+
/**
|
|
63
|
+
* serializeAws_json1_0DeleteWorkflowTypeCommand
|
|
64
|
+
*/
|
|
65
|
+
export declare const se_DeleteWorkflowTypeCommand: (input: DeleteWorkflowTypeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
56
66
|
/**
|
|
57
67
|
* serializeAws_json1_0DeprecateActivityTypeCommand
|
|
58
68
|
*/
|
|
@@ -201,6 +211,14 @@ export declare const de_CountPendingActivityTasksCommand: (output: __HttpRespons
|
|
|
201
211
|
* deserializeAws_json1_0CountPendingDecisionTasksCommand
|
|
202
212
|
*/
|
|
203
213
|
export declare const de_CountPendingDecisionTasksCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CountPendingDecisionTasksCommandOutput>;
|
|
214
|
+
/**
|
|
215
|
+
* deserializeAws_json1_0DeleteActivityTypeCommand
|
|
216
|
+
*/
|
|
217
|
+
export declare const de_DeleteActivityTypeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteActivityTypeCommandOutput>;
|
|
218
|
+
/**
|
|
219
|
+
* deserializeAws_json1_0DeleteWorkflowTypeCommand
|
|
220
|
+
*/
|
|
221
|
+
export declare const de_DeleteWorkflowTypeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteWorkflowTypeCommandOutput>;
|
|
204
222
|
/**
|
|
205
223
|
* deserializeAws_json1_0DeprecateActivityTypeCommand
|
|
206
224
|
*/
|
|
@@ -15,6 +15,14 @@ import {
|
|
|
15
15
|
CountPendingDecisionTasksCommandInput,
|
|
16
16
|
CountPendingDecisionTasksCommandOutput,
|
|
17
17
|
} from "./commands/CountPendingDecisionTasksCommand";
|
|
18
|
+
import {
|
|
19
|
+
DeleteActivityTypeCommandInput,
|
|
20
|
+
DeleteActivityTypeCommandOutput,
|
|
21
|
+
} from "./commands/DeleteActivityTypeCommand";
|
|
22
|
+
import {
|
|
23
|
+
DeleteWorkflowTypeCommandInput,
|
|
24
|
+
DeleteWorkflowTypeCommandOutput,
|
|
25
|
+
} from "./commands/DeleteWorkflowTypeCommand";
|
|
18
26
|
import {
|
|
19
27
|
DeprecateActivityTypeCommandInput,
|
|
20
28
|
DeprecateActivityTypeCommandOutput,
|
|
@@ -201,6 +209,32 @@ export interface SWF {
|
|
|
201
209
|
options: __HttpHandlerOptions,
|
|
202
210
|
cb: (err: any, data?: CountPendingDecisionTasksCommandOutput) => void
|
|
203
211
|
): void;
|
|
212
|
+
deleteActivityType(
|
|
213
|
+
args: DeleteActivityTypeCommandInput,
|
|
214
|
+
options?: __HttpHandlerOptions
|
|
215
|
+
): Promise<DeleteActivityTypeCommandOutput>;
|
|
216
|
+
deleteActivityType(
|
|
217
|
+
args: DeleteActivityTypeCommandInput,
|
|
218
|
+
cb: (err: any, data?: DeleteActivityTypeCommandOutput) => void
|
|
219
|
+
): void;
|
|
220
|
+
deleteActivityType(
|
|
221
|
+
args: DeleteActivityTypeCommandInput,
|
|
222
|
+
options: __HttpHandlerOptions,
|
|
223
|
+
cb: (err: any, data?: DeleteActivityTypeCommandOutput) => void
|
|
224
|
+
): void;
|
|
225
|
+
deleteWorkflowType(
|
|
226
|
+
args: DeleteWorkflowTypeCommandInput,
|
|
227
|
+
options?: __HttpHandlerOptions
|
|
228
|
+
): Promise<DeleteWorkflowTypeCommandOutput>;
|
|
229
|
+
deleteWorkflowType(
|
|
230
|
+
args: DeleteWorkflowTypeCommandInput,
|
|
231
|
+
cb: (err: any, data?: DeleteWorkflowTypeCommandOutput) => void
|
|
232
|
+
): void;
|
|
233
|
+
deleteWorkflowType(
|
|
234
|
+
args: DeleteWorkflowTypeCommandInput,
|
|
235
|
+
options: __HttpHandlerOptions,
|
|
236
|
+
cb: (err: any, data?: DeleteWorkflowTypeCommandOutput) => void
|
|
237
|
+
): void;
|
|
204
238
|
deprecateActivityType(
|
|
205
239
|
args: DeprecateActivityTypeCommandInput,
|
|
206
240
|
options?: __HttpHandlerOptions
|
|
@@ -61,6 +61,14 @@ import {
|
|
|
61
61
|
CountPendingDecisionTasksCommandInput,
|
|
62
62
|
CountPendingDecisionTasksCommandOutput,
|
|
63
63
|
} from "./commands/CountPendingDecisionTasksCommand";
|
|
64
|
+
import {
|
|
65
|
+
DeleteActivityTypeCommandInput,
|
|
66
|
+
DeleteActivityTypeCommandOutput,
|
|
67
|
+
} from "./commands/DeleteActivityTypeCommand";
|
|
68
|
+
import {
|
|
69
|
+
DeleteWorkflowTypeCommandInput,
|
|
70
|
+
DeleteWorkflowTypeCommandOutput,
|
|
71
|
+
} from "./commands/DeleteWorkflowTypeCommand";
|
|
64
72
|
import {
|
|
65
73
|
DeprecateActivityTypeCommandInput,
|
|
66
74
|
DeprecateActivityTypeCommandOutput,
|
|
@@ -205,6 +213,8 @@ export type ServiceInputTypes =
|
|
|
205
213
|
| CountOpenWorkflowExecutionsCommandInput
|
|
206
214
|
| CountPendingActivityTasksCommandInput
|
|
207
215
|
| CountPendingDecisionTasksCommandInput
|
|
216
|
+
| DeleteActivityTypeCommandInput
|
|
217
|
+
| DeleteWorkflowTypeCommandInput
|
|
208
218
|
| DeprecateActivityTypeCommandInput
|
|
209
219
|
| DeprecateDomainCommandInput
|
|
210
220
|
| DeprecateWorkflowTypeCommandInput
|
|
@@ -243,6 +253,8 @@ export type ServiceOutputTypes =
|
|
|
243
253
|
| CountOpenWorkflowExecutionsCommandOutput
|
|
244
254
|
| CountPendingActivityTasksCommandOutput
|
|
245
255
|
| CountPendingDecisionTasksCommandOutput
|
|
256
|
+
| DeleteActivityTypeCommandOutput
|
|
257
|
+
| DeleteWorkflowTypeCommandOutput
|
|
246
258
|
| DeprecateActivityTypeCommandOutput
|
|
247
259
|
| DeprecateDomainCommandOutput
|
|
248
260
|
| DeprecateWorkflowTypeCommandOutput
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DeleteActivityTypeInput } from "../models/models_0";
|
|
4
|
+
import {
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
SWFClientResolvedConfig,
|
|
8
|
+
} from "../SWFClient";
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
export interface DeleteActivityTypeCommandInput
|
|
11
|
+
extends DeleteActivityTypeInput {}
|
|
12
|
+
export interface DeleteActivityTypeCommandOutput extends __MetadataBearer {}
|
|
13
|
+
declare const DeleteActivityTypeCommand_base: {
|
|
14
|
+
new (
|
|
15
|
+
input: DeleteActivityTypeCommandInput
|
|
16
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
17
|
+
DeleteActivityTypeCommandInput,
|
|
18
|
+
DeleteActivityTypeCommandOutput,
|
|
19
|
+
SWFClientResolvedConfig,
|
|
20
|
+
ServiceInputTypes,
|
|
21
|
+
ServiceOutputTypes
|
|
22
|
+
>;
|
|
23
|
+
new (
|
|
24
|
+
__0_0: DeleteActivityTypeCommandInput
|
|
25
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
26
|
+
DeleteActivityTypeCommandInput,
|
|
27
|
+
DeleteActivityTypeCommandOutput,
|
|
28
|
+
SWFClientResolvedConfig,
|
|
29
|
+
ServiceInputTypes,
|
|
30
|
+
ServiceOutputTypes
|
|
31
|
+
>;
|
|
32
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
33
|
+
};
|
|
34
|
+
export declare class DeleteActivityTypeCommand extends DeleteActivityTypeCommand_base {}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DeleteWorkflowTypeInput } from "../models/models_0";
|
|
4
|
+
import {
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
SWFClientResolvedConfig,
|
|
8
|
+
} from "../SWFClient";
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
export interface DeleteWorkflowTypeCommandInput
|
|
11
|
+
extends DeleteWorkflowTypeInput {}
|
|
12
|
+
export interface DeleteWorkflowTypeCommandOutput extends __MetadataBearer {}
|
|
13
|
+
declare const DeleteWorkflowTypeCommand_base: {
|
|
14
|
+
new (
|
|
15
|
+
input: DeleteWorkflowTypeCommandInput
|
|
16
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
17
|
+
DeleteWorkflowTypeCommandInput,
|
|
18
|
+
DeleteWorkflowTypeCommandOutput,
|
|
19
|
+
SWFClientResolvedConfig,
|
|
20
|
+
ServiceInputTypes,
|
|
21
|
+
ServiceOutputTypes
|
|
22
|
+
>;
|
|
23
|
+
new (
|
|
24
|
+
__0_0: DeleteWorkflowTypeCommandInput
|
|
25
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
26
|
+
DeleteWorkflowTypeCommandInput,
|
|
27
|
+
DeleteWorkflowTypeCommandOutput,
|
|
28
|
+
SWFClientResolvedConfig,
|
|
29
|
+
ServiceInputTypes,
|
|
30
|
+
ServiceOutputTypes
|
|
31
|
+
>;
|
|
32
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
33
|
+
};
|
|
34
|
+
export declare class DeleteWorkflowTypeCommand extends DeleteWorkflowTypeCommand_base {}
|
|
@@ -2,6 +2,8 @@ export * from "./CountClosedWorkflowExecutionsCommand";
|
|
|
2
2
|
export * from "./CountOpenWorkflowExecutionsCommand";
|
|
3
3
|
export * from "./CountPendingActivityTasksCommand";
|
|
4
4
|
export * from "./CountPendingDecisionTasksCommand";
|
|
5
|
+
export * from "./DeleteActivityTypeCommand";
|
|
6
|
+
export * from "./DeleteWorkflowTypeCommand";
|
|
5
7
|
export * from "./DeprecateActivityTypeCommand";
|
|
6
8
|
export * from "./DeprecateDomainCommand";
|
|
7
9
|
export * from "./DeprecateWorkflowTypeCommand";
|
|
@@ -853,6 +853,21 @@ export declare class DefaultUndefinedFault extends __BaseException {
|
|
|
853
853
|
opts: __ExceptionOptionType<DefaultUndefinedFault, __BaseException>
|
|
854
854
|
);
|
|
855
855
|
}
|
|
856
|
+
export interface DeleteActivityTypeInput {
|
|
857
|
+
domain: string | undefined;
|
|
858
|
+
activityType: ActivityType | undefined;
|
|
859
|
+
}
|
|
860
|
+
export declare class TypeNotDeprecatedFault extends __BaseException {
|
|
861
|
+
readonly name: "TypeNotDeprecatedFault";
|
|
862
|
+
readonly $fault: "client";
|
|
863
|
+
constructor(
|
|
864
|
+
opts: __ExceptionOptionType<TypeNotDeprecatedFault, __BaseException>
|
|
865
|
+
);
|
|
866
|
+
}
|
|
867
|
+
export interface DeleteWorkflowTypeInput {
|
|
868
|
+
domain: string | undefined;
|
|
869
|
+
workflowType: WorkflowType | undefined;
|
|
870
|
+
}
|
|
856
871
|
export interface DeprecateActivityTypeInput {
|
|
857
872
|
domain: string | undefined;
|
|
858
873
|
activityType: ActivityType | undefined;
|
|
@@ -19,6 +19,14 @@ import {
|
|
|
19
19
|
CountPendingDecisionTasksCommandInput,
|
|
20
20
|
CountPendingDecisionTasksCommandOutput,
|
|
21
21
|
} from "../commands/CountPendingDecisionTasksCommand";
|
|
22
|
+
import {
|
|
23
|
+
DeleteActivityTypeCommandInput,
|
|
24
|
+
DeleteActivityTypeCommandOutput,
|
|
25
|
+
} from "../commands/DeleteActivityTypeCommand";
|
|
26
|
+
import {
|
|
27
|
+
DeleteWorkflowTypeCommandInput,
|
|
28
|
+
DeleteWorkflowTypeCommandOutput,
|
|
29
|
+
} from "../commands/DeleteWorkflowTypeCommand";
|
|
22
30
|
import {
|
|
23
31
|
DeprecateActivityTypeCommandInput,
|
|
24
32
|
DeprecateActivityTypeCommandOutput,
|
|
@@ -167,6 +175,14 @@ export declare const se_CountPendingDecisionTasksCommand: (
|
|
|
167
175
|
input: CountPendingDecisionTasksCommandInput,
|
|
168
176
|
context: __SerdeContext
|
|
169
177
|
) => Promise<__HttpRequest>;
|
|
178
|
+
export declare const se_DeleteActivityTypeCommand: (
|
|
179
|
+
input: DeleteActivityTypeCommandInput,
|
|
180
|
+
context: __SerdeContext
|
|
181
|
+
) => Promise<__HttpRequest>;
|
|
182
|
+
export declare const se_DeleteWorkflowTypeCommand: (
|
|
183
|
+
input: DeleteWorkflowTypeCommandInput,
|
|
184
|
+
context: __SerdeContext
|
|
185
|
+
) => Promise<__HttpRequest>;
|
|
170
186
|
export declare const se_DeprecateActivityTypeCommand: (
|
|
171
187
|
input: DeprecateActivityTypeCommandInput,
|
|
172
188
|
context: __SerdeContext
|
|
@@ -315,6 +331,14 @@ export declare const de_CountPendingDecisionTasksCommand: (
|
|
|
315
331
|
output: __HttpResponse,
|
|
316
332
|
context: __SerdeContext
|
|
317
333
|
) => Promise<CountPendingDecisionTasksCommandOutput>;
|
|
334
|
+
export declare const de_DeleteActivityTypeCommand: (
|
|
335
|
+
output: __HttpResponse,
|
|
336
|
+
context: __SerdeContext
|
|
337
|
+
) => Promise<DeleteActivityTypeCommandOutput>;
|
|
338
|
+
export declare const de_DeleteWorkflowTypeCommand: (
|
|
339
|
+
output: __HttpResponse,
|
|
340
|
+
context: __SerdeContext
|
|
341
|
+
) => Promise<DeleteWorkflowTypeCommandOutput>;
|
|
318
342
|
export declare const de_DeprecateActivityTypeCommand: (
|
|
319
343
|
output: __HttpResponse,
|
|
320
344
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-swf",
|
|
3
3
|
"description": "AWS SDK for JavaScript Swf Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.585.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-swf",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.583.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.583.0",
|
|
25
25
|
"@aws-sdk/core": "3.582.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.583.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.577.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.577.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.577.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.583.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.577.0",
|
|
32
32
|
"@aws-sdk/types": "3.577.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.583.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.577.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.577.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.0",
|