@aws-sdk/client-scheduler 3.901.0 → 3.907.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/index.js +990 -1120
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1150 +1,1020 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
CreateScheduleCommand: () => CreateScheduleCommand,
|
|
28
|
-
CreateScheduleGroupCommand: () => CreateScheduleGroupCommand,
|
|
29
|
-
DeleteScheduleCommand: () => DeleteScheduleCommand,
|
|
30
|
-
DeleteScheduleGroupCommand: () => DeleteScheduleGroupCommand,
|
|
31
|
-
FlexibleTimeWindowMode: () => FlexibleTimeWindowMode,
|
|
32
|
-
GetScheduleCommand: () => GetScheduleCommand,
|
|
33
|
-
GetScheduleGroupCommand: () => GetScheduleGroupCommand,
|
|
34
|
-
InternalServerException: () => InternalServerException,
|
|
35
|
-
LaunchType: () => LaunchType,
|
|
36
|
-
ListScheduleGroupsCommand: () => ListScheduleGroupsCommand,
|
|
37
|
-
ListSchedulesCommand: () => ListSchedulesCommand,
|
|
38
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
39
|
-
PlacementConstraintType: () => PlacementConstraintType,
|
|
40
|
-
PlacementStrategyType: () => PlacementStrategyType,
|
|
41
|
-
PropagateTags: () => PropagateTags,
|
|
42
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
43
|
-
ScheduleGroupState: () => ScheduleGroupState,
|
|
44
|
-
ScheduleState: () => ScheduleState,
|
|
45
|
-
Scheduler: () => Scheduler,
|
|
46
|
-
SchedulerClient: () => SchedulerClient,
|
|
47
|
-
SchedulerServiceException: () => SchedulerServiceException,
|
|
48
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
49
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
50
|
-
ThrottlingException: () => ThrottlingException,
|
|
51
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
52
|
-
UpdateScheduleCommand: () => UpdateScheduleCommand,
|
|
53
|
-
ValidationException: () => ValidationException,
|
|
54
|
-
__Client: () => import_smithy_client.Client,
|
|
55
|
-
paginateListScheduleGroups: () => paginateListScheduleGroups,
|
|
56
|
-
paginateListSchedules: () => paginateListSchedules
|
|
57
|
-
});
|
|
58
|
-
module.exports = __toCommonJS(index_exports);
|
|
59
|
-
|
|
60
|
-
// src/SchedulerClient.ts
|
|
61
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
62
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
63
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
64
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
65
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
66
|
-
var import_core = require("@smithy/core");
|
|
67
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
68
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
69
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
70
|
-
|
|
71
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
72
|
-
|
|
73
|
-
// src/endpoint/EndpointParameters.ts
|
|
74
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
75
|
-
return Object.assign(options, {
|
|
76
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
77
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
78
|
-
defaultSigningName: "scheduler"
|
|
79
|
-
});
|
|
80
|
-
}, "resolveClientEndpointParameters");
|
|
81
|
-
var commonParams = {
|
|
82
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
83
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
84
|
-
Region: { type: "builtInParams", name: "region" },
|
|
85
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "scheduler",
|
|
26
|
+
});
|
|
86
27
|
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
class SchedulerClient extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSchedulerHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
124
108
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
130
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
131
|
-
credentials: config.credentials()
|
|
132
|
-
};
|
|
133
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
134
|
-
|
|
135
|
-
// src/runtimeExtensions.ts
|
|
136
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
137
|
-
const extensionConfiguration = Object.assign(
|
|
138
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
139
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
140
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
141
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
142
|
-
);
|
|
143
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
144
|
-
return Object.assign(
|
|
145
|
-
runtimeConfig,
|
|
146
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
147
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
148
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
149
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
150
|
-
);
|
|
151
|
-
}, "resolveRuntimeExtensions");
|
|
152
|
-
|
|
153
|
-
// src/SchedulerClient.ts
|
|
154
|
-
var SchedulerClient = class extends import_smithy_client.Client {
|
|
155
|
-
static {
|
|
156
|
-
__name(this, "SchedulerClient");
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* The resolved configuration of SchedulerClient class. This is resolved and normalized from the {@link SchedulerClientConfig | constructor configuration interface}.
|
|
160
|
-
*/
|
|
161
|
-
config;
|
|
162
|
-
constructor(...[configuration]) {
|
|
163
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
164
|
-
super(_config_0);
|
|
165
|
-
this.initConfig = _config_0;
|
|
166
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
167
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
168
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
169
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
170
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
171
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
172
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
173
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
174
|
-
this.config = _config_8;
|
|
175
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
176
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
177
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
178
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
179
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
180
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
181
|
-
this.middlewareStack.use(
|
|
182
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
183
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSchedulerHttpAuthSchemeParametersProvider,
|
|
184
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
185
|
-
"aws.auth#sigv4": config.credentials
|
|
186
|
-
}), "identityProviderConfigProvider")
|
|
187
|
-
})
|
|
188
|
-
);
|
|
189
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
193
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
194
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
195
|
-
*/
|
|
196
|
-
destroy() {
|
|
197
|
-
super.destroy();
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
// src/Scheduler.ts
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
// src/commands/CreateScheduleCommand.ts
|
|
205
|
-
|
|
206
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
// src/protocols/Aws_restJson1.ts
|
|
210
|
-
var import_core2 = require("@aws-sdk/core");
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
var import_uuid = require("@smithy/uuid");
|
|
214
|
-
|
|
215
|
-
// src/models/SchedulerServiceException.ts
|
|
216
|
-
|
|
217
|
-
var SchedulerServiceException = class _SchedulerServiceException extends import_smithy_client.ServiceException {
|
|
218
|
-
static {
|
|
219
|
-
__name(this, "SchedulerServiceException");
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* @internal
|
|
223
|
-
*/
|
|
224
|
-
constructor(options) {
|
|
225
|
-
super(options);
|
|
226
|
-
Object.setPrototypeOf(this, _SchedulerServiceException.prototype);
|
|
227
|
-
}
|
|
228
|
-
};
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
229
113
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
114
|
+
class SchedulerServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, SchedulerServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const ActionAfterCompletion = {
|
|
122
|
+
DELETE: "DELETE",
|
|
123
|
+
NONE: "NONE",
|
|
124
|
+
};
|
|
125
|
+
const AssignPublicIp = {
|
|
126
|
+
DISABLED: "DISABLED",
|
|
127
|
+
ENABLED: "ENABLED",
|
|
128
|
+
};
|
|
129
|
+
class InternalServerException extends SchedulerServiceException {
|
|
130
|
+
name = "InternalServerException";
|
|
131
|
+
$fault = "server";
|
|
132
|
+
Message;
|
|
133
|
+
constructor(opts) {
|
|
134
|
+
super({
|
|
135
|
+
name: "InternalServerException",
|
|
136
|
+
$fault: "server",
|
|
137
|
+
...opts,
|
|
138
|
+
});
|
|
139
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
140
|
+
this.Message = opts.Message;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
class ResourceNotFoundException extends SchedulerServiceException {
|
|
144
|
+
name = "ResourceNotFoundException";
|
|
145
|
+
$fault = "client";
|
|
146
|
+
Message;
|
|
147
|
+
constructor(opts) {
|
|
148
|
+
super({
|
|
149
|
+
name: "ResourceNotFoundException",
|
|
150
|
+
$fault: "client",
|
|
151
|
+
...opts,
|
|
152
|
+
});
|
|
153
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
154
|
+
this.Message = opts.Message;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
class ThrottlingException extends SchedulerServiceException {
|
|
158
|
+
name = "ThrottlingException";
|
|
159
|
+
$fault = "client";
|
|
160
|
+
Message;
|
|
161
|
+
constructor(opts) {
|
|
162
|
+
super({
|
|
163
|
+
name: "ThrottlingException",
|
|
164
|
+
$fault: "client",
|
|
165
|
+
...opts,
|
|
166
|
+
});
|
|
167
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
168
|
+
this.Message = opts.Message;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
class ValidationException extends SchedulerServiceException {
|
|
172
|
+
name = "ValidationException";
|
|
173
|
+
$fault = "client";
|
|
174
|
+
Message;
|
|
175
|
+
constructor(opts) {
|
|
176
|
+
super({
|
|
177
|
+
name: "ValidationException",
|
|
178
|
+
$fault: "client",
|
|
179
|
+
...opts,
|
|
180
|
+
});
|
|
181
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
182
|
+
this.Message = opts.Message;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
class ConflictException extends SchedulerServiceException {
|
|
186
|
+
name = "ConflictException";
|
|
187
|
+
$fault = "client";
|
|
188
|
+
Message;
|
|
189
|
+
constructor(opts) {
|
|
190
|
+
super({
|
|
191
|
+
name: "ConflictException",
|
|
192
|
+
$fault: "client",
|
|
193
|
+
...opts,
|
|
194
|
+
});
|
|
195
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
196
|
+
this.Message = opts.Message;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
const FlexibleTimeWindowMode = {
|
|
200
|
+
FLEXIBLE: "FLEXIBLE",
|
|
201
|
+
OFF: "OFF",
|
|
202
|
+
};
|
|
203
|
+
const ScheduleState = {
|
|
204
|
+
DISABLED: "DISABLED",
|
|
205
|
+
ENABLED: "ENABLED",
|
|
206
|
+
};
|
|
207
|
+
const LaunchType = {
|
|
208
|
+
EC2: "EC2",
|
|
209
|
+
EXTERNAL: "EXTERNAL",
|
|
210
|
+
FARGATE: "FARGATE",
|
|
211
|
+
};
|
|
212
|
+
const PlacementConstraintType = {
|
|
213
|
+
DISTINCT_INSTANCE: "distinctInstance",
|
|
214
|
+
MEMBER_OF: "memberOf",
|
|
215
|
+
};
|
|
216
|
+
const PlacementStrategyType = {
|
|
217
|
+
BINPACK: "binpack",
|
|
218
|
+
RANDOM: "random",
|
|
219
|
+
SPREAD: "spread",
|
|
220
|
+
};
|
|
221
|
+
const PropagateTags = {
|
|
222
|
+
TASK_DEFINITION: "TASK_DEFINITION",
|
|
223
|
+
};
|
|
224
|
+
class ServiceQuotaExceededException extends SchedulerServiceException {
|
|
225
|
+
name = "ServiceQuotaExceededException";
|
|
226
|
+
$fault = "client";
|
|
227
|
+
Message;
|
|
228
|
+
constructor(opts) {
|
|
229
|
+
super({
|
|
230
|
+
name: "ServiceQuotaExceededException",
|
|
231
|
+
$fault: "client",
|
|
232
|
+
...opts,
|
|
233
|
+
});
|
|
234
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
235
|
+
this.Message = opts.Message;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
const ScheduleGroupState = {
|
|
239
|
+
ACTIVE: "ACTIVE",
|
|
240
|
+
DELETING: "DELETING",
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
const se_CreateScheduleCommand = async (input, context) => {
|
|
244
|
+
const b = core.requestBuilder(input, context);
|
|
245
|
+
const headers = {
|
|
246
|
+
"content-type": "application/json",
|
|
247
|
+
};
|
|
248
|
+
b.bp("/schedules/{Name}");
|
|
249
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
250
|
+
let body;
|
|
251
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
252
|
+
ActionAfterCompletion: [],
|
|
253
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
254
|
+
Description: [],
|
|
255
|
+
EndDate: (_) => _.getTime() / 1_000,
|
|
256
|
+
FlexibleTimeWindow: (_) => smithyClient._json(_),
|
|
257
|
+
GroupName: [],
|
|
258
|
+
KmsKeyArn: [],
|
|
259
|
+
ScheduleExpression: [],
|
|
260
|
+
ScheduleExpressionTimezone: [],
|
|
261
|
+
StartDate: (_) => _.getTime() / 1_000,
|
|
262
|
+
State: [],
|
|
263
|
+
Target: (_) => smithyClient._json(_),
|
|
264
|
+
}));
|
|
265
|
+
b.m("POST").h(headers).b(body);
|
|
266
|
+
return b.build();
|
|
267
|
+
};
|
|
268
|
+
const se_CreateScheduleGroupCommand = async (input, context) => {
|
|
269
|
+
const b = core.requestBuilder(input, context);
|
|
270
|
+
const headers = {
|
|
271
|
+
"content-type": "application/json",
|
|
272
|
+
};
|
|
273
|
+
b.bp("/schedule-groups/{Name}");
|
|
274
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
275
|
+
let body;
|
|
276
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
277
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
278
|
+
Tags: (_) => smithyClient._json(_),
|
|
279
|
+
}));
|
|
280
|
+
b.m("POST").h(headers).b(body);
|
|
281
|
+
return b.build();
|
|
282
|
+
};
|
|
283
|
+
const se_DeleteScheduleCommand = async (input, context) => {
|
|
284
|
+
const b = core.requestBuilder(input, context);
|
|
285
|
+
const headers = {};
|
|
286
|
+
b.bp("/schedules/{Name}");
|
|
287
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
288
|
+
const query = smithyClient.map({
|
|
289
|
+
[_gN]: [, input[_GN]],
|
|
290
|
+
[_cT]: [, input[_CT] ?? uuid.v4()],
|
|
254
291
|
});
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* @internal
|
|
268
|
-
*/
|
|
269
|
-
constructor(opts) {
|
|
270
|
-
super({
|
|
271
|
-
name: "ResourceNotFoundException",
|
|
272
|
-
$fault: "client",
|
|
273
|
-
...opts
|
|
292
|
+
let body;
|
|
293
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
294
|
+
return b.build();
|
|
295
|
+
};
|
|
296
|
+
const se_DeleteScheduleGroupCommand = async (input, context) => {
|
|
297
|
+
const b = core.requestBuilder(input, context);
|
|
298
|
+
const headers = {};
|
|
299
|
+
b.bp("/schedule-groups/{Name}");
|
|
300
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
301
|
+
const query = smithyClient.map({
|
|
302
|
+
[_cT]: [, input[_CT] ?? uuid.v4()],
|
|
274
303
|
});
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* @internal
|
|
288
|
-
*/
|
|
289
|
-
constructor(opts) {
|
|
290
|
-
super({
|
|
291
|
-
name: "ThrottlingException",
|
|
292
|
-
$fault: "client",
|
|
293
|
-
...opts
|
|
304
|
+
let body;
|
|
305
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
306
|
+
return b.build();
|
|
307
|
+
};
|
|
308
|
+
const se_GetScheduleCommand = async (input, context) => {
|
|
309
|
+
const b = core.requestBuilder(input, context);
|
|
310
|
+
const headers = {};
|
|
311
|
+
b.bp("/schedules/{Name}");
|
|
312
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
313
|
+
const query = smithyClient.map({
|
|
314
|
+
[_gN]: [, input[_GN]],
|
|
294
315
|
});
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
316
|
+
let body;
|
|
317
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
318
|
+
return b.build();
|
|
319
|
+
};
|
|
320
|
+
const se_GetScheduleGroupCommand = async (input, context) => {
|
|
321
|
+
const b = core.requestBuilder(input, context);
|
|
322
|
+
const headers = {};
|
|
323
|
+
b.bp("/schedule-groups/{Name}");
|
|
324
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
325
|
+
let body;
|
|
326
|
+
b.m("GET").h(headers).b(body);
|
|
327
|
+
return b.build();
|
|
328
|
+
};
|
|
329
|
+
const se_ListScheduleGroupsCommand = async (input, context) => {
|
|
330
|
+
const b = core.requestBuilder(input, context);
|
|
331
|
+
const headers = {};
|
|
332
|
+
b.bp("/schedule-groups");
|
|
333
|
+
const query = smithyClient.map({
|
|
334
|
+
[_NP]: [, input[_NP]],
|
|
335
|
+
[_NT]: [, input[_NT]],
|
|
336
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
314
337
|
});
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
constructor(opts) {
|
|
330
|
-
super({
|
|
331
|
-
name: "ConflictException",
|
|
332
|
-
$fault: "client",
|
|
333
|
-
...opts
|
|
338
|
+
let body;
|
|
339
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
340
|
+
return b.build();
|
|
341
|
+
};
|
|
342
|
+
const se_ListSchedulesCommand = async (input, context) => {
|
|
343
|
+
const b = core.requestBuilder(input, context);
|
|
344
|
+
const headers = {};
|
|
345
|
+
b.bp("/schedules");
|
|
346
|
+
const query = smithyClient.map({
|
|
347
|
+
[_SG]: [, input[_GN]],
|
|
348
|
+
[_NP]: [, input[_NP]],
|
|
349
|
+
[_S]: [, input[_S]],
|
|
350
|
+
[_NT]: [, input[_NT]],
|
|
351
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
334
352
|
});
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
353
|
+
let body;
|
|
354
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
355
|
+
return b.build();
|
|
356
|
+
};
|
|
357
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
358
|
+
const b = core.requestBuilder(input, context);
|
|
359
|
+
const headers = {};
|
|
360
|
+
b.bp("/tags/{ResourceArn}");
|
|
361
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
362
|
+
let body;
|
|
363
|
+
b.m("GET").h(headers).b(body);
|
|
364
|
+
return b.build();
|
|
365
|
+
};
|
|
366
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
367
|
+
const b = core.requestBuilder(input, context);
|
|
368
|
+
const headers = {
|
|
369
|
+
"content-type": "application/json",
|
|
370
|
+
};
|
|
371
|
+
b.bp("/tags/{ResourceArn}");
|
|
372
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
373
|
+
let body;
|
|
374
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
375
|
+
Tags: (_) => smithyClient._json(_),
|
|
376
|
+
}));
|
|
377
|
+
b.m("POST").h(headers).b(body);
|
|
378
|
+
return b.build();
|
|
379
|
+
};
|
|
380
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
381
|
+
const b = core.requestBuilder(input, context);
|
|
382
|
+
const headers = {};
|
|
383
|
+
b.bp("/tags/{ResourceArn}");
|
|
384
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
385
|
+
const query = smithyClient.map({
|
|
386
|
+
[_TK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
387
|
+
});
|
|
388
|
+
let body;
|
|
389
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
390
|
+
return b.build();
|
|
391
|
+
};
|
|
392
|
+
const se_UpdateScheduleCommand = async (input, context) => {
|
|
393
|
+
const b = core.requestBuilder(input, context);
|
|
394
|
+
const headers = {
|
|
395
|
+
"content-type": "application/json",
|
|
396
|
+
};
|
|
397
|
+
b.bp("/schedules/{Name}");
|
|
398
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
399
|
+
let body;
|
|
400
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
401
|
+
ActionAfterCompletion: [],
|
|
402
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
403
|
+
Description: [],
|
|
404
|
+
EndDate: (_) => _.getTime() / 1_000,
|
|
405
|
+
FlexibleTimeWindow: (_) => smithyClient._json(_),
|
|
406
|
+
GroupName: [],
|
|
407
|
+
KmsKeyArn: [],
|
|
408
|
+
ScheduleExpression: [],
|
|
409
|
+
ScheduleExpressionTimezone: [],
|
|
410
|
+
StartDate: (_) => _.getTime() / 1_000,
|
|
411
|
+
State: [],
|
|
412
|
+
Target: (_) => smithyClient._json(_),
|
|
413
|
+
}));
|
|
414
|
+
b.m("PUT").h(headers).b(body);
|
|
415
|
+
return b.build();
|
|
416
|
+
};
|
|
417
|
+
const de_CreateScheduleCommand = async (output, context) => {
|
|
418
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
419
|
+
return de_CommandError(output, context);
|
|
420
|
+
}
|
|
421
|
+
const contents = smithyClient.map({
|
|
422
|
+
$metadata: deserializeMetadata(output),
|
|
423
|
+
});
|
|
424
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
425
|
+
const doc = smithyClient.take(data, {
|
|
426
|
+
ScheduleArn: smithyClient.expectString,
|
|
427
|
+
});
|
|
428
|
+
Object.assign(contents, doc);
|
|
429
|
+
return contents;
|
|
351
430
|
};
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
431
|
+
const de_CreateScheduleGroupCommand = async (output, context) => {
|
|
432
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
433
|
+
return de_CommandError(output, context);
|
|
434
|
+
}
|
|
435
|
+
const contents = smithyClient.map({
|
|
436
|
+
$metadata: deserializeMetadata(output),
|
|
437
|
+
});
|
|
438
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
439
|
+
const doc = smithyClient.take(data, {
|
|
440
|
+
ScheduleGroupArn: smithyClient.expectString,
|
|
441
|
+
});
|
|
442
|
+
Object.assign(contents, doc);
|
|
443
|
+
return contents;
|
|
355
444
|
};
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
445
|
+
const de_DeleteScheduleCommand = async (output, context) => {
|
|
446
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
447
|
+
return de_CommandError(output, context);
|
|
448
|
+
}
|
|
449
|
+
const contents = smithyClient.map({
|
|
450
|
+
$metadata: deserializeMetadata(output),
|
|
451
|
+
});
|
|
452
|
+
await smithyClient.collectBody(output.body, context);
|
|
453
|
+
return contents;
|
|
360
454
|
};
|
|
361
|
-
|
|
362
|
-
|
|
455
|
+
const de_DeleteScheduleGroupCommand = async (output, context) => {
|
|
456
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
457
|
+
return de_CommandError(output, context);
|
|
458
|
+
}
|
|
459
|
+
const contents = smithyClient.map({
|
|
460
|
+
$metadata: deserializeMetadata(output),
|
|
461
|
+
});
|
|
462
|
+
await smithyClient.collectBody(output.body, context);
|
|
463
|
+
return contents;
|
|
363
464
|
};
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
465
|
+
const de_GetScheduleCommand = async (output, context) => {
|
|
466
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
467
|
+
return de_CommandError(output, context);
|
|
468
|
+
}
|
|
469
|
+
const contents = smithyClient.map({
|
|
470
|
+
$metadata: deserializeMetadata(output),
|
|
471
|
+
});
|
|
472
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
473
|
+
const doc = smithyClient.take(data, {
|
|
474
|
+
ActionAfterCompletion: smithyClient.expectString,
|
|
475
|
+
Arn: smithyClient.expectString,
|
|
476
|
+
CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
477
|
+
Description: smithyClient.expectString,
|
|
478
|
+
EndDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
479
|
+
FlexibleTimeWindow: smithyClient._json,
|
|
480
|
+
GroupName: smithyClient.expectString,
|
|
481
|
+
KmsKeyArn: smithyClient.expectString,
|
|
482
|
+
LastModificationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
483
|
+
Name: smithyClient.expectString,
|
|
484
|
+
ScheduleExpression: smithyClient.expectString,
|
|
485
|
+
ScheduleExpressionTimezone: smithyClient.expectString,
|
|
486
|
+
StartDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
487
|
+
State: smithyClient.expectString,
|
|
488
|
+
Target: smithyClient._json,
|
|
379
489
|
});
|
|
380
|
-
Object.
|
|
381
|
-
|
|
382
|
-
}
|
|
490
|
+
Object.assign(contents, doc);
|
|
491
|
+
return contents;
|
|
383
492
|
};
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
493
|
+
const de_GetScheduleGroupCommand = async (output, context) => {
|
|
494
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
495
|
+
return de_CommandError(output, context);
|
|
496
|
+
}
|
|
497
|
+
const contents = smithyClient.map({
|
|
498
|
+
$metadata: deserializeMetadata(output),
|
|
499
|
+
});
|
|
500
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
501
|
+
const doc = smithyClient.take(data, {
|
|
502
|
+
Arn: smithyClient.expectString,
|
|
503
|
+
CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
504
|
+
LastModificationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
505
|
+
Name: smithyClient.expectString,
|
|
506
|
+
State: smithyClient.expectString,
|
|
507
|
+
});
|
|
508
|
+
Object.assign(contents, doc);
|
|
509
|
+
return contents;
|
|
387
510
|
};
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
Description: [],
|
|
403
|
-
EndDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndDate"),
|
|
404
|
-
FlexibleTimeWindow: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "FlexibleTimeWindow"),
|
|
405
|
-
GroupName: [],
|
|
406
|
-
KmsKeyArn: [],
|
|
407
|
-
ScheduleExpression: [],
|
|
408
|
-
ScheduleExpressionTimezone: [],
|
|
409
|
-
StartDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartDate"),
|
|
410
|
-
State: [],
|
|
411
|
-
Target: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Target")
|
|
412
|
-
})
|
|
413
|
-
);
|
|
414
|
-
b.m("POST").h(headers).b(body);
|
|
415
|
-
return b.build();
|
|
416
|
-
}, "se_CreateScheduleCommand");
|
|
417
|
-
var se_CreateScheduleGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
418
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
419
|
-
const headers = {
|
|
420
|
-
"content-type": "application/json"
|
|
421
|
-
};
|
|
422
|
-
b.bp("/schedule-groups/{Name}");
|
|
423
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
424
|
-
let body;
|
|
425
|
-
body = JSON.stringify(
|
|
426
|
-
(0, import_smithy_client.take)(input, {
|
|
427
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
428
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
429
|
-
})
|
|
430
|
-
);
|
|
431
|
-
b.m("POST").h(headers).b(body);
|
|
432
|
-
return b.build();
|
|
433
|
-
}, "se_CreateScheduleGroupCommand");
|
|
434
|
-
var se_DeleteScheduleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
435
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
436
|
-
const headers = {};
|
|
437
|
-
b.bp("/schedules/{Name}");
|
|
438
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
439
|
-
const query = (0, import_smithy_client.map)({
|
|
440
|
-
[_gN]: [, input[_GN]],
|
|
441
|
-
[_cT]: [, input[_CT] ?? (0, import_uuid.v4)()]
|
|
442
|
-
});
|
|
443
|
-
let body;
|
|
444
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
445
|
-
return b.build();
|
|
446
|
-
}, "se_DeleteScheduleCommand");
|
|
447
|
-
var se_DeleteScheduleGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
448
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
449
|
-
const headers = {};
|
|
450
|
-
b.bp("/schedule-groups/{Name}");
|
|
451
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
452
|
-
const query = (0, import_smithy_client.map)({
|
|
453
|
-
[_cT]: [, input[_CT] ?? (0, import_uuid.v4)()]
|
|
454
|
-
});
|
|
455
|
-
let body;
|
|
456
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
457
|
-
return b.build();
|
|
458
|
-
}, "se_DeleteScheduleGroupCommand");
|
|
459
|
-
var se_GetScheduleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
460
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
461
|
-
const headers = {};
|
|
462
|
-
b.bp("/schedules/{Name}");
|
|
463
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
464
|
-
const query = (0, import_smithy_client.map)({
|
|
465
|
-
[_gN]: [, input[_GN]]
|
|
466
|
-
});
|
|
467
|
-
let body;
|
|
468
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
469
|
-
return b.build();
|
|
470
|
-
}, "se_GetScheduleCommand");
|
|
471
|
-
var se_GetScheduleGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
472
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
473
|
-
const headers = {};
|
|
474
|
-
b.bp("/schedule-groups/{Name}");
|
|
475
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
476
|
-
let body;
|
|
477
|
-
b.m("GET").h(headers).b(body);
|
|
478
|
-
return b.build();
|
|
479
|
-
}, "se_GetScheduleGroupCommand");
|
|
480
|
-
var se_ListScheduleGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
481
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
482
|
-
const headers = {};
|
|
483
|
-
b.bp("/schedule-groups");
|
|
484
|
-
const query = (0, import_smithy_client.map)({
|
|
485
|
-
[_NP]: [, input[_NP]],
|
|
486
|
-
[_NT]: [, input[_NT]],
|
|
487
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
488
|
-
});
|
|
489
|
-
let body;
|
|
490
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
491
|
-
return b.build();
|
|
492
|
-
}, "se_ListScheduleGroupsCommand");
|
|
493
|
-
var se_ListSchedulesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
494
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
495
|
-
const headers = {};
|
|
496
|
-
b.bp("/schedules");
|
|
497
|
-
const query = (0, import_smithy_client.map)({
|
|
498
|
-
[_SG]: [, input[_GN]],
|
|
499
|
-
[_NP]: [, input[_NP]],
|
|
500
|
-
[_S]: [, input[_S]],
|
|
501
|
-
[_NT]: [, input[_NT]],
|
|
502
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
503
|
-
});
|
|
504
|
-
let body;
|
|
505
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
506
|
-
return b.build();
|
|
507
|
-
}, "se_ListSchedulesCommand");
|
|
508
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
509
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
510
|
-
const headers = {};
|
|
511
|
-
b.bp("/tags/{ResourceArn}");
|
|
512
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
513
|
-
let body;
|
|
514
|
-
b.m("GET").h(headers).b(body);
|
|
515
|
-
return b.build();
|
|
516
|
-
}, "se_ListTagsForResourceCommand");
|
|
517
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
518
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
519
|
-
const headers = {
|
|
520
|
-
"content-type": "application/json"
|
|
521
|
-
};
|
|
522
|
-
b.bp("/tags/{ResourceArn}");
|
|
523
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
524
|
-
let body;
|
|
525
|
-
body = JSON.stringify(
|
|
526
|
-
(0, import_smithy_client.take)(input, {
|
|
527
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
528
|
-
})
|
|
529
|
-
);
|
|
530
|
-
b.m("POST").h(headers).b(body);
|
|
531
|
-
return b.build();
|
|
532
|
-
}, "se_TagResourceCommand");
|
|
533
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
534
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
535
|
-
const headers = {};
|
|
536
|
-
b.bp("/tags/{ResourceArn}");
|
|
537
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
538
|
-
const query = (0, import_smithy_client.map)({
|
|
539
|
-
[_TK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
|
|
540
|
-
});
|
|
541
|
-
let body;
|
|
542
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
543
|
-
return b.build();
|
|
544
|
-
}, "se_UntagResourceCommand");
|
|
545
|
-
var se_UpdateScheduleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
546
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
547
|
-
const headers = {
|
|
548
|
-
"content-type": "application/json"
|
|
549
|
-
};
|
|
550
|
-
b.bp("/schedules/{Name}");
|
|
551
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
552
|
-
let body;
|
|
553
|
-
body = JSON.stringify(
|
|
554
|
-
(0, import_smithy_client.take)(input, {
|
|
555
|
-
ActionAfterCompletion: [],
|
|
556
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
557
|
-
Description: [],
|
|
558
|
-
EndDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndDate"),
|
|
559
|
-
FlexibleTimeWindow: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "FlexibleTimeWindow"),
|
|
560
|
-
GroupName: [],
|
|
561
|
-
KmsKeyArn: [],
|
|
562
|
-
ScheduleExpression: [],
|
|
563
|
-
ScheduleExpressionTimezone: [],
|
|
564
|
-
StartDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartDate"),
|
|
565
|
-
State: [],
|
|
566
|
-
Target: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Target")
|
|
567
|
-
})
|
|
568
|
-
);
|
|
569
|
-
b.m("PUT").h(headers).b(body);
|
|
570
|
-
return b.build();
|
|
571
|
-
}, "se_UpdateScheduleCommand");
|
|
572
|
-
var de_CreateScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
573
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
574
|
-
return de_CommandError(output, context);
|
|
575
|
-
}
|
|
576
|
-
const contents = (0, import_smithy_client.map)({
|
|
577
|
-
$metadata: deserializeMetadata(output)
|
|
578
|
-
});
|
|
579
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
580
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
581
|
-
ScheduleArn: import_smithy_client.expectString
|
|
582
|
-
});
|
|
583
|
-
Object.assign(contents, doc);
|
|
584
|
-
return contents;
|
|
585
|
-
}, "de_CreateScheduleCommand");
|
|
586
|
-
var de_CreateScheduleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
587
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
588
|
-
return de_CommandError(output, context);
|
|
589
|
-
}
|
|
590
|
-
const contents = (0, import_smithy_client.map)({
|
|
591
|
-
$metadata: deserializeMetadata(output)
|
|
592
|
-
});
|
|
593
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
594
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
595
|
-
ScheduleGroupArn: import_smithy_client.expectString
|
|
596
|
-
});
|
|
597
|
-
Object.assign(contents, doc);
|
|
598
|
-
return contents;
|
|
599
|
-
}, "de_CreateScheduleGroupCommand");
|
|
600
|
-
var de_DeleteScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
601
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
602
|
-
return de_CommandError(output, context);
|
|
603
|
-
}
|
|
604
|
-
const contents = (0, import_smithy_client.map)({
|
|
605
|
-
$metadata: deserializeMetadata(output)
|
|
606
|
-
});
|
|
607
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
608
|
-
return contents;
|
|
609
|
-
}, "de_DeleteScheduleCommand");
|
|
610
|
-
var de_DeleteScheduleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
611
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
612
|
-
return de_CommandError(output, context);
|
|
613
|
-
}
|
|
614
|
-
const contents = (0, import_smithy_client.map)({
|
|
615
|
-
$metadata: deserializeMetadata(output)
|
|
616
|
-
});
|
|
617
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
618
|
-
return contents;
|
|
619
|
-
}, "de_DeleteScheduleGroupCommand");
|
|
620
|
-
var de_GetScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
621
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
622
|
-
return de_CommandError(output, context);
|
|
623
|
-
}
|
|
624
|
-
const contents = (0, import_smithy_client.map)({
|
|
625
|
-
$metadata: deserializeMetadata(output)
|
|
626
|
-
});
|
|
627
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
628
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
629
|
-
ActionAfterCompletion: import_smithy_client.expectString,
|
|
630
|
-
Arn: import_smithy_client.expectString,
|
|
631
|
-
CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
|
|
632
|
-
Description: import_smithy_client.expectString,
|
|
633
|
-
EndDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndDate"),
|
|
634
|
-
FlexibleTimeWindow: import_smithy_client._json,
|
|
635
|
-
GroupName: import_smithy_client.expectString,
|
|
636
|
-
KmsKeyArn: import_smithy_client.expectString,
|
|
637
|
-
LastModificationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModificationDate"),
|
|
638
|
-
Name: import_smithy_client.expectString,
|
|
639
|
-
ScheduleExpression: import_smithy_client.expectString,
|
|
640
|
-
ScheduleExpressionTimezone: import_smithy_client.expectString,
|
|
641
|
-
StartDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartDate"),
|
|
642
|
-
State: import_smithy_client.expectString,
|
|
643
|
-
Target: import_smithy_client._json
|
|
644
|
-
});
|
|
645
|
-
Object.assign(contents, doc);
|
|
646
|
-
return contents;
|
|
647
|
-
}, "de_GetScheduleCommand");
|
|
648
|
-
var de_GetScheduleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
649
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
650
|
-
return de_CommandError(output, context);
|
|
651
|
-
}
|
|
652
|
-
const contents = (0, import_smithy_client.map)({
|
|
653
|
-
$metadata: deserializeMetadata(output)
|
|
654
|
-
});
|
|
655
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
656
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
657
|
-
Arn: import_smithy_client.expectString,
|
|
658
|
-
CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
|
|
659
|
-
LastModificationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModificationDate"),
|
|
660
|
-
Name: import_smithy_client.expectString,
|
|
661
|
-
State: import_smithy_client.expectString
|
|
662
|
-
});
|
|
663
|
-
Object.assign(contents, doc);
|
|
664
|
-
return contents;
|
|
665
|
-
}, "de_GetScheduleGroupCommand");
|
|
666
|
-
var de_ListScheduleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
667
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
668
|
-
return de_CommandError(output, context);
|
|
669
|
-
}
|
|
670
|
-
const contents = (0, import_smithy_client.map)({
|
|
671
|
-
$metadata: deserializeMetadata(output)
|
|
672
|
-
});
|
|
673
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
674
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
675
|
-
NextToken: import_smithy_client.expectString,
|
|
676
|
-
ScheduleGroups: /* @__PURE__ */ __name((_) => de_ScheduleGroupList(_, context), "ScheduleGroups")
|
|
677
|
-
});
|
|
678
|
-
Object.assign(contents, doc);
|
|
679
|
-
return contents;
|
|
680
|
-
}, "de_ListScheduleGroupsCommand");
|
|
681
|
-
var de_ListSchedulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
682
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
683
|
-
return de_CommandError(output, context);
|
|
684
|
-
}
|
|
685
|
-
const contents = (0, import_smithy_client.map)({
|
|
686
|
-
$metadata: deserializeMetadata(output)
|
|
687
|
-
});
|
|
688
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
689
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
690
|
-
NextToken: import_smithy_client.expectString,
|
|
691
|
-
Schedules: /* @__PURE__ */ __name((_) => de_ScheduleList(_, context), "Schedules")
|
|
692
|
-
});
|
|
693
|
-
Object.assign(contents, doc);
|
|
694
|
-
return contents;
|
|
695
|
-
}, "de_ListSchedulesCommand");
|
|
696
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
697
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
698
|
-
return de_CommandError(output, context);
|
|
699
|
-
}
|
|
700
|
-
const contents = (0, import_smithy_client.map)({
|
|
701
|
-
$metadata: deserializeMetadata(output)
|
|
702
|
-
});
|
|
703
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
704
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
705
|
-
Tags: import_smithy_client._json
|
|
706
|
-
});
|
|
707
|
-
Object.assign(contents, doc);
|
|
708
|
-
return contents;
|
|
709
|
-
}, "de_ListTagsForResourceCommand");
|
|
710
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
711
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
712
|
-
return de_CommandError(output, context);
|
|
713
|
-
}
|
|
714
|
-
const contents = (0, import_smithy_client.map)({
|
|
715
|
-
$metadata: deserializeMetadata(output)
|
|
716
|
-
});
|
|
717
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
718
|
-
return contents;
|
|
719
|
-
}, "de_TagResourceCommand");
|
|
720
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
721
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
722
|
-
return de_CommandError(output, context);
|
|
723
|
-
}
|
|
724
|
-
const contents = (0, import_smithy_client.map)({
|
|
725
|
-
$metadata: deserializeMetadata(output)
|
|
726
|
-
});
|
|
727
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
728
|
-
return contents;
|
|
729
|
-
}, "de_UntagResourceCommand");
|
|
730
|
-
var de_UpdateScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
731
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
732
|
-
return de_CommandError(output, context);
|
|
733
|
-
}
|
|
734
|
-
const contents = (0, import_smithy_client.map)({
|
|
735
|
-
$metadata: deserializeMetadata(output)
|
|
736
|
-
});
|
|
737
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
738
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
739
|
-
ScheduleArn: import_smithy_client.expectString
|
|
740
|
-
});
|
|
741
|
-
Object.assign(contents, doc);
|
|
742
|
-
return contents;
|
|
743
|
-
}, "de_UpdateScheduleCommand");
|
|
744
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
745
|
-
const parsedOutput = {
|
|
746
|
-
...output,
|
|
747
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
748
|
-
};
|
|
749
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
750
|
-
switch (errorCode) {
|
|
751
|
-
case "ConflictException":
|
|
752
|
-
case "com.amazonaws.scheduler#ConflictException":
|
|
753
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
754
|
-
case "InternalServerException":
|
|
755
|
-
case "com.amazonaws.scheduler#InternalServerException":
|
|
756
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
757
|
-
case "ResourceNotFoundException":
|
|
758
|
-
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
759
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
760
|
-
case "ServiceQuotaExceededException":
|
|
761
|
-
case "com.amazonaws.scheduler#ServiceQuotaExceededException":
|
|
762
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
763
|
-
case "ThrottlingException":
|
|
764
|
-
case "com.amazonaws.scheduler#ThrottlingException":
|
|
765
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
766
|
-
case "ValidationException":
|
|
767
|
-
case "com.amazonaws.scheduler#ValidationException":
|
|
768
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
769
|
-
default:
|
|
770
|
-
const parsedBody = parsedOutput.body;
|
|
771
|
-
return throwDefaultError({
|
|
772
|
-
output,
|
|
773
|
-
parsedBody,
|
|
774
|
-
errorCode
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
}, "de_CommandError");
|
|
778
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(SchedulerServiceException);
|
|
779
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
780
|
-
const contents = (0, import_smithy_client.map)({});
|
|
781
|
-
const data = parsedOutput.body;
|
|
782
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
783
|
-
Message: import_smithy_client.expectString
|
|
784
|
-
});
|
|
785
|
-
Object.assign(contents, doc);
|
|
786
|
-
const exception = new ConflictException({
|
|
787
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
788
|
-
...contents
|
|
789
|
-
});
|
|
790
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
791
|
-
}, "de_ConflictExceptionRes");
|
|
792
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
793
|
-
const contents = (0, import_smithy_client.map)({});
|
|
794
|
-
const data = parsedOutput.body;
|
|
795
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
796
|
-
Message: import_smithy_client.expectString
|
|
797
|
-
});
|
|
798
|
-
Object.assign(contents, doc);
|
|
799
|
-
const exception = new InternalServerException({
|
|
800
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
801
|
-
...contents
|
|
802
|
-
});
|
|
803
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
804
|
-
}, "de_InternalServerExceptionRes");
|
|
805
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
806
|
-
const contents = (0, import_smithy_client.map)({});
|
|
807
|
-
const data = parsedOutput.body;
|
|
808
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
809
|
-
Message: import_smithy_client.expectString
|
|
810
|
-
});
|
|
811
|
-
Object.assign(contents, doc);
|
|
812
|
-
const exception = new ResourceNotFoundException({
|
|
813
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
814
|
-
...contents
|
|
815
|
-
});
|
|
816
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
817
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
818
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
819
|
-
const contents = (0, import_smithy_client.map)({});
|
|
820
|
-
const data = parsedOutput.body;
|
|
821
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
822
|
-
Message: import_smithy_client.expectString
|
|
823
|
-
});
|
|
824
|
-
Object.assign(contents, doc);
|
|
825
|
-
const exception = new ServiceQuotaExceededException({
|
|
826
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
827
|
-
...contents
|
|
828
|
-
});
|
|
829
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
830
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
831
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
832
|
-
const contents = (0, import_smithy_client.map)({});
|
|
833
|
-
const data = parsedOutput.body;
|
|
834
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
835
|
-
Message: import_smithy_client.expectString
|
|
836
|
-
});
|
|
837
|
-
Object.assign(contents, doc);
|
|
838
|
-
const exception = new ThrottlingException({
|
|
839
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
840
|
-
...contents
|
|
841
|
-
});
|
|
842
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
843
|
-
}, "de_ThrottlingExceptionRes");
|
|
844
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
845
|
-
const contents = (0, import_smithy_client.map)({});
|
|
846
|
-
const data = parsedOutput.body;
|
|
847
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
848
|
-
Message: import_smithy_client.expectString
|
|
849
|
-
});
|
|
850
|
-
Object.assign(contents, doc);
|
|
851
|
-
const exception = new ValidationException({
|
|
852
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
853
|
-
...contents
|
|
854
|
-
});
|
|
855
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
856
|
-
}, "de_ValidationExceptionRes");
|
|
857
|
-
var de_ScheduleGroupList = /* @__PURE__ */ __name((output, context) => {
|
|
858
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
859
|
-
return de_ScheduleGroupSummary(entry, context);
|
|
860
|
-
});
|
|
861
|
-
return retVal;
|
|
862
|
-
}, "de_ScheduleGroupList");
|
|
863
|
-
var de_ScheduleGroupSummary = /* @__PURE__ */ __name((output, context) => {
|
|
864
|
-
return (0, import_smithy_client.take)(output, {
|
|
865
|
-
Arn: import_smithy_client.expectString,
|
|
866
|
-
CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
|
|
867
|
-
LastModificationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModificationDate"),
|
|
868
|
-
Name: import_smithy_client.expectString,
|
|
869
|
-
State: import_smithy_client.expectString
|
|
870
|
-
});
|
|
871
|
-
}, "de_ScheduleGroupSummary");
|
|
872
|
-
var de_ScheduleList = /* @__PURE__ */ __name((output, context) => {
|
|
873
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
874
|
-
return de_ScheduleSummary(entry, context);
|
|
875
|
-
});
|
|
876
|
-
return retVal;
|
|
877
|
-
}, "de_ScheduleList");
|
|
878
|
-
var de_ScheduleSummary = /* @__PURE__ */ __name((output, context) => {
|
|
879
|
-
return (0, import_smithy_client.take)(output, {
|
|
880
|
-
Arn: import_smithy_client.expectString,
|
|
881
|
-
CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
|
|
882
|
-
GroupName: import_smithy_client.expectString,
|
|
883
|
-
LastModificationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModificationDate"),
|
|
884
|
-
Name: import_smithy_client.expectString,
|
|
885
|
-
State: import_smithy_client.expectString,
|
|
886
|
-
Target: import_smithy_client._json
|
|
887
|
-
});
|
|
888
|
-
}, "de_ScheduleSummary");
|
|
889
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
890
|
-
httpStatusCode: output.statusCode,
|
|
891
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
892
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
893
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
894
|
-
}), "deserializeMetadata");
|
|
895
|
-
var _CT = "ClientToken";
|
|
896
|
-
var _GN = "GroupName";
|
|
897
|
-
var _MR = "MaxResults";
|
|
898
|
-
var _NP = "NamePrefix";
|
|
899
|
-
var _NT = "NextToken";
|
|
900
|
-
var _S = "State";
|
|
901
|
-
var _SG = "ScheduleGroup";
|
|
902
|
-
var _TK = "TagKeys";
|
|
903
|
-
var _cT = "clientToken";
|
|
904
|
-
var _gN = "groupName";
|
|
905
|
-
|
|
906
|
-
// src/commands/CreateScheduleCommand.ts
|
|
907
|
-
var CreateScheduleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
908
|
-
return [
|
|
909
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
910
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
911
|
-
];
|
|
912
|
-
}).s("AWSChronosService", "CreateSchedule", {}).n("SchedulerClient", "CreateScheduleCommand").f(void 0, void 0).ser(se_CreateScheduleCommand).de(de_CreateScheduleCommand).build() {
|
|
913
|
-
static {
|
|
914
|
-
__name(this, "CreateScheduleCommand");
|
|
915
|
-
}
|
|
511
|
+
const de_ListScheduleGroupsCommand = async (output, context) => {
|
|
512
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
513
|
+
return de_CommandError(output, context);
|
|
514
|
+
}
|
|
515
|
+
const contents = smithyClient.map({
|
|
516
|
+
$metadata: deserializeMetadata(output),
|
|
517
|
+
});
|
|
518
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
519
|
+
const doc = smithyClient.take(data, {
|
|
520
|
+
NextToken: smithyClient.expectString,
|
|
521
|
+
ScheduleGroups: (_) => de_ScheduleGroupList(_),
|
|
522
|
+
});
|
|
523
|
+
Object.assign(contents, doc);
|
|
524
|
+
return contents;
|
|
916
525
|
};
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
(
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
526
|
+
const de_ListSchedulesCommand = async (output, context) => {
|
|
527
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
528
|
+
return de_CommandError(output, context);
|
|
529
|
+
}
|
|
530
|
+
const contents = smithyClient.map({
|
|
531
|
+
$metadata: deserializeMetadata(output),
|
|
532
|
+
});
|
|
533
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
534
|
+
const doc = smithyClient.take(data, {
|
|
535
|
+
NextToken: smithyClient.expectString,
|
|
536
|
+
Schedules: (_) => de_ScheduleList(_),
|
|
537
|
+
});
|
|
538
|
+
Object.assign(contents, doc);
|
|
539
|
+
return contents;
|
|
931
540
|
};
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
(
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
})
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
}
|
|
541
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
542
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
543
|
+
return de_CommandError(output, context);
|
|
544
|
+
}
|
|
545
|
+
const contents = smithyClient.map({
|
|
546
|
+
$metadata: deserializeMetadata(output),
|
|
547
|
+
});
|
|
548
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
549
|
+
const doc = smithyClient.take(data, {
|
|
550
|
+
Tags: smithyClient._json,
|
|
551
|
+
});
|
|
552
|
+
Object.assign(contents, doc);
|
|
553
|
+
return contents;
|
|
946
554
|
};
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
];
|
|
957
|
-
}).s("AWSChronosService", "DeleteScheduleGroup", {}).n("SchedulerClient", "DeleteScheduleGroupCommand").f(void 0, void 0).ser(se_DeleteScheduleGroupCommand).de(de_DeleteScheduleGroupCommand).build() {
|
|
958
|
-
static {
|
|
959
|
-
__name(this, "DeleteScheduleGroupCommand");
|
|
960
|
-
}
|
|
555
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
556
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
557
|
+
return de_CommandError(output, context);
|
|
558
|
+
}
|
|
559
|
+
const contents = smithyClient.map({
|
|
560
|
+
$metadata: deserializeMetadata(output),
|
|
561
|
+
});
|
|
562
|
+
await smithyClient.collectBody(output.body, context);
|
|
563
|
+
return contents;
|
|
961
564
|
};
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
];
|
|
972
|
-
}).s("AWSChronosService", "GetSchedule", {}).n("SchedulerClient", "GetScheduleCommand").f(void 0, void 0).ser(se_GetScheduleCommand).de(de_GetScheduleCommand).build() {
|
|
973
|
-
static {
|
|
974
|
-
__name(this, "GetScheduleCommand");
|
|
975
|
-
}
|
|
565
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
566
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
567
|
+
return de_CommandError(output, context);
|
|
568
|
+
}
|
|
569
|
+
const contents = smithyClient.map({
|
|
570
|
+
$metadata: deserializeMetadata(output),
|
|
571
|
+
});
|
|
572
|
+
await smithyClient.collectBody(output.body, context);
|
|
573
|
+
return contents;
|
|
976
574
|
};
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
(
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
})
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
575
|
+
const de_UpdateScheduleCommand = async (output, context) => {
|
|
576
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
577
|
+
return de_CommandError(output, context);
|
|
578
|
+
}
|
|
579
|
+
const contents = smithyClient.map({
|
|
580
|
+
$metadata: deserializeMetadata(output),
|
|
581
|
+
});
|
|
582
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
583
|
+
const doc = smithyClient.take(data, {
|
|
584
|
+
ScheduleArn: smithyClient.expectString,
|
|
585
|
+
});
|
|
586
|
+
Object.assign(contents, doc);
|
|
587
|
+
return contents;
|
|
588
|
+
};
|
|
589
|
+
const de_CommandError = async (output, context) => {
|
|
590
|
+
const parsedOutput = {
|
|
591
|
+
...output,
|
|
592
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
593
|
+
};
|
|
594
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
595
|
+
switch (errorCode) {
|
|
596
|
+
case "ConflictException":
|
|
597
|
+
case "com.amazonaws.scheduler#ConflictException":
|
|
598
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
599
|
+
case "InternalServerException":
|
|
600
|
+
case "com.amazonaws.scheduler#InternalServerException":
|
|
601
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
602
|
+
case "ResourceNotFoundException":
|
|
603
|
+
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
604
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
605
|
+
case "ServiceQuotaExceededException":
|
|
606
|
+
case "com.amazonaws.scheduler#ServiceQuotaExceededException":
|
|
607
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
608
|
+
case "ThrottlingException":
|
|
609
|
+
case "com.amazonaws.scheduler#ThrottlingException":
|
|
610
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
611
|
+
case "ValidationException":
|
|
612
|
+
case "com.amazonaws.scheduler#ValidationException":
|
|
613
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
614
|
+
default:
|
|
615
|
+
const parsedBody = parsedOutput.body;
|
|
616
|
+
return throwDefaultError({
|
|
617
|
+
output,
|
|
618
|
+
parsedBody,
|
|
619
|
+
errorCode,
|
|
620
|
+
});
|
|
621
|
+
}
|
|
991
622
|
};
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
}
|
|
623
|
+
const throwDefaultError = smithyClient.withBaseException(SchedulerServiceException);
|
|
624
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
625
|
+
const contents = smithyClient.map({});
|
|
626
|
+
const data = parsedOutput.body;
|
|
627
|
+
const doc = smithyClient.take(data, {
|
|
628
|
+
Message: smithyClient.expectString,
|
|
629
|
+
});
|
|
630
|
+
Object.assign(contents, doc);
|
|
631
|
+
const exception = new ConflictException({
|
|
632
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
633
|
+
...contents,
|
|
634
|
+
});
|
|
635
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1006
636
|
};
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
})
|
|
1018
|
-
|
|
1019
|
-
__name(this, "ListSchedulesCommand");
|
|
1020
|
-
}
|
|
637
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
638
|
+
const contents = smithyClient.map({});
|
|
639
|
+
const data = parsedOutput.body;
|
|
640
|
+
const doc = smithyClient.take(data, {
|
|
641
|
+
Message: smithyClient.expectString,
|
|
642
|
+
});
|
|
643
|
+
Object.assign(contents, doc);
|
|
644
|
+
const exception = new InternalServerException({
|
|
645
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
646
|
+
...contents,
|
|
647
|
+
});
|
|
648
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1021
649
|
};
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
})
|
|
1033
|
-
|
|
1034
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1035
|
-
}
|
|
650
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
651
|
+
const contents = smithyClient.map({});
|
|
652
|
+
const data = parsedOutput.body;
|
|
653
|
+
const doc = smithyClient.take(data, {
|
|
654
|
+
Message: smithyClient.expectString,
|
|
655
|
+
});
|
|
656
|
+
Object.assign(contents, doc);
|
|
657
|
+
const exception = new ResourceNotFoundException({
|
|
658
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
659
|
+
...contents,
|
|
660
|
+
});
|
|
661
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1036
662
|
};
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
})
|
|
1048
|
-
|
|
1049
|
-
__name(this, "TagResourceCommand");
|
|
1050
|
-
}
|
|
663
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
664
|
+
const contents = smithyClient.map({});
|
|
665
|
+
const data = parsedOutput.body;
|
|
666
|
+
const doc = smithyClient.take(data, {
|
|
667
|
+
Message: smithyClient.expectString,
|
|
668
|
+
});
|
|
669
|
+
Object.assign(contents, doc);
|
|
670
|
+
const exception = new ServiceQuotaExceededException({
|
|
671
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
672
|
+
...contents,
|
|
673
|
+
});
|
|
674
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1051
675
|
};
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
})
|
|
1063
|
-
|
|
1064
|
-
__name(this, "UntagResourceCommand");
|
|
1065
|
-
}
|
|
676
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
677
|
+
const contents = smithyClient.map({});
|
|
678
|
+
const data = parsedOutput.body;
|
|
679
|
+
const doc = smithyClient.take(data, {
|
|
680
|
+
Message: smithyClient.expectString,
|
|
681
|
+
});
|
|
682
|
+
Object.assign(contents, doc);
|
|
683
|
+
const exception = new ThrottlingException({
|
|
684
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
685
|
+
...contents,
|
|
686
|
+
});
|
|
687
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1066
688
|
};
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
})
|
|
1078
|
-
|
|
1079
|
-
__name(this, "UpdateScheduleCommand");
|
|
1080
|
-
}
|
|
689
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
690
|
+
const contents = smithyClient.map({});
|
|
691
|
+
const data = parsedOutput.body;
|
|
692
|
+
const doc = smithyClient.take(data, {
|
|
693
|
+
Message: smithyClient.expectString,
|
|
694
|
+
});
|
|
695
|
+
Object.assign(contents, doc);
|
|
696
|
+
const exception = new ValidationException({
|
|
697
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
698
|
+
...contents,
|
|
699
|
+
});
|
|
700
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1081
701
|
};
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
702
|
+
const de_ScheduleGroupList = (output, context) => {
|
|
703
|
+
const retVal = (output || [])
|
|
704
|
+
.filter((e) => e != null)
|
|
705
|
+
.map((entry) => {
|
|
706
|
+
return de_ScheduleGroupSummary(entry);
|
|
707
|
+
});
|
|
708
|
+
return retVal;
|
|
709
|
+
};
|
|
710
|
+
const de_ScheduleGroupSummary = (output, context) => {
|
|
711
|
+
return smithyClient.take(output, {
|
|
712
|
+
Arn: smithyClient.expectString,
|
|
713
|
+
CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
714
|
+
LastModificationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
715
|
+
Name: smithyClient.expectString,
|
|
716
|
+
State: smithyClient.expectString,
|
|
717
|
+
});
|
|
1097
718
|
};
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
719
|
+
const de_ScheduleList = (output, context) => {
|
|
720
|
+
const retVal = (output || [])
|
|
721
|
+
.filter((e) => e != null)
|
|
722
|
+
.map((entry) => {
|
|
723
|
+
return de_ScheduleSummary(entry);
|
|
724
|
+
});
|
|
725
|
+
return retVal;
|
|
726
|
+
};
|
|
727
|
+
const de_ScheduleSummary = (output, context) => {
|
|
728
|
+
return smithyClient.take(output, {
|
|
729
|
+
Arn: smithyClient.expectString,
|
|
730
|
+
CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
731
|
+
GroupName: smithyClient.expectString,
|
|
732
|
+
LastModificationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
733
|
+
Name: smithyClient.expectString,
|
|
734
|
+
State: smithyClient.expectString,
|
|
735
|
+
Target: smithyClient._json,
|
|
736
|
+
});
|
|
1102
737
|
};
|
|
1103
|
-
(
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
// src/pagination/ListSchedulesPaginator.ts
|
|
1110
|
-
|
|
1111
|
-
var paginateListSchedules = (0, import_core.createPaginator)(SchedulerClient, ListSchedulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1112
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1113
|
-
|
|
1114
|
-
0 && (module.exports = {
|
|
1115
|
-
SchedulerServiceException,
|
|
1116
|
-
__Client,
|
|
1117
|
-
SchedulerClient,
|
|
1118
|
-
Scheduler,
|
|
1119
|
-
$Command,
|
|
1120
|
-
CreateScheduleCommand,
|
|
1121
|
-
CreateScheduleGroupCommand,
|
|
1122
|
-
DeleteScheduleCommand,
|
|
1123
|
-
DeleteScheduleGroupCommand,
|
|
1124
|
-
GetScheduleCommand,
|
|
1125
|
-
GetScheduleGroupCommand,
|
|
1126
|
-
ListScheduleGroupsCommand,
|
|
1127
|
-
ListSchedulesCommand,
|
|
1128
|
-
ListTagsForResourceCommand,
|
|
1129
|
-
TagResourceCommand,
|
|
1130
|
-
UntagResourceCommand,
|
|
1131
|
-
UpdateScheduleCommand,
|
|
1132
|
-
paginateListScheduleGroups,
|
|
1133
|
-
paginateListSchedules,
|
|
1134
|
-
ActionAfterCompletion,
|
|
1135
|
-
AssignPublicIp,
|
|
1136
|
-
InternalServerException,
|
|
1137
|
-
ResourceNotFoundException,
|
|
1138
|
-
ThrottlingException,
|
|
1139
|
-
ValidationException,
|
|
1140
|
-
ConflictException,
|
|
1141
|
-
FlexibleTimeWindowMode,
|
|
1142
|
-
ScheduleState,
|
|
1143
|
-
LaunchType,
|
|
1144
|
-
PlacementConstraintType,
|
|
1145
|
-
PlacementStrategyType,
|
|
1146
|
-
PropagateTags,
|
|
1147
|
-
ServiceQuotaExceededException,
|
|
1148
|
-
ScheduleGroupState
|
|
738
|
+
const deserializeMetadata = (output) => ({
|
|
739
|
+
httpStatusCode: output.statusCode,
|
|
740
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
741
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
742
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1149
743
|
});
|
|
1150
|
-
|
|
744
|
+
const _CT = "ClientToken";
|
|
745
|
+
const _GN = "GroupName";
|
|
746
|
+
const _MR = "MaxResults";
|
|
747
|
+
const _NP = "NamePrefix";
|
|
748
|
+
const _NT = "NextToken";
|
|
749
|
+
const _S = "State";
|
|
750
|
+
const _SG = "ScheduleGroup";
|
|
751
|
+
const _TK = "TagKeys";
|
|
752
|
+
const _cT = "clientToken";
|
|
753
|
+
const _gN = "groupName";
|
|
754
|
+
|
|
755
|
+
class CreateScheduleCommand extends smithyClient.Command
|
|
756
|
+
.classBuilder()
|
|
757
|
+
.ep(commonParams)
|
|
758
|
+
.m(function (Command, cs, config, o) {
|
|
759
|
+
return [
|
|
760
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
761
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
762
|
+
];
|
|
763
|
+
})
|
|
764
|
+
.s("AWSChronosService", "CreateSchedule", {})
|
|
765
|
+
.n("SchedulerClient", "CreateScheduleCommand")
|
|
766
|
+
.f(void 0, void 0)
|
|
767
|
+
.ser(se_CreateScheduleCommand)
|
|
768
|
+
.de(de_CreateScheduleCommand)
|
|
769
|
+
.build() {
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
class CreateScheduleGroupCommand extends smithyClient.Command
|
|
773
|
+
.classBuilder()
|
|
774
|
+
.ep(commonParams)
|
|
775
|
+
.m(function (Command, cs, config, o) {
|
|
776
|
+
return [
|
|
777
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
778
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
779
|
+
];
|
|
780
|
+
})
|
|
781
|
+
.s("AWSChronosService", "CreateScheduleGroup", {})
|
|
782
|
+
.n("SchedulerClient", "CreateScheduleGroupCommand")
|
|
783
|
+
.f(void 0, void 0)
|
|
784
|
+
.ser(se_CreateScheduleGroupCommand)
|
|
785
|
+
.de(de_CreateScheduleGroupCommand)
|
|
786
|
+
.build() {
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
class DeleteScheduleCommand extends smithyClient.Command
|
|
790
|
+
.classBuilder()
|
|
791
|
+
.ep(commonParams)
|
|
792
|
+
.m(function (Command, cs, config, o) {
|
|
793
|
+
return [
|
|
794
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
795
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
796
|
+
];
|
|
797
|
+
})
|
|
798
|
+
.s("AWSChronosService", "DeleteSchedule", {})
|
|
799
|
+
.n("SchedulerClient", "DeleteScheduleCommand")
|
|
800
|
+
.f(void 0, void 0)
|
|
801
|
+
.ser(se_DeleteScheduleCommand)
|
|
802
|
+
.de(de_DeleteScheduleCommand)
|
|
803
|
+
.build() {
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
class DeleteScheduleGroupCommand extends smithyClient.Command
|
|
807
|
+
.classBuilder()
|
|
808
|
+
.ep(commonParams)
|
|
809
|
+
.m(function (Command, cs, config, o) {
|
|
810
|
+
return [
|
|
811
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
812
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
813
|
+
];
|
|
814
|
+
})
|
|
815
|
+
.s("AWSChronosService", "DeleteScheduleGroup", {})
|
|
816
|
+
.n("SchedulerClient", "DeleteScheduleGroupCommand")
|
|
817
|
+
.f(void 0, void 0)
|
|
818
|
+
.ser(se_DeleteScheduleGroupCommand)
|
|
819
|
+
.de(de_DeleteScheduleGroupCommand)
|
|
820
|
+
.build() {
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
class GetScheduleCommand extends smithyClient.Command
|
|
824
|
+
.classBuilder()
|
|
825
|
+
.ep(commonParams)
|
|
826
|
+
.m(function (Command, cs, config, o) {
|
|
827
|
+
return [
|
|
828
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
829
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
830
|
+
];
|
|
831
|
+
})
|
|
832
|
+
.s("AWSChronosService", "GetSchedule", {})
|
|
833
|
+
.n("SchedulerClient", "GetScheduleCommand")
|
|
834
|
+
.f(void 0, void 0)
|
|
835
|
+
.ser(se_GetScheduleCommand)
|
|
836
|
+
.de(de_GetScheduleCommand)
|
|
837
|
+
.build() {
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
class GetScheduleGroupCommand extends smithyClient.Command
|
|
841
|
+
.classBuilder()
|
|
842
|
+
.ep(commonParams)
|
|
843
|
+
.m(function (Command, cs, config, o) {
|
|
844
|
+
return [
|
|
845
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
846
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
847
|
+
];
|
|
848
|
+
})
|
|
849
|
+
.s("AWSChronosService", "GetScheduleGroup", {})
|
|
850
|
+
.n("SchedulerClient", "GetScheduleGroupCommand")
|
|
851
|
+
.f(void 0, void 0)
|
|
852
|
+
.ser(se_GetScheduleGroupCommand)
|
|
853
|
+
.de(de_GetScheduleGroupCommand)
|
|
854
|
+
.build() {
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
class ListScheduleGroupsCommand extends smithyClient.Command
|
|
858
|
+
.classBuilder()
|
|
859
|
+
.ep(commonParams)
|
|
860
|
+
.m(function (Command, cs, config, o) {
|
|
861
|
+
return [
|
|
862
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
863
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
864
|
+
];
|
|
865
|
+
})
|
|
866
|
+
.s("AWSChronosService", "ListScheduleGroups", {})
|
|
867
|
+
.n("SchedulerClient", "ListScheduleGroupsCommand")
|
|
868
|
+
.f(void 0, void 0)
|
|
869
|
+
.ser(se_ListScheduleGroupsCommand)
|
|
870
|
+
.de(de_ListScheduleGroupsCommand)
|
|
871
|
+
.build() {
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
class ListSchedulesCommand extends smithyClient.Command
|
|
875
|
+
.classBuilder()
|
|
876
|
+
.ep(commonParams)
|
|
877
|
+
.m(function (Command, cs, config, o) {
|
|
878
|
+
return [
|
|
879
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
880
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
881
|
+
];
|
|
882
|
+
})
|
|
883
|
+
.s("AWSChronosService", "ListSchedules", {})
|
|
884
|
+
.n("SchedulerClient", "ListSchedulesCommand")
|
|
885
|
+
.f(void 0, void 0)
|
|
886
|
+
.ser(se_ListSchedulesCommand)
|
|
887
|
+
.de(de_ListSchedulesCommand)
|
|
888
|
+
.build() {
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
892
|
+
.classBuilder()
|
|
893
|
+
.ep(commonParams)
|
|
894
|
+
.m(function (Command, cs, config, o) {
|
|
895
|
+
return [
|
|
896
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
897
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
898
|
+
];
|
|
899
|
+
})
|
|
900
|
+
.s("AWSChronosService", "ListTagsForResource", {})
|
|
901
|
+
.n("SchedulerClient", "ListTagsForResourceCommand")
|
|
902
|
+
.f(void 0, void 0)
|
|
903
|
+
.ser(se_ListTagsForResourceCommand)
|
|
904
|
+
.de(de_ListTagsForResourceCommand)
|
|
905
|
+
.build() {
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
class TagResourceCommand extends smithyClient.Command
|
|
909
|
+
.classBuilder()
|
|
910
|
+
.ep(commonParams)
|
|
911
|
+
.m(function (Command, cs, config, o) {
|
|
912
|
+
return [
|
|
913
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
914
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
915
|
+
];
|
|
916
|
+
})
|
|
917
|
+
.s("AWSChronosService", "TagResource", {})
|
|
918
|
+
.n("SchedulerClient", "TagResourceCommand")
|
|
919
|
+
.f(void 0, void 0)
|
|
920
|
+
.ser(se_TagResourceCommand)
|
|
921
|
+
.de(de_TagResourceCommand)
|
|
922
|
+
.build() {
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
926
|
+
.classBuilder()
|
|
927
|
+
.ep(commonParams)
|
|
928
|
+
.m(function (Command, cs, config, o) {
|
|
929
|
+
return [
|
|
930
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
931
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
932
|
+
];
|
|
933
|
+
})
|
|
934
|
+
.s("AWSChronosService", "UntagResource", {})
|
|
935
|
+
.n("SchedulerClient", "UntagResourceCommand")
|
|
936
|
+
.f(void 0, void 0)
|
|
937
|
+
.ser(se_UntagResourceCommand)
|
|
938
|
+
.de(de_UntagResourceCommand)
|
|
939
|
+
.build() {
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
class UpdateScheduleCommand extends smithyClient.Command
|
|
943
|
+
.classBuilder()
|
|
944
|
+
.ep(commonParams)
|
|
945
|
+
.m(function (Command, cs, config, o) {
|
|
946
|
+
return [
|
|
947
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
948
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
949
|
+
];
|
|
950
|
+
})
|
|
951
|
+
.s("AWSChronosService", "UpdateSchedule", {})
|
|
952
|
+
.n("SchedulerClient", "UpdateScheduleCommand")
|
|
953
|
+
.f(void 0, void 0)
|
|
954
|
+
.ser(se_UpdateScheduleCommand)
|
|
955
|
+
.de(de_UpdateScheduleCommand)
|
|
956
|
+
.build() {
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
const commands = {
|
|
960
|
+
CreateScheduleCommand,
|
|
961
|
+
CreateScheduleGroupCommand,
|
|
962
|
+
DeleteScheduleCommand,
|
|
963
|
+
DeleteScheduleGroupCommand,
|
|
964
|
+
GetScheduleCommand,
|
|
965
|
+
GetScheduleGroupCommand,
|
|
966
|
+
ListScheduleGroupsCommand,
|
|
967
|
+
ListSchedulesCommand,
|
|
968
|
+
ListTagsForResourceCommand,
|
|
969
|
+
TagResourceCommand,
|
|
970
|
+
UntagResourceCommand,
|
|
971
|
+
UpdateScheduleCommand,
|
|
972
|
+
};
|
|
973
|
+
class Scheduler extends SchedulerClient {
|
|
974
|
+
}
|
|
975
|
+
smithyClient.createAggregatedClient(commands, Scheduler);
|
|
976
|
+
|
|
977
|
+
const paginateListScheduleGroups = core.createPaginator(SchedulerClient, ListScheduleGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
978
|
+
|
|
979
|
+
const paginateListSchedules = core.createPaginator(SchedulerClient, ListSchedulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
980
|
+
|
|
981
|
+
Object.defineProperty(exports, "$Command", {
|
|
982
|
+
enumerable: true,
|
|
983
|
+
get: function () { return smithyClient.Command; }
|
|
984
|
+
});
|
|
985
|
+
Object.defineProperty(exports, "__Client", {
|
|
986
|
+
enumerable: true,
|
|
987
|
+
get: function () { return smithyClient.Client; }
|
|
988
|
+
});
|
|
989
|
+
exports.ActionAfterCompletion = ActionAfterCompletion;
|
|
990
|
+
exports.AssignPublicIp = AssignPublicIp;
|
|
991
|
+
exports.ConflictException = ConflictException;
|
|
992
|
+
exports.CreateScheduleCommand = CreateScheduleCommand;
|
|
993
|
+
exports.CreateScheduleGroupCommand = CreateScheduleGroupCommand;
|
|
994
|
+
exports.DeleteScheduleCommand = DeleteScheduleCommand;
|
|
995
|
+
exports.DeleteScheduleGroupCommand = DeleteScheduleGroupCommand;
|
|
996
|
+
exports.FlexibleTimeWindowMode = FlexibleTimeWindowMode;
|
|
997
|
+
exports.GetScheduleCommand = GetScheduleCommand;
|
|
998
|
+
exports.GetScheduleGroupCommand = GetScheduleGroupCommand;
|
|
999
|
+
exports.InternalServerException = InternalServerException;
|
|
1000
|
+
exports.LaunchType = LaunchType;
|
|
1001
|
+
exports.ListScheduleGroupsCommand = ListScheduleGroupsCommand;
|
|
1002
|
+
exports.ListSchedulesCommand = ListSchedulesCommand;
|
|
1003
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1004
|
+
exports.PlacementConstraintType = PlacementConstraintType;
|
|
1005
|
+
exports.PlacementStrategyType = PlacementStrategyType;
|
|
1006
|
+
exports.PropagateTags = PropagateTags;
|
|
1007
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1008
|
+
exports.ScheduleGroupState = ScheduleGroupState;
|
|
1009
|
+
exports.ScheduleState = ScheduleState;
|
|
1010
|
+
exports.Scheduler = Scheduler;
|
|
1011
|
+
exports.SchedulerClient = SchedulerClient;
|
|
1012
|
+
exports.SchedulerServiceException = SchedulerServiceException;
|
|
1013
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1014
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1015
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1016
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1017
|
+
exports.UpdateScheduleCommand = UpdateScheduleCommand;
|
|
1018
|
+
exports.ValidationException = ValidationException;
|
|
1019
|
+
exports.paginateListScheduleGroups = paginateListScheduleGroups;
|
|
1020
|
+
exports.paginateListSchedules = paginateListSchedules;
|