@aws-sdk/client-dlm 3.441.0 → 3.445.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/models/models_0.js +8 -1
- package/dist-es/models/models_0.js +7 -0
- package/dist-types/commands/CreateLifecyclePolicyCommand.d.ts +12 -0
- package/dist-types/commands/GetLifecyclePoliciesCommand.d.ts +1 -1
- package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +12 -0
- package/dist-types/commands/UpdateLifecyclePolicyCommand.d.ts +12 -0
- package/dist-types/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +182 -22
- package/dist-types/ts3.4/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +19 -0
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GettablePolicyStateValues = exports.ResourceNotFoundException = exports.LimitExceededException = exports.InvalidRequestException = exports.InternalServerException = exports.SettablePolicyStateValues = exports.LocationValues = exports.IntervalUnitValues = exports.ResourceTypeValues = exports.ResourceLocationValues = exports.PolicyTypeValues = exports.EventSourceValues = exports.EventTypeValues = exports.RetentionIntervalUnitValues = void 0;
|
|
3
|
+
exports.GettablePolicyStateValues = exports.ResourceNotFoundException = exports.LimitExceededException = exports.InvalidRequestException = exports.InternalServerException = exports.SettablePolicyStateValues = exports.StageValues = exports.ExecutionHandlerServiceValues = exports.LocationValues = exports.IntervalUnitValues = exports.ResourceTypeValues = exports.ResourceLocationValues = exports.PolicyTypeValues = exports.EventSourceValues = exports.EventTypeValues = exports.RetentionIntervalUnitValues = void 0;
|
|
4
4
|
const DLMServiceException_1 = require("./DLMServiceException");
|
|
5
5
|
exports.RetentionIntervalUnitValues = {
|
|
6
6
|
DAYS: "DAYS",
|
|
@@ -34,6 +34,13 @@ exports.LocationValues = {
|
|
|
34
34
|
CLOUD: "CLOUD",
|
|
35
35
|
OUTPOST_LOCAL: "OUTPOST_LOCAL",
|
|
36
36
|
};
|
|
37
|
+
exports.ExecutionHandlerServiceValues = {
|
|
38
|
+
AWS_SYSTEMS_MANAGER: "AWS_SYSTEMS_MANAGER",
|
|
39
|
+
};
|
|
40
|
+
exports.StageValues = {
|
|
41
|
+
POST: "POST",
|
|
42
|
+
PRE: "PRE",
|
|
43
|
+
};
|
|
37
44
|
exports.SettablePolicyStateValues = {
|
|
38
45
|
DISABLED: "DISABLED",
|
|
39
46
|
ENABLED: "ENABLED",
|
|
@@ -31,6 +31,13 @@ export const LocationValues = {
|
|
|
31
31
|
CLOUD: "CLOUD",
|
|
32
32
|
OUTPOST_LOCAL: "OUTPOST_LOCAL",
|
|
33
33
|
};
|
|
34
|
+
export const ExecutionHandlerServiceValues = {
|
|
35
|
+
AWS_SYSTEMS_MANAGER: "AWS_SYSTEMS_MANAGER",
|
|
36
|
+
};
|
|
37
|
+
export const StageValues = {
|
|
38
|
+
POST: "POST",
|
|
39
|
+
PRE: "PRE",
|
|
40
|
+
};
|
|
34
41
|
export const SettablePolicyStateValues = {
|
|
35
42
|
DISABLED: "DISABLED",
|
|
36
43
|
ENABLED: "ENABLED",
|
|
@@ -73,6 +73,18 @@ export interface CreateLifecyclePolicyCommandOutput extends CreateLifecyclePolic
|
|
|
73
73
|
* "STRING_VALUE",
|
|
74
74
|
* ],
|
|
75
75
|
* CronExpression: "STRING_VALUE",
|
|
76
|
+
* Scripts: [ // ScriptsList
|
|
77
|
+
* { // Script
|
|
78
|
+
* Stages: [ // StagesList
|
|
79
|
+
* "PRE" || "POST",
|
|
80
|
+
* ],
|
|
81
|
+
* ExecutionHandlerService: "AWS_SYSTEMS_MANAGER",
|
|
82
|
+
* ExecutionHandler: "STRING_VALUE", // required
|
|
83
|
+
* ExecuteOperationOnScriptFailure: true || false,
|
|
84
|
+
* ExecutionTimeout: Number("int"),
|
|
85
|
+
* MaximumRetryCount: Number("int"),
|
|
86
|
+
* },
|
|
87
|
+
* ],
|
|
76
88
|
* },
|
|
77
89
|
* RetainRule: { // RetainRule
|
|
78
90
|
* Count: Number("int"),
|
|
@@ -24,7 +24,7 @@ export interface GetLifecyclePoliciesCommandOutput extends GetLifecyclePoliciesR
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Gets summary information about all or the specified data lifecycle policies.</p>
|
|
27
|
-
* <p>To get complete information about a policy, use <a>GetLifecyclePolicy</a>.</p>
|
|
27
|
+
* <p>To get complete information about a policy, use <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_GetLifecyclePolicy.html">GetLifecyclePolicy</a>.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -82,6 +82,18 @@ export interface GetLifecyclePolicyCommandOutput extends GetLifecyclePolicyRespo
|
|
|
82
82
|
* // "STRING_VALUE",
|
|
83
83
|
* // ],
|
|
84
84
|
* // CronExpression: "STRING_VALUE",
|
|
85
|
+
* // Scripts: [ // ScriptsList
|
|
86
|
+
* // { // Script
|
|
87
|
+
* // Stages: [ // StagesList
|
|
88
|
+
* // "PRE" || "POST",
|
|
89
|
+
* // ],
|
|
90
|
+
* // ExecutionHandlerService: "AWS_SYSTEMS_MANAGER",
|
|
91
|
+
* // ExecutionHandler: "STRING_VALUE", // required
|
|
92
|
+
* // ExecuteOperationOnScriptFailure: true || false,
|
|
93
|
+
* // ExecutionTimeout: Number("int"),
|
|
94
|
+
* // MaximumRetryCount: Number("int"),
|
|
95
|
+
* // },
|
|
96
|
+
* // ],
|
|
85
97
|
* // },
|
|
86
98
|
* // RetainRule: { // RetainRule
|
|
87
99
|
* // Count: Number("int"),
|
|
@@ -75,6 +75,18 @@ export interface UpdateLifecyclePolicyCommandOutput extends UpdateLifecyclePolic
|
|
|
75
75
|
* "STRING_VALUE",
|
|
76
76
|
* ],
|
|
77
77
|
* CronExpression: "STRING_VALUE",
|
|
78
|
+
* Scripts: [ // ScriptsList
|
|
79
|
+
* { // Script
|
|
80
|
+
* Stages: [ // StagesList
|
|
81
|
+
* "PRE" || "POST",
|
|
82
|
+
* ],
|
|
83
|
+
* ExecutionHandlerService: "AWS_SYSTEMS_MANAGER",
|
|
84
|
+
* ExecutionHandler: "STRING_VALUE", // required
|
|
85
|
+
* ExecuteOperationOnScriptFailure: true || false,
|
|
86
|
+
* ExecutionTimeout: Number("int"),
|
|
87
|
+
* MaximumRetryCount: Number("int"),
|
|
88
|
+
* },
|
|
89
|
+
* ],
|
|
78
90
|
* },
|
|
79
91
|
* RetainRule: { // RetainRule
|
|
80
92
|
* Count: Number("int"),
|
package/dist-types/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
export * from "./DLMClient";
|
|
13
13
|
export * from "./DLM";
|
|
14
14
|
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
15
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
16
|
+
export { DLMExtensionConfiguration } from "./extensionConfiguration";
|
|
15
17
|
export * from "./commands";
|
|
16
18
|
export * from "./models";
|
|
17
19
|
import "@aws-sdk/util-endpoints";
|
|
@@ -61,7 +61,7 @@ export interface CrossRegionCopyRetainRule {
|
|
|
61
61
|
* <b>[Event-based policies only]</b> Specifies a cross-Region copy action for event-based policies.</p>
|
|
62
62
|
* <note>
|
|
63
63
|
* <p>To specify a cross-Region copy rule for snapshot and AMI policies, use
|
|
64
|
-
* <a>CrossRegionCopyRule</a>.</p>
|
|
64
|
+
* <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_CrossRegionCopyRule.html">CrossRegionCopyRule</a>.</p>
|
|
65
65
|
* </note>
|
|
66
66
|
*/
|
|
67
67
|
export interface CrossRegionCopyAction {
|
|
@@ -349,6 +349,146 @@ export declare const LocationValues: {
|
|
|
349
349
|
* @public
|
|
350
350
|
*/
|
|
351
351
|
export type LocationValues = (typeof LocationValues)[keyof typeof LocationValues];
|
|
352
|
+
/**
|
|
353
|
+
* @public
|
|
354
|
+
* @enum
|
|
355
|
+
*/
|
|
356
|
+
export declare const ExecutionHandlerServiceValues: {
|
|
357
|
+
readonly AWS_SYSTEMS_MANAGER: "AWS_SYSTEMS_MANAGER";
|
|
358
|
+
};
|
|
359
|
+
/**
|
|
360
|
+
* @public
|
|
361
|
+
*/
|
|
362
|
+
export type ExecutionHandlerServiceValues = (typeof ExecutionHandlerServiceValues)[keyof typeof ExecutionHandlerServiceValues];
|
|
363
|
+
/**
|
|
364
|
+
* @public
|
|
365
|
+
* @enum
|
|
366
|
+
*/
|
|
367
|
+
export declare const StageValues: {
|
|
368
|
+
readonly POST: "POST";
|
|
369
|
+
readonly PRE: "PRE";
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* @public
|
|
373
|
+
*/
|
|
374
|
+
export type StageValues = (typeof StageValues)[keyof typeof StageValues];
|
|
375
|
+
/**
|
|
376
|
+
* @public
|
|
377
|
+
* <p>
|
|
378
|
+
* <b>[Snapshot policies that target instances only]</b> Information about pre and/or post scripts for a
|
|
379
|
+
* snapshot lifecycle policy that targets instances. For more information, see
|
|
380
|
+
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/automate-app-consistent-backups.html">
|
|
381
|
+
* Automating application-consistent snapshots with pre and post scripts</a>.</p>
|
|
382
|
+
*/
|
|
383
|
+
export interface Script {
|
|
384
|
+
/**
|
|
385
|
+
* @public
|
|
386
|
+
* <p>Indicate which scripts Amazon Data Lifecycle Manager should run on target instances. Pre scripts
|
|
387
|
+
* run before Amazon Data Lifecycle Manager initiates snapshot creation. Post scripts run after Amazon Data Lifecycle Manager
|
|
388
|
+
* initiates snapshot creation.</p>
|
|
389
|
+
* <ul>
|
|
390
|
+
* <li>
|
|
391
|
+
* <p>To run a pre script only, specify <code>PRE</code>. In this case,
|
|
392
|
+
* Amazon Data Lifecycle Manager calls the SSM document with the <code>pre-script</code> parameter
|
|
393
|
+
* before initiating snapshot creation.</p>
|
|
394
|
+
* </li>
|
|
395
|
+
* <li>
|
|
396
|
+
* <p>To run a post script only, specify <code>POST</code>. In this case,
|
|
397
|
+
* Amazon Data Lifecycle Manager calls the SSM document with the <code>post-script</code> parameter
|
|
398
|
+
* after initiating snapshot creation.</p>
|
|
399
|
+
* </li>
|
|
400
|
+
* <li>
|
|
401
|
+
* <p>To run both pre and post scripts, specify both <code>PRE</code> and <code>POST</code>. In
|
|
402
|
+
* this case, Amazon Data Lifecycle Manager calls the SSM document with the <code>pre-script</code>
|
|
403
|
+
* parameter before initiating snapshot creation, and then it calls the SSM
|
|
404
|
+
* document again with the <code>post-script</code> parameter after initiating
|
|
405
|
+
* snapshot creation.</p>
|
|
406
|
+
* </li>
|
|
407
|
+
* </ul>
|
|
408
|
+
* <p>If you are automating VSS Backups, omit this parameter.</p>
|
|
409
|
+
* <p>Default: PRE and POST</p>
|
|
410
|
+
*/
|
|
411
|
+
Stages?: StageValues[];
|
|
412
|
+
/**
|
|
413
|
+
* @public
|
|
414
|
+
* <p>Indicates the service used to execute the pre and/or post scripts.</p>
|
|
415
|
+
* <ul>
|
|
416
|
+
* <li>
|
|
417
|
+
* <p>If you are using custom SSM documents, specify
|
|
418
|
+
* <code>AWS_SYSTEMS_MANAGER</code>.</p>
|
|
419
|
+
* </li>
|
|
420
|
+
* <li>
|
|
421
|
+
* <p>If you are automating VSS Backups, omit this parameter.</p>
|
|
422
|
+
* </li>
|
|
423
|
+
* </ul>
|
|
424
|
+
* <p>Default: AWS_SYSTEMS_MANAGER</p>
|
|
425
|
+
*/
|
|
426
|
+
ExecutionHandlerService?: ExecutionHandlerServiceValues;
|
|
427
|
+
/**
|
|
428
|
+
* @public
|
|
429
|
+
* <p>The SSM document that includes the pre and/or post scripts to run.</p>
|
|
430
|
+
* <ul>
|
|
431
|
+
* <li>
|
|
432
|
+
* <p>If you are automating VSS backups, specify <code>AWS_VSS_BACKUP</code>.
|
|
433
|
+
* In this case, Amazon Data Lifecycle Manager automatically uses the <code>AWSEC2-CreateVssSnapshot</code>
|
|
434
|
+
* SSM document.</p>
|
|
435
|
+
* </li>
|
|
436
|
+
* <li>
|
|
437
|
+
* <p>If you are using a custom SSM document that you own, specify either
|
|
438
|
+
* the name or ARN of the SSM document. If you are using a custom SSM
|
|
439
|
+
* document that is shared with you, specify the ARN of the SSM document.</p>
|
|
440
|
+
* </li>
|
|
441
|
+
* </ul>
|
|
442
|
+
*/
|
|
443
|
+
ExecutionHandler: string | undefined;
|
|
444
|
+
/**
|
|
445
|
+
* @public
|
|
446
|
+
* <p>Indicates whether Amazon Data Lifecycle Manager should default to crash-consistent snapshots if the
|
|
447
|
+
* pre script fails.</p>
|
|
448
|
+
* <ul>
|
|
449
|
+
* <li>
|
|
450
|
+
* <p>To default to crash consistent snapshot if the pre script fails,
|
|
451
|
+
* specify <code>true</code>.</p>
|
|
452
|
+
* </li>
|
|
453
|
+
* <li>
|
|
454
|
+
* <p>To skip the instance for snapshot creation if the pre script fails,
|
|
455
|
+
* specify <code>false</code>.</p>
|
|
456
|
+
* </li>
|
|
457
|
+
* </ul>
|
|
458
|
+
* <p>This parameter is supported only if you run a pre script. If you run a post
|
|
459
|
+
* script only, omit this parameter.</p>
|
|
460
|
+
* <p>Default: true</p>
|
|
461
|
+
*/
|
|
462
|
+
ExecuteOperationOnScriptFailure?: boolean;
|
|
463
|
+
/**
|
|
464
|
+
* @public
|
|
465
|
+
* <p>Specifies a timeout period, in seconds, after which Amazon Data Lifecycle Manager fails the script
|
|
466
|
+
* run attempt if it has not completed. If a script does not complete within its
|
|
467
|
+
* timeout period, Amazon Data Lifecycle Manager fails the attempt. The timeout period applies to the pre
|
|
468
|
+
* and post scripts individually. </p>
|
|
469
|
+
* <p>If you are automating VSS Backups, omit this parameter.</p>
|
|
470
|
+
* <p>Default: 10</p>
|
|
471
|
+
*/
|
|
472
|
+
ExecutionTimeout?: number;
|
|
473
|
+
/**
|
|
474
|
+
* @public
|
|
475
|
+
* <p>Specifies the number of times Amazon Data Lifecycle Manager should retry scripts that fail.</p>
|
|
476
|
+
* <ul>
|
|
477
|
+
* <li>
|
|
478
|
+
* <p>If the pre script fails, Amazon Data Lifecycle Manager retries the entire snapshot creation
|
|
479
|
+
* process, including running the pre and post scripts.</p>
|
|
480
|
+
* </li>
|
|
481
|
+
* <li>
|
|
482
|
+
* <p>If the post script fails, Amazon Data Lifecycle Manager retries the post script only; in this
|
|
483
|
+
* case, the pre script will have completed and the snapshot might have
|
|
484
|
+
* been created.</p>
|
|
485
|
+
* </li>
|
|
486
|
+
* </ul>
|
|
487
|
+
* <p>If you do not want Amazon Data Lifecycle Manager to retry failed scripts, specify <code>0</code>.</p>
|
|
488
|
+
* <p>Default: 0</p>
|
|
489
|
+
*/
|
|
490
|
+
MaximumRetryCount?: number;
|
|
491
|
+
}
|
|
352
492
|
/**
|
|
353
493
|
* @public
|
|
354
494
|
* <p>
|
|
@@ -361,8 +501,9 @@ export type LocationValues = (typeof LocationValues)[keyof typeof LocationValues
|
|
|
361
501
|
* and <b>Times</b>.</p>
|
|
362
502
|
* </li>
|
|
363
503
|
* <li>
|
|
364
|
-
* <p>If you need to specify an <a>ArchiveRule</a>
|
|
365
|
-
* specify a creation frequency of at least
|
|
504
|
+
* <p>If you need to specify an <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html">ArchiveRule</a>
|
|
505
|
+
* for the schedule, then you must specify a creation frequency of at least
|
|
506
|
+
* 28 days.</p>
|
|
366
507
|
* </li>
|
|
367
508
|
* </ul>
|
|
368
509
|
* </note>
|
|
@@ -405,6 +546,16 @@ export interface CreateRule {
|
|
|
405
546
|
* expressions</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
|
|
406
547
|
*/
|
|
407
548
|
CronExpression?: string;
|
|
549
|
+
/**
|
|
550
|
+
* @public
|
|
551
|
+
* <p>
|
|
552
|
+
* <b>[Snapshot policies that target instances only]</b> Specifies pre and/or post scripts for a snapshot lifecycle policy
|
|
553
|
+
* that targets instances. This is useful for creating application-consistent snapshots, or for
|
|
554
|
+
* performing specific administrative tasks before or after Amazon Data Lifecycle Manager initiates snapshot creation.</p>
|
|
555
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/automate-app-consistent-backups.html">Automating
|
|
556
|
+
* application-consistent snapshots with pre and post scripts</a>.</p>
|
|
557
|
+
*/
|
|
558
|
+
Scripts?: Script[];
|
|
408
559
|
}
|
|
409
560
|
/**
|
|
410
561
|
* @public
|
|
@@ -430,30 +581,37 @@ export interface CrossRegionCopyDeprecateRule {
|
|
|
430
581
|
/**
|
|
431
582
|
* @public
|
|
432
583
|
* <p>
|
|
433
|
-
* <b>[Snapshot and AMI policies only]</b> Specifies a cross-Region copy rule for snapshot and AMI policies.</p>
|
|
584
|
+
* <b>[Snapshot and AMI policies only]</b> Specifies a cross-Region copy rule for a snapshot and AMI policies.</p>
|
|
434
585
|
* <note>
|
|
435
586
|
* <p>To specify a cross-Region copy action for event-based polices, use
|
|
436
|
-
* <a>CrossRegionCopyAction</a>.</p>
|
|
587
|
+
* <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_CrossRegionCopyAction.html">CrossRegionCopyAction</a>.</p>
|
|
437
588
|
* </note>
|
|
438
589
|
*/
|
|
439
590
|
export interface CrossRegionCopyRule {
|
|
440
591
|
/**
|
|
441
592
|
* @public
|
|
442
593
|
* <note>
|
|
443
|
-
* <p>
|
|
444
|
-
* <b>Target</b>
|
|
445
|
-
*
|
|
446
|
-
*
|
|
447
|
-
*
|
|
594
|
+
* <p>Use this parameter for AMI policies only. For snapshot policies, use
|
|
595
|
+
* <b>Target</b> instead. For snapshot policies
|
|
596
|
+
* created before the <b>Target</b> parameter
|
|
597
|
+
* was introduced, this parameter indicates the target Region for snapshot
|
|
598
|
+
* copies.</p>
|
|
599
|
+
* <p></p>
|
|
448
600
|
* </note>
|
|
601
|
+
* <p>
|
|
602
|
+
* <b>[AMI policies only]</b> The target Region or the Amazon Resource Name (ARN) of the target Outpost for the
|
|
603
|
+
* snapshot copies.</p>
|
|
449
604
|
*/
|
|
450
605
|
TargetRegion?: string;
|
|
451
606
|
/**
|
|
452
607
|
* @public
|
|
453
|
-
* <
|
|
608
|
+
* <note>
|
|
609
|
+
* <p>Use this parameter for snapshot policies only. For AMI policies, use
|
|
610
|
+
* <b>TargetRegion</b> instead.</p>
|
|
611
|
+
* </note>
|
|
612
|
+
* <p>
|
|
613
|
+
* <b>[Snapshot policies only]</b> The target Region or the Amazon Resource Name (ARN) of the target Outpost for the
|
|
454
614
|
* snapshot copies.</p>
|
|
455
|
-
* <p>Use this parameter instead of <b>TargetRegion</b>. Do not
|
|
456
|
-
* specify both.</p>
|
|
457
615
|
*/
|
|
458
616
|
Target?: string;
|
|
459
617
|
/**
|
|
@@ -554,7 +712,7 @@ export interface FastRestoreRule {
|
|
|
554
712
|
* <b>[Snapshot and AMI policies only]</b> Specifies a retention rule for snapshots created by snapshot policies, or for AMIs
|
|
555
713
|
* created by AMI policies.</p>
|
|
556
714
|
* <note>
|
|
557
|
-
* <p>For snapshot policies that have an <a>ArchiveRule</a>, this retention rule
|
|
715
|
+
* <p>For snapshot policies that have an <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html">ArchiveRule</a>, this retention rule
|
|
558
716
|
* applies to standard tier retention. When the retention threshold is met, snapshots
|
|
559
717
|
* are moved from the standard to the archive tier.</p>
|
|
560
718
|
* <p>For snapshot policies that do not have an <b>ArchiveRule</b>, snapshots
|
|
@@ -567,9 +725,10 @@ export interface FastRestoreRule {
|
|
|
567
725
|
* <b>Count-based retention</b>
|
|
568
726
|
* </p>
|
|
569
727
|
* <p>You must specify <b>Count</b>.
|
|
570
|
-
* If you specify an <a>ArchiveRule</a> for the schedule, then you can specify a retention count of
|
|
571
|
-
* <code>0</code> to archive snapshots immediately after creation. If you specify a <a>FastRestoreRule</a>,
|
|
572
|
-
* <a>ShareRule</a>, or a
|
|
728
|
+
* If you specify an <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html">ArchiveRule</a> for the schedule, then you can specify a retention count of
|
|
729
|
+
* <code>0</code> to archive snapshots immediately after creation. If you specify a <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_FastRestoreRule.html">FastRestoreRule</a>,
|
|
730
|
+
* <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_ShareRule.html">ShareRule</a>, or a
|
|
731
|
+
* <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_CrossRegionCopyRule.html">CrossRegionCopyRule</a>, then you must specify a retention count
|
|
573
732
|
* of <code>1</code> or more.</p>
|
|
574
733
|
* </li>
|
|
575
734
|
* <li>
|
|
@@ -577,10 +736,11 @@ export interface FastRestoreRule {
|
|
|
577
736
|
* <b>Age-based retention</b>
|
|
578
737
|
* </p>
|
|
579
738
|
* <p>You must specify <b>Interval</b>
|
|
580
|
-
* and <b>IntervalUnit</b>. If you specify an <a>ArchiveRule</a> for the
|
|
739
|
+
* and <b>IntervalUnit</b>. If you specify an <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html">ArchiveRule</a> for the
|
|
581
740
|
* schedule, then you can specify a retention interval of <code>0</code> days to archive snapshots immediately
|
|
582
|
-
* after creation. If you specify a <a>FastRestoreRule</a>, <a>ShareRule</a>, or a
|
|
583
|
-
* <a>CrossRegionCopyRule</a>,
|
|
741
|
+
* after creation. If you specify a <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_FastRestoreRule.html">FastRestoreRule</a>, <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_ShareRule.html">ShareRule</a>, or a
|
|
742
|
+
* <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_CrossRegionCopyRule.html">CrossRegionCopyRule</a>,
|
|
743
|
+
* then you must specify a retention interval of <code>1</code> day or
|
|
584
744
|
* more.</p>
|
|
585
745
|
* </li>
|
|
586
746
|
* </ul>
|
|
@@ -591,7 +751,7 @@ export interface RetainRule {
|
|
|
591
751
|
* <p>The number of snapshots to retain for each volume, up to a maximum of 1000. For example if you want to
|
|
592
752
|
* retain a maximum of three snapshots, specify <code>3</code>. When the fourth snapshot is created, the
|
|
593
753
|
* oldest retained snapshot is deleted, or it is moved to the archive tier if you have specified an
|
|
594
|
-
* <a>ArchiveRule</a>.</p>
|
|
754
|
+
* <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html">ArchiveRule</a>.</p>
|
|
595
755
|
*/
|
|
596
756
|
Count?: number;
|
|
597
757
|
/**
|
|
@@ -605,7 +765,7 @@ export interface RetainRule {
|
|
|
605
765
|
* <p>The unit of time for time-based retention. For example, to retain snapshots for 3 months, specify
|
|
606
766
|
* <code>Interval=3</code> and <code>IntervalUnit=MONTHS</code>. Once the snapshot has been retained for
|
|
607
767
|
* 3 months, it is deleted, or it is moved to the archive tier if you have specified an
|
|
608
|
-
* <a>ArchiveRule</a>.</p>
|
|
768
|
+
* <a href="https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html">ArchiveRule</a>.</p>
|
|
609
769
|
*/
|
|
610
770
|
IntervalUnit?: RetentionIntervalUnitValues;
|
|
611
771
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./DLMClient";
|
|
2
2
|
export * from "./DLM";
|
|
3
3
|
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
4
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
5
|
+
export { DLMExtensionConfiguration } from "./extensionConfiguration";
|
|
4
6
|
export * from "./commands";
|
|
5
7
|
export * from "./models";
|
|
6
8
|
import "@aws-sdk/util-endpoints";
|
|
@@ -94,12 +94,31 @@ export declare const LocationValues: {
|
|
|
94
94
|
};
|
|
95
95
|
export type LocationValues =
|
|
96
96
|
(typeof LocationValues)[keyof typeof LocationValues];
|
|
97
|
+
export declare const ExecutionHandlerServiceValues: {
|
|
98
|
+
readonly AWS_SYSTEMS_MANAGER: "AWS_SYSTEMS_MANAGER";
|
|
99
|
+
};
|
|
100
|
+
export type ExecutionHandlerServiceValues =
|
|
101
|
+
(typeof ExecutionHandlerServiceValues)[keyof typeof ExecutionHandlerServiceValues];
|
|
102
|
+
export declare const StageValues: {
|
|
103
|
+
readonly POST: "POST";
|
|
104
|
+
readonly PRE: "PRE";
|
|
105
|
+
};
|
|
106
|
+
export type StageValues = (typeof StageValues)[keyof typeof StageValues];
|
|
107
|
+
export interface Script {
|
|
108
|
+
Stages?: StageValues[];
|
|
109
|
+
ExecutionHandlerService?: ExecutionHandlerServiceValues;
|
|
110
|
+
ExecutionHandler: string | undefined;
|
|
111
|
+
ExecuteOperationOnScriptFailure?: boolean;
|
|
112
|
+
ExecutionTimeout?: number;
|
|
113
|
+
MaximumRetryCount?: number;
|
|
114
|
+
}
|
|
97
115
|
export interface CreateRule {
|
|
98
116
|
Location?: LocationValues;
|
|
99
117
|
Interval?: number;
|
|
100
118
|
IntervalUnit?: IntervalUnitValues;
|
|
101
119
|
Times?: string[];
|
|
102
120
|
CronExpression?: string;
|
|
121
|
+
Scripts?: Script[];
|
|
103
122
|
}
|
|
104
123
|
export interface CrossRegionCopyDeprecateRule {
|
|
105
124
|
Interval?: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dlm",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dlm Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.445.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.445.0",
|
|
25
|
+
"@aws-sdk/core": "3.445.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.445.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.433.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.433.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.433.0",
|