1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class DLM extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: DLM.Types.ClientConfiguration)
|
13 | config: Config & DLM.Types.ClientConfiguration;
|
14 | /**
|
15 | * Creates a policy to manage the lifecycle of the specified AWS resources. You can create up to 100 lifecycle policies.
|
16 | */
|
17 | createLifecyclePolicy(params: DLM.Types.CreateLifecyclePolicyRequest, callback?: (err: AWSError, data: DLM.Types.CreateLifecyclePolicyResponse) => void): Request<DLM.Types.CreateLifecyclePolicyResponse, AWSError>;
|
18 | /**
|
19 | * Creates a policy to manage the lifecycle of the specified AWS resources. You can create up to 100 lifecycle policies.
|
20 | */
|
21 | createLifecyclePolicy(callback?: (err: AWSError, data: DLM.Types.CreateLifecyclePolicyResponse) => void): Request<DLM.Types.CreateLifecyclePolicyResponse, AWSError>;
|
22 | /**
|
23 | * Deletes the specified lifecycle policy and halts the automated operations that the policy specified.
|
24 | */
|
25 | deleteLifecyclePolicy(params: DLM.Types.DeleteLifecyclePolicyRequest, callback?: (err: AWSError, data: DLM.Types.DeleteLifecyclePolicyResponse) => void): Request<DLM.Types.DeleteLifecyclePolicyResponse, AWSError>;
|
26 | /**
|
27 | * Deletes the specified lifecycle policy and halts the automated operations that the policy specified.
|
28 | */
|
29 | deleteLifecyclePolicy(callback?: (err: AWSError, data: DLM.Types.DeleteLifecyclePolicyResponse) => void): Request<DLM.Types.DeleteLifecyclePolicyResponse, AWSError>;
|
30 | /**
|
31 | * Gets summary information about all or the specified data lifecycle policies. To get complete information about a policy, use GetLifecyclePolicy.
|
32 | */
|
33 | getLifecyclePolicies(params: DLM.Types.GetLifecyclePoliciesRequest, callback?: (err: AWSError, data: DLM.Types.GetLifecyclePoliciesResponse) => void): Request<DLM.Types.GetLifecyclePoliciesResponse, AWSError>;
|
34 | /**
|
35 | * Gets summary information about all or the specified data lifecycle policies. To get complete information about a policy, use GetLifecyclePolicy.
|
36 | */
|
37 | getLifecyclePolicies(callback?: (err: AWSError, data: DLM.Types.GetLifecyclePoliciesResponse) => void): Request<DLM.Types.GetLifecyclePoliciesResponse, AWSError>;
|
38 | /**
|
39 | * Gets detailed information about the specified lifecycle policy.
|
40 | */
|
41 | getLifecyclePolicy(params: DLM.Types.GetLifecyclePolicyRequest, callback?: (err: AWSError, data: DLM.Types.GetLifecyclePolicyResponse) => void): Request<DLM.Types.GetLifecyclePolicyResponse, AWSError>;
|
42 | /**
|
43 | * Gets detailed information about the specified lifecycle policy.
|
44 | */
|
45 | getLifecyclePolicy(callback?: (err: AWSError, data: DLM.Types.GetLifecyclePolicyResponse) => void): Request<DLM.Types.GetLifecyclePolicyResponse, AWSError>;
|
46 | /**
|
47 | * Lists the tags for the specified resource.
|
48 | */
|
49 | listTagsForResource(params: DLM.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: DLM.Types.ListTagsForResourceResponse) => void): Request<DLM.Types.ListTagsForResourceResponse, AWSError>;
|
50 | /**
|
51 | * Lists the tags for the specified resource.
|
52 | */
|
53 | listTagsForResource(callback?: (err: AWSError, data: DLM.Types.ListTagsForResourceResponse) => void): Request<DLM.Types.ListTagsForResourceResponse, AWSError>;
|
54 | /**
|
55 | * Adds the specified tags to the specified resource.
|
56 | */
|
57 | tagResource(params: DLM.Types.TagResourceRequest, callback?: (err: AWSError, data: DLM.Types.TagResourceResponse) => void): Request<DLM.Types.TagResourceResponse, AWSError>;
|
58 | /**
|
59 | * Adds the specified tags to the specified resource.
|
60 | */
|
61 | tagResource(callback?: (err: AWSError, data: DLM.Types.TagResourceResponse) => void): Request<DLM.Types.TagResourceResponse, AWSError>;
|
62 | /**
|
63 | * Removes the specified tags from the specified resource.
|
64 | */
|
65 | untagResource(params: DLM.Types.UntagResourceRequest, callback?: (err: AWSError, data: DLM.Types.UntagResourceResponse) => void): Request<DLM.Types.UntagResourceResponse, AWSError>;
|
66 | /**
|
67 | * Removes the specified tags from the specified resource.
|
68 | */
|
69 | untagResource(callback?: (err: AWSError, data: DLM.Types.UntagResourceResponse) => void): Request<DLM.Types.UntagResourceResponse, AWSError>;
|
70 | /**
|
71 | * Updates the specified lifecycle policy.
|
72 | */
|
73 | updateLifecyclePolicy(params: DLM.Types.UpdateLifecyclePolicyRequest, callback?: (err: AWSError, data: DLM.Types.UpdateLifecyclePolicyResponse) => void): Request<DLM.Types.UpdateLifecyclePolicyResponse, AWSError>;
|
74 | /**
|
75 | * Updates the specified lifecycle policy.
|
76 | */
|
77 | updateLifecyclePolicy(callback?: (err: AWSError, data: DLM.Types.UpdateLifecyclePolicyResponse) => void): Request<DLM.Types.UpdateLifecyclePolicyResponse, AWSError>;
|
78 | }
|
79 | declare namespace DLM {
|
80 | export type AvailabilityZone = string;
|
81 | export type AvailabilityZoneList = AvailabilityZone[];
|
82 | export type CmkArn = string;
|
83 | export type CopyTags = boolean;
|
84 | export type CopyTagsNullable = boolean;
|
85 | export type Count = number;
|
86 | export interface CreateLifecyclePolicyRequest {
|
87 | |
88 |
|
89 |
|
90 | ExecutionRoleArn: ExecutionRoleArn;
|
91 | |
92 |
|
93 |
|
94 | Description: PolicyDescription;
|
95 | |
96 |
|
97 |
|
98 | State: SettablePolicyStateValues;
|
99 | |
100 |
|
101 |
|
102 | PolicyDetails: PolicyDetails;
|
103 | |
104 |
|
105 |
|
106 | Tags?: TagMap;
|
107 | }
|
108 | export interface CreateLifecyclePolicyResponse {
|
109 | |
110 |
|
111 |
|
112 | PolicyId?: PolicyId;
|
113 | }
|
114 | export interface CreateRule {
|
115 | |
116 |
|
117 |
|
118 | Interval: Interval;
|
119 | |
120 |
|
121 |
|
122 | IntervalUnit: IntervalUnitValues;
|
123 | |
124 |
|
125 |
|
126 | Times?: TimesList;
|
127 | }
|
128 | export interface CrossRegionCopyRetainRule {
|
129 | |
130 |
|
131 |
|
132 | Interval?: Interval;
|
133 | |
134 |
|
135 |
|
136 | IntervalUnit?: RetentionIntervalUnitValues;
|
137 | }
|
138 | export interface CrossRegionCopyRule {
|
139 | |
140 |
|
141 |
|
142 | TargetRegion: TargetRegion;
|
143 | |
144 |
|
145 |
|
146 | Encrypted: Encrypted;
|
147 | |
148 |
|
149 |
|
150 | CmkArn?: CmkArn;
|
151 | |
152 |
|
153 |
|
154 | CopyTags?: CopyTagsNullable;
|
155 | |
156 |
|
157 |
|
158 | RetainRule?: CrossRegionCopyRetainRule;
|
159 | }
|
160 | export type CrossRegionCopyRules = CrossRegionCopyRule[];
|
161 | export interface DeleteLifecyclePolicyRequest {
|
162 | |
163 |
|
164 |
|
165 | PolicyId: PolicyId;
|
166 | }
|
167 | export interface DeleteLifecyclePolicyResponse {
|
168 | }
|
169 | export type Encrypted = boolean;
|
170 | export type ExcludeBootVolume = boolean;
|
171 | export type ExecutionRoleArn = string;
|
172 | export interface FastRestoreRule {
|
173 | |
174 |
|
175 |
|
176 | Count?: Count;
|
177 | |
178 |
|
179 |
|
180 | Interval?: Interval;
|
181 | |
182 |
|
183 |
|
184 | IntervalUnit?: RetentionIntervalUnitValues;
|
185 | |
186 |
|
187 |
|
188 | AvailabilityZones: AvailabilityZoneList;
|
189 | }
|
190 | export interface GetLifecyclePoliciesRequest {
|
191 | |
192 |
|
193 |
|
194 | PolicyIds?: PolicyIdList;
|
195 | |
196 |
|
197 |
|
198 | State?: GettablePolicyStateValues;
|
199 | |
200 |
|
201 |
|
202 | ResourceTypes?: ResourceTypeValuesList;
|
203 | |
204 |
|
205 |
|
206 | TargetTags?: TargetTagsFilterList;
|
207 | |
208 |
|
209 |
|
210 | TagsToAdd?: TagsToAddFilterList;
|
211 | }
|
212 | export interface GetLifecyclePoliciesResponse {
|
213 | |
214 |
|
215 |
|
216 | Policies?: LifecyclePolicySummaryList;
|
217 | }
|
218 | export interface GetLifecyclePolicyRequest {
|
219 | |
220 |
|
221 |
|
222 | PolicyId: PolicyId;
|
223 | }
|
224 | export interface GetLifecyclePolicyResponse {
|
225 | |
226 |
|
227 |
|
228 | Policy?: LifecyclePolicy;
|
229 | }
|
230 | export type GettablePolicyStateValues = "ENABLED"|"DISABLED"|"ERROR"|string;
|
231 | export type Interval = number;
|
232 | export type IntervalUnitValues = "HOURS"|string;
|
233 | export interface LifecyclePolicy {
|
234 | |
235 |
|
236 |
|
237 | PolicyId?: PolicyId;
|
238 | |
239 |
|
240 |
|
241 | Description?: PolicyDescription;
|
242 | |
243 |
|
244 |
|
245 | State?: GettablePolicyStateValues;
|
246 | |
247 |
|
248 |
|
249 | StatusMessage?: StatusMessage;
|
250 | |
251 |
|
252 |
|
253 | ExecutionRoleArn?: ExecutionRoleArn;
|
254 | |
255 |
|
256 |
|
257 | DateCreated?: Timestamp;
|
258 | |
259 |
|
260 |
|
261 | DateModified?: Timestamp;
|
262 | |
263 |
|
264 |
|
265 | PolicyDetails?: PolicyDetails;
|
266 | |
267 |
|
268 |
|
269 | Tags?: TagMap;
|
270 | |
271 |
|
272 |
|
273 | PolicyArn?: PolicyArn;
|
274 | }
|
275 | export interface LifecyclePolicySummary {
|
276 | |
277 |
|
278 |
|
279 | PolicyId?: PolicyId;
|
280 | |
281 |
|
282 |
|
283 | Description?: PolicyDescription;
|
284 | |
285 |
|
286 |
|
287 | State?: GettablePolicyStateValues;
|
288 | |
289 |
|
290 |
|
291 | Tags?: TagMap;
|
292 | }
|
293 | export type LifecyclePolicySummaryList = LifecyclePolicySummary[];
|
294 | export interface ListTagsForResourceRequest {
|
295 | |
296 |
|
297 |
|
298 | ResourceArn: PolicyArn;
|
299 | }
|
300 | export interface ListTagsForResourceResponse {
|
301 | |
302 |
|
303 |
|
304 | Tags?: TagMap;
|
305 | }
|
306 | export interface Parameters {
|
307 | |
308 |
|
309 |
|
310 | ExcludeBootVolume?: ExcludeBootVolume;
|
311 | }
|
312 | export type PolicyArn = string;
|
313 | export type PolicyDescription = string;
|
314 | export interface PolicyDetails {
|
315 | |
316 |
|
317 |
|
318 | PolicyType?: PolicyTypeValues;
|
319 | |
320 |
|
321 |
|
322 | ResourceTypes?: ResourceTypeValuesList;
|
323 | |
324 |
|
325 |
|
326 | TargetTags?: TargetTagList;
|
327 | |
328 |
|
329 |
|
330 | Schedules?: ScheduleList;
|
331 | |
332 |
|
333 |
|
334 | Parameters?: Parameters;
|
335 | }
|
336 | export type PolicyId = string;
|
337 | export type PolicyIdList = PolicyId[];
|
338 | export type PolicyTypeValues = "EBS_SNAPSHOT_MANAGEMENT"|string;
|
339 | export type ResourceTypeValues = "VOLUME"|"INSTANCE"|string;
|
340 | export type ResourceTypeValuesList = ResourceTypeValues[];
|
341 | export interface RetainRule {
|
342 | |
343 |
|
344 |
|
345 | Count?: Count;
|
346 | |
347 |
|
348 |
|
349 | Interval?: Interval;
|
350 | |
351 |
|
352 |
|
353 | IntervalUnit?: RetentionIntervalUnitValues;
|
354 | }
|
355 | export type RetentionIntervalUnitValues = "DAYS"|"WEEKS"|"MONTHS"|"YEARS"|string;
|
356 | export interface Schedule {
|
357 | |
358 |
|
359 |
|
360 | Name?: ScheduleName;
|
361 | |
362 |
|
363 |
|
364 | CopyTags?: CopyTags;
|
365 | |
366 |
|
367 |
|
368 | TagsToAdd?: TagsToAddList;
|
369 | |
370 |
|
371 |
|
372 | VariableTags?: VariableTagsList;
|
373 | |
374 |
|
375 |
|
376 | CreateRule?: CreateRule;
|
377 | |
378 |
|
379 |
|
380 | RetainRule?: RetainRule;
|
381 | |
382 |
|
383 |
|
384 | FastRestoreRule?: FastRestoreRule;
|
385 | |
386 |
|
387 |
|
388 | CrossRegionCopyRules?: CrossRegionCopyRules;
|
389 | }
|
390 | export type ScheduleList = Schedule[];
|
391 | export type ScheduleName = string;
|
392 | export type SettablePolicyStateValues = "ENABLED"|"DISABLED"|string;
|
393 | export type StatusMessage = string;
|
394 | export type String = string;
|
395 | export interface Tag {
|
396 | |
397 |
|
398 |
|
399 | Key: String;
|
400 | |
401 |
|
402 |
|
403 | Value: String;
|
404 | }
|
405 | export type TagFilter = string;
|
406 | export type TagKey = string;
|
407 | export type TagKeyList = TagKey[];
|
408 | export type TagMap = {[key: string]: TagValue};
|
409 | export interface TagResourceRequest {
|
410 | |
411 |
|
412 |
|
413 | ResourceArn: PolicyArn;
|
414 | |
415 |
|
416 |
|
417 | Tags: TagMap;
|
418 | }
|
419 | export interface TagResourceResponse {
|
420 | }
|
421 | export type TagValue = string;
|
422 | export type TagsToAddFilterList = TagFilter[];
|
423 | export type TagsToAddList = Tag[];
|
424 | export type TargetRegion = string;
|
425 | export type TargetTagList = Tag[];
|
426 | export type TargetTagsFilterList = TagFilter[];
|
427 | export type Time = string;
|
428 | export type TimesList = Time[];
|
429 | export type Timestamp = Date;
|
430 | export interface UntagResourceRequest {
|
431 | |
432 |
|
433 |
|
434 | ResourceArn: PolicyArn;
|
435 | |
436 |
|
437 |
|
438 | TagKeys: TagKeyList;
|
439 | }
|
440 | export interface UntagResourceResponse {
|
441 | }
|
442 | export interface UpdateLifecyclePolicyRequest {
|
443 | |
444 |
|
445 |
|
446 | PolicyId: PolicyId;
|
447 | |
448 |
|
449 |
|
450 | ExecutionRoleArn?: ExecutionRoleArn;
|
451 | |
452 |
|
453 |
|
454 | State?: SettablePolicyStateValues;
|
455 | |
456 |
|
457 |
|
458 | Description?: PolicyDescription;
|
459 | |
460 |
|
461 |
|
462 | PolicyDetails?: PolicyDetails;
|
463 | }
|
464 | export interface UpdateLifecyclePolicyResponse {
|
465 | }
|
466 | export type VariableTagsList = Tag[];
|
467 | |
468 |
|
469 |
|
470 | export type apiVersion = "2018-01-12"|"latest"|string;
|
471 | export interface ClientApiVersions {
|
472 | |
473 |
|
474 |
|
475 | apiVersion?: apiVersion;
|
476 | }
|
477 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
478 | |
479 |
|
480 |
|
481 | export import Types = DLM;
|
482 | }
|
483 | export = DLM;
|