@aws-sdk/client-synthetics 3.686.0 → 3.687.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 +9 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/CreateCanaryCommand.d.ts +2 -0
- package/dist-types/commands/DeleteCanaryCommand.d.ts +3 -3
- package/dist-types/commands/DescribeCanariesCommand.d.ts +1 -0
- package/dist-types/commands/GetCanaryCommand.d.ts +1 -0
- package/dist-types/commands/UpdateCanaryCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +46 -2
- package/dist-types/ts3.4/models/models_0.d.ts +9 -0
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -47,6 +47,7 @@ __export(src_exports, {
|
|
|
47
47
|
ListGroupsCommand: () => ListGroupsCommand,
|
|
48
48
|
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
49
49
|
NotFoundException: () => NotFoundException,
|
|
50
|
+
ProvisionedResourceCleanupSetting: () => ProvisionedResourceCleanupSetting,
|
|
50
51
|
RequestEntityTooLargeException: () => RequestEntityTooLargeException,
|
|
51
52
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
52
53
|
ResourceToTag: () => ResourceToTag,
|
|
@@ -349,6 +350,10 @@ var _BadRequestException = class _BadRequestException extends SyntheticsServiceE
|
|
|
349
350
|
};
|
|
350
351
|
__name(_BadRequestException, "BadRequestException");
|
|
351
352
|
var BadRequestException = _BadRequestException;
|
|
353
|
+
var ProvisionedResourceCleanupSetting = {
|
|
354
|
+
AUTOMATIC: "AUTOMATIC",
|
|
355
|
+
OFF: "OFF"
|
|
356
|
+
};
|
|
352
357
|
var CanaryState = {
|
|
353
358
|
CREATING: "CREATING",
|
|
354
359
|
DELETING: "DELETING",
|
|
@@ -491,6 +496,7 @@ var se_CreateCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
491
496
|
ExecutionRoleArn: [],
|
|
492
497
|
FailureRetentionPeriodInDays: [],
|
|
493
498
|
Name: [],
|
|
499
|
+
ProvisionedResourceCleanup: [],
|
|
494
500
|
ResourcesToReplicateTags: (_) => (0, import_smithy_client._json)(_),
|
|
495
501
|
RunConfig: (_) => (0, import_smithy_client._json)(_),
|
|
496
502
|
RuntimeVersion: [],
|
|
@@ -761,6 +767,7 @@ var se_UpdateCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
761
767
|
Code: (_) => se_CanaryCodeInput(_, context),
|
|
762
768
|
ExecutionRoleArn: [],
|
|
763
769
|
FailureRetentionPeriodInDays: [],
|
|
770
|
+
ProvisionedResourceCleanup: [],
|
|
764
771
|
RunConfig: (_) => (0, import_smithy_client._json)(_),
|
|
765
772
|
RuntimeVersion: [],
|
|
766
773
|
Schedule: (_) => (0, import_smithy_client._json)(_),
|
|
@@ -1245,6 +1252,7 @@ var de_Canary = /* @__PURE__ */ __name((output, context) => {
|
|
|
1245
1252
|
FailureRetentionPeriodInDays: import_smithy_client.expectInt32,
|
|
1246
1253
|
Id: import_smithy_client.expectString,
|
|
1247
1254
|
Name: import_smithy_client.expectString,
|
|
1255
|
+
ProvisionedResourceCleanup: import_smithy_client.expectString,
|
|
1248
1256
|
RunConfig: import_smithy_client._json,
|
|
1249
1257
|
RuntimeVersion: import_smithy_client.expectString,
|
|
1250
1258
|
Schedule: import_smithy_client._json,
|
|
@@ -1717,6 +1725,7 @@ var paginateListGroups = (0, import_core.createPaginator)(SyntheticsClient, List
|
|
|
1717
1725
|
ServiceQuotaExceededException,
|
|
1718
1726
|
ValidationException,
|
|
1719
1727
|
BadRequestException,
|
|
1728
|
+
ProvisionedResourceCleanupSetting,
|
|
1720
1729
|
CanaryState,
|
|
1721
1730
|
CanaryStateReasonCode,
|
|
1722
1731
|
CanaryRunState,
|
|
@@ -81,6 +81,10 @@ export class BadRequestException extends __BaseException {
|
|
|
81
81
|
this.Message = opts.Message;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
export const ProvisionedResourceCleanupSetting = {
|
|
85
|
+
AUTOMATIC: "AUTOMATIC",
|
|
86
|
+
OFF: "OFF",
|
|
87
|
+
};
|
|
84
88
|
export const CanaryState = {
|
|
85
89
|
CREATING: "CREATING",
|
|
86
90
|
DELETING: "DELETING",
|
|
@@ -31,6 +31,7 @@ export const se_CreateCanaryCommand = async (input, context) => {
|
|
|
31
31
|
ExecutionRoleArn: [],
|
|
32
32
|
FailureRetentionPeriodInDays: [],
|
|
33
33
|
Name: [],
|
|
34
|
+
ProvisionedResourceCleanup: [],
|
|
34
35
|
ResourcesToReplicateTags: (_) => _json(_),
|
|
35
36
|
RunConfig: (_) => _json(_),
|
|
36
37
|
RuntimeVersion: [],
|
|
@@ -279,6 +280,7 @@ export const se_UpdateCanaryCommand = async (input, context) => {
|
|
|
279
280
|
Code: (_) => se_CanaryCodeInput(_, context),
|
|
280
281
|
ExecutionRoleArn: [],
|
|
281
282
|
FailureRetentionPeriodInDays: [],
|
|
283
|
+
ProvisionedResourceCleanup: [],
|
|
282
284
|
RunConfig: (_) => _json(_),
|
|
283
285
|
RuntimeVersion: [],
|
|
284
286
|
Schedule: (_) => _json(_),
|
|
@@ -766,6 +768,7 @@ const de_Canary = (output, context) => {
|
|
|
766
768
|
FailureRetentionPeriodInDays: __expectInt32,
|
|
767
769
|
Id: __expectString,
|
|
768
770
|
Name: __expectString,
|
|
771
|
+
ProvisionedResourceCleanup: __expectString,
|
|
769
772
|
RunConfig: _json,
|
|
770
773
|
RuntimeVersion: __expectString,
|
|
771
774
|
Schedule: _json,
|
|
@@ -84,6 +84,7 @@ declare const CreateCanaryCommand_base: {
|
|
|
84
84
|
* ResourcesToReplicateTags: [ // ResourceList
|
|
85
85
|
* "lambda-function",
|
|
86
86
|
* ],
|
|
87
|
+
* ProvisionedResourceCleanup: "AUTOMATIC" || "OFF",
|
|
87
88
|
* Tags: { // TagMap
|
|
88
89
|
* "<keys>": "STRING_VALUE",
|
|
89
90
|
* },
|
|
@@ -150,6 +151,7 @@ declare const CreateCanaryCommand_base: {
|
|
|
150
151
|
* // ],
|
|
151
152
|
* // BaseCanaryRunId: "STRING_VALUE",
|
|
152
153
|
* // },
|
|
154
|
+
* // ProvisionedResourceCleanup: "AUTOMATIC" || "OFF",
|
|
153
155
|
* // Tags: { // TagMap
|
|
154
156
|
* // "<keys>": "STRING_VALUE",
|
|
155
157
|
* // },
|
|
@@ -28,11 +28,11 @@ declare const DeleteCanaryCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Permanently deletes the specified canary.</p>
|
|
31
|
-
* <p>If
|
|
31
|
+
* <p>If the canary's <code>ProvisionedResourceCleanup</code> field is set to <code>AUTOMATIC</code>
|
|
32
|
+
* or you specify <code>DeleteLambda</code> in this operation as <code>true</code>, CloudWatch Synthetics also deletes
|
|
32
33
|
* the Lambda functions and layers that are used by the canary.</p>
|
|
33
34
|
* <p>Other resources used and created by the canary are not automatically deleted.
|
|
34
|
-
* After you delete a canary
|
|
35
|
-
* use again, you
|
|
35
|
+
* After you delete a canary, you
|
|
36
36
|
* should also delete the following:</p>
|
|
37
37
|
* <ul>
|
|
38
38
|
* <li>
|
|
@@ -206,6 +206,18 @@ export interface CanaryCodeOutput {
|
|
|
206
206
|
*/
|
|
207
207
|
Handler?: string;
|
|
208
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
* @enum
|
|
212
|
+
*/
|
|
213
|
+
export declare const ProvisionedResourceCleanupSetting: {
|
|
214
|
+
readonly AUTOMATIC: "AUTOMATIC";
|
|
215
|
+
readonly OFF: "OFF";
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* @public
|
|
219
|
+
*/
|
|
220
|
+
export type ProvisionedResourceCleanupSetting = (typeof ProvisionedResourceCleanupSetting)[keyof typeof ProvisionedResourceCleanupSetting];
|
|
209
221
|
/**
|
|
210
222
|
* <p>A structure that contains information about a canary run.</p>
|
|
211
223
|
* @public
|
|
@@ -483,6 +495,16 @@ export interface Canary {
|
|
|
483
495
|
* @public
|
|
484
496
|
*/
|
|
485
497
|
VisualReference?: VisualReferenceOutput;
|
|
498
|
+
/**
|
|
499
|
+
* <p>Specifies whether to also delete the Lambda functions and layers used by this canary
|
|
500
|
+
* when the canary is deleted. If it is <code>AUTOMATIC</code>, the Lambda functions and layers will be deleted
|
|
501
|
+
* when the canary is deleted.</p>
|
|
502
|
+
* <p>If the value of this parameter is <code>OFF</code>, then the value of the <code>DeleteLambda</code> parameter
|
|
503
|
+
* of the <a href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DeleteCanary.html">DeleteCanary</a> operation
|
|
504
|
+
* determines whether the Lambda functions and layers will be deleted.</p>
|
|
505
|
+
* @public
|
|
506
|
+
*/
|
|
507
|
+
ProvisionedResourceCleanup?: ProvisionedResourceCleanupSetting;
|
|
486
508
|
/**
|
|
487
509
|
* <p>The list of key-value pairs that are associated with the canary.</p>
|
|
488
510
|
* @public
|
|
@@ -906,10 +928,20 @@ export interface CreateCanaryRequest {
|
|
|
906
928
|
* <p>To have the tags that you apply to this canary also be applied to the Lambda function that
|
|
907
929
|
* the canary uses, specify this parameter with the value <code>lambda-function</code>.</p>
|
|
908
930
|
* <p>If you specify this parameter and don't specify any tags in the <code>Tags</code>
|
|
909
|
-
*
|
|
931
|
+
* parameter, the canary creation fails.</p>
|
|
910
932
|
* @public
|
|
911
933
|
*/
|
|
912
934
|
ResourcesToReplicateTags?: ResourceToTag[];
|
|
935
|
+
/**
|
|
936
|
+
* <p>Specifies whether to also delete the Lambda functions and layers used by this canary
|
|
937
|
+
* when the canary is deleted. If you omit this parameter, the default of <code>AUTOMATIC</code> is used, which means
|
|
938
|
+
* that the Lambda functions and layers will be deleted when the canary is deleted.</p>
|
|
939
|
+
* <p>If the value of this parameter is <code>OFF</code>, then the value of the <code>DeleteLambda</code> parameter
|
|
940
|
+
* of the <a href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DeleteCanary.html">DeleteCanary</a> operation
|
|
941
|
+
* determines whether the Lambda functions and layers will be deleted.</p>
|
|
942
|
+
* @public
|
|
943
|
+
*/
|
|
944
|
+
ProvisionedResourceCleanup?: ProvisionedResourceCleanupSetting;
|
|
913
945
|
/**
|
|
914
946
|
* <p>A list of key-value pairs to associate with the canary.
|
|
915
947
|
* You can associate as many as 50 tags with a canary.</p>
|
|
@@ -1030,7 +1062,10 @@ export interface DeleteCanaryRequest {
|
|
|
1030
1062
|
Name: string | undefined;
|
|
1031
1063
|
/**
|
|
1032
1064
|
* <p>Specifies whether to also delete the Lambda functions and layers used by this canary. The default
|
|
1033
|
-
* is false
|
|
1065
|
+
* is <code>false</code>.</p>
|
|
1066
|
+
* <p>Your setting for this parameter is used only if the canary doesn't have <code>AUTOMATIC</code> for its
|
|
1067
|
+
* <code>ProvisionedResourceCleanup</code> field. If that field is set to <code>AUTOMATIC</code>, then the
|
|
1068
|
+
* Lambda functions and layers will be deleted when this canary is deleted. </p>
|
|
1034
1069
|
* <p>Type: Boolean</p>
|
|
1035
1070
|
* @public
|
|
1036
1071
|
*/
|
|
@@ -1770,6 +1805,15 @@ export interface UpdateCanaryRequest {
|
|
|
1770
1805
|
* @public
|
|
1771
1806
|
*/
|
|
1772
1807
|
ArtifactConfig?: ArtifactConfigInput;
|
|
1808
|
+
/**
|
|
1809
|
+
* <p>Specifies whether to also delete the Lambda functions and layers used by this canary
|
|
1810
|
+
* when the canary is deleted.</p>
|
|
1811
|
+
* <p>If the value of this parameter is <code>OFF</code>, then the value of the <code>DeleteLambda</code> parameter
|
|
1812
|
+
* of the <a href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DeleteCanary.html">DeleteCanary</a> operation
|
|
1813
|
+
* determines whether the Lambda functions and layers will be deleted.</p>
|
|
1814
|
+
* @public
|
|
1815
|
+
*/
|
|
1816
|
+
ProvisionedResourceCleanup?: ProvisionedResourceCleanupSetting;
|
|
1773
1817
|
}
|
|
1774
1818
|
/**
|
|
1775
1819
|
* @public
|
|
@@ -75,6 +75,12 @@ export interface CanaryCodeOutput {
|
|
|
75
75
|
SourceLocationArn?: string;
|
|
76
76
|
Handler?: string;
|
|
77
77
|
}
|
|
78
|
+
export declare const ProvisionedResourceCleanupSetting: {
|
|
79
|
+
readonly AUTOMATIC: "AUTOMATIC";
|
|
80
|
+
readonly OFF: "OFF";
|
|
81
|
+
};
|
|
82
|
+
export type ProvisionedResourceCleanupSetting =
|
|
83
|
+
(typeof ProvisionedResourceCleanupSetting)[keyof typeof ProvisionedResourceCleanupSetting];
|
|
78
84
|
export interface CanaryRunConfigOutput {
|
|
79
85
|
TimeoutInSeconds?: number;
|
|
80
86
|
MemoryInMB?: number;
|
|
@@ -148,6 +154,7 @@ export interface Canary {
|
|
|
148
154
|
RuntimeVersion?: string;
|
|
149
155
|
VpcConfig?: VpcConfigOutput;
|
|
150
156
|
VisualReference?: VisualReferenceOutput;
|
|
157
|
+
ProvisionedResourceCleanup?: ProvisionedResourceCleanupSetting;
|
|
151
158
|
Tags?: Record<string, string>;
|
|
152
159
|
ArtifactConfig?: ArtifactConfigOutput;
|
|
153
160
|
}
|
|
@@ -221,6 +228,7 @@ export interface CreateCanaryRequest {
|
|
|
221
228
|
RuntimeVersion: string | undefined;
|
|
222
229
|
VpcConfig?: VpcConfigInput;
|
|
223
230
|
ResourcesToReplicateTags?: ResourceToTag[];
|
|
231
|
+
ProvisionedResourceCleanup?: ProvisionedResourceCleanupSetting;
|
|
224
232
|
Tags?: Record<string, string>;
|
|
225
233
|
ArtifactConfig?: ArtifactConfigInput;
|
|
226
234
|
}
|
|
@@ -411,5 +419,6 @@ export interface UpdateCanaryRequest {
|
|
|
411
419
|
VisualReference?: VisualReferenceInput;
|
|
412
420
|
ArtifactS3Location?: string;
|
|
413
421
|
ArtifactConfig?: ArtifactConfigInput;
|
|
422
|
+
ProvisionedResourceCleanup?: ProvisionedResourceCleanupSetting;
|
|
414
423
|
}
|
|
415
424
|
export interface UpdateCanaryResponse {}
|
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.687.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",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.687.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.687.0",
|
|
25
25
|
"@aws-sdk/core": "3.686.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.687.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.686.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.686.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.686.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.687.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.686.0",
|
|
32
32
|
"@aws-sdk/types": "3.686.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.686.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.686.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.687.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.10",
|
|
37
37
|
"@smithy/core": "^2.5.1",
|
|
38
38
|
"@smithy/fetch-http-handler": "^4.0.0",
|