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 | * Updates the specified lifecycle policy.
|
48 | */
|
49 | updateLifecyclePolicy(params: DLM.Types.UpdateLifecyclePolicyRequest, callback?: (err: AWSError, data: DLM.Types.UpdateLifecyclePolicyResponse) => void): Request<DLM.Types.UpdateLifecyclePolicyResponse, AWSError>;
|
50 | /**
|
51 | * Updates the specified lifecycle policy.
|
52 | */
|
53 | updateLifecyclePolicy(callback?: (err: AWSError, data: DLM.Types.UpdateLifecyclePolicyResponse) => void): Request<DLM.Types.UpdateLifecyclePolicyResponse, AWSError>;
|
54 | }
|
55 | declare namespace DLM {
|
56 | export type CopyTags = boolean;
|
57 | export type Count = number;
|
58 | export interface CreateLifecyclePolicyRequest {
|
59 | |
60 |
|
61 |
|
62 | ExecutionRoleArn: ExecutionRoleArn;
|
63 | |
64 |
|
65 |
|
66 | Description: PolicyDescription;
|
67 | |
68 |
|
69 |
|
70 | State: SettablePolicyStateValues;
|
71 | |
72 |
|
73 |
|
74 | PolicyDetails: PolicyDetails;
|
75 | }
|
76 | export interface CreateLifecyclePolicyResponse {
|
77 | |
78 |
|
79 |
|
80 | PolicyId?: PolicyId;
|
81 | }
|
82 | export interface CreateRule {
|
83 | |
84 |
|
85 |
|
86 | Interval: Interval;
|
87 | |
88 |
|
89 |
|
90 | IntervalUnit: IntervalUnitValues;
|
91 | |
92 |
|
93 |
|
94 | Times?: TimesList;
|
95 | }
|
96 | export interface DeleteLifecyclePolicyRequest {
|
97 | |
98 |
|
99 |
|
100 | PolicyId: PolicyId;
|
101 | }
|
102 | export interface DeleteLifecyclePolicyResponse {
|
103 | }
|
104 | export type ExcludeBootVolume = boolean;
|
105 | export type ExecutionRoleArn = string;
|
106 | export interface GetLifecyclePoliciesRequest {
|
107 | |
108 |
|
109 |
|
110 | PolicyIds?: PolicyIdList;
|
111 | |
112 |
|
113 |
|
114 | State?: GettablePolicyStateValues;
|
115 | |
116 |
|
117 |
|
118 | ResourceTypes?: ResourceTypeValuesList;
|
119 | |
120 |
|
121 |
|
122 | TargetTags?: TargetTagsFilterList;
|
123 | |
124 |
|
125 |
|
126 | TagsToAdd?: TagsToAddFilterList;
|
127 | }
|
128 | export interface GetLifecyclePoliciesResponse {
|
129 | |
130 |
|
131 |
|
132 | Policies?: LifecyclePolicySummaryList;
|
133 | }
|
134 | export interface GetLifecyclePolicyRequest {
|
135 | |
136 |
|
137 |
|
138 | PolicyId: PolicyId;
|
139 | }
|
140 | export interface GetLifecyclePolicyResponse {
|
141 | |
142 |
|
143 |
|
144 | Policy?: LifecyclePolicy;
|
145 | }
|
146 | export type GettablePolicyStateValues = "ENABLED"|"DISABLED"|"ERROR"|string;
|
147 | export type Interval = number;
|
148 | export type IntervalUnitValues = "HOURS"|string;
|
149 | export interface LifecyclePolicy {
|
150 | |
151 |
|
152 |
|
153 | PolicyId?: PolicyId;
|
154 | |
155 |
|
156 |
|
157 | Description?: PolicyDescription;
|
158 | |
159 |
|
160 |
|
161 | State?: GettablePolicyStateValues;
|
162 | |
163 |
|
164 |
|
165 | ExecutionRoleArn?: ExecutionRoleArn;
|
166 | |
167 |
|
168 |
|
169 | DateCreated?: Timestamp;
|
170 | |
171 |
|
172 |
|
173 | DateModified?: Timestamp;
|
174 | |
175 |
|
176 |
|
177 | PolicyDetails?: PolicyDetails;
|
178 | }
|
179 | export interface LifecyclePolicySummary {
|
180 | |
181 |
|
182 |
|
183 | PolicyId?: PolicyId;
|
184 | |
185 |
|
186 |
|
187 | Description?: PolicyDescription;
|
188 | |
189 |
|
190 |
|
191 | State?: GettablePolicyStateValues;
|
192 | }
|
193 | export type LifecyclePolicySummaryList = LifecyclePolicySummary[];
|
194 | export interface Parameters {
|
195 | |
196 |
|
197 |
|
198 | ExcludeBootVolume?: ExcludeBootVolume;
|
199 | }
|
200 | export type PolicyDescription = string;
|
201 | export interface PolicyDetails {
|
202 | |
203 |
|
204 |
|
205 | PolicyType?: PolicyTypeValues;
|
206 | |
207 |
|
208 |
|
209 | ResourceTypes?: ResourceTypeValuesList;
|
210 | |
211 |
|
212 |
|
213 | TargetTags?: TargetTagList;
|
214 | |
215 |
|
216 |
|
217 | Schedules?: ScheduleList;
|
218 | |
219 |
|
220 |
|
221 | Parameters?: Parameters;
|
222 | }
|
223 | export type PolicyId = string;
|
224 | export type PolicyIdList = PolicyId[];
|
225 | export type PolicyTypeValues = "EBS_SNAPSHOT_MANAGEMENT"|string;
|
226 | export type ResourceTypeValues = "VOLUME"|"INSTANCE"|string;
|
227 | export type ResourceTypeValuesList = ResourceTypeValues[];
|
228 | export interface RetainRule {
|
229 | |
230 |
|
231 |
|
232 | Count: Count;
|
233 | }
|
234 | export interface Schedule {
|
235 | |
236 |
|
237 |
|
238 | Name?: ScheduleName;
|
239 | |
240 |
|
241 |
|
242 | CopyTags?: CopyTags;
|
243 | |
244 |
|
245 |
|
246 | TagsToAdd?: TagsToAddList;
|
247 | |
248 |
|
249 |
|
250 | VariableTags?: VariableTagsList;
|
251 | |
252 |
|
253 |
|
254 | CreateRule?: CreateRule;
|
255 | |
256 |
|
257 |
|
258 | RetainRule?: RetainRule;
|
259 | }
|
260 | export type ScheduleList = Schedule[];
|
261 | export type ScheduleName = string;
|
262 | export type SettablePolicyStateValues = "ENABLED"|"DISABLED"|string;
|
263 | export type String = string;
|
264 | export interface Tag {
|
265 | |
266 |
|
267 |
|
268 | Key: String;
|
269 | |
270 |
|
271 |
|
272 | Value: String;
|
273 | }
|
274 | export type TagFilter = string;
|
275 | export type TagsToAddFilterList = TagFilter[];
|
276 | export type TagsToAddList = Tag[];
|
277 | export type TargetTagList = Tag[];
|
278 | export type TargetTagsFilterList = TagFilter[];
|
279 | export type Time = string;
|
280 | export type TimesList = Time[];
|
281 | export type Timestamp = Date;
|
282 | export interface UpdateLifecyclePolicyRequest {
|
283 | |
284 |
|
285 |
|
286 | PolicyId: PolicyId;
|
287 | |
288 |
|
289 |
|
290 | ExecutionRoleArn?: ExecutionRoleArn;
|
291 | |
292 |
|
293 |
|
294 | State?: SettablePolicyStateValues;
|
295 | |
296 |
|
297 |
|
298 | Description?: PolicyDescription;
|
299 | |
300 |
|
301 |
|
302 | PolicyDetails?: PolicyDetails;
|
303 | }
|
304 | export interface UpdateLifecyclePolicyResponse {
|
305 | }
|
306 | export type VariableTagsList = Tag[];
|
307 | |
308 |
|
309 |
|
310 | export type apiVersion = "2018-01-12"|"latest"|string;
|
311 | export interface ClientApiVersions {
|
312 | |
313 |
|
314 |
|
315 | apiVersion?: apiVersion;
|
316 | }
|
317 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
318 | |
319 |
|
320 |
|
321 | export import Types = DLM;
|
322 | }
|
323 | export = DLM;
|