@aws-sdk/client-synthetics 3.686.0 → 3.691.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
@@ -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 you specify <code>DeleteLambda</code> to <code>true</code>, CloudWatch Synthetics also deletes
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 that you do not intend to
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>
@@ -107,6 +107,7 @@ declare const DescribeCanariesCommand_base: {
107
107
  * // ],
108
108
  * // BaseCanaryRunId: "STRING_VALUE",
109
109
  * // },
110
+ * // ProvisionedResourceCleanup: "AUTOMATIC" || "OFF",
110
111
  * // Tags: { // TagMap
111
112
  * // "<keys>": "STRING_VALUE",
112
113
  * // },
@@ -95,6 +95,7 @@ declare const GetCanaryCommand_base: {
95
95
  * // ],
96
96
  * // BaseCanaryRunId: "STRING_VALUE",
97
97
  * // },
98
+ * // ProvisionedResourceCleanup: "AUTOMATIC" || "OFF",
98
99
  * // Tags: { // TagMap
99
100
  * // "<keys>": "STRING_VALUE",
100
101
  * // },
@@ -89,6 +89,7 @@ declare const UpdateCanaryCommand_base: {
89
89
  * KmsKeyArn: "STRING_VALUE",
90
90
  * },
91
91
  * },
92
+ * ProvisionedResourceCleanup: "AUTOMATIC" || "OFF",
92
93
  * };
93
94
  * const command = new UpdateCanaryCommand(input);
94
95
  * const response = await client.send(command);