@aws-sdk/client-synthetics 3.804.0 → 3.805.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.
@@ -67,6 +67,10 @@ import {
67
67
  StartCanaryCommandInput,
68
68
  StartCanaryCommandOutput,
69
69
  } from "./commands/StartCanaryCommand";
70
+ import {
71
+ StartCanaryDryRunCommandInput,
72
+ StartCanaryDryRunCommandOutput,
73
+ } from "./commands/StartCanaryDryRunCommand";
70
74
  import {
71
75
  StopCanaryCommandInput,
72
76
  StopCanaryCommandOutput,
@@ -310,6 +314,19 @@ export interface Synthetics {
310
314
  options: __HttpHandlerOptions,
311
315
  cb: (err: any, data?: StartCanaryCommandOutput) => void
312
316
  ): void;
317
+ startCanaryDryRun(
318
+ args: StartCanaryDryRunCommandInput,
319
+ options?: __HttpHandlerOptions
320
+ ): Promise<StartCanaryDryRunCommandOutput>;
321
+ startCanaryDryRun(
322
+ args: StartCanaryDryRunCommandInput,
323
+ cb: (err: any, data?: StartCanaryDryRunCommandOutput) => void
324
+ ): void;
325
+ startCanaryDryRun(
326
+ args: StartCanaryDryRunCommandInput,
327
+ options: __HttpHandlerOptions,
328
+ cb: (err: any, data?: StartCanaryDryRunCommandOutput) => void
329
+ ): void;
313
330
  stopCanary(
314
331
  args: StopCanaryCommandInput,
315
332
  options?: __HttpHandlerOptions
@@ -113,6 +113,10 @@ import {
113
113
  StartCanaryCommandInput,
114
114
  StartCanaryCommandOutput,
115
115
  } from "./commands/StartCanaryCommand";
116
+ import {
117
+ StartCanaryDryRunCommandInput,
118
+ StartCanaryDryRunCommandOutput,
119
+ } from "./commands/StartCanaryDryRunCommand";
116
120
  import {
117
121
  StopCanaryCommandInput,
118
122
  StopCanaryCommandOutput,
@@ -154,6 +158,7 @@ export type ServiceInputTypes =
154
158
  | ListGroupsCommandInput
155
159
  | ListTagsForResourceCommandInput
156
160
  | StartCanaryCommandInput
161
+ | StartCanaryDryRunCommandInput
157
162
  | StopCanaryCommandInput
158
163
  | TagResourceCommandInput
159
164
  | UntagResourceCommandInput
@@ -176,6 +181,7 @@ export type ServiceOutputTypes =
176
181
  | ListGroupsCommandOutput
177
182
  | ListTagsForResourceCommandOutput
178
183
  | StartCanaryCommandOutput
184
+ | StartCanaryDryRunCommandOutput
179
185
  | StopCanaryCommandOutput
180
186
  | TagResourceCommandOutput
181
187
  | UntagResourceCommandOutput
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ StartCanaryDryRunRequest,
5
+ StartCanaryDryRunResponse,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SyntheticsClientResolvedConfig,
11
+ } from "../SyntheticsClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface StartCanaryDryRunCommandInput
15
+ extends StartCanaryDryRunRequest {}
16
+ export interface StartCanaryDryRunCommandOutput
17
+ extends StartCanaryDryRunResponse,
18
+ __MetadataBearer {}
19
+ declare const StartCanaryDryRunCommand_base: {
20
+ new (
21
+ input: StartCanaryDryRunCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ StartCanaryDryRunCommandInput,
24
+ StartCanaryDryRunCommandOutput,
25
+ SyntheticsClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: StartCanaryDryRunCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ StartCanaryDryRunCommandInput,
33
+ StartCanaryDryRunCommandOutput,
34
+ SyntheticsClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class StartCanaryDryRunCommand extends StartCanaryDryRunCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: StartCanaryDryRunRequest;
44
+ output: StartCanaryDryRunResponse;
45
+ };
46
+ sdk: {
47
+ input: StartCanaryDryRunCommandInput;
48
+ output: StartCanaryDryRunCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -15,6 +15,7 @@ export * from "./ListGroupResourcesCommand";
15
15
  export * from "./ListGroupsCommand";
16
16
  export * from "./ListTagsForResourceCommand";
17
17
  export * from "./StartCanaryCommand";
18
+ export * from "./StartCanaryDryRunCommand";
18
19
  export * from "./StopCanaryCommand";
19
20
  export * from "./TagResourceCommand";
20
21
  export * from "./UntagResourceCommand";
@@ -1,5 +1,13 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { SyntheticsServiceException as __BaseException } from "./SyntheticsServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ Message?: string | undefined;
7
+ constructor(
8
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
+ );
10
+ }
3
11
  export declare const EncryptionMode: {
4
12
  readonly SSE_KMS: "SSE_KMS";
5
13
  readonly SSE_S3: "SSE_S3";
@@ -75,6 +83,10 @@ export interface CanaryCodeOutput {
75
83
  SourceLocationArn?: string | undefined;
76
84
  Handler?: string | undefined;
77
85
  }
86
+ export interface DryRunConfigOutput {
87
+ DryRunId?: string | undefined;
88
+ LastDryRunExecutionStatus?: string | undefined;
89
+ }
78
90
  export declare const ProvisionedResourceCleanupSetting: {
79
91
  readonly AUTOMATIC: "AUTOMATIC";
80
92
  readonly OFF: "OFF";
@@ -158,6 +170,10 @@ export interface Canary {
158
170
  ProvisionedResourceCleanup?: ProvisionedResourceCleanupSetting | undefined;
159
171
  Tags?: Record<string, string> | undefined;
160
172
  ArtifactConfig?: ArtifactConfigOutput | undefined;
173
+ DryRunConfig?: DryRunConfigOutput | undefined;
174
+ }
175
+ export interface CanaryDryRunConfigOutput {
176
+ DryRunId?: string | undefined;
161
177
  }
162
178
  export declare const CanaryRunState: {
163
179
  readonly FAILED: "FAILED";
@@ -187,6 +203,7 @@ export interface CanaryRun {
187
203
  Status?: CanaryRunStatus | undefined;
188
204
  Timeline?: CanaryRunTimeline | undefined;
189
205
  ArtifactS3Location?: string | undefined;
206
+ DryRunConfig?: CanaryDryRunConfigOutput | undefined;
190
207
  }
191
208
  export interface CanaryLastRun {
192
209
  CanaryName?: string | undefined;
@@ -308,14 +325,22 @@ export interface DisassociateResourceRequest {
308
325
  export interface DisassociateResourceResponse {}
309
326
  export interface GetCanaryRequest {
310
327
  Name: string | undefined;
328
+ DryRunId?: string | undefined;
311
329
  }
312
330
  export interface GetCanaryResponse {
313
331
  Canary?: Canary | undefined;
314
332
  }
333
+ export declare const RunType: {
334
+ readonly CANARY_RUN: "CANARY_RUN";
335
+ readonly DRY_RUN: "DRY_RUN";
336
+ };
337
+ export type RunType = (typeof RunType)[keyof typeof RunType];
315
338
  export interface GetCanaryRunsRequest {
316
339
  Name: string | undefined;
317
340
  NextToken?: string | undefined;
318
341
  MaxResults?: number | undefined;
342
+ DryRunId?: string | undefined;
343
+ RunType?: RunType | undefined;
319
344
  }
320
345
  export interface GetCanaryRunsResponse {
321
346
  CanaryRuns?: CanaryRun[] | undefined;
@@ -390,6 +415,27 @@ export interface StartCanaryRequest {
390
415
  Name: string | undefined;
391
416
  }
392
417
  export interface StartCanaryResponse {}
418
+ export interface VisualReferenceInput {
419
+ BaseScreenshots?: BaseScreenshot[] | undefined;
420
+ BaseCanaryRunId: string | undefined;
421
+ }
422
+ export interface StartCanaryDryRunRequest {
423
+ Name: string | undefined;
424
+ Code?: CanaryCodeInput | undefined;
425
+ RuntimeVersion?: string | undefined;
426
+ RunConfig?: CanaryRunConfigInput | undefined;
427
+ VpcConfig?: VpcConfigInput | undefined;
428
+ ExecutionRoleArn?: string | undefined;
429
+ SuccessRetentionPeriodInDays?: number | undefined;
430
+ FailureRetentionPeriodInDays?: number | undefined;
431
+ VisualReference?: VisualReferenceInput | undefined;
432
+ ArtifactS3Location?: string | undefined;
433
+ ArtifactConfig?: ArtifactConfigInput | undefined;
434
+ ProvisionedResourceCleanup?: ProvisionedResourceCleanupSetting | undefined;
435
+ }
436
+ export interface StartCanaryDryRunResponse {
437
+ DryRunConfig?: DryRunConfigOutput | undefined;
438
+ }
393
439
  export interface StopCanaryRequest {
394
440
  Name: string | undefined;
395
441
  }
@@ -404,10 +450,6 @@ export interface UntagResourceRequest {
404
450
  TagKeys: string[] | undefined;
405
451
  }
406
452
  export interface UntagResourceResponse {}
407
- export interface VisualReferenceInput {
408
- BaseScreenshots?: BaseScreenshot[] | undefined;
409
- BaseCanaryRunId: string | undefined;
410
- }
411
453
  export interface UpdateCanaryRequest {
412
454
  Name: string | undefined;
413
455
  Code?: CanaryCodeInput | undefined;
@@ -422,5 +464,6 @@ export interface UpdateCanaryRequest {
422
464
  ArtifactS3Location?: string | undefined;
423
465
  ArtifactConfig?: ArtifactConfigInput | undefined;
424
466
  ProvisionedResourceCleanup?: ProvisionedResourceCleanupSetting | undefined;
467
+ DryRunId?: string | undefined;
425
468
  }
426
469
  export interface UpdateCanaryResponse {}
@@ -71,6 +71,10 @@ import {
71
71
  StartCanaryCommandInput,
72
72
  StartCanaryCommandOutput,
73
73
  } from "../commands/StartCanaryCommand";
74
+ import {
75
+ StartCanaryDryRunCommandInput,
76
+ StartCanaryDryRunCommandOutput,
77
+ } from "../commands/StartCanaryDryRunCommand";
74
78
  import {
75
79
  StopCanaryCommandInput,
76
80
  StopCanaryCommandOutput,
@@ -155,6 +159,10 @@ export declare const se_StartCanaryCommand: (
155
159
  input: StartCanaryCommandInput,
156
160
  context: __SerdeContext
157
161
  ) => Promise<__HttpRequest>;
162
+ export declare const se_StartCanaryDryRunCommand: (
163
+ input: StartCanaryDryRunCommandInput,
164
+ context: __SerdeContext
165
+ ) => Promise<__HttpRequest>;
158
166
  export declare const se_StopCanaryCommand: (
159
167
  input: StopCanaryCommandInput,
160
168
  context: __SerdeContext
@@ -239,6 +247,10 @@ export declare const de_StartCanaryCommand: (
239
247
  output: __HttpResponse,
240
248
  context: __SerdeContext
241
249
  ) => Promise<StartCanaryCommandOutput>;
250
+ export declare const de_StartCanaryDryRunCommand: (
251
+ output: __HttpResponse,
252
+ context: __SerdeContext
253
+ ) => Promise<StartCanaryDryRunCommandOutput>;
242
254
  export declare const de_StopCanaryCommand: (
243
255
  output: __HttpResponse,
244
256
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-synthetics",
3
3
  "description": "AWS SDK for JavaScript Synthetics Client for Node.js, Browser and React Native",
4
- "version": "3.804.0",
4
+ "version": "3.805.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-synthetics",