@aws-sdk/client-synthetics 3.846.0 → 3.848.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 +6 -0
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1 -0
- package/dist-types/commands/CreateCanaryCommand.d.ts +12 -0
- package/dist-types/commands/DescribeCanariesCommand.d.ts +6 -0
- package/dist-types/commands/GetCanaryCommand.d.ts +6 -0
- package/dist-types/commands/StartCanaryDryRunCommand.d.ts +6 -0
- package/dist-types/commands/UpdateCanaryCommand.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +38 -0
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __export(index_exports, {
|
|
|
34
34
|
CreateGroupCommand: () => CreateGroupCommand,
|
|
35
35
|
DeleteCanaryCommand: () => DeleteCanaryCommand,
|
|
36
36
|
DeleteGroupCommand: () => DeleteGroupCommand,
|
|
37
|
+
DependencyType: () => DependencyType,
|
|
37
38
|
DescribeCanariesCommand: () => DescribeCanariesCommand,
|
|
38
39
|
DescribeCanariesLastRunCommand: () => DescribeCanariesLastRunCommand,
|
|
39
40
|
DescribeRuntimeVersionsCommand: () => DescribeRuntimeVersionsCommand,
|
|
@@ -391,6 +392,9 @@ var BadRequestException = class _BadRequestException extends SyntheticsServiceEx
|
|
|
391
392
|
this.Message = opts.Message;
|
|
392
393
|
}
|
|
393
394
|
};
|
|
395
|
+
var DependencyType = {
|
|
396
|
+
LambdaLayer: "LambdaLayer"
|
|
397
|
+
};
|
|
394
398
|
var ProvisionedResourceCleanupSetting = {
|
|
395
399
|
AUTOMATIC: "AUTOMATIC",
|
|
396
400
|
OFF: "OFF"
|
|
@@ -1343,6 +1347,7 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
|
|
|
1343
1347
|
}, "de_ValidationExceptionRes");
|
|
1344
1348
|
var se_CanaryCodeInput = /* @__PURE__ */ __name((input, context) => {
|
|
1345
1349
|
return (0, import_smithy_client.take)(input, {
|
|
1350
|
+
Dependencies: import_smithy_client._json,
|
|
1346
1351
|
Handler: [],
|
|
1347
1352
|
S3Bucket: [],
|
|
1348
1353
|
S3Key: [],
|
|
@@ -1892,6 +1897,7 @@ var paginateListGroups = (0, import_core.createPaginator)(SyntheticsClient, List
|
|
|
1892
1897
|
ServiceQuotaExceededException,
|
|
1893
1898
|
ValidationException,
|
|
1894
1899
|
BadRequestException,
|
|
1900
|
+
DependencyType,
|
|
1895
1901
|
ProvisionedResourceCleanupSetting,
|
|
1896
1902
|
CanaryState,
|
|
1897
1903
|
CanaryStateReasonCode,
|
|
@@ -101,6 +101,9 @@ export class BadRequestException extends __BaseException {
|
|
|
101
101
|
this.Message = opts.Message;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
+
export const DependencyType = {
|
|
105
|
+
LambdaLayer: "LambdaLayer",
|
|
106
|
+
};
|
|
104
107
|
export const ProvisionedResourceCleanupSetting = {
|
|
105
108
|
AUTOMATIC: "AUTOMATIC",
|
|
106
109
|
OFF: "OFF",
|
|
@@ -55,6 +55,12 @@ declare const CreateCanaryCommand_base: {
|
|
|
55
55
|
* S3Version: "STRING_VALUE",
|
|
56
56
|
* ZipFile: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
57
57
|
* Handler: "STRING_VALUE", // required
|
|
58
|
+
* Dependencies: [ // Dependencies
|
|
59
|
+
* { // Dependency
|
|
60
|
+
* Type: "LambdaLayer",
|
|
61
|
+
* Reference: "STRING_VALUE", // required
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
58
64
|
* },
|
|
59
65
|
* ArtifactS3Location: "STRING_VALUE", // required
|
|
60
66
|
* ExecutionRoleArn: "STRING_VALUE", // required
|
|
@@ -109,6 +115,12 @@ declare const CreateCanaryCommand_base: {
|
|
|
109
115
|
* // Code: { // CanaryCodeOutput
|
|
110
116
|
* // SourceLocationArn: "STRING_VALUE",
|
|
111
117
|
* // Handler: "STRING_VALUE",
|
|
118
|
+
* // Dependencies: [ // Dependencies
|
|
119
|
+
* // { // Dependency
|
|
120
|
+
* // Type: "LambdaLayer",
|
|
121
|
+
* // Reference: "STRING_VALUE", // required
|
|
122
|
+
* // },
|
|
123
|
+
* // ],
|
|
112
124
|
* // },
|
|
113
125
|
* // ExecutionRoleArn: "STRING_VALUE",
|
|
114
126
|
* // Schedule: { // CanaryScheduleOutput
|
|
@@ -60,6 +60,12 @@ declare const DescribeCanariesCommand_base: {
|
|
|
60
60
|
* // Code: { // CanaryCodeOutput
|
|
61
61
|
* // SourceLocationArn: "STRING_VALUE",
|
|
62
62
|
* // Handler: "STRING_VALUE",
|
|
63
|
+
* // Dependencies: [ // Dependencies
|
|
64
|
+
* // { // Dependency
|
|
65
|
+
* // Type: "LambdaLayer",
|
|
66
|
+
* // Reference: "STRING_VALUE", // required
|
|
67
|
+
* // },
|
|
68
|
+
* // ],
|
|
63
69
|
* // },
|
|
64
70
|
* // ExecutionRoleArn: "STRING_VALUE",
|
|
65
71
|
* // Schedule: { // CanaryScheduleOutput
|
|
@@ -49,6 +49,12 @@ declare const GetCanaryCommand_base: {
|
|
|
49
49
|
* // Code: { // CanaryCodeOutput
|
|
50
50
|
* // SourceLocationArn: "STRING_VALUE",
|
|
51
51
|
* // Handler: "STRING_VALUE",
|
|
52
|
+
* // Dependencies: [ // Dependencies
|
|
53
|
+
* // { // Dependency
|
|
54
|
+
* // Type: "LambdaLayer",
|
|
55
|
+
* // Reference: "STRING_VALUE", // required
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
52
58
|
* // },
|
|
53
59
|
* // ExecutionRoleArn: "STRING_VALUE",
|
|
54
60
|
* // Schedule: { // CanaryScheduleOutput
|
|
@@ -42,6 +42,12 @@ declare const StartCanaryDryRunCommand_base: {
|
|
|
42
42
|
* S3Version: "STRING_VALUE",
|
|
43
43
|
* ZipFile: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
44
44
|
* Handler: "STRING_VALUE", // required
|
|
45
|
+
* Dependencies: [ // Dependencies
|
|
46
|
+
* { // Dependency
|
|
47
|
+
* Type: "LambdaLayer",
|
|
48
|
+
* Reference: "STRING_VALUE", // required
|
|
49
|
+
* },
|
|
50
|
+
* ],
|
|
45
51
|
* },
|
|
46
52
|
* RuntimeVersion: "STRING_VALUE",
|
|
47
53
|
* RunConfig: { // CanaryRunConfigInput
|
|
@@ -49,6 +49,12 @@ declare const UpdateCanaryCommand_base: {
|
|
|
49
49
|
* S3Version: "STRING_VALUE",
|
|
50
50
|
* ZipFile: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
51
51
|
* Handler: "STRING_VALUE", // required
|
|
52
|
+
* Dependencies: [ // Dependencies
|
|
53
|
+
* { // Dependency
|
|
54
|
+
* Type: "LambdaLayer",
|
|
55
|
+
* Reference: "STRING_VALUE", // required
|
|
56
|
+
* },
|
|
57
|
+
* ],
|
|
52
58
|
* },
|
|
53
59
|
* ExecutionRoleArn: "STRING_VALUE",
|
|
54
60
|
* RuntimeVersion: "STRING_VALUE",
|
|
@@ -202,6 +202,34 @@ export interface BaseScreenshot {
|
|
|
202
202
|
*/
|
|
203
203
|
IgnoreCoordinates?: string[] | undefined;
|
|
204
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* @public
|
|
207
|
+
* @enum
|
|
208
|
+
*/
|
|
209
|
+
export declare const DependencyType: {
|
|
210
|
+
readonly LambdaLayer: "LambdaLayer";
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* @public
|
|
214
|
+
*/
|
|
215
|
+
export type DependencyType = (typeof DependencyType)[keyof typeof DependencyType];
|
|
216
|
+
/**
|
|
217
|
+
* <p>A structure that contains information about a dependency for a canary.</p>
|
|
218
|
+
* @public
|
|
219
|
+
*/
|
|
220
|
+
export interface Dependency {
|
|
221
|
+
/**
|
|
222
|
+
* <p>The type of dependency. Valid value is <code>LambdaLayer</code>.</p>
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
Type?: DependencyType | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* <p>The dependency reference. For Lambda layers, this is the ARN of the Lambda layer. For more information
|
|
228
|
+
* about Lambda ARN format, see <a href="https://docs.aws.amazon.com/lambda/latest/api/API_Layer.html">Lambda</a>.</p>
|
|
229
|
+
* @public
|
|
230
|
+
*/
|
|
231
|
+
Reference: string | undefined;
|
|
232
|
+
}
|
|
205
233
|
/**
|
|
206
234
|
* <p>This structure contains information about the canary's Lambda handler and
|
|
207
235
|
* where its code is stored by CloudWatch Synthetics.</p>
|
|
@@ -218,6 +246,11 @@ export interface CanaryCodeOutput {
|
|
|
218
246
|
* @public
|
|
219
247
|
*/
|
|
220
248
|
Handler?: string | undefined;
|
|
249
|
+
/**
|
|
250
|
+
* <p>A list of dependencies that are used for running this canary. The dependencies are specified as a key-value pair, where the key is the type of dependency and the value is the dependency reference.</p>
|
|
251
|
+
* @public
|
|
252
|
+
*/
|
|
253
|
+
Dependencies?: Dependency[] | undefined;
|
|
221
254
|
}
|
|
222
255
|
/**
|
|
223
256
|
* <p>Returns the dry run configurations set for a canary.</p>
|
|
@@ -814,6 +847,11 @@ export interface CanaryCodeInput {
|
|
|
814
847
|
* @public
|
|
815
848
|
*/
|
|
816
849
|
Handler: string | undefined;
|
|
850
|
+
/**
|
|
851
|
+
* <p>A list of dependencies that should be used for running this canary. Specify the dependencies as a key-value pair, where the key is the type of dependency and the value is the dependency reference.</p>
|
|
852
|
+
* @public
|
|
853
|
+
*/
|
|
854
|
+
Dependencies?: Dependency[] | undefined;
|
|
817
855
|
}
|
|
818
856
|
/**
|
|
819
857
|
* <p>A structure that contains input information for a canary run.</p>
|
|
@@ -79,9 +79,19 @@ export interface BaseScreenshot {
|
|
|
79
79
|
ScreenshotName: string | undefined;
|
|
80
80
|
IgnoreCoordinates?: string[] | undefined;
|
|
81
81
|
}
|
|
82
|
+
export declare const DependencyType: {
|
|
83
|
+
readonly LambdaLayer: "LambdaLayer";
|
|
84
|
+
};
|
|
85
|
+
export type DependencyType =
|
|
86
|
+
(typeof DependencyType)[keyof typeof DependencyType];
|
|
87
|
+
export interface Dependency {
|
|
88
|
+
Type?: DependencyType | undefined;
|
|
89
|
+
Reference: string | undefined;
|
|
90
|
+
}
|
|
82
91
|
export interface CanaryCodeOutput {
|
|
83
92
|
SourceLocationArn?: string | undefined;
|
|
84
93
|
Handler?: string | undefined;
|
|
94
|
+
Dependencies?: Dependency[] | undefined;
|
|
85
95
|
}
|
|
86
96
|
export interface DryRunConfigOutput {
|
|
87
97
|
DryRunId?: string | undefined;
|
|
@@ -231,6 +241,7 @@ export interface CanaryCodeInput {
|
|
|
231
241
|
S3Version?: string | undefined;
|
|
232
242
|
ZipFile?: Uint8Array | undefined;
|
|
233
243
|
Handler: string | undefined;
|
|
244
|
+
Dependencies?: Dependency[] | undefined;
|
|
234
245
|
}
|
|
235
246
|
export interface CanaryRunConfigInput {
|
|
236
247
|
TimeoutInSeconds?: number | undefined;
|
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.
|
|
4
|
+
"version": "3.848.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",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.846.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.848.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.840.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.840.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.840.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.848.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.840.0",
|
|
30
30
|
"@aws-sdk/types": "3.840.0",
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.848.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.840.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.848.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.1.4",
|
|
35
35
|
"@smithy/core": "^3.7.0",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.1.0",
|