@aws-sdk/client-scheduler 3.379.1 → 3.381.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 +3 -3
- package/dist-cjs/models/models_0.js +5 -1
- package/dist-cjs/protocols/Aws_restJson1.js +3 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/CreateScheduleCommand.d.ts +1 -0
- package/dist-types/commands/GetScheduleCommand.d.ts +1 -0
- package/dist-types/commands/UpdateScheduleCommand.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +27 -3
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const q = "
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://scheduler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://scheduler-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://scheduler.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://scheduler.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScheduleGroupState = exports.ServiceQuotaExceededException = exports.PropagateTags = exports.PlacementStrategyType = exports.PlacementConstraintType = exports.LaunchType = exports.ScheduleState = exports.FlexibleTimeWindowMode = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AssignPublicIp = void 0;
|
|
3
|
+
exports.ScheduleGroupState = exports.ServiceQuotaExceededException = exports.PropagateTags = exports.PlacementStrategyType = exports.PlacementConstraintType = exports.LaunchType = exports.ScheduleState = exports.FlexibleTimeWindowMode = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AssignPublicIp = exports.ActionAfterCompletion = void 0;
|
|
4
4
|
const SchedulerServiceException_1 = require("./SchedulerServiceException");
|
|
5
|
+
exports.ActionAfterCompletion = {
|
|
6
|
+
DELETE: "DELETE",
|
|
7
|
+
NONE: "NONE",
|
|
8
|
+
};
|
|
5
9
|
exports.AssignPublicIp = {
|
|
6
10
|
DISABLED: "DISABLED",
|
|
7
11
|
ENABLED: "ENABLED",
|
|
@@ -15,6 +15,7 @@ const se_CreateScheduleCommand = async (input, context) => {
|
|
|
15
15
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
+
ActionAfterCompletion: [],
|
|
18
19
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
19
20
|
Description: [],
|
|
20
21
|
EndDate: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -260,6 +261,7 @@ const se_UpdateScheduleCommand = async (input, context) => {
|
|
|
260
261
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
261
262
|
let body;
|
|
262
263
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
264
|
+
ActionAfterCompletion: [],
|
|
263
265
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
264
266
|
Description: [],
|
|
265
267
|
EndDate: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -471,6 +473,7 @@ const de_GetScheduleCommand = async (output, context) => {
|
|
|
471
473
|
});
|
|
472
474
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
473
475
|
const doc = (0, smithy_client_1.take)(data, {
|
|
476
|
+
ActionAfterCompletion: smithy_client_1.expectString,
|
|
474
477
|
Arn: smithy_client_1.expectString,
|
|
475
478
|
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
476
479
|
Description: smithy_client_1.expectString,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://scheduler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://scheduler-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://scheduler.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://scheduler.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -12,6 +12,7 @@ export const se_CreateScheduleCommand = async (input, context) => {
|
|
|
12
12
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
13
13
|
let body;
|
|
14
14
|
body = JSON.stringify(take(input, {
|
|
15
|
+
ActionAfterCompletion: [],
|
|
15
16
|
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
16
17
|
Description: [],
|
|
17
18
|
EndDate: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -246,6 +247,7 @@ export const se_UpdateScheduleCommand = async (input, context) => {
|
|
|
246
247
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
247
248
|
let body;
|
|
248
249
|
body = JSON.stringify(take(input, {
|
|
250
|
+
ActionAfterCompletion: [],
|
|
249
251
|
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
250
252
|
Description: [],
|
|
251
253
|
EndDate: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -452,6 +454,7 @@ export const de_GetScheduleCommand = async (output, context) => {
|
|
|
452
454
|
});
|
|
453
455
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
454
456
|
const doc = take(data, {
|
|
457
|
+
ActionAfterCompletion: __expectString,
|
|
455
458
|
Arn: __expectString,
|
|
456
459
|
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
457
460
|
Description: __expectString,
|
|
@@ -121,6 +121,7 @@ export interface CreateScheduleCommandOutput extends CreateScheduleOutput, __Met
|
|
|
121
121
|
* MaximumWindowInMinutes: Number("int"),
|
|
122
122
|
* },
|
|
123
123
|
* ClientToken: "STRING_VALUE",
|
|
124
|
+
* ActionAfterCompletion: "STRING_VALUE",
|
|
124
125
|
* };
|
|
125
126
|
* const command = new CreateScheduleCommand(input);
|
|
126
127
|
* const response = await client.send(command);
|
|
@@ -129,6 +129,7 @@ export interface GetScheduleCommandOutput extends GetScheduleOutput, __MetadataB
|
|
|
129
129
|
* // Mode: "STRING_VALUE", // required
|
|
130
130
|
* // MaximumWindowInMinutes: Number("int"),
|
|
131
131
|
* // },
|
|
132
|
+
* // ActionAfterCompletion: "STRING_VALUE",
|
|
132
133
|
* // };
|
|
133
134
|
*
|
|
134
135
|
* ```
|
|
@@ -129,6 +129,7 @@ export interface UpdateScheduleCommandOutput extends UpdateScheduleOutput, __Met
|
|
|
129
129
|
* MaximumWindowInMinutes: Number("int"),
|
|
130
130
|
* },
|
|
131
131
|
* ClientToken: "STRING_VALUE",
|
|
132
|
+
* ActionAfterCompletion: "STRING_VALUE",
|
|
132
133
|
* };
|
|
133
134
|
* const command = new UpdateScheduleCommand(input);
|
|
134
135
|
* const response = await client.send(command);
|
|
@@ -15,7 +15,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
15
15
|
defaultSigningName: string;
|
|
16
16
|
};
|
|
17
17
|
export interface EndpointParameters extends __EndpointParameters {
|
|
18
|
-
Region
|
|
18
|
+
Region?: string;
|
|
19
19
|
UseDualStack?: boolean;
|
|
20
20
|
UseFIPS?: boolean;
|
|
21
21
|
Endpoint?: string;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { SchedulerServiceException as __BaseException } from "./SchedulerServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
* @enum
|
|
6
|
+
*/
|
|
7
|
+
export declare const ActionAfterCompletion: {
|
|
8
|
+
readonly DELETE: "DELETE";
|
|
9
|
+
readonly NONE: "NONE";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export type ActionAfterCompletion = (typeof ActionAfterCompletion)[keyof typeof ActionAfterCompletion];
|
|
3
15
|
/**
|
|
4
16
|
* @public
|
|
5
17
|
* @enum
|
|
@@ -535,7 +547,7 @@ export interface CreateScheduleInput {
|
|
|
535
547
|
* </li>
|
|
536
548
|
* <li>
|
|
537
549
|
* <p>
|
|
538
|
-
* <code>rate</code> expression - <code>rate(unit
|
|
550
|
+
* <code>rate</code> expression - <code>rate(value unit)</code>
|
|
539
551
|
* </p>
|
|
540
552
|
* </li>
|
|
541
553
|
* <li>
|
|
@@ -603,6 +615,10 @@ export interface CreateScheduleInput {
|
|
|
603
615
|
* </p>
|
|
604
616
|
*/
|
|
605
617
|
ClientToken?: string;
|
|
618
|
+
/**
|
|
619
|
+
* <p>Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.</p>
|
|
620
|
+
*/
|
|
621
|
+
ActionAfterCompletion?: ActionAfterCompletion | string;
|
|
606
622
|
}
|
|
607
623
|
/**
|
|
608
624
|
* @public
|
|
@@ -692,7 +708,7 @@ export interface GetScheduleOutput {
|
|
|
692
708
|
* </li>
|
|
693
709
|
* <li>
|
|
694
710
|
* <p>
|
|
695
|
-
* <code>rate</code> expression - <code>rate(unit
|
|
711
|
+
* <code>rate</code> expression - <code>rate(value unit)</code>
|
|
696
712
|
* </p>
|
|
697
713
|
* </li>
|
|
698
714
|
* <li>
|
|
@@ -761,6 +777,10 @@ export interface GetScheduleOutput {
|
|
|
761
777
|
* <p>Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.</p>
|
|
762
778
|
*/
|
|
763
779
|
FlexibleTimeWindow?: FlexibleTimeWindow;
|
|
780
|
+
/**
|
|
781
|
+
* <p>Indicates the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.</p>
|
|
782
|
+
*/
|
|
783
|
+
ActionAfterCompletion?: ActionAfterCompletion | string;
|
|
764
784
|
}
|
|
765
785
|
/**
|
|
766
786
|
* @public
|
|
@@ -869,7 +889,7 @@ export interface UpdateScheduleInput {
|
|
|
869
889
|
* </li>
|
|
870
890
|
* <li>
|
|
871
891
|
* <p>
|
|
872
|
-
* <code>rate</code> expression - <code>rate(unit
|
|
892
|
+
* <code>rate</code> expression - <code>rate(value unit)</code>
|
|
873
893
|
* </p>
|
|
874
894
|
* </li>
|
|
875
895
|
* <li>
|
|
@@ -937,6 +957,10 @@ export interface UpdateScheduleInput {
|
|
|
937
957
|
* </p>
|
|
938
958
|
*/
|
|
939
959
|
ClientToken?: string;
|
|
960
|
+
/**
|
|
961
|
+
* <p>Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.</p>
|
|
962
|
+
*/
|
|
963
|
+
ActionAfterCompletion?: ActionAfterCompletion | string;
|
|
940
964
|
}
|
|
941
965
|
/**
|
|
942
966
|
* @public
|
|
@@ -26,7 +26,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
26
26
|
defaultSigningName: string;
|
|
27
27
|
};
|
|
28
28
|
export interface EndpointParameters extends __EndpointParameters {
|
|
29
|
-
Region
|
|
29
|
+
Region?: string;
|
|
30
30
|
UseDualStack?: boolean;
|
|
31
31
|
UseFIPS?: boolean;
|
|
32
32
|
Endpoint?: string;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { SchedulerServiceException as __BaseException } from "./SchedulerServiceException";
|
|
3
|
+
export declare const ActionAfterCompletion: {
|
|
4
|
+
readonly DELETE: "DELETE";
|
|
5
|
+
readonly NONE: "NONE";
|
|
6
|
+
};
|
|
7
|
+
export type ActionAfterCompletion =
|
|
8
|
+
(typeof ActionAfterCompletion)[keyof typeof ActionAfterCompletion];
|
|
3
9
|
export declare const AssignPublicIp: {
|
|
4
10
|
readonly DISABLED: "DISABLED";
|
|
5
11
|
readonly ENABLED: "ENABLED";
|
|
@@ -178,6 +184,7 @@ export interface CreateScheduleInput {
|
|
|
178
184
|
Target: Target | undefined;
|
|
179
185
|
FlexibleTimeWindow: FlexibleTimeWindow | undefined;
|
|
180
186
|
ClientToken?: string;
|
|
187
|
+
ActionAfterCompletion?: ActionAfterCompletion | string;
|
|
181
188
|
}
|
|
182
189
|
export interface CreateScheduleOutput {
|
|
183
190
|
ScheduleArn: string | undefined;
|
|
@@ -215,6 +222,7 @@ export interface GetScheduleOutput {
|
|
|
215
222
|
KmsKeyArn?: string;
|
|
216
223
|
Target?: Target;
|
|
217
224
|
FlexibleTimeWindow?: FlexibleTimeWindow;
|
|
225
|
+
ActionAfterCompletion?: ActionAfterCompletion | string;
|
|
218
226
|
}
|
|
219
227
|
export interface ListSchedulesInput {
|
|
220
228
|
GroupName?: string;
|
|
@@ -252,6 +260,7 @@ export interface UpdateScheduleInput {
|
|
|
252
260
|
Target: Target | undefined;
|
|
253
261
|
FlexibleTimeWindow: FlexibleTimeWindow | undefined;
|
|
254
262
|
ClientToken?: string;
|
|
263
|
+
ActionAfterCompletion?: ActionAfterCompletion | string;
|
|
255
264
|
}
|
|
256
265
|
export interface UpdateScheduleOutput {
|
|
257
266
|
ScheduleArn: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-scheduler",
|
|
3
3
|
"description": "AWS SDK for JavaScript Scheduler Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.381.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",
|