@aws-sdk/client-synthetics 3.490.0 → 3.495.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/Synthetics.js +1 -53
- package/dist-cjs/SyntheticsClient.js +1 -43
- package/dist-cjs/commands/AssociateResourceCommand.js +1 -28
- package/dist-cjs/commands/CreateCanaryCommand.js +1 -28
- package/dist-cjs/commands/CreateGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteCanaryCommand.js +1 -28
- package/dist-cjs/commands/DeleteGroupCommand.js +1 -28
- package/dist-cjs/commands/DescribeCanariesCommand.js +1 -28
- package/dist-cjs/commands/DescribeCanariesLastRunCommand.js +1 -28
- package/dist-cjs/commands/DescribeRuntimeVersionsCommand.js +1 -28
- package/dist-cjs/commands/DisassociateResourceCommand.js +1 -28
- package/dist-cjs/commands/GetCanaryCommand.js +1 -28
- package/dist-cjs/commands/GetCanaryRunsCommand.js +1 -28
- package/dist-cjs/commands/GetGroupCommand.js +1 -28
- package/dist-cjs/commands/ListAssociatedGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListGroupResourcesCommand.js +1 -28
- package/dist-cjs/commands/ListGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/StartCanaryCommand.js +1 -28
- package/dist-cjs/commands/StopCanaryCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateCanaryCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -24
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2295 -11
- package/dist-cjs/models/SyntheticsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -182
- package/dist-cjs/pagination/DescribeCanariesLastRunPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeCanariesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRuntimeVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/GetCanaryRunsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAssociatedGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListGroupResourcesPaginator.js +1 -7
- package/dist-cjs/pagination/ListGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -11
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1462
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,2296 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AssociateResourceCommand: () => AssociateResourceCommand,
|
|
25
|
+
BadRequestException: () => BadRequestException,
|
|
26
|
+
CanaryRunState: () => CanaryRunState,
|
|
27
|
+
CanaryRunStateReasonCode: () => CanaryRunStateReasonCode,
|
|
28
|
+
CanaryState: () => CanaryState,
|
|
29
|
+
CanaryStateReasonCode: () => CanaryStateReasonCode,
|
|
30
|
+
ConflictException: () => ConflictException,
|
|
31
|
+
CreateCanaryCommand: () => CreateCanaryCommand,
|
|
32
|
+
CreateGroupCommand: () => CreateGroupCommand,
|
|
33
|
+
DeleteCanaryCommand: () => DeleteCanaryCommand,
|
|
34
|
+
DeleteGroupCommand: () => DeleteGroupCommand,
|
|
35
|
+
DescribeCanariesCommand: () => DescribeCanariesCommand,
|
|
36
|
+
DescribeCanariesLastRunCommand: () => DescribeCanariesLastRunCommand,
|
|
37
|
+
DescribeRuntimeVersionsCommand: () => DescribeRuntimeVersionsCommand,
|
|
38
|
+
DisassociateResourceCommand: () => DisassociateResourceCommand,
|
|
39
|
+
EncryptionMode: () => EncryptionMode,
|
|
40
|
+
GetCanaryCommand: () => GetCanaryCommand,
|
|
41
|
+
GetCanaryRunsCommand: () => GetCanaryRunsCommand,
|
|
42
|
+
GetGroupCommand: () => GetGroupCommand,
|
|
43
|
+
InternalFailureException: () => InternalFailureException,
|
|
44
|
+
InternalServerException: () => InternalServerException,
|
|
45
|
+
ListAssociatedGroupsCommand: () => ListAssociatedGroupsCommand,
|
|
46
|
+
ListGroupResourcesCommand: () => ListGroupResourcesCommand,
|
|
47
|
+
ListGroupsCommand: () => ListGroupsCommand,
|
|
48
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
49
|
+
NotFoundException: () => NotFoundException,
|
|
50
|
+
RequestEntityTooLargeException: () => RequestEntityTooLargeException,
|
|
51
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
52
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
53
|
+
StartCanaryCommand: () => StartCanaryCommand,
|
|
54
|
+
StopCanaryCommand: () => StopCanaryCommand,
|
|
55
|
+
Synthetics: () => Synthetics,
|
|
56
|
+
SyntheticsClient: () => SyntheticsClient,
|
|
57
|
+
SyntheticsServiceException: () => SyntheticsServiceException,
|
|
58
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
59
|
+
TooManyRequestsException: () => TooManyRequestsException,
|
|
60
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
61
|
+
UpdateCanaryCommand: () => UpdateCanaryCommand,
|
|
62
|
+
ValidationException: () => ValidationException,
|
|
63
|
+
__Client: () => import_smithy_client.Client,
|
|
64
|
+
paginateDescribeCanaries: () => paginateDescribeCanaries,
|
|
65
|
+
paginateDescribeCanariesLastRun: () => paginateDescribeCanariesLastRun,
|
|
66
|
+
paginateDescribeRuntimeVersions: () => paginateDescribeRuntimeVersions,
|
|
67
|
+
paginateGetCanaryRuns: () => paginateGetCanaryRuns,
|
|
68
|
+
paginateListAssociatedGroups: () => paginateListAssociatedGroups,
|
|
69
|
+
paginateListGroupResources: () => paginateListGroupResources,
|
|
70
|
+
paginateListGroups: () => paginateListGroups
|
|
71
|
+
});
|
|
72
|
+
module.exports = __toCommonJS(src_exports);
|
|
73
|
+
|
|
74
|
+
// src/SyntheticsClient.ts
|
|
75
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
76
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
77
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
78
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
79
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
80
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
81
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
82
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
83
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
// src/endpoint/EndpointParameters.ts
|
|
87
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
88
|
+
return {
|
|
89
|
+
...options,
|
|
90
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
91
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
92
|
+
defaultSigningName: "synthetics"
|
|
93
|
+
};
|
|
94
|
+
}, "resolveClientEndpointParameters");
|
|
95
|
+
var commonParams = {
|
|
96
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
97
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
98
|
+
Region: { type: "builtInParams", name: "region" },
|
|
99
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// src/SyntheticsClient.ts
|
|
103
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
104
|
+
|
|
105
|
+
// src/runtimeExtensions.ts
|
|
106
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
107
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
108
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
109
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
110
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
111
|
+
const extensionConfiguration = {
|
|
112
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
113
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
114
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
115
|
+
};
|
|
116
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
117
|
+
return {
|
|
118
|
+
...runtimeConfig,
|
|
119
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
120
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
121
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
122
|
+
};
|
|
123
|
+
}, "resolveRuntimeExtensions");
|
|
124
|
+
|
|
125
|
+
// src/SyntheticsClient.ts
|
|
126
|
+
var _SyntheticsClient = class _SyntheticsClient extends import_smithy_client.Client {
|
|
127
|
+
constructor(...[configuration]) {
|
|
128
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
129
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
130
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
131
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
132
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
133
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
134
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
135
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
136
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
137
|
+
super(_config_8);
|
|
138
|
+
this.config = _config_8;
|
|
139
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
141
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
142
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
143
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
144
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
145
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
149
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
150
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
151
|
+
*/
|
|
152
|
+
destroy() {
|
|
153
|
+
super.destroy();
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
__name(_SyntheticsClient, "SyntheticsClient");
|
|
157
|
+
var SyntheticsClient = _SyntheticsClient;
|
|
158
|
+
|
|
159
|
+
// src/Synthetics.ts
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
// src/commands/AssociateResourceCommand.ts
|
|
163
|
+
|
|
164
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
165
|
+
|
|
166
|
+
var import_types = require("@smithy/types");
|
|
167
|
+
|
|
168
|
+
// src/protocols/Aws_restJson1.ts
|
|
169
|
+
var import_core = require("@smithy/core");
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
// src/models/SyntheticsServiceException.ts
|
|
173
|
+
|
|
174
|
+
var _SyntheticsServiceException = class _SyntheticsServiceException extends import_smithy_client.ServiceException {
|
|
175
|
+
/**
|
|
176
|
+
* @internal
|
|
177
|
+
*/
|
|
178
|
+
constructor(options) {
|
|
179
|
+
super(options);
|
|
180
|
+
Object.setPrototypeOf(this, _SyntheticsServiceException.prototype);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
__name(_SyntheticsServiceException, "SyntheticsServiceException");
|
|
184
|
+
var SyntheticsServiceException = _SyntheticsServiceException;
|
|
185
|
+
|
|
186
|
+
// src/models/models_0.ts
|
|
187
|
+
var EncryptionMode = {
|
|
188
|
+
SSE_KMS: "SSE_KMS",
|
|
189
|
+
SSE_S3: "SSE_S3"
|
|
190
|
+
};
|
|
191
|
+
var _ConflictException = class _ConflictException extends SyntheticsServiceException {
|
|
192
|
+
/**
|
|
193
|
+
* @internal
|
|
194
|
+
*/
|
|
195
|
+
constructor(opts) {
|
|
196
|
+
super({
|
|
197
|
+
name: "ConflictException",
|
|
198
|
+
$fault: "client",
|
|
199
|
+
...opts
|
|
200
|
+
});
|
|
201
|
+
this.name = "ConflictException";
|
|
202
|
+
this.$fault = "client";
|
|
203
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
204
|
+
this.Message = opts.Message;
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
__name(_ConflictException, "ConflictException");
|
|
208
|
+
var ConflictException = _ConflictException;
|
|
209
|
+
var _InternalServerException = class _InternalServerException extends SyntheticsServiceException {
|
|
210
|
+
/**
|
|
211
|
+
* @internal
|
|
212
|
+
*/
|
|
213
|
+
constructor(opts) {
|
|
214
|
+
super({
|
|
215
|
+
name: "InternalServerException",
|
|
216
|
+
$fault: "server",
|
|
217
|
+
...opts
|
|
218
|
+
});
|
|
219
|
+
this.name = "InternalServerException";
|
|
220
|
+
this.$fault = "server";
|
|
221
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
222
|
+
this.Message = opts.Message;
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
__name(_InternalServerException, "InternalServerException");
|
|
226
|
+
var InternalServerException = _InternalServerException;
|
|
227
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends SyntheticsServiceException {
|
|
228
|
+
/**
|
|
229
|
+
* @internal
|
|
230
|
+
*/
|
|
231
|
+
constructor(opts) {
|
|
232
|
+
super({
|
|
233
|
+
name: "ResourceNotFoundException",
|
|
234
|
+
$fault: "client",
|
|
235
|
+
...opts
|
|
236
|
+
});
|
|
237
|
+
this.name = "ResourceNotFoundException";
|
|
238
|
+
this.$fault = "client";
|
|
239
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
240
|
+
this.Message = opts.Message;
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
244
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
245
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SyntheticsServiceException {
|
|
246
|
+
/**
|
|
247
|
+
* @internal
|
|
248
|
+
*/
|
|
249
|
+
constructor(opts) {
|
|
250
|
+
super({
|
|
251
|
+
name: "ServiceQuotaExceededException",
|
|
252
|
+
$fault: "client",
|
|
253
|
+
...opts
|
|
254
|
+
});
|
|
255
|
+
this.name = "ServiceQuotaExceededException";
|
|
256
|
+
this.$fault = "client";
|
|
257
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
258
|
+
this.Message = opts.Message;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
262
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
263
|
+
var _ValidationException = class _ValidationException extends SyntheticsServiceException {
|
|
264
|
+
/**
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
267
|
+
constructor(opts) {
|
|
268
|
+
super({
|
|
269
|
+
name: "ValidationException",
|
|
270
|
+
$fault: "client",
|
|
271
|
+
...opts
|
|
272
|
+
});
|
|
273
|
+
this.name = "ValidationException";
|
|
274
|
+
this.$fault = "client";
|
|
275
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
276
|
+
this.Message = opts.Message;
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
__name(_ValidationException, "ValidationException");
|
|
280
|
+
var ValidationException = _ValidationException;
|
|
281
|
+
var _BadRequestException = class _BadRequestException extends SyntheticsServiceException {
|
|
282
|
+
/**
|
|
283
|
+
* @internal
|
|
284
|
+
*/
|
|
285
|
+
constructor(opts) {
|
|
286
|
+
super({
|
|
287
|
+
name: "BadRequestException",
|
|
288
|
+
$fault: "client",
|
|
289
|
+
...opts
|
|
290
|
+
});
|
|
291
|
+
this.name = "BadRequestException";
|
|
292
|
+
this.$fault = "client";
|
|
293
|
+
Object.setPrototypeOf(this, _BadRequestException.prototype);
|
|
294
|
+
this.Message = opts.Message;
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
__name(_BadRequestException, "BadRequestException");
|
|
298
|
+
var BadRequestException = _BadRequestException;
|
|
299
|
+
var CanaryState = {
|
|
300
|
+
CREATING: "CREATING",
|
|
301
|
+
DELETING: "DELETING",
|
|
302
|
+
ERROR: "ERROR",
|
|
303
|
+
READY: "READY",
|
|
304
|
+
RUNNING: "RUNNING",
|
|
305
|
+
STARTING: "STARTING",
|
|
306
|
+
STOPPED: "STOPPED",
|
|
307
|
+
STOPPING: "STOPPING",
|
|
308
|
+
UPDATING: "UPDATING"
|
|
309
|
+
};
|
|
310
|
+
var CanaryStateReasonCode = {
|
|
311
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
312
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
313
|
+
CREATE_PENDING: "CREATE_PENDING",
|
|
314
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
315
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
316
|
+
INVALID_PERMISSIONS: "INVALID_PERMISSIONS",
|
|
317
|
+
ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
|
|
318
|
+
ROLLBACK_FAILED: "ROLLBACK_FAILED",
|
|
319
|
+
SYNC_DELETE_IN_PROGRESS: "SYNC_DELETE_IN_PROGRESS",
|
|
320
|
+
UPDATE_COMPLETE: "UPDATE_COMPLETE",
|
|
321
|
+
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
322
|
+
UPDATE_PENDING: "UPDATE_PENDING"
|
|
323
|
+
};
|
|
324
|
+
var CanaryRunState = {
|
|
325
|
+
FAILED: "FAILED",
|
|
326
|
+
PASSED: "PASSED",
|
|
327
|
+
RUNNING: "RUNNING"
|
|
328
|
+
};
|
|
329
|
+
var CanaryRunStateReasonCode = {
|
|
330
|
+
CANARY_FAILURE: "CANARY_FAILURE",
|
|
331
|
+
EXECUTION_FAILURE: "EXECUTION_FAILURE"
|
|
332
|
+
};
|
|
333
|
+
var _RequestEntityTooLargeException = class _RequestEntityTooLargeException extends SyntheticsServiceException {
|
|
334
|
+
/**
|
|
335
|
+
* @internal
|
|
336
|
+
*/
|
|
337
|
+
constructor(opts) {
|
|
338
|
+
super({
|
|
339
|
+
name: "RequestEntityTooLargeException",
|
|
340
|
+
$fault: "client",
|
|
341
|
+
...opts
|
|
342
|
+
});
|
|
343
|
+
this.name = "RequestEntityTooLargeException";
|
|
344
|
+
this.$fault = "client";
|
|
345
|
+
Object.setPrototypeOf(this, _RequestEntityTooLargeException.prototype);
|
|
346
|
+
this.Message = opts.Message;
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
__name(_RequestEntityTooLargeException, "RequestEntityTooLargeException");
|
|
350
|
+
var RequestEntityTooLargeException = _RequestEntityTooLargeException;
|
|
351
|
+
var _InternalFailureException = class _InternalFailureException extends SyntheticsServiceException {
|
|
352
|
+
/**
|
|
353
|
+
* @internal
|
|
354
|
+
*/
|
|
355
|
+
constructor(opts) {
|
|
356
|
+
super({
|
|
357
|
+
name: "InternalFailureException",
|
|
358
|
+
$fault: "server",
|
|
359
|
+
...opts
|
|
360
|
+
});
|
|
361
|
+
this.name = "InternalFailureException";
|
|
362
|
+
this.$fault = "server";
|
|
363
|
+
Object.setPrototypeOf(this, _InternalFailureException.prototype);
|
|
364
|
+
this.Message = opts.Message;
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
__name(_InternalFailureException, "InternalFailureException");
|
|
368
|
+
var InternalFailureException = _InternalFailureException;
|
|
369
|
+
var _NotFoundException = class _NotFoundException extends SyntheticsServiceException {
|
|
370
|
+
/**
|
|
371
|
+
* @internal
|
|
372
|
+
*/
|
|
373
|
+
constructor(opts) {
|
|
374
|
+
super({
|
|
375
|
+
name: "NotFoundException",
|
|
376
|
+
$fault: "client",
|
|
377
|
+
...opts
|
|
378
|
+
});
|
|
379
|
+
this.name = "NotFoundException";
|
|
380
|
+
this.$fault = "client";
|
|
381
|
+
Object.setPrototypeOf(this, _NotFoundException.prototype);
|
|
382
|
+
this.Message = opts.Message;
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
__name(_NotFoundException, "NotFoundException");
|
|
386
|
+
var NotFoundException = _NotFoundException;
|
|
387
|
+
var _TooManyRequestsException = class _TooManyRequestsException extends SyntheticsServiceException {
|
|
388
|
+
/**
|
|
389
|
+
* @internal
|
|
390
|
+
*/
|
|
391
|
+
constructor(opts) {
|
|
392
|
+
super({
|
|
393
|
+
name: "TooManyRequestsException",
|
|
394
|
+
$fault: "client",
|
|
395
|
+
...opts
|
|
396
|
+
});
|
|
397
|
+
this.name = "TooManyRequestsException";
|
|
398
|
+
this.$fault = "client";
|
|
399
|
+
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
400
|
+
this.Message = opts.Message;
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
__name(_TooManyRequestsException, "TooManyRequestsException");
|
|
404
|
+
var TooManyRequestsException = _TooManyRequestsException;
|
|
405
|
+
|
|
406
|
+
// src/protocols/Aws_restJson1.ts
|
|
407
|
+
var se_AssociateResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
408
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
409
|
+
const headers = {
|
|
410
|
+
"content-type": "application/json"
|
|
411
|
+
};
|
|
412
|
+
b.bp("/group/{GroupIdentifier}/associate");
|
|
413
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
414
|
+
let body;
|
|
415
|
+
body = JSON.stringify(
|
|
416
|
+
(0, import_smithy_client.take)(input, {
|
|
417
|
+
ResourceArn: []
|
|
418
|
+
})
|
|
419
|
+
);
|
|
420
|
+
b.m("PATCH").h(headers).b(body);
|
|
421
|
+
return b.build();
|
|
422
|
+
}, "se_AssociateResourceCommand");
|
|
423
|
+
var se_CreateCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
424
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
425
|
+
const headers = {
|
|
426
|
+
"content-type": "application/json"
|
|
427
|
+
};
|
|
428
|
+
b.bp("/canary");
|
|
429
|
+
let body;
|
|
430
|
+
body = JSON.stringify(
|
|
431
|
+
(0, import_smithy_client.take)(input, {
|
|
432
|
+
ArtifactConfig: (_) => (0, import_smithy_client._json)(_),
|
|
433
|
+
ArtifactS3Location: [],
|
|
434
|
+
Code: (_) => se_CanaryCodeInput(_, context),
|
|
435
|
+
ExecutionRoleArn: [],
|
|
436
|
+
FailureRetentionPeriodInDays: [],
|
|
437
|
+
Name: [],
|
|
438
|
+
RunConfig: (_) => (0, import_smithy_client._json)(_),
|
|
439
|
+
RuntimeVersion: [],
|
|
440
|
+
Schedule: (_) => (0, import_smithy_client._json)(_),
|
|
441
|
+
SuccessRetentionPeriodInDays: [],
|
|
442
|
+
Tags: (_) => (0, import_smithy_client._json)(_),
|
|
443
|
+
VpcConfig: (_) => (0, import_smithy_client._json)(_)
|
|
444
|
+
})
|
|
445
|
+
);
|
|
446
|
+
b.m("POST").h(headers).b(body);
|
|
447
|
+
return b.build();
|
|
448
|
+
}, "se_CreateCanaryCommand");
|
|
449
|
+
var se_CreateGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
450
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
451
|
+
const headers = {
|
|
452
|
+
"content-type": "application/json"
|
|
453
|
+
};
|
|
454
|
+
b.bp("/group");
|
|
455
|
+
let body;
|
|
456
|
+
body = JSON.stringify(
|
|
457
|
+
(0, import_smithy_client.take)(input, {
|
|
458
|
+
Name: [],
|
|
459
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
460
|
+
})
|
|
461
|
+
);
|
|
462
|
+
b.m("POST").h(headers).b(body);
|
|
463
|
+
return b.build();
|
|
464
|
+
}, "se_CreateGroupCommand");
|
|
465
|
+
var se_DeleteCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
466
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
467
|
+
const headers = {};
|
|
468
|
+
b.bp("/canary/{Name}");
|
|
469
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
470
|
+
const query = (0, import_smithy_client.map)({
|
|
471
|
+
[_dL]: [() => input.DeleteLambda !== void 0, () => input[_DL].toString()]
|
|
472
|
+
});
|
|
473
|
+
let body;
|
|
474
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
475
|
+
return b.build();
|
|
476
|
+
}, "se_DeleteCanaryCommand");
|
|
477
|
+
var se_DeleteGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
478
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
479
|
+
const headers = {};
|
|
480
|
+
b.bp("/group/{GroupIdentifier}");
|
|
481
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
482
|
+
let body;
|
|
483
|
+
b.m("DELETE").h(headers).b(body);
|
|
484
|
+
return b.build();
|
|
485
|
+
}, "se_DeleteGroupCommand");
|
|
486
|
+
var se_DescribeCanariesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
487
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
488
|
+
const headers = {
|
|
489
|
+
"content-type": "application/json"
|
|
490
|
+
};
|
|
491
|
+
b.bp("/canaries");
|
|
492
|
+
let body;
|
|
493
|
+
body = JSON.stringify(
|
|
494
|
+
(0, import_smithy_client.take)(input, {
|
|
495
|
+
MaxResults: [],
|
|
496
|
+
Names: (_) => (0, import_smithy_client._json)(_),
|
|
497
|
+
NextToken: []
|
|
498
|
+
})
|
|
499
|
+
);
|
|
500
|
+
b.m("POST").h(headers).b(body);
|
|
501
|
+
return b.build();
|
|
502
|
+
}, "se_DescribeCanariesCommand");
|
|
503
|
+
var se_DescribeCanariesLastRunCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
504
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
505
|
+
const headers = {
|
|
506
|
+
"content-type": "application/json"
|
|
507
|
+
};
|
|
508
|
+
b.bp("/canaries/last-run");
|
|
509
|
+
let body;
|
|
510
|
+
body = JSON.stringify(
|
|
511
|
+
(0, import_smithy_client.take)(input, {
|
|
512
|
+
MaxResults: [],
|
|
513
|
+
Names: (_) => (0, import_smithy_client._json)(_),
|
|
514
|
+
NextToken: []
|
|
515
|
+
})
|
|
516
|
+
);
|
|
517
|
+
b.m("POST").h(headers).b(body);
|
|
518
|
+
return b.build();
|
|
519
|
+
}, "se_DescribeCanariesLastRunCommand");
|
|
520
|
+
var se_DescribeRuntimeVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
521
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
522
|
+
const headers = {
|
|
523
|
+
"content-type": "application/json"
|
|
524
|
+
};
|
|
525
|
+
b.bp("/runtime-versions");
|
|
526
|
+
let body;
|
|
527
|
+
body = JSON.stringify(
|
|
528
|
+
(0, import_smithy_client.take)(input, {
|
|
529
|
+
MaxResults: [],
|
|
530
|
+
NextToken: []
|
|
531
|
+
})
|
|
532
|
+
);
|
|
533
|
+
b.m("POST").h(headers).b(body);
|
|
534
|
+
return b.build();
|
|
535
|
+
}, "se_DescribeRuntimeVersionsCommand");
|
|
536
|
+
var se_DisassociateResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
537
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
538
|
+
const headers = {
|
|
539
|
+
"content-type": "application/json"
|
|
540
|
+
};
|
|
541
|
+
b.bp("/group/{GroupIdentifier}/disassociate");
|
|
542
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
543
|
+
let body;
|
|
544
|
+
body = JSON.stringify(
|
|
545
|
+
(0, import_smithy_client.take)(input, {
|
|
546
|
+
ResourceArn: []
|
|
547
|
+
})
|
|
548
|
+
);
|
|
549
|
+
b.m("PATCH").h(headers).b(body);
|
|
550
|
+
return b.build();
|
|
551
|
+
}, "se_DisassociateResourceCommand");
|
|
552
|
+
var se_GetCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
553
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
554
|
+
const headers = {};
|
|
555
|
+
b.bp("/canary/{Name}");
|
|
556
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
557
|
+
let body;
|
|
558
|
+
b.m("GET").h(headers).b(body);
|
|
559
|
+
return b.build();
|
|
560
|
+
}, "se_GetCanaryCommand");
|
|
561
|
+
var se_GetCanaryRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
562
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
563
|
+
const headers = {
|
|
564
|
+
"content-type": "application/json"
|
|
565
|
+
};
|
|
566
|
+
b.bp("/canary/{Name}/runs");
|
|
567
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
568
|
+
let body;
|
|
569
|
+
body = JSON.stringify(
|
|
570
|
+
(0, import_smithy_client.take)(input, {
|
|
571
|
+
MaxResults: [],
|
|
572
|
+
NextToken: []
|
|
573
|
+
})
|
|
574
|
+
);
|
|
575
|
+
b.m("POST").h(headers).b(body);
|
|
576
|
+
return b.build();
|
|
577
|
+
}, "se_GetCanaryRunsCommand");
|
|
578
|
+
var se_GetGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
579
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
580
|
+
const headers = {};
|
|
581
|
+
b.bp("/group/{GroupIdentifier}");
|
|
582
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
583
|
+
let body;
|
|
584
|
+
b.m("GET").h(headers).b(body);
|
|
585
|
+
return b.build();
|
|
586
|
+
}, "se_GetGroupCommand");
|
|
587
|
+
var se_ListAssociatedGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
588
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
589
|
+
const headers = {
|
|
590
|
+
"content-type": "application/json"
|
|
591
|
+
};
|
|
592
|
+
b.bp("/resource/{ResourceArn}/groups");
|
|
593
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
594
|
+
let body;
|
|
595
|
+
body = JSON.stringify(
|
|
596
|
+
(0, import_smithy_client.take)(input, {
|
|
597
|
+
MaxResults: [],
|
|
598
|
+
NextToken: []
|
|
599
|
+
})
|
|
600
|
+
);
|
|
601
|
+
b.m("POST").h(headers).b(body);
|
|
602
|
+
return b.build();
|
|
603
|
+
}, "se_ListAssociatedGroupsCommand");
|
|
604
|
+
var se_ListGroupResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
605
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
606
|
+
const headers = {
|
|
607
|
+
"content-type": "application/json"
|
|
608
|
+
};
|
|
609
|
+
b.bp("/group/{GroupIdentifier}/resources");
|
|
610
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
611
|
+
let body;
|
|
612
|
+
body = JSON.stringify(
|
|
613
|
+
(0, import_smithy_client.take)(input, {
|
|
614
|
+
MaxResults: [],
|
|
615
|
+
NextToken: []
|
|
616
|
+
})
|
|
617
|
+
);
|
|
618
|
+
b.m("POST").h(headers).b(body);
|
|
619
|
+
return b.build();
|
|
620
|
+
}, "se_ListGroupResourcesCommand");
|
|
621
|
+
var se_ListGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
622
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
623
|
+
const headers = {
|
|
624
|
+
"content-type": "application/json"
|
|
625
|
+
};
|
|
626
|
+
b.bp("/groups");
|
|
627
|
+
let body;
|
|
628
|
+
body = JSON.stringify(
|
|
629
|
+
(0, import_smithy_client.take)(input, {
|
|
630
|
+
MaxResults: [],
|
|
631
|
+
NextToken: []
|
|
632
|
+
})
|
|
633
|
+
);
|
|
634
|
+
b.m("POST").h(headers).b(body);
|
|
635
|
+
return b.build();
|
|
636
|
+
}, "se_ListGroupsCommand");
|
|
637
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
638
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
639
|
+
const headers = {};
|
|
640
|
+
b.bp("/tags/{ResourceArn}");
|
|
641
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
642
|
+
let body;
|
|
643
|
+
b.m("GET").h(headers).b(body);
|
|
644
|
+
return b.build();
|
|
645
|
+
}, "se_ListTagsForResourceCommand");
|
|
646
|
+
var se_StartCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
647
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
648
|
+
const headers = {};
|
|
649
|
+
b.bp("/canary/{Name}/start");
|
|
650
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
651
|
+
let body;
|
|
652
|
+
b.m("POST").h(headers).b(body);
|
|
653
|
+
return b.build();
|
|
654
|
+
}, "se_StartCanaryCommand");
|
|
655
|
+
var se_StopCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
656
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
657
|
+
const headers = {};
|
|
658
|
+
b.bp("/canary/{Name}/stop");
|
|
659
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
660
|
+
let body;
|
|
661
|
+
b.m("POST").h(headers).b(body);
|
|
662
|
+
return b.build();
|
|
663
|
+
}, "se_StopCanaryCommand");
|
|
664
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
665
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
666
|
+
const headers = {
|
|
667
|
+
"content-type": "application/json"
|
|
668
|
+
};
|
|
669
|
+
b.bp("/tags/{ResourceArn}");
|
|
670
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
671
|
+
let body;
|
|
672
|
+
body = JSON.stringify(
|
|
673
|
+
(0, import_smithy_client.take)(input, {
|
|
674
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
675
|
+
})
|
|
676
|
+
);
|
|
677
|
+
b.m("POST").h(headers).b(body);
|
|
678
|
+
return b.build();
|
|
679
|
+
}, "se_TagResourceCommand");
|
|
680
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
681
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
682
|
+
const headers = {};
|
|
683
|
+
b.bp("/tags/{ResourceArn}");
|
|
684
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
685
|
+
const query = (0, import_smithy_client.map)({
|
|
686
|
+
[_tK]: [
|
|
687
|
+
(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
688
|
+
() => (input[_TK] || []).map((_entry) => _entry)
|
|
689
|
+
]
|
|
690
|
+
});
|
|
691
|
+
let body;
|
|
692
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
693
|
+
return b.build();
|
|
694
|
+
}, "se_UntagResourceCommand");
|
|
695
|
+
var se_UpdateCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
696
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
697
|
+
const headers = {
|
|
698
|
+
"content-type": "application/json"
|
|
699
|
+
};
|
|
700
|
+
b.bp("/canary/{Name}");
|
|
701
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
702
|
+
let body;
|
|
703
|
+
body = JSON.stringify(
|
|
704
|
+
(0, import_smithy_client.take)(input, {
|
|
705
|
+
ArtifactConfig: (_) => (0, import_smithy_client._json)(_),
|
|
706
|
+
ArtifactS3Location: [],
|
|
707
|
+
Code: (_) => se_CanaryCodeInput(_, context),
|
|
708
|
+
ExecutionRoleArn: [],
|
|
709
|
+
FailureRetentionPeriodInDays: [],
|
|
710
|
+
RunConfig: (_) => (0, import_smithy_client._json)(_),
|
|
711
|
+
RuntimeVersion: [],
|
|
712
|
+
Schedule: (_) => (0, import_smithy_client._json)(_),
|
|
713
|
+
SuccessRetentionPeriodInDays: [],
|
|
714
|
+
VisualReference: (_) => (0, import_smithy_client._json)(_),
|
|
715
|
+
VpcConfig: (_) => (0, import_smithy_client._json)(_)
|
|
716
|
+
})
|
|
717
|
+
);
|
|
718
|
+
b.m("PATCH").h(headers).b(body);
|
|
719
|
+
return b.build();
|
|
720
|
+
}, "se_UpdateCanaryCommand");
|
|
721
|
+
var de_AssociateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
722
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
|
+
return de_AssociateResourceCommandError(output, context);
|
|
724
|
+
}
|
|
725
|
+
const contents = (0, import_smithy_client.map)({
|
|
726
|
+
$metadata: deserializeMetadata(output)
|
|
727
|
+
});
|
|
728
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
729
|
+
return contents;
|
|
730
|
+
}, "de_AssociateResourceCommand");
|
|
731
|
+
var de_AssociateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
732
|
+
const parsedOutput = {
|
|
733
|
+
...output,
|
|
734
|
+
body: await parseErrorBody(output.body, context)
|
|
735
|
+
};
|
|
736
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
|
+
switch (errorCode) {
|
|
738
|
+
case "ConflictException":
|
|
739
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
740
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
741
|
+
case "InternalServerException":
|
|
742
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
743
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
744
|
+
case "ResourceNotFoundException":
|
|
745
|
+
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
746
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
747
|
+
case "ServiceQuotaExceededException":
|
|
748
|
+
case "com.amazonaws.synthetics#ServiceQuotaExceededException":
|
|
749
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
750
|
+
case "ValidationException":
|
|
751
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
752
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
753
|
+
default:
|
|
754
|
+
const parsedBody = parsedOutput.body;
|
|
755
|
+
return throwDefaultError({
|
|
756
|
+
output,
|
|
757
|
+
parsedBody,
|
|
758
|
+
errorCode
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
}, "de_AssociateResourceCommandError");
|
|
762
|
+
var de_CreateCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
763
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
764
|
+
return de_CreateCanaryCommandError(output, context);
|
|
765
|
+
}
|
|
766
|
+
const contents = (0, import_smithy_client.map)({
|
|
767
|
+
$metadata: deserializeMetadata(output)
|
|
768
|
+
});
|
|
769
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
770
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
771
|
+
Canary: (_) => de_Canary(_, context)
|
|
772
|
+
});
|
|
773
|
+
Object.assign(contents, doc);
|
|
774
|
+
return contents;
|
|
775
|
+
}, "de_CreateCanaryCommand");
|
|
776
|
+
var de_CreateCanaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
777
|
+
const parsedOutput = {
|
|
778
|
+
...output,
|
|
779
|
+
body: await parseErrorBody(output.body, context)
|
|
780
|
+
};
|
|
781
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
+
switch (errorCode) {
|
|
783
|
+
case "InternalServerException":
|
|
784
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
785
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
786
|
+
case "RequestEntityTooLargeException":
|
|
787
|
+
case "com.amazonaws.synthetics#RequestEntityTooLargeException":
|
|
788
|
+
throw await de_RequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
789
|
+
case "ValidationException":
|
|
790
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
791
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
792
|
+
default:
|
|
793
|
+
const parsedBody = parsedOutput.body;
|
|
794
|
+
return throwDefaultError({
|
|
795
|
+
output,
|
|
796
|
+
parsedBody,
|
|
797
|
+
errorCode
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
}, "de_CreateCanaryCommandError");
|
|
801
|
+
var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
802
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
803
|
+
return de_CreateGroupCommandError(output, context);
|
|
804
|
+
}
|
|
805
|
+
const contents = (0, import_smithy_client.map)({
|
|
806
|
+
$metadata: deserializeMetadata(output)
|
|
807
|
+
});
|
|
808
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
809
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
810
|
+
Group: (_) => de_Group(_, context)
|
|
811
|
+
});
|
|
812
|
+
Object.assign(contents, doc);
|
|
813
|
+
return contents;
|
|
814
|
+
}, "de_CreateGroupCommand");
|
|
815
|
+
var de_CreateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
816
|
+
const parsedOutput = {
|
|
817
|
+
...output,
|
|
818
|
+
body: await parseErrorBody(output.body, context)
|
|
819
|
+
};
|
|
820
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
|
+
switch (errorCode) {
|
|
822
|
+
case "ConflictException":
|
|
823
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
824
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
825
|
+
case "InternalServerException":
|
|
826
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
827
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
828
|
+
case "ServiceQuotaExceededException":
|
|
829
|
+
case "com.amazonaws.synthetics#ServiceQuotaExceededException":
|
|
830
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
831
|
+
case "ValidationException":
|
|
832
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
833
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
834
|
+
default:
|
|
835
|
+
const parsedBody = parsedOutput.body;
|
|
836
|
+
return throwDefaultError({
|
|
837
|
+
output,
|
|
838
|
+
parsedBody,
|
|
839
|
+
errorCode
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
}, "de_CreateGroupCommandError");
|
|
843
|
+
var de_DeleteCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
844
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
845
|
+
return de_DeleteCanaryCommandError(output, context);
|
|
846
|
+
}
|
|
847
|
+
const contents = (0, import_smithy_client.map)({
|
|
848
|
+
$metadata: deserializeMetadata(output)
|
|
849
|
+
});
|
|
850
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
851
|
+
return contents;
|
|
852
|
+
}, "de_DeleteCanaryCommand");
|
|
853
|
+
var de_DeleteCanaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
854
|
+
const parsedOutput = {
|
|
855
|
+
...output,
|
|
856
|
+
body: await parseErrorBody(output.body, context)
|
|
857
|
+
};
|
|
858
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
|
+
switch (errorCode) {
|
|
860
|
+
case "ConflictException":
|
|
861
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
862
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
863
|
+
case "InternalServerException":
|
|
864
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
865
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
866
|
+
case "ResourceNotFoundException":
|
|
867
|
+
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
868
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
869
|
+
case "ValidationException":
|
|
870
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
871
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
872
|
+
default:
|
|
873
|
+
const parsedBody = parsedOutput.body;
|
|
874
|
+
return throwDefaultError({
|
|
875
|
+
output,
|
|
876
|
+
parsedBody,
|
|
877
|
+
errorCode
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
}, "de_DeleteCanaryCommandError");
|
|
881
|
+
var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
882
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
883
|
+
return de_DeleteGroupCommandError(output, context);
|
|
884
|
+
}
|
|
885
|
+
const contents = (0, import_smithy_client.map)({
|
|
886
|
+
$metadata: deserializeMetadata(output)
|
|
887
|
+
});
|
|
888
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
889
|
+
return contents;
|
|
890
|
+
}, "de_DeleteGroupCommand");
|
|
891
|
+
var de_DeleteGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
|
+
const parsedOutput = {
|
|
893
|
+
...output,
|
|
894
|
+
body: await parseErrorBody(output.body, context)
|
|
895
|
+
};
|
|
896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
+
switch (errorCode) {
|
|
898
|
+
case "ConflictException":
|
|
899
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
900
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
901
|
+
case "InternalServerException":
|
|
902
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
903
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
904
|
+
case "ResourceNotFoundException":
|
|
905
|
+
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
906
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
907
|
+
case "ValidationException":
|
|
908
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
909
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
910
|
+
default:
|
|
911
|
+
const parsedBody = parsedOutput.body;
|
|
912
|
+
return throwDefaultError({
|
|
913
|
+
output,
|
|
914
|
+
parsedBody,
|
|
915
|
+
errorCode
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
}, "de_DeleteGroupCommandError");
|
|
919
|
+
var de_DescribeCanariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
920
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
921
|
+
return de_DescribeCanariesCommandError(output, context);
|
|
922
|
+
}
|
|
923
|
+
const contents = (0, import_smithy_client.map)({
|
|
924
|
+
$metadata: deserializeMetadata(output)
|
|
925
|
+
});
|
|
926
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
927
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
928
|
+
Canaries: (_) => de_Canaries(_, context),
|
|
929
|
+
NextToken: import_smithy_client.expectString
|
|
930
|
+
});
|
|
931
|
+
Object.assign(contents, doc);
|
|
932
|
+
return contents;
|
|
933
|
+
}, "de_DescribeCanariesCommand");
|
|
934
|
+
var de_DescribeCanariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
935
|
+
const parsedOutput = {
|
|
936
|
+
...output,
|
|
937
|
+
body: await parseErrorBody(output.body, context)
|
|
938
|
+
};
|
|
939
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
|
+
switch (errorCode) {
|
|
941
|
+
case "InternalServerException":
|
|
942
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
943
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
944
|
+
case "ValidationException":
|
|
945
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
946
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
947
|
+
default:
|
|
948
|
+
const parsedBody = parsedOutput.body;
|
|
949
|
+
return throwDefaultError({
|
|
950
|
+
output,
|
|
951
|
+
parsedBody,
|
|
952
|
+
errorCode
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
}, "de_DescribeCanariesCommandError");
|
|
956
|
+
var de_DescribeCanariesLastRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
957
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
958
|
+
return de_DescribeCanariesLastRunCommandError(output, context);
|
|
959
|
+
}
|
|
960
|
+
const contents = (0, import_smithy_client.map)({
|
|
961
|
+
$metadata: deserializeMetadata(output)
|
|
962
|
+
});
|
|
963
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
964
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
965
|
+
CanariesLastRun: (_) => de_CanariesLastRun(_, context),
|
|
966
|
+
NextToken: import_smithy_client.expectString
|
|
967
|
+
});
|
|
968
|
+
Object.assign(contents, doc);
|
|
969
|
+
return contents;
|
|
970
|
+
}, "de_DescribeCanariesLastRunCommand");
|
|
971
|
+
var de_DescribeCanariesLastRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
972
|
+
const parsedOutput = {
|
|
973
|
+
...output,
|
|
974
|
+
body: await parseErrorBody(output.body, context)
|
|
975
|
+
};
|
|
976
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
|
+
switch (errorCode) {
|
|
978
|
+
case "InternalServerException":
|
|
979
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
980
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
981
|
+
case "ValidationException":
|
|
982
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
983
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
984
|
+
default:
|
|
985
|
+
const parsedBody = parsedOutput.body;
|
|
986
|
+
return throwDefaultError({
|
|
987
|
+
output,
|
|
988
|
+
parsedBody,
|
|
989
|
+
errorCode
|
|
990
|
+
});
|
|
991
|
+
}
|
|
992
|
+
}, "de_DescribeCanariesLastRunCommandError");
|
|
993
|
+
var de_DescribeRuntimeVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
994
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
995
|
+
return de_DescribeRuntimeVersionsCommandError(output, context);
|
|
996
|
+
}
|
|
997
|
+
const contents = (0, import_smithy_client.map)({
|
|
998
|
+
$metadata: deserializeMetadata(output)
|
|
999
|
+
});
|
|
1000
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1001
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1002
|
+
NextToken: import_smithy_client.expectString,
|
|
1003
|
+
RuntimeVersions: (_) => de_RuntimeVersionList(_, context)
|
|
1004
|
+
});
|
|
1005
|
+
Object.assign(contents, doc);
|
|
1006
|
+
return contents;
|
|
1007
|
+
}, "de_DescribeRuntimeVersionsCommand");
|
|
1008
|
+
var de_DescribeRuntimeVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1009
|
+
const parsedOutput = {
|
|
1010
|
+
...output,
|
|
1011
|
+
body: await parseErrorBody(output.body, context)
|
|
1012
|
+
};
|
|
1013
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
|
+
switch (errorCode) {
|
|
1015
|
+
case "InternalServerException":
|
|
1016
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
1017
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1018
|
+
case "ValidationException":
|
|
1019
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
1020
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1021
|
+
default:
|
|
1022
|
+
const parsedBody = parsedOutput.body;
|
|
1023
|
+
return throwDefaultError({
|
|
1024
|
+
output,
|
|
1025
|
+
parsedBody,
|
|
1026
|
+
errorCode
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
}, "de_DescribeRuntimeVersionsCommandError");
|
|
1030
|
+
var de_DisassociateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1031
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1032
|
+
return de_DisassociateResourceCommandError(output, context);
|
|
1033
|
+
}
|
|
1034
|
+
const contents = (0, import_smithy_client.map)({
|
|
1035
|
+
$metadata: deserializeMetadata(output)
|
|
1036
|
+
});
|
|
1037
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1038
|
+
return contents;
|
|
1039
|
+
}, "de_DisassociateResourceCommand");
|
|
1040
|
+
var de_DisassociateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1041
|
+
const parsedOutput = {
|
|
1042
|
+
...output,
|
|
1043
|
+
body: await parseErrorBody(output.body, context)
|
|
1044
|
+
};
|
|
1045
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
|
+
switch (errorCode) {
|
|
1047
|
+
case "ConflictException":
|
|
1048
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
1049
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1050
|
+
case "InternalServerException":
|
|
1051
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
1052
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1053
|
+
case "ResourceNotFoundException":
|
|
1054
|
+
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1055
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1056
|
+
case "ValidationException":
|
|
1057
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
1058
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1059
|
+
default:
|
|
1060
|
+
const parsedBody = parsedOutput.body;
|
|
1061
|
+
return throwDefaultError({
|
|
1062
|
+
output,
|
|
1063
|
+
parsedBody,
|
|
1064
|
+
errorCode
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
}, "de_DisassociateResourceCommandError");
|
|
1068
|
+
var de_GetCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1069
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1070
|
+
return de_GetCanaryCommandError(output, context);
|
|
1071
|
+
}
|
|
1072
|
+
const contents = (0, import_smithy_client.map)({
|
|
1073
|
+
$metadata: deserializeMetadata(output)
|
|
1074
|
+
});
|
|
1075
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1076
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1077
|
+
Canary: (_) => de_Canary(_, context)
|
|
1078
|
+
});
|
|
1079
|
+
Object.assign(contents, doc);
|
|
1080
|
+
return contents;
|
|
1081
|
+
}, "de_GetCanaryCommand");
|
|
1082
|
+
var de_GetCanaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1083
|
+
const parsedOutput = {
|
|
1084
|
+
...output,
|
|
1085
|
+
body: await parseErrorBody(output.body, context)
|
|
1086
|
+
};
|
|
1087
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
+
switch (errorCode) {
|
|
1089
|
+
case "InternalServerException":
|
|
1090
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
1091
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1092
|
+
case "ValidationException":
|
|
1093
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
1094
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1095
|
+
default:
|
|
1096
|
+
const parsedBody = parsedOutput.body;
|
|
1097
|
+
return throwDefaultError({
|
|
1098
|
+
output,
|
|
1099
|
+
parsedBody,
|
|
1100
|
+
errorCode
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
}, "de_GetCanaryCommandError");
|
|
1104
|
+
var de_GetCanaryRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1105
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1106
|
+
return de_GetCanaryRunsCommandError(output, context);
|
|
1107
|
+
}
|
|
1108
|
+
const contents = (0, import_smithy_client.map)({
|
|
1109
|
+
$metadata: deserializeMetadata(output)
|
|
1110
|
+
});
|
|
1111
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1112
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1113
|
+
CanaryRuns: (_) => de_CanaryRuns(_, context),
|
|
1114
|
+
NextToken: import_smithy_client.expectString
|
|
1115
|
+
});
|
|
1116
|
+
Object.assign(contents, doc);
|
|
1117
|
+
return contents;
|
|
1118
|
+
}, "de_GetCanaryRunsCommand");
|
|
1119
|
+
var de_GetCanaryRunsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
|
+
const parsedOutput = {
|
|
1121
|
+
...output,
|
|
1122
|
+
body: await parseErrorBody(output.body, context)
|
|
1123
|
+
};
|
|
1124
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
+
switch (errorCode) {
|
|
1126
|
+
case "InternalServerException":
|
|
1127
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
1128
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1129
|
+
case "ResourceNotFoundException":
|
|
1130
|
+
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1131
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1132
|
+
case "ValidationException":
|
|
1133
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
1134
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1135
|
+
default:
|
|
1136
|
+
const parsedBody = parsedOutput.body;
|
|
1137
|
+
return throwDefaultError({
|
|
1138
|
+
output,
|
|
1139
|
+
parsedBody,
|
|
1140
|
+
errorCode
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
}, "de_GetCanaryRunsCommandError");
|
|
1144
|
+
var de_GetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1145
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1146
|
+
return de_GetGroupCommandError(output, context);
|
|
1147
|
+
}
|
|
1148
|
+
const contents = (0, import_smithy_client.map)({
|
|
1149
|
+
$metadata: deserializeMetadata(output)
|
|
1150
|
+
});
|
|
1151
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1152
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1153
|
+
Group: (_) => de_Group(_, context)
|
|
1154
|
+
});
|
|
1155
|
+
Object.assign(contents, doc);
|
|
1156
|
+
return contents;
|
|
1157
|
+
}, "de_GetGroupCommand");
|
|
1158
|
+
var de_GetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1159
|
+
const parsedOutput = {
|
|
1160
|
+
...output,
|
|
1161
|
+
body: await parseErrorBody(output.body, context)
|
|
1162
|
+
};
|
|
1163
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
|
+
switch (errorCode) {
|
|
1165
|
+
case "ConflictException":
|
|
1166
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
1167
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1168
|
+
case "InternalServerException":
|
|
1169
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
1170
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1171
|
+
case "ResourceNotFoundException":
|
|
1172
|
+
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1173
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1174
|
+
case "ValidationException":
|
|
1175
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
1176
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1177
|
+
default:
|
|
1178
|
+
const parsedBody = parsedOutput.body;
|
|
1179
|
+
return throwDefaultError({
|
|
1180
|
+
output,
|
|
1181
|
+
parsedBody,
|
|
1182
|
+
errorCode
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
}, "de_GetGroupCommandError");
|
|
1186
|
+
var de_ListAssociatedGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1187
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1188
|
+
return de_ListAssociatedGroupsCommandError(output, context);
|
|
1189
|
+
}
|
|
1190
|
+
const contents = (0, import_smithy_client.map)({
|
|
1191
|
+
$metadata: deserializeMetadata(output)
|
|
1192
|
+
});
|
|
1193
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1194
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1195
|
+
Groups: import_smithy_client._json,
|
|
1196
|
+
NextToken: import_smithy_client.expectString
|
|
1197
|
+
});
|
|
1198
|
+
Object.assign(contents, doc);
|
|
1199
|
+
return contents;
|
|
1200
|
+
}, "de_ListAssociatedGroupsCommand");
|
|
1201
|
+
var de_ListAssociatedGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1202
|
+
const parsedOutput = {
|
|
1203
|
+
...output,
|
|
1204
|
+
body: await parseErrorBody(output.body, context)
|
|
1205
|
+
};
|
|
1206
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1207
|
+
switch (errorCode) {
|
|
1208
|
+
case "InternalServerException":
|
|
1209
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
1210
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1211
|
+
case "ResourceNotFoundException":
|
|
1212
|
+
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1213
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1214
|
+
case "ValidationException":
|
|
1215
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
1216
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1217
|
+
default:
|
|
1218
|
+
const parsedBody = parsedOutput.body;
|
|
1219
|
+
return throwDefaultError({
|
|
1220
|
+
output,
|
|
1221
|
+
parsedBody,
|
|
1222
|
+
errorCode
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
}, "de_ListAssociatedGroupsCommandError");
|
|
1226
|
+
var de_ListGroupResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1227
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1228
|
+
return de_ListGroupResourcesCommandError(output, context);
|
|
1229
|
+
}
|
|
1230
|
+
const contents = (0, import_smithy_client.map)({
|
|
1231
|
+
$metadata: deserializeMetadata(output)
|
|
1232
|
+
});
|
|
1233
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1234
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1235
|
+
NextToken: import_smithy_client.expectString,
|
|
1236
|
+
Resources: import_smithy_client._json
|
|
1237
|
+
});
|
|
1238
|
+
Object.assign(contents, doc);
|
|
1239
|
+
return contents;
|
|
1240
|
+
}, "de_ListGroupResourcesCommand");
|
|
1241
|
+
var de_ListGroupResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1242
|
+
const parsedOutput = {
|
|
1243
|
+
...output,
|
|
1244
|
+
body: await parseErrorBody(output.body, context)
|
|
1245
|
+
};
|
|
1246
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1247
|
+
switch (errorCode) {
|
|
1248
|
+
case "ConflictException":
|
|
1249
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
1250
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1251
|
+
case "InternalServerException":
|
|
1252
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
1253
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1254
|
+
case "ResourceNotFoundException":
|
|
1255
|
+
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1256
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1257
|
+
case "ValidationException":
|
|
1258
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
1259
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1260
|
+
default:
|
|
1261
|
+
const parsedBody = parsedOutput.body;
|
|
1262
|
+
return throwDefaultError({
|
|
1263
|
+
output,
|
|
1264
|
+
parsedBody,
|
|
1265
|
+
errorCode
|
|
1266
|
+
});
|
|
1267
|
+
}
|
|
1268
|
+
}, "de_ListGroupResourcesCommandError");
|
|
1269
|
+
var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1270
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1271
|
+
return de_ListGroupsCommandError(output, context);
|
|
1272
|
+
}
|
|
1273
|
+
const contents = (0, import_smithy_client.map)({
|
|
1274
|
+
$metadata: deserializeMetadata(output)
|
|
1275
|
+
});
|
|
1276
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1277
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1278
|
+
Groups: import_smithy_client._json,
|
|
1279
|
+
NextToken: import_smithy_client.expectString
|
|
1280
|
+
});
|
|
1281
|
+
Object.assign(contents, doc);
|
|
1282
|
+
return contents;
|
|
1283
|
+
}, "de_ListGroupsCommand");
|
|
1284
|
+
var de_ListGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1285
|
+
const parsedOutput = {
|
|
1286
|
+
...output,
|
|
1287
|
+
body: await parseErrorBody(output.body, context)
|
|
1288
|
+
};
|
|
1289
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
|
+
switch (errorCode) {
|
|
1291
|
+
case "InternalServerException":
|
|
1292
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
1293
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1294
|
+
case "ValidationException":
|
|
1295
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
1296
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1297
|
+
default:
|
|
1298
|
+
const parsedBody = parsedOutput.body;
|
|
1299
|
+
return throwDefaultError({
|
|
1300
|
+
output,
|
|
1301
|
+
parsedBody,
|
|
1302
|
+
errorCode
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
}, "de_ListGroupsCommandError");
|
|
1306
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1307
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1309
|
+
}
|
|
1310
|
+
const contents = (0, import_smithy_client.map)({
|
|
1311
|
+
$metadata: deserializeMetadata(output)
|
|
1312
|
+
});
|
|
1313
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1314
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1315
|
+
Tags: import_smithy_client._json
|
|
1316
|
+
});
|
|
1317
|
+
Object.assign(contents, doc);
|
|
1318
|
+
return contents;
|
|
1319
|
+
}, "de_ListTagsForResourceCommand");
|
|
1320
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1321
|
+
const parsedOutput = {
|
|
1322
|
+
...output,
|
|
1323
|
+
body: await parseErrorBody(output.body, context)
|
|
1324
|
+
};
|
|
1325
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
|
+
switch (errorCode) {
|
|
1327
|
+
case "BadRequestException":
|
|
1328
|
+
case "com.amazonaws.synthetics#BadRequestException":
|
|
1329
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1330
|
+
case "ConflictException":
|
|
1331
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
1332
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1333
|
+
case "InternalFailureException":
|
|
1334
|
+
case "com.amazonaws.synthetics#InternalFailureException":
|
|
1335
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1336
|
+
case "NotFoundException":
|
|
1337
|
+
case "com.amazonaws.synthetics#NotFoundException":
|
|
1338
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1339
|
+
case "TooManyRequestsException":
|
|
1340
|
+
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
1341
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1342
|
+
default:
|
|
1343
|
+
const parsedBody = parsedOutput.body;
|
|
1344
|
+
return throwDefaultError({
|
|
1345
|
+
output,
|
|
1346
|
+
parsedBody,
|
|
1347
|
+
errorCode
|
|
1348
|
+
});
|
|
1349
|
+
}
|
|
1350
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1351
|
+
var de_StartCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1352
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
|
+
return de_StartCanaryCommandError(output, context);
|
|
1354
|
+
}
|
|
1355
|
+
const contents = (0, import_smithy_client.map)({
|
|
1356
|
+
$metadata: deserializeMetadata(output)
|
|
1357
|
+
});
|
|
1358
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1359
|
+
return contents;
|
|
1360
|
+
}, "de_StartCanaryCommand");
|
|
1361
|
+
var de_StartCanaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1362
|
+
const parsedOutput = {
|
|
1363
|
+
...output,
|
|
1364
|
+
body: await parseErrorBody(output.body, context)
|
|
1365
|
+
};
|
|
1366
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
+
switch (errorCode) {
|
|
1368
|
+
case "ConflictException":
|
|
1369
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
1370
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1371
|
+
case "InternalServerException":
|
|
1372
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
1373
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1374
|
+
case "ResourceNotFoundException":
|
|
1375
|
+
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1376
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1377
|
+
case "ValidationException":
|
|
1378
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
1379
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1380
|
+
default:
|
|
1381
|
+
const parsedBody = parsedOutput.body;
|
|
1382
|
+
return throwDefaultError({
|
|
1383
|
+
output,
|
|
1384
|
+
parsedBody,
|
|
1385
|
+
errorCode
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
}, "de_StartCanaryCommandError");
|
|
1389
|
+
var de_StopCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1390
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1391
|
+
return de_StopCanaryCommandError(output, context);
|
|
1392
|
+
}
|
|
1393
|
+
const contents = (0, import_smithy_client.map)({
|
|
1394
|
+
$metadata: deserializeMetadata(output)
|
|
1395
|
+
});
|
|
1396
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1397
|
+
return contents;
|
|
1398
|
+
}, "de_StopCanaryCommand");
|
|
1399
|
+
var de_StopCanaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1400
|
+
const parsedOutput = {
|
|
1401
|
+
...output,
|
|
1402
|
+
body: await parseErrorBody(output.body, context)
|
|
1403
|
+
};
|
|
1404
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
|
+
switch (errorCode) {
|
|
1406
|
+
case "ConflictException":
|
|
1407
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
1408
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1409
|
+
case "InternalServerException":
|
|
1410
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
1411
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1412
|
+
case "ResourceNotFoundException":
|
|
1413
|
+
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1414
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1415
|
+
case "ValidationException":
|
|
1416
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
1417
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1418
|
+
default:
|
|
1419
|
+
const parsedBody = parsedOutput.body;
|
|
1420
|
+
return throwDefaultError({
|
|
1421
|
+
output,
|
|
1422
|
+
parsedBody,
|
|
1423
|
+
errorCode
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
}, "de_StopCanaryCommandError");
|
|
1427
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1428
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1429
|
+
return de_TagResourceCommandError(output, context);
|
|
1430
|
+
}
|
|
1431
|
+
const contents = (0, import_smithy_client.map)({
|
|
1432
|
+
$metadata: deserializeMetadata(output)
|
|
1433
|
+
});
|
|
1434
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1435
|
+
return contents;
|
|
1436
|
+
}, "de_TagResourceCommand");
|
|
1437
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1438
|
+
const parsedOutput = {
|
|
1439
|
+
...output,
|
|
1440
|
+
body: await parseErrorBody(output.body, context)
|
|
1441
|
+
};
|
|
1442
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
+
switch (errorCode) {
|
|
1444
|
+
case "BadRequestException":
|
|
1445
|
+
case "com.amazonaws.synthetics#BadRequestException":
|
|
1446
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1447
|
+
case "ConflictException":
|
|
1448
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
1449
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1450
|
+
case "InternalFailureException":
|
|
1451
|
+
case "com.amazonaws.synthetics#InternalFailureException":
|
|
1452
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1453
|
+
case "NotFoundException":
|
|
1454
|
+
case "com.amazonaws.synthetics#NotFoundException":
|
|
1455
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1456
|
+
case "TooManyRequestsException":
|
|
1457
|
+
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
1458
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1459
|
+
default:
|
|
1460
|
+
const parsedBody = parsedOutput.body;
|
|
1461
|
+
return throwDefaultError({
|
|
1462
|
+
output,
|
|
1463
|
+
parsedBody,
|
|
1464
|
+
errorCode
|
|
1465
|
+
});
|
|
1466
|
+
}
|
|
1467
|
+
}, "de_TagResourceCommandError");
|
|
1468
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1469
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1470
|
+
return de_UntagResourceCommandError(output, context);
|
|
1471
|
+
}
|
|
1472
|
+
const contents = (0, import_smithy_client.map)({
|
|
1473
|
+
$metadata: deserializeMetadata(output)
|
|
1474
|
+
});
|
|
1475
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1476
|
+
return contents;
|
|
1477
|
+
}, "de_UntagResourceCommand");
|
|
1478
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1479
|
+
const parsedOutput = {
|
|
1480
|
+
...output,
|
|
1481
|
+
body: await parseErrorBody(output.body, context)
|
|
1482
|
+
};
|
|
1483
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
+
switch (errorCode) {
|
|
1485
|
+
case "BadRequestException":
|
|
1486
|
+
case "com.amazonaws.synthetics#BadRequestException":
|
|
1487
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1488
|
+
case "ConflictException":
|
|
1489
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
1490
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1491
|
+
case "InternalFailureException":
|
|
1492
|
+
case "com.amazonaws.synthetics#InternalFailureException":
|
|
1493
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1494
|
+
case "NotFoundException":
|
|
1495
|
+
case "com.amazonaws.synthetics#NotFoundException":
|
|
1496
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1497
|
+
case "TooManyRequestsException":
|
|
1498
|
+
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
1499
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1500
|
+
default:
|
|
1501
|
+
const parsedBody = parsedOutput.body;
|
|
1502
|
+
return throwDefaultError({
|
|
1503
|
+
output,
|
|
1504
|
+
parsedBody,
|
|
1505
|
+
errorCode
|
|
1506
|
+
});
|
|
1507
|
+
}
|
|
1508
|
+
}, "de_UntagResourceCommandError");
|
|
1509
|
+
var de_UpdateCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1510
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1511
|
+
return de_UpdateCanaryCommandError(output, context);
|
|
1512
|
+
}
|
|
1513
|
+
const contents = (0, import_smithy_client.map)({
|
|
1514
|
+
$metadata: deserializeMetadata(output)
|
|
1515
|
+
});
|
|
1516
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1517
|
+
return contents;
|
|
1518
|
+
}, "de_UpdateCanaryCommand");
|
|
1519
|
+
var de_UpdateCanaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1520
|
+
const parsedOutput = {
|
|
1521
|
+
...output,
|
|
1522
|
+
body: await parseErrorBody(output.body, context)
|
|
1523
|
+
};
|
|
1524
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
|
+
switch (errorCode) {
|
|
1526
|
+
case "ConflictException":
|
|
1527
|
+
case "com.amazonaws.synthetics#ConflictException":
|
|
1528
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1529
|
+
case "InternalServerException":
|
|
1530
|
+
case "com.amazonaws.synthetics#InternalServerException":
|
|
1531
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1532
|
+
case "RequestEntityTooLargeException":
|
|
1533
|
+
case "com.amazonaws.synthetics#RequestEntityTooLargeException":
|
|
1534
|
+
throw await de_RequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
1535
|
+
case "ResourceNotFoundException":
|
|
1536
|
+
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1537
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1538
|
+
case "ValidationException":
|
|
1539
|
+
case "com.amazonaws.synthetics#ValidationException":
|
|
1540
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1541
|
+
default:
|
|
1542
|
+
const parsedBody = parsedOutput.body;
|
|
1543
|
+
return throwDefaultError({
|
|
1544
|
+
output,
|
|
1545
|
+
parsedBody,
|
|
1546
|
+
errorCode
|
|
1547
|
+
});
|
|
1548
|
+
}
|
|
1549
|
+
}, "de_UpdateCanaryCommandError");
|
|
1550
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(SyntheticsServiceException);
|
|
1551
|
+
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1552
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1553
|
+
const data = parsedOutput.body;
|
|
1554
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1555
|
+
Message: import_smithy_client.expectString
|
|
1556
|
+
});
|
|
1557
|
+
Object.assign(contents, doc);
|
|
1558
|
+
const exception = new BadRequestException({
|
|
1559
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1560
|
+
...contents
|
|
1561
|
+
});
|
|
1562
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1563
|
+
}, "de_BadRequestExceptionRes");
|
|
1564
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1565
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1566
|
+
const data = parsedOutput.body;
|
|
1567
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1568
|
+
Message: import_smithy_client.expectString
|
|
1569
|
+
});
|
|
1570
|
+
Object.assign(contents, doc);
|
|
1571
|
+
const exception = new ConflictException({
|
|
1572
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1573
|
+
...contents
|
|
1574
|
+
});
|
|
1575
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1576
|
+
}, "de_ConflictExceptionRes");
|
|
1577
|
+
var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1578
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1579
|
+
const data = parsedOutput.body;
|
|
1580
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1581
|
+
Message: import_smithy_client.expectString
|
|
1582
|
+
});
|
|
1583
|
+
Object.assign(contents, doc);
|
|
1584
|
+
const exception = new InternalFailureException({
|
|
1585
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1586
|
+
...contents
|
|
1587
|
+
});
|
|
1588
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1589
|
+
}, "de_InternalFailureExceptionRes");
|
|
1590
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1591
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1592
|
+
const data = parsedOutput.body;
|
|
1593
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1594
|
+
Message: import_smithy_client.expectString
|
|
1595
|
+
});
|
|
1596
|
+
Object.assign(contents, doc);
|
|
1597
|
+
const exception = new InternalServerException({
|
|
1598
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1599
|
+
...contents
|
|
1600
|
+
});
|
|
1601
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1602
|
+
}, "de_InternalServerExceptionRes");
|
|
1603
|
+
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1604
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1605
|
+
const data = parsedOutput.body;
|
|
1606
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1607
|
+
Message: import_smithy_client.expectString
|
|
1608
|
+
});
|
|
1609
|
+
Object.assign(contents, doc);
|
|
1610
|
+
const exception = new NotFoundException({
|
|
1611
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1612
|
+
...contents
|
|
1613
|
+
});
|
|
1614
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1615
|
+
}, "de_NotFoundExceptionRes");
|
|
1616
|
+
var de_RequestEntityTooLargeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1617
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1618
|
+
const data = parsedOutput.body;
|
|
1619
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1620
|
+
Message: import_smithy_client.expectString
|
|
1621
|
+
});
|
|
1622
|
+
Object.assign(contents, doc);
|
|
1623
|
+
const exception = new RequestEntityTooLargeException({
|
|
1624
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1625
|
+
...contents
|
|
1626
|
+
});
|
|
1627
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1628
|
+
}, "de_RequestEntityTooLargeExceptionRes");
|
|
1629
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1630
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1631
|
+
const data = parsedOutput.body;
|
|
1632
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1633
|
+
Message: import_smithy_client.expectString
|
|
1634
|
+
});
|
|
1635
|
+
Object.assign(contents, doc);
|
|
1636
|
+
const exception = new ResourceNotFoundException({
|
|
1637
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1638
|
+
...contents
|
|
1639
|
+
});
|
|
1640
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1641
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1642
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1643
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1644
|
+
const data = parsedOutput.body;
|
|
1645
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1646
|
+
Message: import_smithy_client.expectString
|
|
1647
|
+
});
|
|
1648
|
+
Object.assign(contents, doc);
|
|
1649
|
+
const exception = new ServiceQuotaExceededException({
|
|
1650
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1651
|
+
...contents
|
|
1652
|
+
});
|
|
1653
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1654
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1655
|
+
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1656
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1657
|
+
const data = parsedOutput.body;
|
|
1658
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1659
|
+
Message: import_smithy_client.expectString
|
|
1660
|
+
});
|
|
1661
|
+
Object.assign(contents, doc);
|
|
1662
|
+
const exception = new TooManyRequestsException({
|
|
1663
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1664
|
+
...contents
|
|
1665
|
+
});
|
|
1666
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1667
|
+
}, "de_TooManyRequestsExceptionRes");
|
|
1668
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1669
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1670
|
+
const data = parsedOutput.body;
|
|
1671
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1672
|
+
Message: import_smithy_client.expectString
|
|
1673
|
+
});
|
|
1674
|
+
Object.assign(contents, doc);
|
|
1675
|
+
const exception = new ValidationException({
|
|
1676
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1677
|
+
...contents
|
|
1678
|
+
});
|
|
1679
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1680
|
+
}, "de_ValidationExceptionRes");
|
|
1681
|
+
var se_CanaryCodeInput = /* @__PURE__ */ __name((input, context) => {
|
|
1682
|
+
return (0, import_smithy_client.take)(input, {
|
|
1683
|
+
Handler: [],
|
|
1684
|
+
S3Bucket: [],
|
|
1685
|
+
S3Key: [],
|
|
1686
|
+
S3Version: [],
|
|
1687
|
+
ZipFile: context.base64Encoder
|
|
1688
|
+
});
|
|
1689
|
+
}, "se_CanaryCodeInput");
|
|
1690
|
+
var de_Canaries = /* @__PURE__ */ __name((output, context) => {
|
|
1691
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1692
|
+
return de_Canary(entry, context);
|
|
1693
|
+
});
|
|
1694
|
+
return retVal;
|
|
1695
|
+
}, "de_Canaries");
|
|
1696
|
+
var de_CanariesLastRun = /* @__PURE__ */ __name((output, context) => {
|
|
1697
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1698
|
+
return de_CanaryLastRun(entry, context);
|
|
1699
|
+
});
|
|
1700
|
+
return retVal;
|
|
1701
|
+
}, "de_CanariesLastRun");
|
|
1702
|
+
var de_Canary = /* @__PURE__ */ __name((output, context) => {
|
|
1703
|
+
return (0, import_smithy_client.take)(output, {
|
|
1704
|
+
ArtifactConfig: import_smithy_client._json,
|
|
1705
|
+
ArtifactS3Location: import_smithy_client.expectString,
|
|
1706
|
+
Code: import_smithy_client._json,
|
|
1707
|
+
EngineArn: import_smithy_client.expectString,
|
|
1708
|
+
ExecutionRoleArn: import_smithy_client.expectString,
|
|
1709
|
+
FailureRetentionPeriodInDays: import_smithy_client.expectInt32,
|
|
1710
|
+
Id: import_smithy_client.expectString,
|
|
1711
|
+
Name: import_smithy_client.expectString,
|
|
1712
|
+
RunConfig: import_smithy_client._json,
|
|
1713
|
+
RuntimeVersion: import_smithy_client.expectString,
|
|
1714
|
+
Schedule: import_smithy_client._json,
|
|
1715
|
+
Status: import_smithy_client._json,
|
|
1716
|
+
SuccessRetentionPeriodInDays: import_smithy_client.expectInt32,
|
|
1717
|
+
Tags: import_smithy_client._json,
|
|
1718
|
+
Timeline: (_) => de_CanaryTimeline(_, context),
|
|
1719
|
+
VisualReference: import_smithy_client._json,
|
|
1720
|
+
VpcConfig: import_smithy_client._json
|
|
1721
|
+
});
|
|
1722
|
+
}, "de_Canary");
|
|
1723
|
+
var de_CanaryLastRun = /* @__PURE__ */ __name((output, context) => {
|
|
1724
|
+
return (0, import_smithy_client.take)(output, {
|
|
1725
|
+
CanaryName: import_smithy_client.expectString,
|
|
1726
|
+
LastRun: (_) => de_CanaryRun(_, context)
|
|
1727
|
+
});
|
|
1728
|
+
}, "de_CanaryLastRun");
|
|
1729
|
+
var de_CanaryRun = /* @__PURE__ */ __name((output, context) => {
|
|
1730
|
+
return (0, import_smithy_client.take)(output, {
|
|
1731
|
+
ArtifactS3Location: import_smithy_client.expectString,
|
|
1732
|
+
Id: import_smithy_client.expectString,
|
|
1733
|
+
Name: import_smithy_client.expectString,
|
|
1734
|
+
Status: import_smithy_client._json,
|
|
1735
|
+
Timeline: (_) => de_CanaryRunTimeline(_, context)
|
|
1736
|
+
});
|
|
1737
|
+
}, "de_CanaryRun");
|
|
1738
|
+
var de_CanaryRuns = /* @__PURE__ */ __name((output, context) => {
|
|
1739
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1740
|
+
return de_CanaryRun(entry, context);
|
|
1741
|
+
});
|
|
1742
|
+
return retVal;
|
|
1743
|
+
}, "de_CanaryRuns");
|
|
1744
|
+
var de_CanaryRunTimeline = /* @__PURE__ */ __name((output, context) => {
|
|
1745
|
+
return (0, import_smithy_client.take)(output, {
|
|
1746
|
+
Completed: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1747
|
+
Started: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1748
|
+
});
|
|
1749
|
+
}, "de_CanaryRunTimeline");
|
|
1750
|
+
var de_CanaryTimeline = /* @__PURE__ */ __name((output, context) => {
|
|
1751
|
+
return (0, import_smithy_client.take)(output, {
|
|
1752
|
+
Created: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1753
|
+
LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1754
|
+
LastStarted: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1755
|
+
LastStopped: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1756
|
+
});
|
|
1757
|
+
}, "de_CanaryTimeline");
|
|
1758
|
+
var de_Group = /* @__PURE__ */ __name((output, context) => {
|
|
1759
|
+
return (0, import_smithy_client.take)(output, {
|
|
1760
|
+
Arn: import_smithy_client.expectString,
|
|
1761
|
+
CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1762
|
+
Id: import_smithy_client.expectString,
|
|
1763
|
+
LastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1764
|
+
Name: import_smithy_client.expectString,
|
|
1765
|
+
Tags: import_smithy_client._json
|
|
1766
|
+
});
|
|
1767
|
+
}, "de_Group");
|
|
1768
|
+
var de_RuntimeVersion = /* @__PURE__ */ __name((output, context) => {
|
|
1769
|
+
return (0, import_smithy_client.take)(output, {
|
|
1770
|
+
DeprecationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1771
|
+
Description: import_smithy_client.expectString,
|
|
1772
|
+
ReleaseDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1773
|
+
VersionName: import_smithy_client.expectString
|
|
1774
|
+
});
|
|
1775
|
+
}, "de_RuntimeVersion");
|
|
1776
|
+
var de_RuntimeVersionList = /* @__PURE__ */ __name((output, context) => {
|
|
1777
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1778
|
+
return de_RuntimeVersion(entry, context);
|
|
1779
|
+
});
|
|
1780
|
+
return retVal;
|
|
1781
|
+
}, "de_RuntimeVersionList");
|
|
1782
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1783
|
+
httpStatusCode: output.statusCode,
|
|
1784
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1785
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1786
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1787
|
+
}), "deserializeMetadata");
|
|
1788
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1789
|
+
var _DL = "DeleteLambda";
|
|
1790
|
+
var _TK = "TagKeys";
|
|
1791
|
+
var _dL = "deleteLambda";
|
|
1792
|
+
var _tK = "tagKeys";
|
|
1793
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1794
|
+
if (encoded.length) {
|
|
1795
|
+
return JSON.parse(encoded);
|
|
1796
|
+
}
|
|
1797
|
+
return {};
|
|
1798
|
+
}), "parseBody");
|
|
1799
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1800
|
+
const value = await parseBody(errorBody, context);
|
|
1801
|
+
value.message = value.message ?? value.Message;
|
|
1802
|
+
return value;
|
|
1803
|
+
}, "parseErrorBody");
|
|
1804
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1805
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1806
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1807
|
+
let cleanValue = rawValue;
|
|
1808
|
+
if (typeof cleanValue === "number") {
|
|
1809
|
+
cleanValue = cleanValue.toString();
|
|
1810
|
+
}
|
|
1811
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1812
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1813
|
+
}
|
|
1814
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1815
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1816
|
+
}
|
|
1817
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1818
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1819
|
+
}
|
|
1820
|
+
return cleanValue;
|
|
1821
|
+
}, "sanitizeErrorCode");
|
|
1822
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1823
|
+
if (headerKey !== void 0) {
|
|
1824
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1825
|
+
}
|
|
1826
|
+
if (data.code !== void 0) {
|
|
1827
|
+
return sanitizeErrorCode(data.code);
|
|
1828
|
+
}
|
|
1829
|
+
if (data["__type"] !== void 0) {
|
|
1830
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1831
|
+
}
|
|
1832
|
+
}, "loadRestJsonErrorCode");
|
|
1833
|
+
|
|
1834
|
+
// src/commands/AssociateResourceCommand.ts
|
|
1835
|
+
var _AssociateResourceCommand = class _AssociateResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1836
|
+
...commonParams
|
|
1837
|
+
}).m(function(Command, cs, config, o) {
|
|
1838
|
+
return [
|
|
1839
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1840
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1841
|
+
];
|
|
1842
|
+
}).s("Synthetics", "AssociateResource", {}).n("SyntheticsClient", "AssociateResourceCommand").f(void 0, void 0).ser(se_AssociateResourceCommand).de(de_AssociateResourceCommand).build() {
|
|
1843
|
+
};
|
|
1844
|
+
__name(_AssociateResourceCommand, "AssociateResourceCommand");
|
|
1845
|
+
var AssociateResourceCommand = _AssociateResourceCommand;
|
|
1846
|
+
|
|
1847
|
+
// src/commands/CreateCanaryCommand.ts
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
var _CreateCanaryCommand = class _CreateCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1853
|
+
...commonParams
|
|
1854
|
+
}).m(function(Command, cs, config, o) {
|
|
1855
|
+
return [
|
|
1856
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1857
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1858
|
+
];
|
|
1859
|
+
}).s("Synthetics", "CreateCanary", {}).n("SyntheticsClient", "CreateCanaryCommand").f(void 0, void 0).ser(se_CreateCanaryCommand).de(de_CreateCanaryCommand).build() {
|
|
1860
|
+
};
|
|
1861
|
+
__name(_CreateCanaryCommand, "CreateCanaryCommand");
|
|
1862
|
+
var CreateCanaryCommand = _CreateCanaryCommand;
|
|
1863
|
+
|
|
1864
|
+
// src/commands/CreateGroupCommand.ts
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
var _CreateGroupCommand = class _CreateGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1870
|
+
...commonParams
|
|
1871
|
+
}).m(function(Command, cs, config, o) {
|
|
1872
|
+
return [
|
|
1873
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1874
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1875
|
+
];
|
|
1876
|
+
}).s("Synthetics", "CreateGroup", {}).n("SyntheticsClient", "CreateGroupCommand").f(void 0, void 0).ser(se_CreateGroupCommand).de(de_CreateGroupCommand).build() {
|
|
1877
|
+
};
|
|
1878
|
+
__name(_CreateGroupCommand, "CreateGroupCommand");
|
|
1879
|
+
var CreateGroupCommand = _CreateGroupCommand;
|
|
1880
|
+
|
|
1881
|
+
// src/commands/DeleteCanaryCommand.ts
|
|
1882
|
+
|
|
1883
|
+
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
var _DeleteCanaryCommand = class _DeleteCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1887
|
+
...commonParams
|
|
1888
|
+
}).m(function(Command, cs, config, o) {
|
|
1889
|
+
return [
|
|
1890
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1891
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1892
|
+
];
|
|
1893
|
+
}).s("Synthetics", "DeleteCanary", {}).n("SyntheticsClient", "DeleteCanaryCommand").f(void 0, void 0).ser(se_DeleteCanaryCommand).de(de_DeleteCanaryCommand).build() {
|
|
1894
|
+
};
|
|
1895
|
+
__name(_DeleteCanaryCommand, "DeleteCanaryCommand");
|
|
1896
|
+
var DeleteCanaryCommand = _DeleteCanaryCommand;
|
|
1897
|
+
|
|
1898
|
+
// src/commands/DeleteGroupCommand.ts
|
|
1899
|
+
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
var _DeleteGroupCommand = class _DeleteGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1904
|
+
...commonParams
|
|
1905
|
+
}).m(function(Command, cs, config, o) {
|
|
1906
|
+
return [
|
|
1907
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1908
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1909
|
+
];
|
|
1910
|
+
}).s("Synthetics", "DeleteGroup", {}).n("SyntheticsClient", "DeleteGroupCommand").f(void 0, void 0).ser(se_DeleteGroupCommand).de(de_DeleteGroupCommand).build() {
|
|
1911
|
+
};
|
|
1912
|
+
__name(_DeleteGroupCommand, "DeleteGroupCommand");
|
|
1913
|
+
var DeleteGroupCommand = _DeleteGroupCommand;
|
|
1914
|
+
|
|
1915
|
+
// src/commands/DescribeCanariesCommand.ts
|
|
1916
|
+
|
|
1917
|
+
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
var _DescribeCanariesCommand = class _DescribeCanariesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1921
|
+
...commonParams
|
|
1922
|
+
}).m(function(Command, cs, config, o) {
|
|
1923
|
+
return [
|
|
1924
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1925
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1926
|
+
];
|
|
1927
|
+
}).s("Synthetics", "DescribeCanaries", {}).n("SyntheticsClient", "DescribeCanariesCommand").f(void 0, void 0).ser(se_DescribeCanariesCommand).de(de_DescribeCanariesCommand).build() {
|
|
1928
|
+
};
|
|
1929
|
+
__name(_DescribeCanariesCommand, "DescribeCanariesCommand");
|
|
1930
|
+
var DescribeCanariesCommand = _DescribeCanariesCommand;
|
|
1931
|
+
|
|
1932
|
+
// src/commands/DescribeCanariesLastRunCommand.ts
|
|
1933
|
+
|
|
1934
|
+
|
|
1935
|
+
|
|
1936
|
+
|
|
1937
|
+
var _DescribeCanariesLastRunCommand = class _DescribeCanariesLastRunCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1938
|
+
...commonParams
|
|
1939
|
+
}).m(function(Command, cs, config, o) {
|
|
1940
|
+
return [
|
|
1941
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1942
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1943
|
+
];
|
|
1944
|
+
}).s("Synthetics", "DescribeCanariesLastRun", {}).n("SyntheticsClient", "DescribeCanariesLastRunCommand").f(void 0, void 0).ser(se_DescribeCanariesLastRunCommand).de(de_DescribeCanariesLastRunCommand).build() {
|
|
1945
|
+
};
|
|
1946
|
+
__name(_DescribeCanariesLastRunCommand, "DescribeCanariesLastRunCommand");
|
|
1947
|
+
var DescribeCanariesLastRunCommand = _DescribeCanariesLastRunCommand;
|
|
1948
|
+
|
|
1949
|
+
// src/commands/DescribeRuntimeVersionsCommand.ts
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
|
|
1954
|
+
var _DescribeRuntimeVersionsCommand = class _DescribeRuntimeVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1955
|
+
...commonParams
|
|
1956
|
+
}).m(function(Command, cs, config, o) {
|
|
1957
|
+
return [
|
|
1958
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1959
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1960
|
+
];
|
|
1961
|
+
}).s("Synthetics", "DescribeRuntimeVersions", {}).n("SyntheticsClient", "DescribeRuntimeVersionsCommand").f(void 0, void 0).ser(se_DescribeRuntimeVersionsCommand).de(de_DescribeRuntimeVersionsCommand).build() {
|
|
1962
|
+
};
|
|
1963
|
+
__name(_DescribeRuntimeVersionsCommand, "DescribeRuntimeVersionsCommand");
|
|
1964
|
+
var DescribeRuntimeVersionsCommand = _DescribeRuntimeVersionsCommand;
|
|
1965
|
+
|
|
1966
|
+
// src/commands/DisassociateResourceCommand.ts
|
|
1967
|
+
|
|
1968
|
+
|
|
1969
|
+
|
|
1970
|
+
|
|
1971
|
+
var _DisassociateResourceCommand = class _DisassociateResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1972
|
+
...commonParams
|
|
1973
|
+
}).m(function(Command, cs, config, o) {
|
|
1974
|
+
return [
|
|
1975
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1976
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1977
|
+
];
|
|
1978
|
+
}).s("Synthetics", "DisassociateResource", {}).n("SyntheticsClient", "DisassociateResourceCommand").f(void 0, void 0).ser(se_DisassociateResourceCommand).de(de_DisassociateResourceCommand).build() {
|
|
1979
|
+
};
|
|
1980
|
+
__name(_DisassociateResourceCommand, "DisassociateResourceCommand");
|
|
1981
|
+
var DisassociateResourceCommand = _DisassociateResourceCommand;
|
|
1982
|
+
|
|
1983
|
+
// src/commands/GetCanaryCommand.ts
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
|
|
1987
|
+
|
|
1988
|
+
var _GetCanaryCommand = class _GetCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1989
|
+
...commonParams
|
|
1990
|
+
}).m(function(Command, cs, config, o) {
|
|
1991
|
+
return [
|
|
1992
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1993
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1994
|
+
];
|
|
1995
|
+
}).s("Synthetics", "GetCanary", {}).n("SyntheticsClient", "GetCanaryCommand").f(void 0, void 0).ser(se_GetCanaryCommand).de(de_GetCanaryCommand).build() {
|
|
1996
|
+
};
|
|
1997
|
+
__name(_GetCanaryCommand, "GetCanaryCommand");
|
|
1998
|
+
var GetCanaryCommand = _GetCanaryCommand;
|
|
1999
|
+
|
|
2000
|
+
// src/commands/GetCanaryRunsCommand.ts
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
|
|
2004
|
+
|
|
2005
|
+
var _GetCanaryRunsCommand = class _GetCanaryRunsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2006
|
+
...commonParams
|
|
2007
|
+
}).m(function(Command, cs, config, o) {
|
|
2008
|
+
return [
|
|
2009
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2010
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2011
|
+
];
|
|
2012
|
+
}).s("Synthetics", "GetCanaryRuns", {}).n("SyntheticsClient", "GetCanaryRunsCommand").f(void 0, void 0).ser(se_GetCanaryRunsCommand).de(de_GetCanaryRunsCommand).build() {
|
|
2013
|
+
};
|
|
2014
|
+
__name(_GetCanaryRunsCommand, "GetCanaryRunsCommand");
|
|
2015
|
+
var GetCanaryRunsCommand = _GetCanaryRunsCommand;
|
|
2016
|
+
|
|
2017
|
+
// src/commands/GetGroupCommand.ts
|
|
2018
|
+
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
|
|
2022
|
+
var _GetGroupCommand = class _GetGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2023
|
+
...commonParams
|
|
2024
|
+
}).m(function(Command, cs, config, o) {
|
|
2025
|
+
return [
|
|
2026
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2027
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2028
|
+
];
|
|
2029
|
+
}).s("Synthetics", "GetGroup", {}).n("SyntheticsClient", "GetGroupCommand").f(void 0, void 0).ser(se_GetGroupCommand).de(de_GetGroupCommand).build() {
|
|
2030
|
+
};
|
|
2031
|
+
__name(_GetGroupCommand, "GetGroupCommand");
|
|
2032
|
+
var GetGroupCommand = _GetGroupCommand;
|
|
2033
|
+
|
|
2034
|
+
// src/commands/ListAssociatedGroupsCommand.ts
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
|
|
2038
|
+
|
|
2039
|
+
var _ListAssociatedGroupsCommand = class _ListAssociatedGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2040
|
+
...commonParams
|
|
2041
|
+
}).m(function(Command, cs, config, o) {
|
|
2042
|
+
return [
|
|
2043
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2044
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2045
|
+
];
|
|
2046
|
+
}).s("Synthetics", "ListAssociatedGroups", {}).n("SyntheticsClient", "ListAssociatedGroupsCommand").f(void 0, void 0).ser(se_ListAssociatedGroupsCommand).de(de_ListAssociatedGroupsCommand).build() {
|
|
2047
|
+
};
|
|
2048
|
+
__name(_ListAssociatedGroupsCommand, "ListAssociatedGroupsCommand");
|
|
2049
|
+
var ListAssociatedGroupsCommand = _ListAssociatedGroupsCommand;
|
|
2050
|
+
|
|
2051
|
+
// src/commands/ListGroupResourcesCommand.ts
|
|
2052
|
+
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
var _ListGroupResourcesCommand = class _ListGroupResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2057
|
+
...commonParams
|
|
2058
|
+
}).m(function(Command, cs, config, o) {
|
|
2059
|
+
return [
|
|
2060
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2061
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2062
|
+
];
|
|
2063
|
+
}).s("Synthetics", "ListGroupResources", {}).n("SyntheticsClient", "ListGroupResourcesCommand").f(void 0, void 0).ser(se_ListGroupResourcesCommand).de(de_ListGroupResourcesCommand).build() {
|
|
2064
|
+
};
|
|
2065
|
+
__name(_ListGroupResourcesCommand, "ListGroupResourcesCommand");
|
|
2066
|
+
var ListGroupResourcesCommand = _ListGroupResourcesCommand;
|
|
2067
|
+
|
|
2068
|
+
// src/commands/ListGroupsCommand.ts
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
var _ListGroupsCommand = class _ListGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2074
|
+
...commonParams
|
|
2075
|
+
}).m(function(Command, cs, config, o) {
|
|
2076
|
+
return [
|
|
2077
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2078
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2079
|
+
];
|
|
2080
|
+
}).s("Synthetics", "ListGroups", {}).n("SyntheticsClient", "ListGroupsCommand").f(void 0, void 0).ser(se_ListGroupsCommand).de(de_ListGroupsCommand).build() {
|
|
2081
|
+
};
|
|
2082
|
+
__name(_ListGroupsCommand, "ListGroupsCommand");
|
|
2083
|
+
var ListGroupsCommand = _ListGroupsCommand;
|
|
2084
|
+
|
|
2085
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2091
|
+
...commonParams
|
|
2092
|
+
}).m(function(Command, cs, config, o) {
|
|
2093
|
+
return [
|
|
2094
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2095
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2096
|
+
];
|
|
2097
|
+
}).s("Synthetics", "ListTagsForResource", {}).n("SyntheticsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
2098
|
+
};
|
|
2099
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
2100
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
2101
|
+
|
|
2102
|
+
// src/commands/StartCanaryCommand.ts
|
|
2103
|
+
|
|
2104
|
+
|
|
2105
|
+
|
|
2106
|
+
|
|
2107
|
+
var _StartCanaryCommand = class _StartCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2108
|
+
...commonParams
|
|
2109
|
+
}).m(function(Command, cs, config, o) {
|
|
2110
|
+
return [
|
|
2111
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2112
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2113
|
+
];
|
|
2114
|
+
}).s("Synthetics", "StartCanary", {}).n("SyntheticsClient", "StartCanaryCommand").f(void 0, void 0).ser(se_StartCanaryCommand).de(de_StartCanaryCommand).build() {
|
|
2115
|
+
};
|
|
2116
|
+
__name(_StartCanaryCommand, "StartCanaryCommand");
|
|
2117
|
+
var StartCanaryCommand = _StartCanaryCommand;
|
|
2118
|
+
|
|
2119
|
+
// src/commands/StopCanaryCommand.ts
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
|
|
2123
|
+
|
|
2124
|
+
var _StopCanaryCommand = class _StopCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2125
|
+
...commonParams
|
|
2126
|
+
}).m(function(Command, cs, config, o) {
|
|
2127
|
+
return [
|
|
2128
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2129
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2130
|
+
];
|
|
2131
|
+
}).s("Synthetics", "StopCanary", {}).n("SyntheticsClient", "StopCanaryCommand").f(void 0, void 0).ser(se_StopCanaryCommand).de(de_StopCanaryCommand).build() {
|
|
2132
|
+
};
|
|
2133
|
+
__name(_StopCanaryCommand, "StopCanaryCommand");
|
|
2134
|
+
var StopCanaryCommand = _StopCanaryCommand;
|
|
2135
|
+
|
|
2136
|
+
// src/commands/TagResourceCommand.ts
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
|
|
2140
|
+
|
|
2141
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2142
|
+
...commonParams
|
|
2143
|
+
}).m(function(Command, cs, config, o) {
|
|
2144
|
+
return [
|
|
2145
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2146
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2147
|
+
];
|
|
2148
|
+
}).s("Synthetics", "TagResource", {}).n("SyntheticsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2149
|
+
};
|
|
2150
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
2151
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
2152
|
+
|
|
2153
|
+
// src/commands/UntagResourceCommand.ts
|
|
2154
|
+
|
|
2155
|
+
|
|
2156
|
+
|
|
2157
|
+
|
|
2158
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2159
|
+
...commonParams
|
|
2160
|
+
}).m(function(Command, cs, config, o) {
|
|
2161
|
+
return [
|
|
2162
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2163
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2164
|
+
];
|
|
2165
|
+
}).s("Synthetics", "UntagResource", {}).n("SyntheticsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2166
|
+
};
|
|
2167
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
2168
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
2169
|
+
|
|
2170
|
+
// src/commands/UpdateCanaryCommand.ts
|
|
2171
|
+
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
var _UpdateCanaryCommand = class _UpdateCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2176
|
+
...commonParams
|
|
2177
|
+
}).m(function(Command, cs, config, o) {
|
|
2178
|
+
return [
|
|
2179
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2180
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2181
|
+
];
|
|
2182
|
+
}).s("Synthetics", "UpdateCanary", {}).n("SyntheticsClient", "UpdateCanaryCommand").f(void 0, void 0).ser(se_UpdateCanaryCommand).de(de_UpdateCanaryCommand).build() {
|
|
2183
|
+
};
|
|
2184
|
+
__name(_UpdateCanaryCommand, "UpdateCanaryCommand");
|
|
2185
|
+
var UpdateCanaryCommand = _UpdateCanaryCommand;
|
|
2186
|
+
|
|
2187
|
+
// src/Synthetics.ts
|
|
2188
|
+
var commands = {
|
|
2189
|
+
AssociateResourceCommand,
|
|
2190
|
+
CreateCanaryCommand,
|
|
2191
|
+
CreateGroupCommand,
|
|
2192
|
+
DeleteCanaryCommand,
|
|
2193
|
+
DeleteGroupCommand,
|
|
2194
|
+
DescribeCanariesCommand,
|
|
2195
|
+
DescribeCanariesLastRunCommand,
|
|
2196
|
+
DescribeRuntimeVersionsCommand,
|
|
2197
|
+
DisassociateResourceCommand,
|
|
2198
|
+
GetCanaryCommand,
|
|
2199
|
+
GetCanaryRunsCommand,
|
|
2200
|
+
GetGroupCommand,
|
|
2201
|
+
ListAssociatedGroupsCommand,
|
|
2202
|
+
ListGroupResourcesCommand,
|
|
2203
|
+
ListGroupsCommand,
|
|
2204
|
+
ListTagsForResourceCommand,
|
|
2205
|
+
StartCanaryCommand,
|
|
2206
|
+
StopCanaryCommand,
|
|
2207
|
+
TagResourceCommand,
|
|
2208
|
+
UntagResourceCommand,
|
|
2209
|
+
UpdateCanaryCommand
|
|
2210
|
+
};
|
|
2211
|
+
var _Synthetics = class _Synthetics extends SyntheticsClient {
|
|
2212
|
+
};
|
|
2213
|
+
__name(_Synthetics, "Synthetics");
|
|
2214
|
+
var Synthetics = _Synthetics;
|
|
2215
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Synthetics);
|
|
2216
|
+
|
|
2217
|
+
// src/pagination/DescribeCanariesLastRunPaginator.ts
|
|
2218
|
+
|
|
2219
|
+
var paginateDescribeCanariesLastRun = (0, import_core.createPaginator)(SyntheticsClient, DescribeCanariesLastRunCommand, "NextToken", "NextToken", "MaxResults");
|
|
2220
|
+
|
|
2221
|
+
// src/pagination/DescribeCanariesPaginator.ts
|
|
2222
|
+
|
|
2223
|
+
var paginateDescribeCanaries = (0, import_core.createPaginator)(SyntheticsClient, DescribeCanariesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2224
|
+
|
|
2225
|
+
// src/pagination/DescribeRuntimeVersionsPaginator.ts
|
|
2226
|
+
|
|
2227
|
+
var paginateDescribeRuntimeVersions = (0, import_core.createPaginator)(SyntheticsClient, DescribeRuntimeVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2228
|
+
|
|
2229
|
+
// src/pagination/GetCanaryRunsPaginator.ts
|
|
2230
|
+
|
|
2231
|
+
var paginateGetCanaryRuns = (0, import_core.createPaginator)(SyntheticsClient, GetCanaryRunsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2232
|
+
|
|
2233
|
+
// src/pagination/ListAssociatedGroupsPaginator.ts
|
|
2234
|
+
|
|
2235
|
+
var paginateListAssociatedGroups = (0, import_core.createPaginator)(SyntheticsClient, ListAssociatedGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2236
|
+
|
|
2237
|
+
// src/pagination/ListGroupResourcesPaginator.ts
|
|
2238
|
+
|
|
2239
|
+
var paginateListGroupResources = (0, import_core.createPaginator)(SyntheticsClient, ListGroupResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2240
|
+
|
|
2241
|
+
// src/pagination/ListGroupsPaginator.ts
|
|
2242
|
+
|
|
2243
|
+
var paginateListGroups = (0, import_core.createPaginator)(SyntheticsClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2244
|
+
|
|
2245
|
+
// src/index.ts
|
|
2246
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2247
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2248
|
+
0 && (module.exports = {
|
|
2249
|
+
AssociateResourceCommand,
|
|
2250
|
+
BadRequestException,
|
|
2251
|
+
CanaryRunState,
|
|
2252
|
+
CanaryRunStateReasonCode,
|
|
2253
|
+
CanaryState,
|
|
2254
|
+
CanaryStateReasonCode,
|
|
2255
|
+
ConflictException,
|
|
2256
|
+
CreateCanaryCommand,
|
|
2257
|
+
CreateGroupCommand,
|
|
2258
|
+
DeleteCanaryCommand,
|
|
2259
|
+
DeleteGroupCommand,
|
|
2260
|
+
DescribeCanariesCommand,
|
|
2261
|
+
DescribeCanariesLastRunCommand,
|
|
2262
|
+
DescribeRuntimeVersionsCommand,
|
|
2263
|
+
DisassociateResourceCommand,
|
|
2264
|
+
EncryptionMode,
|
|
2265
|
+
GetCanaryCommand,
|
|
2266
|
+
GetCanaryRunsCommand,
|
|
2267
|
+
GetGroupCommand,
|
|
2268
|
+
InternalFailureException,
|
|
2269
|
+
InternalServerException,
|
|
2270
|
+
ListAssociatedGroupsCommand,
|
|
2271
|
+
ListGroupResourcesCommand,
|
|
2272
|
+
ListGroupsCommand,
|
|
2273
|
+
ListTagsForResourceCommand,
|
|
2274
|
+
NotFoundException,
|
|
2275
|
+
RequestEntityTooLargeException,
|
|
2276
|
+
ResourceNotFoundException,
|
|
2277
|
+
ServiceQuotaExceededException,
|
|
2278
|
+
StartCanaryCommand,
|
|
2279
|
+
StopCanaryCommand,
|
|
2280
|
+
Synthetics,
|
|
2281
|
+
SyntheticsClient,
|
|
2282
|
+
SyntheticsServiceException,
|
|
2283
|
+
TagResourceCommand,
|
|
2284
|
+
TooManyRequestsException,
|
|
2285
|
+
UntagResourceCommand,
|
|
2286
|
+
UpdateCanaryCommand,
|
|
2287
|
+
ValidationException,
|
|
2288
|
+
__Client,
|
|
2289
|
+
paginateDescribeCanaries,
|
|
2290
|
+
paginateDescribeCanariesLastRun,
|
|
2291
|
+
paginateDescribeRuntimeVersions,
|
|
2292
|
+
paginateGetCanaryRuns,
|
|
2293
|
+
paginateListAssociatedGroups,
|
|
2294
|
+
paginateListGroupResources,
|
|
2295
|
+
paginateListGroups
|
|
2296
|
+
});
|