@aws-sdk/client-synthetics 3.1075.0 → 3.1077.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultSyntheticsHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AssociateResource$, CreateCanary$, CreateGroup$, DeleteCanary$, DeleteGroup$, DescribeCanaries$, DescribeCanariesLastRun$, DescribeRuntimeVersions$, DisassociateResource$, GetCanary$, GetCanaryRuns$, GetGroup$, ListAssociatedGroups$, ListGroupResources$, ListGroups$, ListTagsForResource$, StartCanary$, StartCanaryDryRun$, StopCanary$, TagResource$, UntagResource$, UpdateCanary$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { SyntheticsServiceException } = require("./models/SyntheticsServiceException");
18
- exports.SyntheticsServiceException = SyntheticsServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultSyntheticsHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "synthetics",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultSyntheticsHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,1097 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://synthetics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://synthetics-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://synthetics.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://synthetics.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class SyntheticsServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, SyntheticsServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class AccessDeniedException extends SyntheticsServiceException {
141
+ name = "AccessDeniedException";
142
+ $fault = "client";
143
+ Message;
144
+ constructor(opts) {
145
+ super({
146
+ name: "AccessDeniedException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
151
+ this.Message = opts.Message;
152
+ }
153
+ }
154
+ class ConflictException extends SyntheticsServiceException {
155
+ name = "ConflictException";
156
+ $fault = "client";
157
+ Message;
158
+ constructor(opts) {
159
+ super({
160
+ name: "ConflictException",
161
+ $fault: "client",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, ConflictException.prototype);
165
+ this.Message = opts.Message;
166
+ }
167
+ }
168
+ class InternalServerException extends SyntheticsServiceException {
169
+ name = "InternalServerException";
170
+ $fault = "server";
171
+ Message;
172
+ constructor(opts) {
173
+ super({
174
+ name: "InternalServerException",
175
+ $fault: "server",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, InternalServerException.prototype);
179
+ this.Message = opts.Message;
180
+ }
181
+ }
182
+ class ResourceNotFoundException extends SyntheticsServiceException {
183
+ name = "ResourceNotFoundException";
184
+ $fault = "client";
185
+ Message;
186
+ constructor(opts) {
187
+ super({
188
+ name: "ResourceNotFoundException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
193
+ this.Message = opts.Message;
194
+ }
195
+ }
196
+ class ServiceQuotaExceededException extends SyntheticsServiceException {
197
+ name = "ServiceQuotaExceededException";
198
+ $fault = "client";
199
+ Message;
200
+ constructor(opts) {
201
+ super({
202
+ name: "ServiceQuotaExceededException",
203
+ $fault: "client",
204
+ ...opts,
205
+ });
206
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
207
+ this.Message = opts.Message;
208
+ }
209
+ }
210
+ class ValidationException extends SyntheticsServiceException {
211
+ name = "ValidationException";
212
+ $fault = "client";
213
+ Message;
214
+ constructor(opts) {
215
+ super({
216
+ name: "ValidationException",
217
+ $fault: "client",
218
+ ...opts,
219
+ });
220
+ Object.setPrototypeOf(this, ValidationException.prototype);
221
+ this.Message = opts.Message;
222
+ }
223
+ }
224
+ class BadRequestException extends SyntheticsServiceException {
225
+ name = "BadRequestException";
226
+ $fault = "client";
227
+ Message;
228
+ constructor(opts) {
229
+ super({
230
+ name: "BadRequestException",
231
+ $fault: "client",
232
+ ...opts,
233
+ });
234
+ Object.setPrototypeOf(this, BadRequestException.prototype);
235
+ this.Message = opts.Message;
236
+ }
237
+ }
238
+ class RequestEntityTooLargeException extends SyntheticsServiceException {
239
+ name = "RequestEntityTooLargeException";
240
+ $fault = "client";
241
+ Message;
242
+ constructor(opts) {
243
+ super({
244
+ name: "RequestEntityTooLargeException",
245
+ $fault: "client",
246
+ ...opts,
247
+ });
248
+ Object.setPrototypeOf(this, RequestEntityTooLargeException.prototype);
249
+ this.Message = opts.Message;
250
+ }
251
+ }
252
+ class InternalFailureException extends SyntheticsServiceException {
253
+ name = "InternalFailureException";
254
+ $fault = "server";
255
+ Message;
256
+ constructor(opts) {
257
+ super({
258
+ name: "InternalFailureException",
259
+ $fault: "server",
260
+ ...opts,
261
+ });
262
+ Object.setPrototypeOf(this, InternalFailureException.prototype);
263
+ this.Message = opts.Message;
264
+ }
265
+ }
266
+ class NotFoundException extends SyntheticsServiceException {
267
+ name = "NotFoundException";
268
+ $fault = "client";
269
+ Message;
270
+ constructor(opts) {
271
+ super({
272
+ name: "NotFoundException",
273
+ $fault: "client",
274
+ ...opts,
275
+ });
276
+ Object.setPrototypeOf(this, NotFoundException.prototype);
277
+ this.Message = opts.Message;
278
+ }
279
+ }
280
+ class TooManyRequestsException extends SyntheticsServiceException {
281
+ name = "TooManyRequestsException";
282
+ $fault = "client";
283
+ Message;
284
+ constructor(opts) {
285
+ super({
286
+ name: "TooManyRequestsException",
287
+ $fault: "client",
288
+ ...opts,
289
+ });
290
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
291
+ this.Message = opts.Message;
292
+ }
293
+ }
294
+
295
+ const _A = "Arn";
296
+ const _AC = "ArtifactConfig";
297
+ const _ACI = "ArtifactConfigInput";
298
+ const _ACO = "ArtifactConfigOutput";
299
+ const _ADE = "AccessDeniedException";
300
+ const _AR = "AssociateResource";
301
+ const _ARL = "AddReplicaLocations";
302
+ const _ARLI = "AddReplicaLocationInput";
303
+ const _ARR = "AssociateResourceRequest";
304
+ const _ARRs = "AssociateResourceResponse";
305
+ const _ASL = "ArtifactS3Location";
306
+ const _AT = "ActiveTracing";
307
+ const _BC = "BrowserConfig";
308
+ const _BCRI = "BaseCanaryRunId";
309
+ const _BCr = "BrowserConfigs";
310
+ const _BRE = "BadRequestException";
311
+ const _BS = "BaseScreenshot";
312
+ const _BSa = "BaseScreenshots";
313
+ const _BT = "BrowserType";
314
+ const _BTl = "BlueprintTypes";
315
+ const _C = "Canary";
316
+ const _CC = "CreateCanary";
317
+ const _CCI = "CanaryCodeInput";
318
+ const _CCO = "CanaryCodeOutput";
319
+ const _CCR = "CreateCanaryRequest";
320
+ const _CCRr = "CreateCanaryResponse";
321
+ const _CDRCO = "CanaryDryRunConfigOutput";
322
+ const _CE = "ConflictException";
323
+ const _CG = "CreateGroup";
324
+ const _CGR = "CreateGroupRequest";
325
+ const _CGRr = "CreateGroupResponse";
326
+ const _CLR = "CanaryLastRun";
327
+ const _CLRa = "CanariesLastRun";
328
+ const _CN = "CanaryName";
329
+ const _CR = "CanaryRun";
330
+ const _CRCI = "CanaryRunConfigInput";
331
+ const _CRCO = "CanaryRunConfigOutput";
332
+ const _CRS = "CanaryRunStatus";
333
+ const _CRT = "CanaryRunTimeline";
334
+ const _CRa = "CanaryRuns";
335
+ const _CS = "CanaryStatus";
336
+ const _CSI = "CanaryScheduleInput";
337
+ const _CSO = "CanaryScheduleOutput";
338
+ const _CSa = "CanaryState";
339
+ const _CT = "CanaryTimeline";
340
+ const _CTr = "CreatedTime";
341
+ const _Ca = "Canaries";
342
+ const _Co = "Code";
343
+ const _Com = "Completed";
344
+ const _Cr = "Created";
345
+ const _D = "Dependencies";
346
+ const _DC = "DeleteCanary";
347
+ const _DCLR = "DescribeCanariesLastRun";
348
+ const _DCLRR = "DescribeCanariesLastRunRequest";
349
+ const _DCLRRe = "DescribeCanariesLastRunResponse";
350
+ const _DCR = "DeleteCanaryRequest";
351
+ const _DCRe = "DeleteCanaryResponse";
352
+ const _DCRes = "DescribeCanariesRequest";
353
+ const _DCResc = "DescribeCanariesResponse";
354
+ const _DCe = "DescribeCanaries";
355
+ const _DD = "DeprecationDate";
356
+ const _DG = "DeleteGroup";
357
+ const _DGR = "DeleteGroupRequest";
358
+ const _DGRe = "DeleteGroupResponse";
359
+ const _DIS = "DurationInSeconds";
360
+ const _DL = "DeleteLambda";
361
+ const _DR = "DisassociateResource";
362
+ const _DRC = "DryRunConfig";
363
+ const _DRCO = "DryRunConfigOutput";
364
+ const _DRI = "DryRunId";
365
+ const _DRR = "DisassociateResourceRequest";
366
+ const _DRRi = "DisassociateResourceResponse";
367
+ const _DRV = "DescribeRuntimeVersions";
368
+ const _DRVR = "DescribeRuntimeVersionsRequest";
369
+ const _DRVRe = "DescribeRuntimeVersionsResponse";
370
+ const _De = "Dependency";
371
+ const _Des = "Description";
372
+ const _E = "Expression";
373
+ const _EA = "EngineArn";
374
+ const _EC = "EngineConfigs";
375
+ const _ECn = "EngineConfig";
376
+ const _EM = "EncryptionMode";
377
+ const _ERA = "ExecutionRoleArn";
378
+ const _ES = "EphemeralStorage";
379
+ const _EV = "EnvironmentVariables";
380
+ const _FRPID = "FailureRetentionPeriodInDays";
381
+ const _G = "Group";
382
+ const _GC = "GetCanary";
383
+ const _GCR = "GetCanaryRequest";
384
+ const _GCRR = "GetCanaryRunsRequest";
385
+ const _GCRRe = "GetCanaryRunsResponse";
386
+ const _GCRe = "GetCanaryResponse";
387
+ const _GCRet = "GetCanaryRuns";
388
+ const _GG = "GetGroup";
389
+ const _GGR = "GetGroupRequest";
390
+ const _GGRe = "GetGroupResponse";
391
+ const _GI = "GroupIdentifier";
392
+ const _GS = "GroupSummary";
393
+ const _GSL = "GroupSummaryList";
394
+ const _Gr = "Groups";
395
+ const _H = "Handler";
396
+ const _I = "Id";
397
+ const _IAFDS = "Ipv6AllowedForDualStack";
398
+ const _IC = "IgnoreCoordinates";
399
+ const _IFE = "InternalFailureException";
400
+ const _ISE = "InternalServerException";
401
+ const _KKA = "KmsKeyArn";
402
+ const _L = "Location";
403
+ const _LAG = "ListAssociatedGroups";
404
+ const _LAGR = "ListAssociatedGroupsRequest";
405
+ const _LAGRi = "ListAssociatedGroupsResponse";
406
+ const _LDRES = "LastDryRunExecutionStatus";
407
+ const _LG = "ListGroups";
408
+ const _LGR = "ListGroupsRequest";
409
+ const _LGRR = "ListGroupResourcesRequest";
410
+ const _LGRRi = "ListGroupResourcesResponse";
411
+ const _LGRi = "ListGroupsResponse";
412
+ const _LGRis = "ListGroupResources";
413
+ const _LM = "LastModified";
414
+ const _LMT = "LastModifiedTime";
415
+ const _LR = "LastRun";
416
+ const _LS = "LastStarted";
417
+ const _LSa = "LastStopped";
418
+ const _LT = "LocationType";
419
+ const _LTFR = "ListTagsForResource";
420
+ const _LTFRR = "ListTagsForResourceRequest";
421
+ const _LTFRRi = "ListTagsForResourceResponse";
422
+ const _M = "Message";
423
+ const _MIMB = "MemoryInMB";
424
+ const _MLC = "MultiLocationConfig";
425
+ const _MR = "MaxResults";
426
+ const _MRa = "MaxRetries";
427
+ const _MTFRAR = "MetricTimestampForRunAndRetries";
428
+ const _N = "Name";
429
+ const _NFE = "NotFoundException";
430
+ const _NT = "NextToken";
431
+ const _Na = "Names";
432
+ const _PL = "PrimaryLocation";
433
+ const _PRC = "ProvisionedResourceCleanup";
434
+ const _R = "Reference";
435
+ const _RA = "ResourceArn";
436
+ const _RAe = "RetryAttempt";
437
+ const _RC = "RunConfig";
438
+ const _RCI = "RetryConfigInput";
439
+ const _RCO = "RetryConfigOutput";
440
+ const _RCe = "RetryConfig";
441
+ const _RD = "ReleaseDate";
442
+ const _RETLE = "RequestEntityTooLargeException";
443
+ const _RNFE = "ResourceNotFoundException";
444
+ const _RRL = "RemoveReplicaLocations";
445
+ const _RS = "ReplicationState";
446
+ const _RSe = "ReplicationStatus";
447
+ const _RT = "RunType";
448
+ const _RTRT = "ResourcesToReplicateTags";
449
+ const _RV = "RuntimeVersion";
450
+ const _RVL = "RuntimeVersionList";
451
+ const _RVu = "RuntimeVersions";
452
+ const _Re = "Resources";
453
+ const _Rep = "Replicas";
454
+ const _Repl = "Replica";
455
+ const _S = "Schedule";
456
+ const _SB = "S3Bucket";
457
+ const _SC = "StartCanary";
458
+ const _SCDR = "StartCanaryDryRun";
459
+ const _SCDRR = "StartCanaryDryRunRequest";
460
+ const _SCDRRt = "StartCanaryDryRunResponse";
461
+ const _SCR = "StartCanaryRequest";
462
+ const _SCRt = "StartCanaryResponse";
463
+ const _SCRto = "StopCanaryRequest";
464
+ const _SCRtop = "StopCanaryResponse";
465
+ const _SCt = "StopCanary";
466
+ const _SE = "S3Encryption";
467
+ const _SEC = "S3EncryptionConfig";
468
+ const _SGI = "SecurityGroupIds";
469
+ const _SI = "SubnetIds";
470
+ const _SK = "S3Key";
471
+ const _SLA = "SourceLocationArn";
472
+ const _SN = "ScreenshotName";
473
+ const _SQEE = "ServiceQuotaExceededException";
474
+ const _SR = "StateReason";
475
+ const _SRC = "StateReasonCode";
476
+ const _SRI = "ScheduledRunId";
477
+ const _SRPID = "SuccessRetentionPeriodInDays";
478
+ const _SV = "S3Version";
479
+ const _St = "Status";
480
+ const _Sta = "State";
481
+ const _Star = "Started";
482
+ const _T = "Timeline";
483
+ const _TIS = "TimeoutInSeconds";
484
+ const _TK = "TagKeys";
485
+ const _TMRE = "TooManyRequestsException";
486
+ const _TR = "TestResult";
487
+ const _TRR = "TagResourceRequest";
488
+ const _TRRa = "TagResourceResponse";
489
+ const _TRa = "TagResource";
490
+ const _Ta = "Tags";
491
+ const _Ty = "Type";
492
+ const _UC = "UpdateCanary";
493
+ const _UCR = "UpdateCanaryRequest";
494
+ const _UCRp = "UpdateCanaryResponse";
495
+ const _UR = "UntagResource";
496
+ const _URR = "UntagResourceRequest";
497
+ const _URRn = "UntagResourceResponse";
498
+ const _VC = "VpcConfig";
499
+ const _VCI = "VpcConfigInput";
500
+ const _VCO = "VpcConfigOutput";
501
+ const _VE = "ValidationException";
502
+ const _VI = "VpcId";
503
+ const _VN = "VersionName";
504
+ const _VR = "VisualReference";
505
+ const _VRI = "VisualReferenceInput";
506
+ const _VRO = "VisualReferenceOutput";
507
+ const _VROi = "VisualReferencesOutput";
508
+ const _VRi = "VisualReferences";
509
+ const _ZF = "ZipFile";
510
+ const _c = "client";
511
+ const _dL = "deleteLambda";
512
+ const _dRI = "dryRunId";
513
+ const _e = "error";
514
+ const _h = "http";
515
+ const _hE = "httpError";
516
+ const _hQ = "httpQuery";
517
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.synthetics";
518
+ const _se = "server";
519
+ const _tK = "tagKeys";
520
+ const n0 = "com.amazonaws.synthetics";
521
+ const _s_registry = TypeRegistry.for(_s);
522
+ var SyntheticsServiceException$ = [-3, _s, "SyntheticsServiceException", 0, [], []];
523
+ _s_registry.registerError(SyntheticsServiceException$, SyntheticsServiceException);
524
+ const n0_registry = TypeRegistry.for(n0);
525
+ var AccessDeniedException$ = [-3, n0, _ADE,
526
+ { [_e]: _c, [_hE]: 403 },
527
+ [_M],
528
+ [0]
529
+ ];
530
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
531
+ var BadRequestException$ = [-3, n0, _BRE,
532
+ { [_e]: _c, [_hE]: 400 },
533
+ [_M],
534
+ [0]
535
+ ];
536
+ n0_registry.registerError(BadRequestException$, BadRequestException);
537
+ var ConflictException$ = [-3, n0, _CE,
538
+ { [_e]: _c, [_hE]: 409 },
539
+ [_M],
540
+ [0]
541
+ ];
542
+ n0_registry.registerError(ConflictException$, ConflictException);
543
+ var InternalFailureException$ = [-3, n0, _IFE,
544
+ { [_e]: _se, [_hE]: 500 },
545
+ [_M],
546
+ [0]
547
+ ];
548
+ n0_registry.registerError(InternalFailureException$, InternalFailureException);
549
+ var InternalServerException$ = [-3, n0, _ISE,
550
+ { [_e]: _se, [_hE]: 500 },
551
+ [_M],
552
+ [0]
553
+ ];
554
+ n0_registry.registerError(InternalServerException$, InternalServerException);
555
+ var NotFoundException$ = [-3, n0, _NFE,
556
+ { [_e]: _c, [_hE]: 404 },
557
+ [_M],
558
+ [0]
559
+ ];
560
+ n0_registry.registerError(NotFoundException$, NotFoundException);
561
+ var RequestEntityTooLargeException$ = [-3, n0, _RETLE,
562
+ { [_e]: _c, [_hE]: 413 },
563
+ [_M],
564
+ [0]
565
+ ];
566
+ n0_registry.registerError(RequestEntityTooLargeException$, RequestEntityTooLargeException);
567
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
568
+ { [_e]: _c, [_hE]: 404 },
569
+ [_M],
570
+ [0]
571
+ ];
572
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
573
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
574
+ { [_e]: _c, [_hE]: 402 },
575
+ [_M],
576
+ [0]
577
+ ];
578
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
579
+ var TooManyRequestsException$ = [-3, n0, _TMRE,
580
+ { [_e]: _c, [_hE]: 429 },
581
+ [_M],
582
+ [0]
583
+ ];
584
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
585
+ var ValidationException$ = [-3, n0, _VE,
586
+ { [_e]: _c, [_hE]: 400 },
587
+ [_M],
588
+ [0]
589
+ ];
590
+ n0_registry.registerError(ValidationException$, ValidationException);
591
+ const errorTypeRegistries = [
592
+ _s_registry,
593
+ n0_registry,
594
+ ];
595
+ var AddReplicaLocationInput$ = [3, n0, _ARLI,
596
+ 0,
597
+ [_L, _VC],
598
+ [0, () => VpcConfigInput$], 1
599
+ ];
600
+ var ArtifactConfigInput$ = [3, n0, _ACI,
601
+ 0,
602
+ [_SE],
603
+ [() => S3EncryptionConfig$]
604
+ ];
605
+ var ArtifactConfigOutput$ = [3, n0, _ACO,
606
+ 0,
607
+ [_SE],
608
+ [() => S3EncryptionConfig$]
609
+ ];
610
+ var AssociateResourceRequest$ = [3, n0, _ARR,
611
+ 0,
612
+ [_GI, _RA],
613
+ [[0, 1], 0], 2
614
+ ];
615
+ var AssociateResourceResponse$ = [3, n0, _ARRs,
616
+ 0,
617
+ [],
618
+ []
619
+ ];
620
+ var BaseScreenshot$ = [3, n0, _BS,
621
+ 0,
622
+ [_SN, _IC],
623
+ [0, 64 | 0], 1
624
+ ];
625
+ var BrowserConfig$ = [3, n0, _BC,
626
+ 0,
627
+ [_BT],
628
+ [0]
629
+ ];
630
+ var Canary$ = [3, n0, _C,
631
+ 0,
632
+ [_I, _N, _Co, _ERA, _S, _RC, _SRPID, _FRPID, _St, _T, _ASL, _EA, _RV, _VC, _VR, _PRC, _BCr, _EC, _VRi, _MLC, _Ta, _AC, _DRC],
633
+ [0, 0, () => CanaryCodeOutput$, 0, () => CanaryScheduleOutput$, () => CanaryRunConfigOutput$, 1, 1, () => CanaryStatus$, () => CanaryTimeline$, 0, 0, 0, () => VpcConfigOutput$, () => VisualReferenceOutput$, 0, () => BrowserConfigs, () => EngineConfigs, () => VisualReferencesOutput, () => MultiLocationConfig$, 128 | 0, () => ArtifactConfigOutput$, () => DryRunConfigOutput$]
634
+ ];
635
+ var CanaryCodeInput$ = [3, n0, _CCI,
636
+ 0,
637
+ [_SB, _SK, _SV, _ZF, _H, _BTl, _D],
638
+ [0, 0, 0, 21, 0, 64 | 0, () => Dependencies]
639
+ ];
640
+ var CanaryCodeOutput$ = [3, n0, _CCO,
641
+ 0,
642
+ [_SLA, _H, _BTl, _D],
643
+ [0, 0, 64 | 0, () => Dependencies]
644
+ ];
645
+ var CanaryDryRunConfigOutput$ = [3, n0, _CDRCO,
646
+ 0,
647
+ [_DRI],
648
+ [0]
649
+ ];
650
+ var CanaryLastRun$ = [3, n0, _CLR,
651
+ 0,
652
+ [_CN, _LR],
653
+ [0, () => CanaryRun$]
654
+ ];
655
+ var CanaryRun$ = [3, n0, _CR,
656
+ 0,
657
+ [_I, _SRI, _RAe, _N, _St, _T, _ASL, _DRC, _BT, _L],
658
+ [0, 0, 1, 0, () => CanaryRunStatus$, () => CanaryRunTimeline$, 0, () => CanaryDryRunConfigOutput$, 0, 0]
659
+ ];
660
+ var CanaryRunConfigInput$ = [3, n0, _CRCI,
661
+ 0,
662
+ [_TIS, _MIMB, _AT, _EV, _ES],
663
+ [1, 1, 2, 128 | 0, 1]
664
+ ];
665
+ var CanaryRunConfigOutput$ = [3, n0, _CRCO,
666
+ 0,
667
+ [_TIS, _MIMB, _AT, _ES],
668
+ [1, 1, 2, 1]
669
+ ];
670
+ var CanaryRunStatus$ = [3, n0, _CRS,
671
+ 0,
672
+ [_Sta, _SR, _SRC, _TR],
673
+ [0, 0, 0, 0]
674
+ ];
675
+ var CanaryRunTimeline$ = [3, n0, _CRT,
676
+ 0,
677
+ [_Star, _Com, _MTFRAR],
678
+ [4, 4, 4]
679
+ ];
680
+ var CanaryScheduleInput$ = [3, n0, _CSI,
681
+ 0,
682
+ [_E, _DIS, _RCe],
683
+ [0, 1, () => RetryConfigInput$], 1
684
+ ];
685
+ var CanaryScheduleOutput$ = [3, n0, _CSO,
686
+ 0,
687
+ [_E, _DIS, _RCe],
688
+ [0, 1, () => RetryConfigOutput$]
689
+ ];
690
+ var CanaryStatus$ = [3, n0, _CS,
691
+ 0,
692
+ [_Sta, _SR, _SRC],
693
+ [0, 0, 0]
694
+ ];
695
+ var CanaryTimeline$ = [3, n0, _CT,
696
+ 0,
697
+ [_Cr, _LM, _LS, _LSa],
698
+ [4, 4, 4, 4]
699
+ ];
700
+ var CreateCanaryRequest$ = [3, n0, _CCR,
701
+ 0,
702
+ [_N, _Co, _ASL, _ERA, _S, _RV, _RC, _SRPID, _FRPID, _VC, _RTRT, _PRC, _BCr, _ARL, _Ta, _AC],
703
+ [0, () => CanaryCodeInput$, 0, 0, () => CanaryScheduleInput$, 0, () => CanaryRunConfigInput$, 1, 1, () => VpcConfigInput$, 64 | 0, 0, () => BrowserConfigs, () => AddReplicaLocations, 128 | 0, () => ArtifactConfigInput$], 6
704
+ ];
705
+ var CreateCanaryResponse$ = [3, n0, _CCRr,
706
+ 0,
707
+ [_C],
708
+ [() => Canary$]
709
+ ];
710
+ var CreateGroupRequest$ = [3, n0, _CGR,
711
+ 0,
712
+ [_N, _Ta],
713
+ [0, 128 | 0], 1
714
+ ];
715
+ var CreateGroupResponse$ = [3, n0, _CGRr,
716
+ 0,
717
+ [_G],
718
+ [() => Group$]
719
+ ];
720
+ var DeleteCanaryRequest$ = [3, n0, _DCR,
721
+ 0,
722
+ [_N, _DL],
723
+ [[0, 1], [2, { [_hQ]: _dL }]], 1
724
+ ];
725
+ var DeleteCanaryResponse$ = [3, n0, _DCRe,
726
+ 0,
727
+ [],
728
+ []
729
+ ];
730
+ var DeleteGroupRequest$ = [3, n0, _DGR,
731
+ 0,
732
+ [_GI],
733
+ [[0, 1]], 1
734
+ ];
735
+ var DeleteGroupResponse$ = [3, n0, _DGRe,
736
+ 0,
737
+ [],
738
+ []
739
+ ];
740
+ var Dependency$ = [3, n0, _De,
741
+ 0,
742
+ [_R, _Ty],
743
+ [0, 0], 1
744
+ ];
745
+ var DescribeCanariesLastRunRequest$ = [3, n0, _DCLRR,
746
+ 0,
747
+ [_NT, _MR, _Na, _BT],
748
+ [0, 1, 64 | 0, 0]
749
+ ];
750
+ var DescribeCanariesLastRunResponse$ = [3, n0, _DCLRRe,
751
+ 0,
752
+ [_CLRa, _NT],
753
+ [() => CanariesLastRun, 0]
754
+ ];
755
+ var DescribeCanariesRequest$ = [3, n0, _DCRes,
756
+ 0,
757
+ [_NT, _MR, _Na],
758
+ [0, 1, 64 | 0]
759
+ ];
760
+ var DescribeCanariesResponse$ = [3, n0, _DCResc,
761
+ 0,
762
+ [_Ca, _NT],
763
+ [() => Canaries, 0]
764
+ ];
765
+ var DescribeRuntimeVersionsRequest$ = [3, n0, _DRVR,
766
+ 0,
767
+ [_NT, _MR],
768
+ [0, 1]
769
+ ];
770
+ var DescribeRuntimeVersionsResponse$ = [3, n0, _DRVRe,
771
+ 0,
772
+ [_RVu, _NT],
773
+ [() => RuntimeVersionList, 0]
774
+ ];
775
+ var DisassociateResourceRequest$ = [3, n0, _DRR,
776
+ 0,
777
+ [_GI, _RA],
778
+ [[0, 1], 0], 2
779
+ ];
780
+ var DisassociateResourceResponse$ = [3, n0, _DRRi,
781
+ 0,
782
+ [],
783
+ []
784
+ ];
785
+ var DryRunConfigOutput$ = [3, n0, _DRCO,
786
+ 0,
787
+ [_DRI, _LDRES],
788
+ [0, 0]
789
+ ];
790
+ var EngineConfig$ = [3, n0, _ECn,
791
+ 0,
792
+ [_EA, _BT],
793
+ [0, 0]
794
+ ];
795
+ var GetCanaryRequest$ = [3, n0, _GCR,
796
+ 0,
797
+ [_N, _DRI],
798
+ [[0, 1], [0, { [_hQ]: _dRI }]], 1
799
+ ];
800
+ var GetCanaryResponse$ = [3, n0, _GCRe,
801
+ 0,
802
+ [_C],
803
+ [() => Canary$]
804
+ ];
805
+ var GetCanaryRunsRequest$ = [3, n0, _GCRR,
806
+ 0,
807
+ [_N, _NT, _MR, _DRI, _RT],
808
+ [[0, 1], 0, 1, 0, 0], 1
809
+ ];
810
+ var GetCanaryRunsResponse$ = [3, n0, _GCRRe,
811
+ 0,
812
+ [_CRa, _NT],
813
+ [() => CanaryRuns, 0]
814
+ ];
815
+ var GetGroupRequest$ = [3, n0, _GGR,
816
+ 0,
817
+ [_GI],
818
+ [[0, 1]], 1
819
+ ];
820
+ var GetGroupResponse$ = [3, n0, _GGRe,
821
+ 0,
822
+ [_G],
823
+ [() => Group$]
824
+ ];
825
+ var Group$ = [3, n0, _G,
826
+ 0,
827
+ [_I, _N, _A, _Ta, _CTr, _LMT],
828
+ [0, 0, 0, 128 | 0, 4, 4]
829
+ ];
830
+ var GroupSummary$ = [3, n0, _GS,
831
+ 0,
832
+ [_I, _N, _A],
833
+ [0, 0, 0]
834
+ ];
835
+ var ListAssociatedGroupsRequest$ = [3, n0, _LAGR,
836
+ 0,
837
+ [_RA, _NT, _MR],
838
+ [[0, 1], 0, 1], 1
839
+ ];
840
+ var ListAssociatedGroupsResponse$ = [3, n0, _LAGRi,
841
+ 0,
842
+ [_Gr, _NT],
843
+ [() => GroupSummaryList, 0]
844
+ ];
845
+ var ListGroupResourcesRequest$ = [3, n0, _LGRR,
846
+ 0,
847
+ [_GI, _NT, _MR],
848
+ [[0, 1], 0, 1], 1
849
+ ];
850
+ var ListGroupResourcesResponse$ = [3, n0, _LGRRi,
851
+ 0,
852
+ [_Re, _NT],
853
+ [64 | 0, 0]
854
+ ];
855
+ var ListGroupsRequest$ = [3, n0, _LGR,
856
+ 0,
857
+ [_NT, _MR],
858
+ [0, 1]
859
+ ];
860
+ var ListGroupsResponse$ = [3, n0, _LGRi,
861
+ 0,
862
+ [_Gr, _NT],
863
+ [() => GroupSummaryList, 0]
864
+ ];
865
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
866
+ 0,
867
+ [_RA],
868
+ [[0, 1]], 1
869
+ ];
870
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
871
+ 0,
872
+ [_Ta],
873
+ [128 | 0]
874
+ ];
875
+ var MultiLocationConfig$ = [3, n0, _MLC,
876
+ 0,
877
+ [_LT, _PL, _Rep, _RS],
878
+ [0, 0, () => Replicas, 0]
879
+ ];
880
+ var Replica$ = [3, n0, _Repl,
881
+ 0,
882
+ [_L, _RSe, _CSa, _LM, _VC],
883
+ [0, () => ReplicationStatus$, 0, 4, () => VpcConfigOutput$]
884
+ ];
885
+ var ReplicationStatus$ = [3, n0, _RSe,
886
+ 0,
887
+ [_Sta, _SR, _SRC],
888
+ [0, 0, 0]
889
+ ];
890
+ var RetryConfigInput$ = [3, n0, _RCI,
891
+ 0,
892
+ [_MRa],
893
+ [1], 1
894
+ ];
895
+ var RetryConfigOutput$ = [3, n0, _RCO,
896
+ 0,
897
+ [_MRa],
898
+ [1]
899
+ ];
900
+ var RuntimeVersion$ = [3, n0, _RV,
901
+ 0,
902
+ [_VN, _Des, _RD, _DD],
903
+ [0, 0, 4, 4]
904
+ ];
905
+ var S3EncryptionConfig$ = [3, n0, _SEC,
906
+ 0,
907
+ [_EM, _KKA],
908
+ [0, 0]
909
+ ];
910
+ var StartCanaryDryRunRequest$ = [3, n0, _SCDRR,
911
+ 0,
912
+ [_N, _Co, _RV, _RC, _VC, _ERA, _SRPID, _FRPID, _VR, _ASL, _AC, _PRC, _BCr, _VRi],
913
+ [[0, 1], () => CanaryCodeInput$, 0, () => CanaryRunConfigInput$, () => VpcConfigInput$, 0, 1, 1, () => VisualReferenceInput$, 0, () => ArtifactConfigInput$, 0, () => BrowserConfigs, () => VisualReferences], 1
914
+ ];
915
+ var StartCanaryDryRunResponse$ = [3, n0, _SCDRRt,
916
+ 0,
917
+ [_DRC],
918
+ [() => DryRunConfigOutput$]
919
+ ];
920
+ var StartCanaryRequest$ = [3, n0, _SCR,
921
+ 0,
922
+ [_N],
923
+ [[0, 1]], 1
924
+ ];
925
+ var StartCanaryResponse$ = [3, n0, _SCRt,
926
+ 0,
927
+ [],
928
+ []
929
+ ];
930
+ var StopCanaryRequest$ = [3, n0, _SCRto,
931
+ 0,
932
+ [_N],
933
+ [[0, 1]], 1
934
+ ];
935
+ var StopCanaryResponse$ = [3, n0, _SCRtop,
936
+ 0,
937
+ [],
938
+ []
939
+ ];
940
+ var TagResourceRequest$ = [3, n0, _TRR,
941
+ 0,
942
+ [_RA, _Ta],
943
+ [[0, 1], 128 | 0], 2
944
+ ];
945
+ var TagResourceResponse$ = [3, n0, _TRRa,
946
+ 0,
947
+ [],
948
+ []
949
+ ];
950
+ var UntagResourceRequest$ = [3, n0, _URR,
951
+ 0,
952
+ [_RA, _TK],
953
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
954
+ ];
955
+ var UntagResourceResponse$ = [3, n0, _URRn,
956
+ 0,
957
+ [],
958
+ []
959
+ ];
960
+ var UpdateCanaryRequest$ = [3, n0, _UCR,
961
+ 0,
962
+ [_N, _Co, _ERA, _RV, _S, _RC, _SRPID, _FRPID, _VC, _VR, _ASL, _AC, _PRC, _DRI, _VRi, _BCr, _ARL, _RRL],
963
+ [[0, 1], () => CanaryCodeInput$, 0, 0, () => CanaryScheduleInput$, () => CanaryRunConfigInput$, 1, 1, () => VpcConfigInput$, () => VisualReferenceInput$, 0, () => ArtifactConfigInput$, 0, 0, () => VisualReferences, () => BrowserConfigs, () => AddReplicaLocations, 64 | 0], 1
964
+ ];
965
+ var UpdateCanaryResponse$ = [3, n0, _UCRp,
966
+ 0,
967
+ [],
968
+ []
969
+ ];
970
+ var VisualReferenceInput$ = [3, n0, _VRI,
971
+ 0,
972
+ [_BCRI, _BSa, _BT],
973
+ [0, () => BaseScreenshots, 0], 1
974
+ ];
975
+ var VisualReferenceOutput$ = [3, n0, _VRO,
976
+ 0,
977
+ [_BSa, _BCRI, _BT],
978
+ [() => BaseScreenshots, 0, 0]
979
+ ];
980
+ var VpcConfigInput$ = [3, n0, _VCI,
981
+ 0,
982
+ [_SI, _SGI, _IAFDS],
983
+ [64 | 0, 64 | 0, 2]
984
+ ];
985
+ var VpcConfigOutput$ = [3, n0, _VCO,
986
+ 0,
987
+ [_VI, _SI, _SGI, _IAFDS],
988
+ [0, 64 | 0, 64 | 0, 2]
989
+ ];
990
+ var AddReplicaLocations = [1, n0, _ARL,
991
+ 0, () => AddReplicaLocationInput$
992
+ ];
993
+ var BaseScreenshots = [1, n0, _BSa,
994
+ 0, () => BaseScreenshot$
995
+ ];
996
+ var BrowserConfigs = [1, n0, _BCr,
997
+ 0, () => BrowserConfig$
998
+ ];
999
+ var Canaries = [1, n0, _Ca,
1000
+ 0, () => Canary$
1001
+ ];
1002
+ var CanariesLastRun = [1, n0, _CLRa,
1003
+ 0, () => CanaryLastRun$
1004
+ ];
1005
+ var CanaryRuns = [1, n0, _CRa,
1006
+ 0, () => CanaryRun$
1007
+ ];
1008
+ var Dependencies = [1, n0, _D,
1009
+ 0, () => Dependency$
1010
+ ];
1011
+ var EngineConfigs = [1, n0, _EC,
1012
+ 0, () => EngineConfig$
1013
+ ];
1014
+ var GroupSummaryList = [1, n0, _GSL,
1015
+ 0, () => GroupSummary$
1016
+ ];
1017
+ var Replicas = [1, n0, _Rep,
1018
+ 0, () => Replica$
1019
+ ];
1020
+ var RuntimeVersionList = [1, n0, _RVL,
1021
+ 0, () => RuntimeVersion$
1022
+ ];
1023
+ var VisualReferences = [1, n0, _VRi,
1024
+ 0, () => VisualReferenceInput$
1025
+ ];
1026
+ var VisualReferencesOutput = [1, n0, _VROi,
1027
+ 0, () => VisualReferenceOutput$
1028
+ ];
1029
+ var AssociateResource$ = [9, n0, _AR,
1030
+ { [_h]: ["PATCH", "/group/{GroupIdentifier}/associate", 200] }, () => AssociateResourceRequest$, () => AssociateResourceResponse$
1031
+ ];
1032
+ var CreateCanary$ = [9, n0, _CC,
1033
+ { [_h]: ["POST", "/canary", 200] }, () => CreateCanaryRequest$, () => CreateCanaryResponse$
1034
+ ];
1035
+ var CreateGroup$ = [9, n0, _CG,
1036
+ { [_h]: ["POST", "/group", 200] }, () => CreateGroupRequest$, () => CreateGroupResponse$
1037
+ ];
1038
+ var DeleteCanary$ = [9, n0, _DC,
1039
+ { [_h]: ["DELETE", "/canary/{Name}", 200] }, () => DeleteCanaryRequest$, () => DeleteCanaryResponse$
1040
+ ];
1041
+ var DeleteGroup$ = [9, n0, _DG,
1042
+ { [_h]: ["DELETE", "/group/{GroupIdentifier}", 200] }, () => DeleteGroupRequest$, () => DeleteGroupResponse$
1043
+ ];
1044
+ var DescribeCanaries$ = [9, n0, _DCe,
1045
+ { [_h]: ["POST", "/canaries", 200] }, () => DescribeCanariesRequest$, () => DescribeCanariesResponse$
1046
+ ];
1047
+ var DescribeCanariesLastRun$ = [9, n0, _DCLR,
1048
+ { [_h]: ["POST", "/canaries/last-run", 200] }, () => DescribeCanariesLastRunRequest$, () => DescribeCanariesLastRunResponse$
1049
+ ];
1050
+ var DescribeRuntimeVersions$ = [9, n0, _DRV,
1051
+ { [_h]: ["POST", "/runtime-versions", 200] }, () => DescribeRuntimeVersionsRequest$, () => DescribeRuntimeVersionsResponse$
1052
+ ];
1053
+ var DisassociateResource$ = [9, n0, _DR,
1054
+ { [_h]: ["PATCH", "/group/{GroupIdentifier}/disassociate", 200] }, () => DisassociateResourceRequest$, () => DisassociateResourceResponse$
1055
+ ];
1056
+ var GetCanary$ = [9, n0, _GC,
1057
+ { [_h]: ["GET", "/canary/{Name}", 200] }, () => GetCanaryRequest$, () => GetCanaryResponse$
1058
+ ];
1059
+ var GetCanaryRuns$ = [9, n0, _GCRet,
1060
+ { [_h]: ["POST", "/canary/{Name}/runs", 200] }, () => GetCanaryRunsRequest$, () => GetCanaryRunsResponse$
1061
+ ];
1062
+ var GetGroup$ = [9, n0, _GG,
1063
+ { [_h]: ["GET", "/group/{GroupIdentifier}", 200] }, () => GetGroupRequest$, () => GetGroupResponse$
1064
+ ];
1065
+ var ListAssociatedGroups$ = [9, n0, _LAG,
1066
+ { [_h]: ["POST", "/resource/{ResourceArn}/groups", 200] }, () => ListAssociatedGroupsRequest$, () => ListAssociatedGroupsResponse$
1067
+ ];
1068
+ var ListGroupResources$ = [9, n0, _LGRis,
1069
+ { [_h]: ["POST", "/group/{GroupIdentifier}/resources", 200] }, () => ListGroupResourcesRequest$, () => ListGroupResourcesResponse$
1070
+ ];
1071
+ var ListGroups$ = [9, n0, _LG,
1072
+ { [_h]: ["POST", "/groups", 200] }, () => ListGroupsRequest$, () => ListGroupsResponse$
1073
+ ];
1074
+ var ListTagsForResource$ = [9, n0, _LTFR,
1075
+ { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
1076
+ ];
1077
+ var StartCanary$ = [9, n0, _SC,
1078
+ { [_h]: ["POST", "/canary/{Name}/start", 200] }, () => StartCanaryRequest$, () => StartCanaryResponse$
1079
+ ];
1080
+ var StartCanaryDryRun$ = [9, n0, _SCDR,
1081
+ { [_h]: ["POST", "/canary/{Name}/dry-run/start", 200] }, () => StartCanaryDryRunRequest$, () => StartCanaryDryRunResponse$
1082
+ ];
1083
+ var StopCanary$ = [9, n0, _SCt,
1084
+ { [_h]: ["POST", "/canary/{Name}/stop", 200] }, () => StopCanaryRequest$, () => StopCanaryResponse$
1085
+ ];
1086
+ var TagResource$ = [9, n0, _TRa,
1087
+ { [_h]: ["POST", "/tags/{ResourceArn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
1088
+ ];
1089
+ var UntagResource$ = [9, n0, _UR,
1090
+ { [_h]: ["DELETE", "/tags/{ResourceArn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
1091
+ ];
1092
+ var UpdateCanary$ = [9, n0, _UC,
1093
+ { [_h]: ["PATCH", "/canary/{Name}", 200] }, () => UpdateCanaryRequest$, () => UpdateCanaryResponse$
1094
+ ];
1095
+
1096
+ const getRuntimeConfig$1 = (config) => {
1097
+ return {
1098
+ apiVersion: "2017-10-11",
1099
+ base64Decoder: config?.base64Decoder ?? fromBase64,
1100
+ base64Encoder: config?.base64Encoder ?? toBase64,
1101
+ disableHostPrefix: config?.disableHostPrefix ?? false,
1102
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
1103
+ extensions: config?.extensions ?? [],
1104
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSyntheticsHttpAuthSchemeProvider,
1105
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
1106
+ {
1107
+ schemeId: "aws.auth#sigv4",
1108
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
1109
+ signer: new AwsSdkSigV4Signer(),
1110
+ },
1111
+ ],
1112
+ logger: config?.logger ?? new NoOpLogger(),
1113
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
1114
+ protocolSettings: config?.protocolSettings ?? {
1115
+ defaultNamespace: "com.amazonaws.synthetics",
1116
+ errorTypeRegistries,
1117
+ version: "2017-10-11",
1118
+ serviceTarget: "Synthetics",
1119
+ },
1120
+ serviceId: config?.serviceId ?? "synthetics",
1121
+ sha256: config?.sha256 ?? Sha256,
1122
+ urlParser: config?.urlParser ?? parseUrl,
1123
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1124
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
1125
+ };
1126
+ };
1127
+
1128
+ const getRuntimeConfig = (config) => {
1129
+ emitWarningIfUnsupportedVersion(process.version);
1130
+ const defaultsMode = resolveDefaultsModeConfig(config);
1131
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
1132
+ const clientSharedValues = getRuntimeConfig$1(config);
1133
+ emitWarningIfUnsupportedVersion$1(process.version);
1134
+ const loaderConfig = {
1135
+ profile: config?.profile,
1136
+ logger: clientSharedValues.logger,
1137
+ };
1138
+ return {
1139
+ ...clientSharedValues,
1140
+ ...config,
1141
+ runtime: "node",
1142
+ defaultsMode,
1143
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1144
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1145
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1146
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1147
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1148
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1149
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
1150
+ retryMode: config?.retryMode ??
1151
+ loadConfig({
1152
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1153
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1154
+ }, config),
1155
+ streamCollector: config?.streamCollector ?? streamCollector,
1156
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1157
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1158
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1159
+ };
1160
+ };
1161
+
34
1162
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
1163
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
1164
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -497,43 +1625,169 @@ const RunType = {
497
1625
  DRY_RUN: "DRY_RUN",
498
1626
  };
499
1627
 
1628
+ exports.AccessDeniedException = AccessDeniedException;
1629
+ exports.AccessDeniedException$ = AccessDeniedException$;
1630
+ exports.AddReplicaLocationInput$ = AddReplicaLocationInput$;
1631
+ exports.ArtifactConfigInput$ = ArtifactConfigInput$;
1632
+ exports.ArtifactConfigOutput$ = ArtifactConfigOutput$;
1633
+ exports.AssociateResource$ = AssociateResource$;
500
1634
  exports.AssociateResourceCommand = AssociateResourceCommand;
1635
+ exports.AssociateResourceRequest$ = AssociateResourceRequest$;
1636
+ exports.AssociateResourceResponse$ = AssociateResourceResponse$;
1637
+ exports.BadRequestException = BadRequestException;
1638
+ exports.BadRequestException$ = BadRequestException$;
1639
+ exports.BaseScreenshot$ = BaseScreenshot$;
1640
+ exports.BrowserConfig$ = BrowserConfig$;
501
1641
  exports.BrowserType = BrowserType;
1642
+ exports.Canary$ = Canary$;
1643
+ exports.CanaryCodeInput$ = CanaryCodeInput$;
1644
+ exports.CanaryCodeOutput$ = CanaryCodeOutput$;
1645
+ exports.CanaryDryRunConfigOutput$ = CanaryDryRunConfigOutput$;
1646
+ exports.CanaryLastRun$ = CanaryLastRun$;
1647
+ exports.CanaryRun$ = CanaryRun$;
1648
+ exports.CanaryRunConfigInput$ = CanaryRunConfigInput$;
1649
+ exports.CanaryRunConfigOutput$ = CanaryRunConfigOutput$;
502
1650
  exports.CanaryRunState = CanaryRunState;
503
1651
  exports.CanaryRunStateReasonCode = CanaryRunStateReasonCode;
1652
+ exports.CanaryRunStatus$ = CanaryRunStatus$;
504
1653
  exports.CanaryRunTestResult = CanaryRunTestResult;
1654
+ exports.CanaryRunTimeline$ = CanaryRunTimeline$;
1655
+ exports.CanaryScheduleInput$ = CanaryScheduleInput$;
1656
+ exports.CanaryScheduleOutput$ = CanaryScheduleOutput$;
505
1657
  exports.CanaryState = CanaryState;
506
1658
  exports.CanaryStateReasonCode = CanaryStateReasonCode;
1659
+ exports.CanaryStatus$ = CanaryStatus$;
1660
+ exports.CanaryTimeline$ = CanaryTimeline$;
1661
+ exports.ConflictException = ConflictException;
1662
+ exports.ConflictException$ = ConflictException$;
1663
+ exports.CreateCanary$ = CreateCanary$;
507
1664
  exports.CreateCanaryCommand = CreateCanaryCommand;
1665
+ exports.CreateCanaryRequest$ = CreateCanaryRequest$;
1666
+ exports.CreateCanaryResponse$ = CreateCanaryResponse$;
1667
+ exports.CreateGroup$ = CreateGroup$;
508
1668
  exports.CreateGroupCommand = CreateGroupCommand;
1669
+ exports.CreateGroupRequest$ = CreateGroupRequest$;
1670
+ exports.CreateGroupResponse$ = CreateGroupResponse$;
1671
+ exports.DeleteCanary$ = DeleteCanary$;
509
1672
  exports.DeleteCanaryCommand = DeleteCanaryCommand;
1673
+ exports.DeleteCanaryRequest$ = DeleteCanaryRequest$;
1674
+ exports.DeleteCanaryResponse$ = DeleteCanaryResponse$;
1675
+ exports.DeleteGroup$ = DeleteGroup$;
510
1676
  exports.DeleteGroupCommand = DeleteGroupCommand;
1677
+ exports.DeleteGroupRequest$ = DeleteGroupRequest$;
1678
+ exports.DeleteGroupResponse$ = DeleteGroupResponse$;
1679
+ exports.Dependency$ = Dependency$;
511
1680
  exports.DependencyType = DependencyType;
1681
+ exports.DescribeCanaries$ = DescribeCanaries$;
512
1682
  exports.DescribeCanariesCommand = DescribeCanariesCommand;
1683
+ exports.DescribeCanariesLastRun$ = DescribeCanariesLastRun$;
513
1684
  exports.DescribeCanariesLastRunCommand = DescribeCanariesLastRunCommand;
1685
+ exports.DescribeCanariesLastRunRequest$ = DescribeCanariesLastRunRequest$;
1686
+ exports.DescribeCanariesLastRunResponse$ = DescribeCanariesLastRunResponse$;
1687
+ exports.DescribeCanariesRequest$ = DescribeCanariesRequest$;
1688
+ exports.DescribeCanariesResponse$ = DescribeCanariesResponse$;
1689
+ exports.DescribeRuntimeVersions$ = DescribeRuntimeVersions$;
514
1690
  exports.DescribeRuntimeVersionsCommand = DescribeRuntimeVersionsCommand;
1691
+ exports.DescribeRuntimeVersionsRequest$ = DescribeRuntimeVersionsRequest$;
1692
+ exports.DescribeRuntimeVersionsResponse$ = DescribeRuntimeVersionsResponse$;
1693
+ exports.DisassociateResource$ = DisassociateResource$;
515
1694
  exports.DisassociateResourceCommand = DisassociateResourceCommand;
1695
+ exports.DisassociateResourceRequest$ = DisassociateResourceRequest$;
1696
+ exports.DisassociateResourceResponse$ = DisassociateResourceResponse$;
1697
+ exports.DryRunConfigOutput$ = DryRunConfigOutput$;
516
1698
  exports.EncryptionMode = EncryptionMode;
1699
+ exports.EngineConfig$ = EngineConfig$;
1700
+ exports.GetCanary$ = GetCanary$;
517
1701
  exports.GetCanaryCommand = GetCanaryCommand;
1702
+ exports.GetCanaryRequest$ = GetCanaryRequest$;
1703
+ exports.GetCanaryResponse$ = GetCanaryResponse$;
1704
+ exports.GetCanaryRuns$ = GetCanaryRuns$;
518
1705
  exports.GetCanaryRunsCommand = GetCanaryRunsCommand;
1706
+ exports.GetCanaryRunsRequest$ = GetCanaryRunsRequest$;
1707
+ exports.GetCanaryRunsResponse$ = GetCanaryRunsResponse$;
1708
+ exports.GetGroup$ = GetGroup$;
519
1709
  exports.GetGroupCommand = GetGroupCommand;
1710
+ exports.GetGroupRequest$ = GetGroupRequest$;
1711
+ exports.GetGroupResponse$ = GetGroupResponse$;
1712
+ exports.Group$ = Group$;
1713
+ exports.GroupSummary$ = GroupSummary$;
1714
+ exports.InternalFailureException = InternalFailureException;
1715
+ exports.InternalFailureException$ = InternalFailureException$;
1716
+ exports.InternalServerException = InternalServerException;
1717
+ exports.InternalServerException$ = InternalServerException$;
1718
+ exports.ListAssociatedGroups$ = ListAssociatedGroups$;
520
1719
  exports.ListAssociatedGroupsCommand = ListAssociatedGroupsCommand;
1720
+ exports.ListAssociatedGroupsRequest$ = ListAssociatedGroupsRequest$;
1721
+ exports.ListAssociatedGroupsResponse$ = ListAssociatedGroupsResponse$;
1722
+ exports.ListGroupResources$ = ListGroupResources$;
521
1723
  exports.ListGroupResourcesCommand = ListGroupResourcesCommand;
1724
+ exports.ListGroupResourcesRequest$ = ListGroupResourcesRequest$;
1725
+ exports.ListGroupResourcesResponse$ = ListGroupResourcesResponse$;
1726
+ exports.ListGroups$ = ListGroups$;
522
1727
  exports.ListGroupsCommand = ListGroupsCommand;
1728
+ exports.ListGroupsRequest$ = ListGroupsRequest$;
1729
+ exports.ListGroupsResponse$ = ListGroupsResponse$;
1730
+ exports.ListTagsForResource$ = ListTagsForResource$;
523
1731
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1732
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1733
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
524
1734
  exports.LocationType = LocationType;
1735
+ exports.MultiLocationConfig$ = MultiLocationConfig$;
1736
+ exports.NotFoundException = NotFoundException;
1737
+ exports.NotFoundException$ = NotFoundException$;
525
1738
  exports.ProvisionedResourceCleanupSetting = ProvisionedResourceCleanupSetting;
1739
+ exports.Replica$ = Replica$;
526
1740
  exports.ReplicationState = ReplicationState;
1741
+ exports.ReplicationStatus$ = ReplicationStatus$;
1742
+ exports.RequestEntityTooLargeException = RequestEntityTooLargeException;
1743
+ exports.RequestEntityTooLargeException$ = RequestEntityTooLargeException$;
1744
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1745
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
527
1746
  exports.ResourceToTag = ResourceToTag;
1747
+ exports.RetryConfigInput$ = RetryConfigInput$;
1748
+ exports.RetryConfigOutput$ = RetryConfigOutput$;
528
1749
  exports.RunType = RunType;
1750
+ exports.RuntimeVersion$ = RuntimeVersion$;
1751
+ exports.S3EncryptionConfig$ = S3EncryptionConfig$;
1752
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1753
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1754
+ exports.StartCanary$ = StartCanary$;
529
1755
  exports.StartCanaryCommand = StartCanaryCommand;
1756
+ exports.StartCanaryDryRun$ = StartCanaryDryRun$;
530
1757
  exports.StartCanaryDryRunCommand = StartCanaryDryRunCommand;
1758
+ exports.StartCanaryDryRunRequest$ = StartCanaryDryRunRequest$;
1759
+ exports.StartCanaryDryRunResponse$ = StartCanaryDryRunResponse$;
1760
+ exports.StartCanaryRequest$ = StartCanaryRequest$;
1761
+ exports.StartCanaryResponse$ = StartCanaryResponse$;
1762
+ exports.StopCanary$ = StopCanary$;
531
1763
  exports.StopCanaryCommand = StopCanaryCommand;
1764
+ exports.StopCanaryRequest$ = StopCanaryRequest$;
1765
+ exports.StopCanaryResponse$ = StopCanaryResponse$;
532
1766
  exports.Synthetics = Synthetics;
533
1767
  exports.SyntheticsClient = SyntheticsClient;
1768
+ exports.SyntheticsServiceException = SyntheticsServiceException;
1769
+ exports.SyntheticsServiceException$ = SyntheticsServiceException$;
1770
+ exports.TagResource$ = TagResource$;
534
1771
  exports.TagResourceCommand = TagResourceCommand;
1772
+ exports.TagResourceRequest$ = TagResourceRequest$;
1773
+ exports.TagResourceResponse$ = TagResourceResponse$;
1774
+ exports.TooManyRequestsException = TooManyRequestsException;
1775
+ exports.TooManyRequestsException$ = TooManyRequestsException$;
1776
+ exports.UntagResource$ = UntagResource$;
535
1777
  exports.UntagResourceCommand = UntagResourceCommand;
1778
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1779
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1780
+ exports.UpdateCanary$ = UpdateCanary$;
536
1781
  exports.UpdateCanaryCommand = UpdateCanaryCommand;
1782
+ exports.UpdateCanaryRequest$ = UpdateCanaryRequest$;
1783
+ exports.UpdateCanaryResponse$ = UpdateCanaryResponse$;
1784
+ exports.ValidationException = ValidationException;
1785
+ exports.ValidationException$ = ValidationException$;
1786
+ exports.VisualReferenceInput$ = VisualReferenceInput$;
1787
+ exports.VisualReferenceOutput$ = VisualReferenceOutput$;
1788
+ exports.VpcConfigInput$ = VpcConfigInput$;
1789
+ exports.VpcConfigOutput$ = VpcConfigOutput$;
1790
+ exports.errorTypeRegistries = errorTypeRegistries;
537
1791
  exports.paginateDescribeCanaries = paginateDescribeCanaries;
538
1792
  exports.paginateDescribeCanariesLastRun = paginateDescribeCanariesLastRun;
539
1793
  exports.paginateDescribeRuntimeVersions = paginateDescribeRuntimeVersions;