@aws-sdk/client-swf 3.388.0 → 3.390.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/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +1 -0
- package/dist-types/commands/GetWorkflowExecutionHistoryCommand.d.ts +7 -4
- package/dist-types/commands/PollForDecisionTaskCommand.d.ts +7 -4
- package/dist-types/commands/RespondDecisionTaskCompletedCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +27 -0
- package/dist-types/ts3.4/models/models_0.d.ts +6 -0
- package/package.json +1 -1
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
4
|
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
5
5
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, {
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://swf-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://swf.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://swf-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://swf.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://swf.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
2
2
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, {
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://swf-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://swf.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://swf-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://swf.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://swf.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -174,6 +174,7 @@ export interface GetWorkflowExecutionHistoryCommandOutput extends History, __Met
|
|
|
174
174
|
* // },
|
|
175
175
|
* // taskPriority: "STRING_VALUE",
|
|
176
176
|
* // startToCloseTimeout: "STRING_VALUE",
|
|
177
|
+
* // scheduleToStartTimeout: "STRING_VALUE",
|
|
177
178
|
* // },
|
|
178
179
|
* // decisionTaskStartedEventAttributes: { // DecisionTaskStartedEventAttributes
|
|
179
180
|
* // identity: "STRING_VALUE",
|
|
@@ -183,9 +184,13 @@ export interface GetWorkflowExecutionHistoryCommandOutput extends History, __Met
|
|
|
183
184
|
* // executionContext: "STRING_VALUE",
|
|
184
185
|
* // scheduledEventId: Number("long"), // required
|
|
185
186
|
* // startedEventId: Number("long"), // required
|
|
187
|
+
* // taskList: {
|
|
188
|
+
* // name: "STRING_VALUE", // required
|
|
189
|
+
* // },
|
|
190
|
+
* // taskListScheduleToStartTimeout: "STRING_VALUE",
|
|
186
191
|
* // },
|
|
187
192
|
* // decisionTaskTimedOutEventAttributes: { // DecisionTaskTimedOutEventAttributes
|
|
188
|
-
* // timeoutType: "START_TO_CLOSE", // required
|
|
193
|
+
* // timeoutType: "START_TO_CLOSE" || "SCHEDULE_TO_START", // required
|
|
189
194
|
* // scheduledEventId: Number("long"), // required
|
|
190
195
|
* // startedEventId: Number("long"), // required
|
|
191
196
|
* // },
|
|
@@ -281,9 +286,7 @@ export interface GetWorkflowExecutionHistoryCommandOutput extends History, __Met
|
|
|
281
286
|
* // control: "STRING_VALUE",
|
|
282
287
|
* // input: "STRING_VALUE",
|
|
283
288
|
* // executionStartToCloseTimeout: "STRING_VALUE",
|
|
284
|
-
* // taskList:
|
|
285
|
-
* // name: "STRING_VALUE", // required
|
|
286
|
-
* // },
|
|
289
|
+
* // taskList: "<TaskList>", // required
|
|
287
290
|
* // taskPriority: "STRING_VALUE",
|
|
288
291
|
* // decisionTaskCompletedEventId: Number("long"), // required
|
|
289
292
|
* // childPolicy: "TERMINATE" || "REQUEST_CANCEL" || "ABANDON", // required
|
|
@@ -203,6 +203,7 @@ export interface PollForDecisionTaskCommandOutput extends DecisionTask, __Metada
|
|
|
203
203
|
* // },
|
|
204
204
|
* // taskPriority: "STRING_VALUE",
|
|
205
205
|
* // startToCloseTimeout: "STRING_VALUE",
|
|
206
|
+
* // scheduleToStartTimeout: "STRING_VALUE",
|
|
206
207
|
* // },
|
|
207
208
|
* // decisionTaskStartedEventAttributes: { // DecisionTaskStartedEventAttributes
|
|
208
209
|
* // identity: "STRING_VALUE",
|
|
@@ -212,9 +213,13 @@ export interface PollForDecisionTaskCommandOutput extends DecisionTask, __Metada
|
|
|
212
213
|
* // executionContext: "STRING_VALUE",
|
|
213
214
|
* // scheduledEventId: Number("long"), // required
|
|
214
215
|
* // startedEventId: Number("long"), // required
|
|
216
|
+
* // taskList: {
|
|
217
|
+
* // name: "STRING_VALUE", // required
|
|
218
|
+
* // },
|
|
219
|
+
* // taskListScheduleToStartTimeout: "STRING_VALUE",
|
|
215
220
|
* // },
|
|
216
221
|
* // decisionTaskTimedOutEventAttributes: { // DecisionTaskTimedOutEventAttributes
|
|
217
|
-
* // timeoutType: "START_TO_CLOSE", // required
|
|
222
|
+
* // timeoutType: "START_TO_CLOSE" || "SCHEDULE_TO_START", // required
|
|
218
223
|
* // scheduledEventId: Number("long"), // required
|
|
219
224
|
* // startedEventId: Number("long"), // required
|
|
220
225
|
* // },
|
|
@@ -310,9 +315,7 @@ export interface PollForDecisionTaskCommandOutput extends DecisionTask, __Metada
|
|
|
310
315
|
* // control: "STRING_VALUE",
|
|
311
316
|
* // input: "STRING_VALUE",
|
|
312
317
|
* // executionStartToCloseTimeout: "STRING_VALUE",
|
|
313
|
-
* // taskList:
|
|
314
|
-
* // name: "STRING_VALUE", // required
|
|
315
|
-
* // },
|
|
318
|
+
* // taskList: "<TaskList>", // required
|
|
316
319
|
* // taskPriority: "STRING_VALUE",
|
|
317
320
|
* // decisionTaskCompletedEventId: Number("long"), // required
|
|
318
321
|
* // childPolicy: "TERMINATE" || "REQUEST_CANCEL" || "ABANDON", // required
|
|
@@ -150,6 +150,10 @@ export interface RespondDecisionTaskCompletedCommandOutput extends __MetadataBea
|
|
|
150
150
|
* },
|
|
151
151
|
* ],
|
|
152
152
|
* executionContext: "STRING_VALUE",
|
|
153
|
+
* taskList: {
|
|
154
|
+
* name: "STRING_VALUE", // required
|
|
155
|
+
* },
|
|
156
|
+
* taskListScheduleToStartTimeout: "STRING_VALUE",
|
|
153
157
|
* };
|
|
154
158
|
* const command = new RespondDecisionTaskCompletedCommand(input);
|
|
155
159
|
* const response = await client.send(command);
|
|
@@ -2382,6 +2382,16 @@ export interface DecisionTaskCompletedEventAttributes {
|
|
|
2382
2382
|
* events leading up to this event.</p>
|
|
2383
2383
|
*/
|
|
2384
2384
|
startedEventId: number | undefined;
|
|
2385
|
+
/**
|
|
2386
|
+
* @public
|
|
2387
|
+
* <p>Represents a task list.</p>
|
|
2388
|
+
*/
|
|
2389
|
+
taskList?: TaskList;
|
|
2390
|
+
/**
|
|
2391
|
+
* @public
|
|
2392
|
+
* <p>The maximum amount of time the decision task can wait to be assigned to a worker.</p>
|
|
2393
|
+
*/
|
|
2394
|
+
taskListScheduleToStartTimeout?: string;
|
|
2385
2395
|
}
|
|
2386
2396
|
/**
|
|
2387
2397
|
* @public
|
|
@@ -2408,6 +2418,11 @@ export interface DecisionTaskScheduledEventAttributes {
|
|
|
2408
2418
|
* <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p>
|
|
2409
2419
|
*/
|
|
2410
2420
|
startToCloseTimeout?: string;
|
|
2421
|
+
/**
|
|
2422
|
+
* @public
|
|
2423
|
+
* <p>The maximum amount of time the decision task can wait to be assigned to a worker.</p>
|
|
2424
|
+
*/
|
|
2425
|
+
scheduleToStartTimeout?: string;
|
|
2411
2426
|
}
|
|
2412
2427
|
/**
|
|
2413
2428
|
* @public
|
|
@@ -2432,6 +2447,7 @@ export interface DecisionTaskStartedEventAttributes {
|
|
|
2432
2447
|
* @enum
|
|
2433
2448
|
*/
|
|
2434
2449
|
export declare const DecisionTaskTimeoutType: {
|
|
2450
|
+
readonly SCHEDULE_TO_START: "SCHEDULE_TO_START";
|
|
2435
2451
|
readonly START_TO_CLOSE: "START_TO_CLOSE";
|
|
2436
2452
|
};
|
|
2437
2453
|
/**
|
|
@@ -5998,6 +6014,17 @@ export interface RespondDecisionTaskCompletedInput {
|
|
|
5998
6014
|
* <p>User defined context to add to workflow execution.</p>
|
|
5999
6015
|
*/
|
|
6000
6016
|
executionContext?: string;
|
|
6017
|
+
/**
|
|
6018
|
+
* @public
|
|
6019
|
+
* <p>The task list to use for the future decision tasks of this workflow execution. This list overrides the original task list you specified while starting the workflow execution. </p>
|
|
6020
|
+
*/
|
|
6021
|
+
taskList?: TaskList;
|
|
6022
|
+
/**
|
|
6023
|
+
* @public
|
|
6024
|
+
* <p>Specifies a timeout (in seconds) for the task list override. When this parameter is missing, the task list override is permanent. This parameter makes it possible to temporarily override the task list. If a decision task scheduled on the override task list is not started within the timeout, the decision task will time out. Amazon SWF will revert the override and schedule a new decision task to the original task list.</p>
|
|
6025
|
+
* <p>If a decision task scheduled on the override task list is started within the timeout, but not completed within the start-to-close timeout, Amazon SWF will also revert the override and schedule a new decision task to the original task list.</p>
|
|
6026
|
+
*/
|
|
6027
|
+
taskListScheduleToStartTimeout?: string;
|
|
6001
6028
|
}
|
|
6002
6029
|
/**
|
|
6003
6030
|
* @public
|
|
@@ -394,17 +394,21 @@ export interface DecisionTaskCompletedEventAttributes {
|
|
|
394
394
|
executionContext?: string;
|
|
395
395
|
scheduledEventId: number | undefined;
|
|
396
396
|
startedEventId: number | undefined;
|
|
397
|
+
taskList?: TaskList;
|
|
398
|
+
taskListScheduleToStartTimeout?: string;
|
|
397
399
|
}
|
|
398
400
|
export interface DecisionTaskScheduledEventAttributes {
|
|
399
401
|
taskList: TaskList | undefined;
|
|
400
402
|
taskPriority?: string;
|
|
401
403
|
startToCloseTimeout?: string;
|
|
404
|
+
scheduleToStartTimeout?: string;
|
|
402
405
|
}
|
|
403
406
|
export interface DecisionTaskStartedEventAttributes {
|
|
404
407
|
identity?: string;
|
|
405
408
|
scheduledEventId: number | undefined;
|
|
406
409
|
}
|
|
407
410
|
export declare const DecisionTaskTimeoutType: {
|
|
411
|
+
readonly SCHEDULE_TO_START: "SCHEDULE_TO_START";
|
|
408
412
|
readonly START_TO_CLOSE: "START_TO_CLOSE";
|
|
409
413
|
};
|
|
410
414
|
export type DecisionTaskTimeoutType =
|
|
@@ -1131,6 +1135,8 @@ export interface RespondDecisionTaskCompletedInput {
|
|
|
1131
1135
|
taskToken: string | undefined;
|
|
1132
1136
|
decisions?: Decision[];
|
|
1133
1137
|
executionContext?: string;
|
|
1138
|
+
taskList?: TaskList;
|
|
1139
|
+
taskListScheduleToStartTimeout?: string;
|
|
1134
1140
|
}
|
|
1135
1141
|
export interface Run {
|
|
1136
1142
|
runId?: string;
|
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.390.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|