@aws-sdk/client-dlm 3.259.0 → 3.262.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/endpoint/ruleset.js +3 -3
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-types/DLM.d.ts +5 -5
- package/dist-types/DLMClient.d.ts +2 -2
- package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +1 -1
- package/dist-types/commands/GetLifecyclePoliciesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateLifecyclePolicyCommand.d.ts +1 -1
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +50 -56
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const s = "fn", t = "argv", u = "ref";
|
|
5
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "getAttr", i = { "required": true, "default": false, "type": "Boolean" }, j = { [u]: "Endpoint" }, k = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, l = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, m = {}, n = { [s]: "booleanEquals", [t]: [true, { [s]: h, [t]: [{ [u]: d }, "supportsFIPS"] }] }, o = { [u]: d }, p = { [s]: "booleanEquals", [t]: [true, { [s]: h, [t]: [o, "supportsDualStack"] }] }, q = [k], r = [l];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: i, UseFIPS: i, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [{ [u]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [s]: "isSet", [t]: [j] }], type: e, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: j, properties: m, headers: m }, type: g }] }] }, { conditions: [k, l], type: e, rules: [{ conditions: [n, p], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://dlm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ conditions: [{ [s]: "stringEquals", [t]: ["aws-us-gov", { [s]: h, [t]: [o, "name"] }] }], endpoint: { url: "https://dlm.{Region}.amazonaws.com", properties: m, headers: m }, type: g }, { endpoint: { url: "https://dlm-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: r, type: e, rules: [{ conditions: [p], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://dlm.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://dlm.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const s = "fn", t = "argv", u = "ref";
|
|
2
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "getAttr", i = { "required": true, "default": false, "type": "Boolean" }, j = { [u]: "Endpoint" }, k = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, l = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, m = {}, n = { [s]: "booleanEquals", [t]: [true, { [s]: h, [t]: [{ [u]: d }, "supportsFIPS"] }] }, o = { [u]: d }, p = { [s]: "booleanEquals", [t]: [true, { [s]: h, [t]: [o, "supportsDualStack"] }] }, q = [k], r = [l];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: i, UseFIPS: i, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [{ [u]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [s]: "isSet", [t]: [j] }], type: e, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: j, properties: m, headers: m }, type: g }] }] }, { conditions: [k, l], type: e, rules: [{ conditions: [n, p], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://dlm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ conditions: [{ [s]: "stringEquals", [t]: ["aws-us-gov", { [s]: h, [t]: [o, "name"] }] }], endpoint: { url: "https://dlm.{Region}.amazonaws.com", properties: m, headers: m }, type: g }, { endpoint: { url: "https://dlm-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: r, type: e, rules: [{ conditions: [p], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://dlm.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://dlm.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
package/dist-types/DLM.d.ts
CHANGED
|
@@ -10,10 +10,10 @@ import { UpdateLifecyclePolicyCommandInput, UpdateLifecyclePolicyCommandOutput }
|
|
|
10
10
|
import { DLMClient } from "./DLMClient";
|
|
11
11
|
/**
|
|
12
12
|
* <fullname>Amazon Data Lifecycle Manager</fullname>
|
|
13
|
-
*
|
|
13
|
+
* <p>With Amazon Data Lifecycle Manager, you can manage the lifecycle of your Amazon Web Services resources. You create
|
|
14
14
|
* lifecycle policies, which are used to automate operations on the specified
|
|
15
15
|
* resources.</p>
|
|
16
|
-
*
|
|
16
|
+
* <p>Amazon Data Lifecycle Manager supports Amazon EBS volumes and snapshots. For information about using Amazon Data Lifecycle Manager
|
|
17
17
|
* with Amazon EBS, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.html">
|
|
18
18
|
* Amazon Data Lifecycle Manager</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
19
19
|
*/
|
|
@@ -28,7 +28,7 @@ export declare class DLM extends DLMClient {
|
|
|
28
28
|
/**
|
|
29
29
|
* <p>Deletes the specified lifecycle policy and halts the automated operations that the
|
|
30
30
|
* policy specified.</p>
|
|
31
|
-
*
|
|
31
|
+
* <p>For more information about deleting a policy, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/view-modify-delete.html#delete">Delete lifecycle
|
|
32
32
|
* policies</a>.</p>
|
|
33
33
|
*/
|
|
34
34
|
deleteLifecyclePolicy(args: DeleteLifecyclePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLifecyclePolicyCommandOutput>;
|
|
@@ -36,7 +36,7 @@ export declare class DLM extends DLMClient {
|
|
|
36
36
|
deleteLifecyclePolicy(args: DeleteLifecyclePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLifecyclePolicyCommandOutput) => void): void;
|
|
37
37
|
/**
|
|
38
38
|
* <p>Gets summary information about all or the specified data lifecycle policies.</p>
|
|
39
|
-
*
|
|
39
|
+
* <p>To get complete information about a policy, use <a>GetLifecyclePolicy</a>.</p>
|
|
40
40
|
*/
|
|
41
41
|
getLifecyclePolicies(args: GetLifecyclePoliciesCommandInput, options?: __HttpHandlerOptions): Promise<GetLifecyclePoliciesCommandOutput>;
|
|
42
42
|
getLifecyclePolicies(args: GetLifecyclePoliciesCommandInput, cb: (err: any, data?: GetLifecyclePoliciesCommandOutput) => void): void;
|
|
@@ -67,7 +67,7 @@ export declare class DLM extends DLMClient {
|
|
|
67
67
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
68
68
|
/**
|
|
69
69
|
* <p>Updates the specified lifecycle policy.</p>
|
|
70
|
-
*
|
|
70
|
+
* <p>For more information about updating a policy, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/view-modify-delete.html#modify">Modify lifecycle
|
|
71
71
|
* policies</a>.</p>
|
|
72
72
|
*/
|
|
73
73
|
updateLifecyclePolicy(args: UpdateLifecyclePolicyCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLifecyclePolicyCommandOutput>;
|
|
@@ -132,10 +132,10 @@ export interface DLMClientResolvedConfig extends DLMClientResolvedConfigType {
|
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
134
|
* <fullname>Amazon Data Lifecycle Manager</fullname>
|
|
135
|
-
*
|
|
135
|
+
* <p>With Amazon Data Lifecycle Manager, you can manage the lifecycle of your Amazon Web Services resources. You create
|
|
136
136
|
* lifecycle policies, which are used to automate operations on the specified
|
|
137
137
|
* resources.</p>
|
|
138
|
-
*
|
|
138
|
+
* <p>Amazon Data Lifecycle Manager supports Amazon EBS volumes and snapshots. For information about using Amazon Data Lifecycle Manager
|
|
139
139
|
* with Amazon EBS, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.html">
|
|
140
140
|
* Amazon Data Lifecycle Manager</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
141
141
|
*/
|
|
@@ -10,7 +10,7 @@ export interface DeleteLifecyclePolicyCommandOutput extends DeleteLifecyclePolic
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Deletes the specified lifecycle policy and halts the automated operations that the
|
|
12
12
|
* policy specified.</p>
|
|
13
|
-
*
|
|
13
|
+
* <p>For more information about deleting a policy, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/view-modify-delete.html#delete">Delete lifecycle
|
|
14
14
|
* policies</a>.</p>
|
|
15
15
|
* @example
|
|
16
16
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -9,7 +9,7 @@ export interface GetLifecyclePoliciesCommandOutput extends GetLifecyclePoliciesR
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* <p>Gets summary information about all or the specified data lifecycle policies.</p>
|
|
12
|
-
*
|
|
12
|
+
* <p>To get complete information about a policy, use <a>GetLifecyclePolicy</a>.</p>
|
|
13
13
|
* @example
|
|
14
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
15
|
* ```javascript
|
|
@@ -9,7 +9,7 @@ export interface UpdateLifecyclePolicyCommandOutput extends UpdateLifecyclePolic
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* <p>Updates the specified lifecycle policy.</p>
|
|
12
|
-
*
|
|
12
|
+
* <p>For more information about updating a policy, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/view-modify-delete.html#modify">Modify lifecycle
|
|
13
13
|
* policies</a>.</p>
|
|
14
14
|
* @example
|
|
15
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -44,11 +44,10 @@ export interface CrossRegionCopyRetainRule {
|
|
|
44
44
|
/**
|
|
45
45
|
* <p>
|
|
46
46
|
* <b>[Event-based policies only]</b> Specifies a cross-Region copy action for event-based policies.</p>
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* <p>To specify a cross-Region copy rule for snapshot and AMI policies, use
|
|
47
|
+
* <note>
|
|
48
|
+
* <p>To specify a cross-Region copy rule for snapshot and AMI policies, use
|
|
50
49
|
* <a>CrossRegionCopyRule</a>.</p>
|
|
51
|
-
*
|
|
50
|
+
* </note>
|
|
52
51
|
*/
|
|
53
52
|
export interface CrossRegionCopyAction {
|
|
54
53
|
/**
|
|
@@ -84,15 +83,14 @@ export interface Action {
|
|
|
84
83
|
* <p>
|
|
85
84
|
* <b>[Snapshot policies only]</b> Describes the retention rule for archived snapshots. Once the archive
|
|
86
85
|
* retention threshold is met, the snapshots are permanently deleted from the archive tier.</p>
|
|
87
|
-
*
|
|
88
|
-
*
|
|
86
|
+
* <note>
|
|
87
|
+
* <p>The archive retention rule must retain snapshots in the archive tier for a minimum
|
|
89
88
|
* of 90 days.</p>
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
* <p>For <b>count-based schedules</b>, you must specify <b>Count</b>. For <b>age-based
|
|
89
|
+
* </note>
|
|
90
|
+
* <p>For <b>count-based schedules</b>, you must specify <b>Count</b>. For <b>age-based
|
|
93
91
|
* schedules</b>, you must specify <b>Interval</b> and
|
|
94
92
|
* <b> IntervalUnit</b>.</p>
|
|
95
|
-
*
|
|
93
|
+
* <p>For more information about using snapshot archiving, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-ami-policy.html#dlm-archive">Considerations for
|
|
96
94
|
* snapshot lifecycle policies</a>.</p>
|
|
97
95
|
*/
|
|
98
96
|
export interface RetentionArchiveTier {
|
|
@@ -158,7 +156,7 @@ export interface EventParameters {
|
|
|
158
156
|
* <p>The snapshot description that can trigger the policy. The description pattern is specified using
|
|
159
157
|
* a regular expression. The policy runs only if a snapshot with a description that matches the
|
|
160
158
|
* specified pattern is shared with your account.</p>
|
|
161
|
-
*
|
|
159
|
+
* <p>For example, specifying <code>^.*Created for policy: policy-1234567890abcdef0.*$</code>
|
|
162
160
|
* configures the policy to run only if snapshots created by policy <code>policy-1234567890abcdef0</code>
|
|
163
161
|
* are shared with your account.</p>
|
|
164
162
|
*/
|
|
@@ -199,7 +197,7 @@ export interface Tag {
|
|
|
199
197
|
* <b>[Snapshot and AMI policies only]</b> Specifies optional parameters for snapshot and AMI policies. The
|
|
200
198
|
* set of valid parameters depends on the combination of policy type and target resource
|
|
201
199
|
* type.</p>
|
|
202
|
-
*
|
|
200
|
+
* <p>If you choose to exclude boot volumes and you specify tags that consequently exclude
|
|
203
201
|
* all of the additional data volumes attached to an instance, then Amazon Data Lifecycle Manager will not create
|
|
204
202
|
* any snapshots for the affected instance, and it will emit a <code>SnapshotsCreateFailed</code>
|
|
205
203
|
* Amazon CloudWatch metric. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-dlm-cw-metrics.html">Monitor your policies
|
|
@@ -226,7 +224,7 @@ export interface _Parameters {
|
|
|
226
224
|
* <p>
|
|
227
225
|
* <b>[Snapshot policies that target instances only]</b> The tags used to identify data (non-root) volumes to exclude from
|
|
228
226
|
* multi-volume snapshot sets.</p>
|
|
229
|
-
*
|
|
227
|
+
* <p>If you create a snapshot lifecycle policy that targets instances and you specify tags for
|
|
230
228
|
* this parameter, then data volumes with the specified tags that are attached to targeted
|
|
231
229
|
* instances will be excluded from the multi-volume snapshot sets created by the policy.</p>
|
|
232
230
|
*/
|
|
@@ -255,19 +253,19 @@ export declare enum LocationValues {
|
|
|
255
253
|
/**
|
|
256
254
|
* <p>
|
|
257
255
|
* <b>[Snapshot and AMI policies only]</b> Specifies when the policy should create snapshots or AMIs.</p>
|
|
258
|
-
*
|
|
259
|
-
*
|
|
256
|
+
* <note>
|
|
257
|
+
* <ul>
|
|
260
258
|
* <li>
|
|
261
|
-
*
|
|
259
|
+
* <p>You must specify either <b>CronExpression</b>, or
|
|
262
260
|
* <b>Interval</b>, <b>IntervalUnit</b>,
|
|
263
261
|
* and <b>Times</b>.</p>
|
|
264
|
-
*
|
|
262
|
+
* </li>
|
|
265
263
|
* <li>
|
|
266
|
-
*
|
|
264
|
+
* <p>If you need to specify an <a>ArchiveRule</a> for the schedule, then you must
|
|
267
265
|
* specify a creation frequency of at least 28 days.</p>
|
|
268
|
-
*
|
|
266
|
+
* </li>
|
|
269
267
|
* </ul>
|
|
270
|
-
*
|
|
268
|
+
* </note>
|
|
271
269
|
*/
|
|
272
270
|
export interface CreateRule {
|
|
273
271
|
/**
|
|
@@ -276,7 +274,7 @@ export interface CreateRule {
|
|
|
276
274
|
* snapshots in the same Region as the source resource, specify <code>CLOUD</code>. To create
|
|
277
275
|
* snapshots on the same Outpost as the source resource, specify <code>OUTPOST_LOCAL</code>.
|
|
278
276
|
* If you omit this parameter, <code>CLOUD</code> is used by default.</p>
|
|
279
|
-
*
|
|
277
|
+
* <p>If the policy targets resources in an Amazon Web Services Region, then you must create
|
|
280
278
|
* snapshots in the same Region as the source resource. If the policy targets resources on an
|
|
281
279
|
* Outpost, then you can create snapshots on the same Outpost as the source resource, or in
|
|
282
280
|
* the Region of that Outpost.</p>
|
|
@@ -292,7 +290,7 @@ export interface CreateRule {
|
|
|
292
290
|
IntervalUnit?: IntervalUnitValues | string;
|
|
293
291
|
/**
|
|
294
292
|
* <p>The time, in UTC, to start the operation. The supported format is hh:mm.</p>
|
|
295
|
-
*
|
|
293
|
+
* <p>The operation occurs within a one-hour window following the specified time. If you do
|
|
296
294
|
* not specify a time, Amazon Data Lifecycle Manager selects a time within the next 24 hours.</p>
|
|
297
295
|
*/
|
|
298
296
|
Times?: string[];
|
|
@@ -324,26 +322,26 @@ export interface CrossRegionCopyDeprecateRule {
|
|
|
324
322
|
/**
|
|
325
323
|
* <p>
|
|
326
324
|
* <b>[Snapshot and AMI policies only]</b> Specifies a cross-Region copy rule for snapshot and AMI policies.</p>
|
|
327
|
-
*
|
|
328
|
-
*
|
|
325
|
+
* <note>
|
|
326
|
+
* <p>To specify a cross-Region copy action for event-based polices, use
|
|
329
327
|
* <a>CrossRegionCopyAction</a>.</p>
|
|
330
|
-
*
|
|
328
|
+
* </note>
|
|
331
329
|
*/
|
|
332
330
|
export interface CrossRegionCopyRule {
|
|
333
331
|
/**
|
|
334
332
|
* <note>
|
|
335
|
-
*
|
|
333
|
+
* <p>Avoid using this parameter when creating new policies. Instead, use
|
|
336
334
|
* <b>Target</b> to specify a target Region or a target
|
|
337
335
|
* Outpost for snapshot copies.</p>
|
|
338
|
-
*
|
|
336
|
+
* <p>For policies created before the <b>Target</b> parameter
|
|
339
337
|
* was introduced, this parameter indicates the target Region for snapshot copies.</p>
|
|
340
|
-
*
|
|
338
|
+
* </note>
|
|
341
339
|
*/
|
|
342
340
|
TargetRegion?: string;
|
|
343
341
|
/**
|
|
344
342
|
* <p>The target Region or the Amazon Resource Name (ARN) of the target Outpost for the
|
|
345
343
|
* snapshot copies.</p>
|
|
346
|
-
*
|
|
344
|
+
* <p>Use this parameter instead of <b>TargetRegion</b>. Do not
|
|
347
345
|
* specify both.</p>
|
|
348
346
|
*/
|
|
349
347
|
Target?: string;
|
|
@@ -377,7 +375,7 @@ export interface CrossRegionCopyRule {
|
|
|
377
375
|
/**
|
|
378
376
|
* <p>
|
|
379
377
|
* <b>[AMI policies only]</b> Specifies an AMI deprecation rule for AMIs created by an AMI lifecycle policy.</p>
|
|
380
|
-
*
|
|
378
|
+
* <p>For age-based schedules, you must specify <b>Interval</b> and
|
|
381
379
|
* <b>IntervalUnit</b>. For count-based schedules, you must specify
|
|
382
380
|
* <b>Count</b>.</p>
|
|
383
381
|
*/
|
|
@@ -429,38 +427,36 @@ export interface FastRestoreRule {
|
|
|
429
427
|
* <p>
|
|
430
428
|
* <b>[Snapshot and AMI policies only]</b> Specifies a retention rule for snapshots created by snapshot policies, or for AMIs
|
|
431
429
|
* created by AMI policies.</p>
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
* <p>For snapshot policies that have an <a>ArchiveRule</a>, this retention rule
|
|
430
|
+
* <note>
|
|
431
|
+
* <p>For snapshot policies that have an <a>ArchiveRule</a>, this retention rule
|
|
435
432
|
* applies to standard tier retention. When the retention threshold is met, snapshots
|
|
436
433
|
* are moved from the standard to the archive tier.</p>
|
|
437
|
-
*
|
|
434
|
+
* <p>For snapshot policies that do not have an <b>ArchiveRule</b>, snapshots
|
|
438
435
|
* are permanently deleted when this retention threshold is met.</p>
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
* <ul>
|
|
436
|
+
* </note>
|
|
437
|
+
* <p>You can retain snapshots based on either a count or a time interval.</p>
|
|
438
|
+
* <ul>
|
|
443
439
|
* <li>
|
|
444
|
-
*
|
|
440
|
+
* <p>
|
|
445
441
|
* <b>Count-based retention</b>
|
|
446
442
|
* </p>
|
|
447
|
-
*
|
|
443
|
+
* <p>You must specify <b>Count</b>.
|
|
448
444
|
* If you specify an <a>ArchiveRule</a> for the schedule, then you can specify a retention count of
|
|
449
445
|
* <code>0</code> to archive snapshots immediately after creation. If you specify a <a>FastRestoreRule</a>,
|
|
450
446
|
* <a>ShareRule</a>, or a <a>CrossRegionCopyRule</a>, then you must specify a retention count
|
|
451
447
|
* of <code>1</code> or more.</p>
|
|
452
|
-
*
|
|
448
|
+
* </li>
|
|
453
449
|
* <li>
|
|
454
|
-
*
|
|
450
|
+
* <p>
|
|
455
451
|
* <b>Age-based retention</b>
|
|
456
452
|
* </p>
|
|
457
|
-
*
|
|
453
|
+
* <p>You must specify <b>Interval</b>
|
|
458
454
|
* and <b>IntervalUnit</b>. If you specify an <a>ArchiveRule</a> for the
|
|
459
455
|
* schedule, then you can specify a retention interval of <code>0</code> days to archive snapshots immediately
|
|
460
456
|
* after creation. If you specify a <a>FastRestoreRule</a>, <a>ShareRule</a>, or a
|
|
461
457
|
* <a>CrossRegionCopyRule</a>, then you must specify a retention interval of <code>1</code> day or
|
|
462
458
|
* more.</p>
|
|
463
|
-
*
|
|
459
|
+
* </li>
|
|
464
460
|
* </ul>
|
|
465
461
|
*/
|
|
466
462
|
export interface RetainRule {
|
|
@@ -545,8 +541,7 @@ export interface Schedule {
|
|
|
545
541
|
FastRestoreRule?: FastRestoreRule;
|
|
546
542
|
/**
|
|
547
543
|
* <p>Specifies a rule for copying snapshots or AMIs across regions.</p>
|
|
548
|
-
*
|
|
549
|
-
* <note>
|
|
544
|
+
* <note>
|
|
550
545
|
* <p>You can't specify cross-Region copy rules for policies that create snapshots on an Outpost.
|
|
551
546
|
* If the policy creates snapshots in a Region, then snapshots can be copied to up to three
|
|
552
547
|
* Regions or Outposts.</p>
|
|
@@ -569,7 +564,7 @@ export interface Schedule {
|
|
|
569
564
|
* rule, snapshots are automatically moved from the standard tier to the archive tier once the schedule's
|
|
570
565
|
* retention threshold is met. Snapshots are then retained in the archive tier for the archive retention
|
|
571
566
|
* period that you specify. </p>
|
|
572
|
-
*
|
|
567
|
+
* <p>For more information about using snapshot archiving, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-ami-policy.html#dlm-archive">Considerations for
|
|
573
568
|
* snapshot lifecycle policies</a>.</p>
|
|
574
569
|
*/
|
|
575
570
|
ArchiveRule?: ArchiveRule;
|
|
@@ -585,7 +580,7 @@ export interface PolicyDetails {
|
|
|
585
580
|
* to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify <code>IMAGE_MANAGEMENT</code>
|
|
586
581
|
* to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify <code>EVENT_BASED_POLICY </code>
|
|
587
582
|
* to create an event-based policy that performs specific actions when a defined event occurs in your Amazon Web Services account.</p>
|
|
588
|
-
*
|
|
583
|
+
* <p>The default is <code>EBS_SNAPSHOT_MANAGEMENT</code>.</p>
|
|
589
584
|
*/
|
|
590
585
|
PolicyType?: PolicyTypeValues | string;
|
|
591
586
|
/**
|
|
@@ -600,7 +595,7 @@ export interface PolicyDetails {
|
|
|
600
595
|
* <b>[Snapshot and AMI policies only]</b> The location of the resources to backup. If the source resources are located in an
|
|
601
596
|
* Amazon Web Services Region, specify <code>CLOUD</code>. If the source resources are located on an Outpost
|
|
602
597
|
* in your account, specify <code>OUTPOST</code>.</p>
|
|
603
|
-
*
|
|
598
|
+
* <p>If you specify <code>OUTPOST</code>, Amazon Data Lifecycle Manager backs up all resources
|
|
604
599
|
* of the specified type with matching target tags across all of the Outposts in your account.</p>
|
|
605
600
|
*/
|
|
606
601
|
ResourceLocations?: (ResourceLocationValues | string)[];
|
|
@@ -618,13 +613,12 @@ export interface PolicyDetails {
|
|
|
618
613
|
/**
|
|
619
614
|
* <p>
|
|
620
615
|
* <b>[Snapshot and AMI policies only]</b> A set of optional parameters for snapshot and AMI lifecycle policies. </p>
|
|
621
|
-
*
|
|
622
|
-
*
|
|
623
|
-
* <p>If you are modifying a policy that was created or previously modified using the Amazon
|
|
616
|
+
* <note>
|
|
617
|
+
* <p>If you are modifying a policy that was created or previously modified using the Amazon
|
|
624
618
|
* Data Lifecycle Manager console, then you must include this parameter and specify either
|
|
625
619
|
* the default values or the new values that you require. You can't omit this parameter or
|
|
626
620
|
* set its values to null.</p>
|
|
627
|
-
*
|
|
621
|
+
* </note>
|
|
628
622
|
*/
|
|
629
623
|
Parameters?: _Parameters;
|
|
630
624
|
/**
|
|
@@ -774,13 +768,13 @@ export interface GetLifecyclePoliciesRequest {
|
|
|
774
768
|
ResourceTypes?: (ResourceTypeValues | string)[];
|
|
775
769
|
/**
|
|
776
770
|
* <p>The target tag for a policy.</p>
|
|
777
|
-
*
|
|
771
|
+
* <p>Tags are strings in the format <code>key=value</code>.</p>
|
|
778
772
|
*/
|
|
779
773
|
TargetTags?: string[];
|
|
780
774
|
/**
|
|
781
775
|
* <p>The tags to add to objects created by the policy.</p>
|
|
782
|
-
*
|
|
783
|
-
*
|
|
776
|
+
* <p>Tags are strings in the format <code>key=value</code>.</p>
|
|
777
|
+
* <p>These user-defined tags are added in addition to the Amazon Web Services-added lifecycle tags.</p>
|
|
784
778
|
*/
|
|
785
779
|
TagsToAdd?: string[];
|
|
786
780
|
}
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
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.262.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.262.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.259.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.261.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.257.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.257.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.257.0",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@aws-sdk/node-config-provider": "3.259.0",
|
|
40
40
|
"@aws-sdk/node-http-handler": "3.257.0",
|
|
41
41
|
"@aws-sdk/protocol-http": "3.257.0",
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
+
"@aws-sdk/smithy-client": "3.261.0",
|
|
43
43
|
"@aws-sdk/types": "3.257.0",
|
|
44
44
|
"@aws-sdk/url-parser": "3.257.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.208.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.261.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.261.0",
|
|
50
50
|
"@aws-sdk/util-endpoints": "3.257.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.257.0",
|
|
52
52
|
"@aws-sdk/util-user-agent-browser": "3.257.0",
|