@aws-sdk/client-scheduler 3.300.0 → 3.303.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.
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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;
4
4
  const SchedulerServiceException_1 = require("./SchedulerServiceException");
5
- var AssignPublicIp;
6
- (function (AssignPublicIp) {
7
- AssignPublicIp["DISABLED"] = "DISABLED";
8
- AssignPublicIp["ENABLED"] = "ENABLED";
9
- })(AssignPublicIp = exports.AssignPublicIp || (exports.AssignPublicIp = {}));
5
+ exports.AssignPublicIp = {
6
+ DISABLED: "DISABLED",
7
+ ENABLED: "ENABLED",
8
+ };
10
9
  class InternalServerException extends SchedulerServiceException_1.SchedulerServiceException {
11
10
  constructor(opts) {
12
11
  super({
@@ -77,37 +76,31 @@ class ConflictException extends SchedulerServiceException_1.SchedulerServiceExce
77
76
  }
78
77
  }
79
78
  exports.ConflictException = ConflictException;
80
- var FlexibleTimeWindowMode;
81
- (function (FlexibleTimeWindowMode) {
82
- FlexibleTimeWindowMode["FLEXIBLE"] = "FLEXIBLE";
83
- FlexibleTimeWindowMode["OFF"] = "OFF";
84
- })(FlexibleTimeWindowMode = exports.FlexibleTimeWindowMode || (exports.FlexibleTimeWindowMode = {}));
85
- var ScheduleState;
86
- (function (ScheduleState) {
87
- ScheduleState["DISABLED"] = "DISABLED";
88
- ScheduleState["ENABLED"] = "ENABLED";
89
- })(ScheduleState = exports.ScheduleState || (exports.ScheduleState = {}));
90
- var LaunchType;
91
- (function (LaunchType) {
92
- LaunchType["EC2"] = "EC2";
93
- LaunchType["EXTERNAL"] = "EXTERNAL";
94
- LaunchType["FARGATE"] = "FARGATE";
95
- })(LaunchType = exports.LaunchType || (exports.LaunchType = {}));
96
- var PlacementConstraintType;
97
- (function (PlacementConstraintType) {
98
- PlacementConstraintType["DISTINCT_INSTANCE"] = "distinctInstance";
99
- PlacementConstraintType["MEMBER_OF"] = "memberOf";
100
- })(PlacementConstraintType = exports.PlacementConstraintType || (exports.PlacementConstraintType = {}));
101
- var PlacementStrategyType;
102
- (function (PlacementStrategyType) {
103
- PlacementStrategyType["BINPACK"] = "binpack";
104
- PlacementStrategyType["RANDOM"] = "random";
105
- PlacementStrategyType["SPREAD"] = "spread";
106
- })(PlacementStrategyType = exports.PlacementStrategyType || (exports.PlacementStrategyType = {}));
107
- var PropagateTags;
108
- (function (PropagateTags) {
109
- PropagateTags["TASK_DEFINITION"] = "TASK_DEFINITION";
110
- })(PropagateTags = exports.PropagateTags || (exports.PropagateTags = {}));
79
+ exports.FlexibleTimeWindowMode = {
80
+ FLEXIBLE: "FLEXIBLE",
81
+ OFF: "OFF",
82
+ };
83
+ exports.ScheduleState = {
84
+ DISABLED: "DISABLED",
85
+ ENABLED: "ENABLED",
86
+ };
87
+ exports.LaunchType = {
88
+ EC2: "EC2",
89
+ EXTERNAL: "EXTERNAL",
90
+ FARGATE: "FARGATE",
91
+ };
92
+ exports.PlacementConstraintType = {
93
+ DISTINCT_INSTANCE: "distinctInstance",
94
+ MEMBER_OF: "memberOf",
95
+ };
96
+ exports.PlacementStrategyType = {
97
+ BINPACK: "binpack",
98
+ RANDOM: "random",
99
+ SPREAD: "spread",
100
+ };
101
+ exports.PropagateTags = {
102
+ TASK_DEFINITION: "TASK_DEFINITION",
103
+ };
111
104
  class ServiceQuotaExceededException extends SchedulerServiceException_1.SchedulerServiceException {
112
105
  constructor(opts) {
113
106
  super({
@@ -122,8 +115,7 @@ class ServiceQuotaExceededException extends SchedulerServiceException_1.Schedule
122
115
  }
123
116
  }
124
117
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
125
- var ScheduleGroupState;
126
- (function (ScheduleGroupState) {
127
- ScheduleGroupState["ACTIVE"] = "ACTIVE";
128
- ScheduleGroupState["DELETING"] = "DELETING";
129
- })(ScheduleGroupState = exports.ScheduleGroupState || (exports.ScheduleGroupState = {}));
118
+ exports.ScheduleGroupState = {
119
+ ACTIVE: "ACTIVE",
120
+ DELETING: "DELETING",
121
+ };
@@ -1,9 +1,8 @@
1
1
  import { SchedulerServiceException as __BaseException } from "./SchedulerServiceException";
2
- export var AssignPublicIp;
3
- (function (AssignPublicIp) {
4
- AssignPublicIp["DISABLED"] = "DISABLED";
5
- AssignPublicIp["ENABLED"] = "ENABLED";
6
- })(AssignPublicIp || (AssignPublicIp = {}));
2
+ export const AssignPublicIp = {
3
+ DISABLED: "DISABLED",
4
+ ENABLED: "ENABLED",
5
+ };
7
6
  export class InternalServerException extends __BaseException {
8
7
  constructor(opts) {
9
8
  super({
@@ -69,37 +68,31 @@ export class ConflictException extends __BaseException {
69
68
  this.Message = opts.Message;
70
69
  }
71
70
  }
72
- export var FlexibleTimeWindowMode;
73
- (function (FlexibleTimeWindowMode) {
74
- FlexibleTimeWindowMode["FLEXIBLE"] = "FLEXIBLE";
75
- FlexibleTimeWindowMode["OFF"] = "OFF";
76
- })(FlexibleTimeWindowMode || (FlexibleTimeWindowMode = {}));
77
- export var ScheduleState;
78
- (function (ScheduleState) {
79
- ScheduleState["DISABLED"] = "DISABLED";
80
- ScheduleState["ENABLED"] = "ENABLED";
81
- })(ScheduleState || (ScheduleState = {}));
82
- export var LaunchType;
83
- (function (LaunchType) {
84
- LaunchType["EC2"] = "EC2";
85
- LaunchType["EXTERNAL"] = "EXTERNAL";
86
- LaunchType["FARGATE"] = "FARGATE";
87
- })(LaunchType || (LaunchType = {}));
88
- export var PlacementConstraintType;
89
- (function (PlacementConstraintType) {
90
- PlacementConstraintType["DISTINCT_INSTANCE"] = "distinctInstance";
91
- PlacementConstraintType["MEMBER_OF"] = "memberOf";
92
- })(PlacementConstraintType || (PlacementConstraintType = {}));
93
- export var PlacementStrategyType;
94
- (function (PlacementStrategyType) {
95
- PlacementStrategyType["BINPACK"] = "binpack";
96
- PlacementStrategyType["RANDOM"] = "random";
97
- PlacementStrategyType["SPREAD"] = "spread";
98
- })(PlacementStrategyType || (PlacementStrategyType = {}));
99
- export var PropagateTags;
100
- (function (PropagateTags) {
101
- PropagateTags["TASK_DEFINITION"] = "TASK_DEFINITION";
102
- })(PropagateTags || (PropagateTags = {}));
71
+ export const FlexibleTimeWindowMode = {
72
+ FLEXIBLE: "FLEXIBLE",
73
+ OFF: "OFF",
74
+ };
75
+ export const ScheduleState = {
76
+ DISABLED: "DISABLED",
77
+ ENABLED: "ENABLED",
78
+ };
79
+ export const LaunchType = {
80
+ EC2: "EC2",
81
+ EXTERNAL: "EXTERNAL",
82
+ FARGATE: "FARGATE",
83
+ };
84
+ export const PlacementConstraintType = {
85
+ DISTINCT_INSTANCE: "distinctInstance",
86
+ MEMBER_OF: "memberOf",
87
+ };
88
+ export const PlacementStrategyType = {
89
+ BINPACK: "binpack",
90
+ RANDOM: "random",
91
+ SPREAD: "spread",
92
+ };
93
+ export const PropagateTags = {
94
+ TASK_DEFINITION: "TASK_DEFINITION",
95
+ };
103
96
  export class ServiceQuotaExceededException extends __BaseException {
104
97
  constructor(opts) {
105
98
  super({
@@ -113,8 +106,7 @@ export class ServiceQuotaExceededException extends __BaseException {
113
106
  this.Message = opts.Message;
114
107
  }
115
108
  }
116
- export var ScheduleGroupState;
117
- (function (ScheduleGroupState) {
118
- ScheduleGroupState["ACTIVE"] = "ACTIVE";
119
- ScheduleGroupState["DELETING"] = "DELETING";
120
- })(ScheduleGroupState || (ScheduleGroupState = {}));
109
+ export const ScheduleGroupState = {
110
+ ACTIVE: "ACTIVE",
111
+ DELETING: "DELETING",
112
+ };
@@ -26,7 +26,7 @@ export interface CreateScheduleCommandOutput extends CreateScheduleOutput, __Met
26
26
  * import { SchedulerClient, CreateScheduleCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
27
27
  * // const { SchedulerClient, CreateScheduleCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import
28
28
  * const client = new SchedulerClient(config);
29
- * const input = {
29
+ * const input = { // CreateScheduleInput
30
30
  * Name: "STRING_VALUE", // required
31
31
  * GroupName: "STRING_VALUE",
32
32
  * ScheduleExpression: "STRING_VALUE", // required
@@ -36,27 +36,27 @@ export interface CreateScheduleCommandOutput extends CreateScheduleOutput, __Met
36
36
  * ScheduleExpressionTimezone: "STRING_VALUE",
37
37
  * State: "STRING_VALUE",
38
38
  * KmsKeyArn: "STRING_VALUE",
39
- * Target: {
39
+ * Target: { // Target
40
40
  * Arn: "STRING_VALUE", // required
41
41
  * RoleArn: "STRING_VALUE", // required
42
- * DeadLetterConfig: {
42
+ * DeadLetterConfig: { // DeadLetterConfig
43
43
  * Arn: "STRING_VALUE",
44
44
  * },
45
- * RetryPolicy: {
45
+ * RetryPolicy: { // RetryPolicy
46
46
  * MaximumEventAgeInSeconds: Number("int"),
47
47
  * MaximumRetryAttempts: Number("int"),
48
48
  * },
49
49
  * Input: "STRING_VALUE",
50
- * EcsParameters: {
50
+ * EcsParameters: { // EcsParameters
51
51
  * TaskDefinitionArn: "STRING_VALUE", // required
52
52
  * TaskCount: Number("int"),
53
53
  * LaunchType: "STRING_VALUE",
54
- * NetworkConfiguration: {
55
- * awsvpcConfiguration: {
56
- * Subnets: [ // required
54
+ * NetworkConfiguration: { // NetworkConfiguration
55
+ * awsvpcConfiguration: { // AwsVpcConfiguration
56
+ * Subnets: [ // Subnets // required
57
57
  * "STRING_VALUE",
58
58
  * ],
59
- * SecurityGroups: [
59
+ * SecurityGroups: [ // SecurityGroups
60
60
  * "STRING_VALUE",
61
61
  * ],
62
62
  * AssignPublicIp: "STRING_VALUE",
@@ -64,8 +64,8 @@ export interface CreateScheduleCommandOutput extends CreateScheduleOutput, __Met
64
64
  * },
65
65
  * PlatformVersion: "STRING_VALUE",
66
66
  * Group: "STRING_VALUE",
67
- * CapacityProviderStrategy: [
68
- * {
67
+ * CapacityProviderStrategy: [ // CapacityProviderStrategy
68
+ * { // CapacityProviderStrategyItem
69
69
  * capacityProvider: "STRING_VALUE", // required
70
70
  * weight: Number("int"),
71
71
  * base: Number("int"),
@@ -73,46 +73,46 @@ export interface CreateScheduleCommandOutput extends CreateScheduleOutput, __Met
73
73
  * ],
74
74
  * EnableECSManagedTags: true || false,
75
75
  * EnableExecuteCommand: true || false,
76
- * PlacementConstraints: [
77
- * {
76
+ * PlacementConstraints: [ // PlacementConstraints
77
+ * { // PlacementConstraint
78
78
  * type: "STRING_VALUE",
79
79
  * expression: "STRING_VALUE",
80
80
  * },
81
81
  * ],
82
- * PlacementStrategy: [
83
- * {
82
+ * PlacementStrategy: [ // PlacementStrategies
83
+ * { // PlacementStrategy
84
84
  * type: "STRING_VALUE",
85
85
  * field: "STRING_VALUE",
86
86
  * },
87
87
  * ],
88
88
  * PropagateTags: "STRING_VALUE",
89
89
  * ReferenceId: "STRING_VALUE",
90
- * Tags: [
91
- * {
90
+ * Tags: [ // Tags
91
+ * { // TagMap
92
92
  * "<keys>": "STRING_VALUE",
93
93
  * },
94
94
  * ],
95
95
  * },
96
- * EventBridgeParameters: {
96
+ * EventBridgeParameters: { // EventBridgeParameters
97
97
  * DetailType: "STRING_VALUE", // required
98
98
  * Source: "STRING_VALUE", // required
99
99
  * },
100
- * KinesisParameters: {
100
+ * KinesisParameters: { // KinesisParameters
101
101
  * PartitionKey: "STRING_VALUE", // required
102
102
  * },
103
- * SageMakerPipelineParameters: {
104
- * PipelineParameterList: [
105
- * {
103
+ * SageMakerPipelineParameters: { // SageMakerPipelineParameters
104
+ * PipelineParameterList: [ // SageMakerPipelineParameterList
105
+ * { // SageMakerPipelineParameter
106
106
  * Name: "STRING_VALUE", // required
107
107
  * Value: "STRING_VALUE", // required
108
108
  * },
109
109
  * ],
110
110
  * },
111
- * SqsParameters: {
111
+ * SqsParameters: { // SqsParameters
112
112
  * MessageGroupId: "STRING_VALUE",
113
113
  * },
114
114
  * },
115
- * FlexibleTimeWindow: {
115
+ * FlexibleTimeWindow: { // FlexibleTimeWindow
116
116
  * Mode: "STRING_VALUE", // required
117
117
  * MaximumWindowInMinutes: Number("int"),
118
118
  * },
@@ -26,10 +26,10 @@ export interface CreateScheduleGroupCommandOutput extends CreateScheduleGroupOut
26
26
  * import { SchedulerClient, CreateScheduleGroupCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
27
27
  * // const { SchedulerClient, CreateScheduleGroupCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import
28
28
  * const client = new SchedulerClient(config);
29
- * const input = {
29
+ * const input = { // CreateScheduleGroupInput
30
30
  * Name: "STRING_VALUE", // required
31
- * Tags: [
32
- * {
31
+ * Tags: [ // TagList
32
+ * { // Tag
33
33
  * Key: "STRING_VALUE", // required
34
34
  * Value: "STRING_VALUE", // required
35
35
  * },
@@ -26,7 +26,7 @@ export interface DeleteScheduleCommandOutput extends DeleteScheduleOutput, __Met
26
26
  * import { SchedulerClient, DeleteScheduleCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
27
27
  * // const { SchedulerClient, DeleteScheduleCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import
28
28
  * const client = new SchedulerClient(config);
29
- * const input = {
29
+ * const input = { // DeleteScheduleInput
30
30
  * Name: "STRING_VALUE", // required
31
31
  * GroupName: "STRING_VALUE",
32
32
  * ClientToken: "STRING_VALUE",
@@ -34,7 +34,7 @@ export interface DeleteScheduleGroupCommandOutput extends DeleteScheduleGroupOut
34
34
  * import { SchedulerClient, DeleteScheduleGroupCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
35
35
  * // const { SchedulerClient, DeleteScheduleGroupCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import
36
36
  * const client = new SchedulerClient(config);
37
- * const input = {
37
+ * const input = { // DeleteScheduleGroupInput
38
38
  * Name: "STRING_VALUE", // required
39
39
  * ClientToken: "STRING_VALUE",
40
40
  * };
@@ -26,7 +26,7 @@ export interface GetScheduleCommandOutput extends GetScheduleOutput, __MetadataB
26
26
  * import { SchedulerClient, GetScheduleCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
27
27
  * // const { SchedulerClient, GetScheduleCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import
28
28
  * const client = new SchedulerClient(config);
29
- * const input = {
29
+ * const input = { // GetScheduleInput
30
30
  * Name: "STRING_VALUE", // required
31
31
  * GroupName: "STRING_VALUE",
32
32
  * };
@@ -26,7 +26,7 @@ export interface GetScheduleGroupCommandOutput extends GetScheduleGroupOutput, _
26
26
  * import { SchedulerClient, GetScheduleGroupCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
27
27
  * // const { SchedulerClient, GetScheduleGroupCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import
28
28
  * const client = new SchedulerClient(config);
29
- * const input = {
29
+ * const input = { // GetScheduleGroupInput
30
30
  * Name: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new GetScheduleGroupCommand(input);
@@ -26,7 +26,7 @@ export interface ListScheduleGroupsCommandOutput extends ListScheduleGroupsOutpu
26
26
  * import { SchedulerClient, ListScheduleGroupsCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
27
27
  * // const { SchedulerClient, ListScheduleGroupsCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import
28
28
  * const client = new SchedulerClient(config);
29
- * const input = {
29
+ * const input = { // ListScheduleGroupsInput
30
30
  * NamePrefix: "STRING_VALUE",
31
31
  * NextToken: "STRING_VALUE",
32
32
  * MaxResults: Number("int"),
@@ -26,7 +26,7 @@ export interface ListSchedulesCommandOutput extends ListSchedulesOutput, __Metad
26
26
  * import { SchedulerClient, ListSchedulesCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
27
27
  * // const { SchedulerClient, ListSchedulesCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import
28
28
  * const client = new SchedulerClient(config);
29
- * const input = {
29
+ * const input = { // ListSchedulesInput
30
30
  * GroupName: "STRING_VALUE",
31
31
  * NamePrefix: "STRING_VALUE",
32
32
  * State: "STRING_VALUE",
@@ -26,7 +26,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOut
26
26
  * import { SchedulerClient, ListTagsForResourceCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
27
27
  * // const { SchedulerClient, ListTagsForResourceCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import
28
28
  * const client = new SchedulerClient(config);
29
- * const input = {
29
+ * const input = { // ListTagsForResourceInput
30
30
  * ResourceArn: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new ListTagsForResourceCommand(input);
@@ -26,10 +26,10 @@ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataB
26
26
  * import { SchedulerClient, TagResourceCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
27
27
  * // const { SchedulerClient, TagResourceCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import
28
28
  * const client = new SchedulerClient(config);
29
- * const input = {
29
+ * const input = { // TagResourceInput
30
30
  * ResourceArn: "STRING_VALUE", // required
31
- * Tags: [ // required
32
- * {
31
+ * Tags: [ // TagList // required
32
+ * { // Tag
33
33
  * Key: "STRING_VALUE", // required
34
34
  * Value: "STRING_VALUE", // required
35
35
  * },
@@ -26,9 +26,9 @@ export interface UntagResourceCommandOutput extends UntagResourceOutput, __Metad
26
26
  * import { SchedulerClient, UntagResourceCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
27
27
  * // const { SchedulerClient, UntagResourceCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import
28
28
  * const client = new SchedulerClient(config);
29
- * const input = {
29
+ * const input = { // UntagResourceInput
30
30
  * ResourceArn: "STRING_VALUE", // required
31
- * TagKeys: [ // required
31
+ * TagKeys: [ // TagKeyList // required
32
32
  * "STRING_VALUE",
33
33
  * ],
34
34
  * };
@@ -34,7 +34,7 @@ export interface UpdateScheduleCommandOutput extends UpdateScheduleOutput, __Met
34
34
  * import { SchedulerClient, UpdateScheduleCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
35
35
  * // const { SchedulerClient, UpdateScheduleCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import
36
36
  * const client = new SchedulerClient(config);
37
- * const input = {
37
+ * const input = { // UpdateScheduleInput
38
38
  * Name: "STRING_VALUE", // required
39
39
  * GroupName: "STRING_VALUE",
40
40
  * ScheduleExpression: "STRING_VALUE", // required
@@ -44,27 +44,27 @@ export interface UpdateScheduleCommandOutput extends UpdateScheduleOutput, __Met
44
44
  * ScheduleExpressionTimezone: "STRING_VALUE",
45
45
  * State: "STRING_VALUE",
46
46
  * KmsKeyArn: "STRING_VALUE",
47
- * Target: {
47
+ * Target: { // Target
48
48
  * Arn: "STRING_VALUE", // required
49
49
  * RoleArn: "STRING_VALUE", // required
50
- * DeadLetterConfig: {
50
+ * DeadLetterConfig: { // DeadLetterConfig
51
51
  * Arn: "STRING_VALUE",
52
52
  * },
53
- * RetryPolicy: {
53
+ * RetryPolicy: { // RetryPolicy
54
54
  * MaximumEventAgeInSeconds: Number("int"),
55
55
  * MaximumRetryAttempts: Number("int"),
56
56
  * },
57
57
  * Input: "STRING_VALUE",
58
- * EcsParameters: {
58
+ * EcsParameters: { // EcsParameters
59
59
  * TaskDefinitionArn: "STRING_VALUE", // required
60
60
  * TaskCount: Number("int"),
61
61
  * LaunchType: "STRING_VALUE",
62
- * NetworkConfiguration: {
63
- * awsvpcConfiguration: {
64
- * Subnets: [ // required
62
+ * NetworkConfiguration: { // NetworkConfiguration
63
+ * awsvpcConfiguration: { // AwsVpcConfiguration
64
+ * Subnets: [ // Subnets // required
65
65
  * "STRING_VALUE",
66
66
  * ],
67
- * SecurityGroups: [
67
+ * SecurityGroups: [ // SecurityGroups
68
68
  * "STRING_VALUE",
69
69
  * ],
70
70
  * AssignPublicIp: "STRING_VALUE",
@@ -72,8 +72,8 @@ export interface UpdateScheduleCommandOutput extends UpdateScheduleOutput, __Met
72
72
  * },
73
73
  * PlatformVersion: "STRING_VALUE",
74
74
  * Group: "STRING_VALUE",
75
- * CapacityProviderStrategy: [
76
- * {
75
+ * CapacityProviderStrategy: [ // CapacityProviderStrategy
76
+ * { // CapacityProviderStrategyItem
77
77
  * capacityProvider: "STRING_VALUE", // required
78
78
  * weight: Number("int"),
79
79
  * base: Number("int"),
@@ -81,46 +81,46 @@ export interface UpdateScheduleCommandOutput extends UpdateScheduleOutput, __Met
81
81
  * ],
82
82
  * EnableECSManagedTags: true || false,
83
83
  * EnableExecuteCommand: true || false,
84
- * PlacementConstraints: [
85
- * {
84
+ * PlacementConstraints: [ // PlacementConstraints
85
+ * { // PlacementConstraint
86
86
  * type: "STRING_VALUE",
87
87
  * expression: "STRING_VALUE",
88
88
  * },
89
89
  * ],
90
- * PlacementStrategy: [
91
- * {
90
+ * PlacementStrategy: [ // PlacementStrategies
91
+ * { // PlacementStrategy
92
92
  * type: "STRING_VALUE",
93
93
  * field: "STRING_VALUE",
94
94
  * },
95
95
  * ],
96
96
  * PropagateTags: "STRING_VALUE",
97
97
  * ReferenceId: "STRING_VALUE",
98
- * Tags: [
99
- * {
98
+ * Tags: [ // Tags
99
+ * { // TagMap
100
100
  * "<keys>": "STRING_VALUE",
101
101
  * },
102
102
  * ],
103
103
  * },
104
- * EventBridgeParameters: {
104
+ * EventBridgeParameters: { // EventBridgeParameters
105
105
  * DetailType: "STRING_VALUE", // required
106
106
  * Source: "STRING_VALUE", // required
107
107
  * },
108
- * KinesisParameters: {
108
+ * KinesisParameters: { // KinesisParameters
109
109
  * PartitionKey: "STRING_VALUE", // required
110
110
  * },
111
- * SageMakerPipelineParameters: {
112
- * PipelineParameterList: [
113
- * {
111
+ * SageMakerPipelineParameters: { // SageMakerPipelineParameters
112
+ * PipelineParameterList: [ // SageMakerPipelineParameterList
113
+ * { // SageMakerPipelineParameter
114
114
  * Name: "STRING_VALUE", // required
115
115
  * Value: "STRING_VALUE", // required
116
116
  * },
117
117
  * ],
118
118
  * },
119
- * SqsParameters: {
119
+ * SqsParameters: { // SqsParameters
120
120
  * MessageGroupId: "STRING_VALUE",
121
121
  * },
122
122
  * },
123
- * FlexibleTimeWindow: {
123
+ * FlexibleTimeWindow: { // FlexibleTimeWindow
124
124
  * Mode: "STRING_VALUE", // required
125
125
  * MaximumWindowInMinutes: Number("int"),
126
126
  * },
@@ -2,11 +2,16 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
2
2
  import { SchedulerServiceException as __BaseException } from "./SchedulerServiceException";
3
3
  /**
4
4
  * @public
5
+ * @enum
5
6
  */
6
- export declare enum AssignPublicIp {
7
- DISABLED = "DISABLED",
8
- ENABLED = "ENABLED"
9
- }
7
+ export declare const AssignPublicIp: {
8
+ readonly DISABLED: "DISABLED";
9
+ readonly ENABLED: "ENABLED";
10
+ };
11
+ /**
12
+ * @public
13
+ */
14
+ export type AssignPublicIp = (typeof AssignPublicIp)[keyof typeof AssignPublicIp];
10
15
  /**
11
16
  * @public
12
17
  * <p>Unexpected error encountered while processing the request.</p>
@@ -106,11 +111,16 @@ export declare class ConflictException extends __BaseException {
106
111
  }
107
112
  /**
108
113
  * @public
114
+ * @enum
109
115
  */
110
- export declare enum FlexibleTimeWindowMode {
111
- FLEXIBLE = "FLEXIBLE",
112
- OFF = "OFF"
113
- }
116
+ export declare const FlexibleTimeWindowMode: {
117
+ readonly FLEXIBLE: "FLEXIBLE";
118
+ readonly OFF: "OFF";
119
+ };
120
+ /**
121
+ * @public
122
+ */
123
+ export type FlexibleTimeWindowMode = (typeof FlexibleTimeWindowMode)[keyof typeof FlexibleTimeWindowMode];
114
124
  /**
115
125
  * @public
116
126
  * <p>Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.</p>
@@ -127,11 +137,16 @@ export interface FlexibleTimeWindow {
127
137
  }
128
138
  /**
129
139
  * @public
140
+ * @enum
130
141
  */
131
- export declare enum ScheduleState {
132
- DISABLED = "DISABLED",
133
- ENABLED = "ENABLED"
134
- }
142
+ export declare const ScheduleState: {
143
+ readonly DISABLED: "DISABLED";
144
+ readonly ENABLED: "ENABLED";
145
+ };
146
+ /**
147
+ * @public
148
+ */
149
+ export type ScheduleState = (typeof ScheduleState)[keyof typeof ScheduleState];
135
150
  /**
136
151
  * @public
137
152
  * <p>An object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule. If specified, EventBridge Scheduler delivers failed events that could not be successfully delivered to a target to the queue.</p>
@@ -164,12 +179,17 @@ export interface CapacityProviderStrategyItem {
164
179
  }
165
180
  /**
166
181
  * @public
182
+ * @enum
167
183
  */
168
- export declare enum LaunchType {
169
- EC2 = "EC2",
170
- EXTERNAL = "EXTERNAL",
171
- FARGATE = "FARGATE"
172
- }
184
+ export declare const LaunchType: {
185
+ readonly EC2: "EC2";
186
+ readonly EXTERNAL: "EXTERNAL";
187
+ readonly FARGATE: "FARGATE";
188
+ };
189
+ /**
190
+ * @public
191
+ */
192
+ export type LaunchType = (typeof LaunchType)[keyof typeof LaunchType];
173
193
  /**
174
194
  * @public
175
195
  * <p>This structure specifies the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the awsvpc network mode.</p>
@@ -201,11 +221,16 @@ export interface NetworkConfiguration {
201
221
  }
202
222
  /**
203
223
  * @public
224
+ * @enum
204
225
  */
205
- export declare enum PlacementConstraintType {
206
- DISTINCT_INSTANCE = "distinctInstance",
207
- MEMBER_OF = "memberOf"
208
- }
226
+ export declare const PlacementConstraintType: {
227
+ readonly DISTINCT_INSTANCE: "distinctInstance";
228
+ readonly MEMBER_OF: "memberOf";
229
+ };
230
+ /**
231
+ * @public
232
+ */
233
+ export type PlacementConstraintType = (typeof PlacementConstraintType)[keyof typeof PlacementConstraintType];
209
234
  /**
210
235
  * @public
211
236
  * <p>An object representing a constraint on task placement.</p>
@@ -223,12 +248,17 @@ export interface PlacementConstraint {
223
248
  }
224
249
  /**
225
250
  * @public
251
+ * @enum
226
252
  */
227
- export declare enum PlacementStrategyType {
228
- BINPACK = "binpack",
229
- RANDOM = "random",
230
- SPREAD = "spread"
231
- }
253
+ export declare const PlacementStrategyType: {
254
+ readonly BINPACK: "binpack";
255
+ readonly RANDOM: "random";
256
+ readonly SPREAD: "spread";
257
+ };
258
+ /**
259
+ * @public
260
+ */
261
+ export type PlacementStrategyType = (typeof PlacementStrategyType)[keyof typeof PlacementStrategyType];
232
262
  /**
233
263
  * @public
234
264
  * <p>The task placement strategy for a task or service.</p>
@@ -249,10 +279,15 @@ export interface PlacementStrategy {
249
279
  }
250
280
  /**
251
281
  * @public
282
+ * @enum
252
283
  */
253
- export declare enum PropagateTags {
254
- TASK_DEFINITION = "TASK_DEFINITION"
255
- }
284
+ export declare const PropagateTags: {
285
+ readonly TASK_DEFINITION: "TASK_DEFINITION";
286
+ };
287
+ /**
288
+ * @public
289
+ */
290
+ export type PropagateTags = (typeof PropagateTags)[keyof typeof PropagateTags];
256
291
  /**
257
292
  * @public
258
293
  * <p>The templated target type for the Amazon ECS <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html">
@@ -973,11 +1008,16 @@ export interface GetScheduleGroupInput {
973
1008
  }
974
1009
  /**
975
1010
  * @public
1011
+ * @enum
976
1012
  */
977
- export declare enum ScheduleGroupState {
978
- ACTIVE = "ACTIVE",
979
- DELETING = "DELETING"
980
- }
1013
+ export declare const ScheduleGroupState: {
1014
+ readonly ACTIVE: "ACTIVE";
1015
+ readonly DELETING: "DELETING";
1016
+ };
1017
+ /**
1018
+ * @public
1019
+ */
1020
+ export type ScheduleGroupState = (typeof ScheduleGroupState)[keyof typeof ScheduleGroupState];
981
1021
  /**
982
1022
  * @public
983
1023
  */
@@ -1,9 +1,11 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { SchedulerServiceException as __BaseException } from "./SchedulerServiceException";
3
- export declare enum AssignPublicIp {
4
- DISABLED = "DISABLED",
5
- ENABLED = "ENABLED",
6
- }
3
+ export declare const AssignPublicIp: {
4
+ readonly DISABLED: "DISABLED";
5
+ readonly ENABLED: "ENABLED";
6
+ };
7
+ export type AssignPublicIp =
8
+ (typeof AssignPublicIp)[keyof typeof AssignPublicIp];
7
9
  export declare class InternalServerException extends __BaseException {
8
10
  readonly name: "InternalServerException";
9
11
  readonly $fault: "server";
@@ -52,18 +54,21 @@ export declare class ConflictException extends __BaseException {
52
54
  Message: string | undefined;
53
55
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
54
56
  }
55
- export declare enum FlexibleTimeWindowMode {
56
- FLEXIBLE = "FLEXIBLE",
57
- OFF = "OFF",
58
- }
57
+ export declare const FlexibleTimeWindowMode: {
58
+ readonly FLEXIBLE: "FLEXIBLE";
59
+ readonly OFF: "OFF";
60
+ };
61
+ export type FlexibleTimeWindowMode =
62
+ (typeof FlexibleTimeWindowMode)[keyof typeof FlexibleTimeWindowMode];
59
63
  export interface FlexibleTimeWindow {
60
64
  Mode: FlexibleTimeWindowMode | string | undefined;
61
65
  MaximumWindowInMinutes?: number;
62
66
  }
63
- export declare enum ScheduleState {
64
- DISABLED = "DISABLED",
65
- ENABLED = "ENABLED",
66
- }
67
+ export declare const ScheduleState: {
68
+ readonly DISABLED: "DISABLED";
69
+ readonly ENABLED: "ENABLED";
70
+ };
71
+ export type ScheduleState = (typeof ScheduleState)[keyof typeof ScheduleState];
67
72
  export interface DeadLetterConfig {
68
73
  Arn?: string;
69
74
  }
@@ -72,11 +77,12 @@ export interface CapacityProviderStrategyItem {
72
77
  weight?: number;
73
78
  base?: number;
74
79
  }
75
- export declare enum LaunchType {
76
- EC2 = "EC2",
77
- EXTERNAL = "EXTERNAL",
78
- FARGATE = "FARGATE",
79
- }
80
+ export declare const LaunchType: {
81
+ readonly EC2: "EC2";
82
+ readonly EXTERNAL: "EXTERNAL";
83
+ readonly FARGATE: "FARGATE";
84
+ };
85
+ export type LaunchType = (typeof LaunchType)[keyof typeof LaunchType];
80
86
  export interface AwsVpcConfiguration {
81
87
  Subnets: string[] | undefined;
82
88
  SecurityGroups?: string[];
@@ -85,26 +91,31 @@ export interface AwsVpcConfiguration {
85
91
  export interface NetworkConfiguration {
86
92
  awsvpcConfiguration?: AwsVpcConfiguration;
87
93
  }
88
- export declare enum PlacementConstraintType {
89
- DISTINCT_INSTANCE = "distinctInstance",
90
- MEMBER_OF = "memberOf",
91
- }
94
+ export declare const PlacementConstraintType: {
95
+ readonly DISTINCT_INSTANCE: "distinctInstance";
96
+ readonly MEMBER_OF: "memberOf";
97
+ };
98
+ export type PlacementConstraintType =
99
+ (typeof PlacementConstraintType)[keyof typeof PlacementConstraintType];
92
100
  export interface PlacementConstraint {
93
101
  type?: PlacementConstraintType | string;
94
102
  expression?: string;
95
103
  }
96
- export declare enum PlacementStrategyType {
97
- BINPACK = "binpack",
98
- RANDOM = "random",
99
- SPREAD = "spread",
100
- }
104
+ export declare const PlacementStrategyType: {
105
+ readonly BINPACK: "binpack";
106
+ readonly RANDOM: "random";
107
+ readonly SPREAD: "spread";
108
+ };
109
+ export type PlacementStrategyType =
110
+ (typeof PlacementStrategyType)[keyof typeof PlacementStrategyType];
101
111
  export interface PlacementStrategy {
102
112
  type?: PlacementStrategyType | string;
103
113
  field?: string;
104
114
  }
105
- export declare enum PropagateTags {
106
- TASK_DEFINITION = "TASK_DEFINITION",
107
- }
115
+ export declare const PropagateTags: {
116
+ readonly TASK_DEFINITION: "TASK_DEFINITION";
117
+ };
118
+ export type PropagateTags = (typeof PropagateTags)[keyof typeof PropagateTags];
108
119
  export interface EcsParameters {
109
120
  TaskDefinitionArn: string | undefined;
110
121
  TaskCount?: number;
@@ -261,10 +272,12 @@ export interface DeleteScheduleGroupOutput {}
261
272
  export interface GetScheduleGroupInput {
262
273
  Name: string | undefined;
263
274
  }
264
- export declare enum ScheduleGroupState {
265
- ACTIVE = "ACTIVE",
266
- DELETING = "DELETING",
267
- }
275
+ export declare const ScheduleGroupState: {
276
+ readonly ACTIVE: "ACTIVE";
277
+ readonly DELETING: "DELETING";
278
+ };
279
+ export type ScheduleGroupState =
280
+ (typeof ScheduleGroupState)[keyof typeof ScheduleGroupState];
268
281
  export interface GetScheduleGroupOutput {
269
282
  Arn?: string;
270
283
  Name?: string;
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.300.0",
4
+ "version": "3.303.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",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",