xref: /aosp_15_r20/external/aws-sdk-java-v2/services/dlm/src/main/resources/codegen-resources/api-2.json (revision 8a52c7834d808308836a99fc2a6e0ed8db339086)
1{
2  "version":"2.0",
3  "metadata":{
4    "apiVersion":"2018-01-12",
5    "endpointPrefix":"dlm",
6    "jsonVersion":"1.1",
7    "protocol":"rest-json",
8    "serviceAbbreviation":"Amazon DLM",
9    "serviceFullName":"Amazon Data Lifecycle Manager",
10    "serviceId":"DLM",
11    "signatureVersion":"v4",
12    "signingName":"dlm",
13    "uid":"dlm-2018-01-12"
14  },
15  "operations":{
16    "CreateLifecyclePolicy":{
17      "name":"CreateLifecyclePolicy",
18      "http":{
19        "method":"POST",
20        "requestUri":"/policies"
21      },
22      "input":{"shape":"CreateLifecyclePolicyRequest"},
23      "output":{"shape":"CreateLifecyclePolicyResponse"},
24      "errors":[
25        {"shape":"InvalidRequestException"},
26        {"shape":"LimitExceededException"},
27        {"shape":"InternalServerException"}
28      ]
29    },
30    "DeleteLifecyclePolicy":{
31      "name":"DeleteLifecyclePolicy",
32      "http":{
33        "method":"DELETE",
34        "requestUri":"/policies/{policyId}/"
35      },
36      "input":{"shape":"DeleteLifecyclePolicyRequest"},
37      "output":{"shape":"DeleteLifecyclePolicyResponse"},
38      "errors":[
39        {"shape":"ResourceNotFoundException"},
40        {"shape":"InternalServerException"},
41        {"shape":"LimitExceededException"}
42      ]
43    },
44    "GetLifecyclePolicies":{
45      "name":"GetLifecyclePolicies",
46      "http":{
47        "method":"GET",
48        "requestUri":"/policies"
49      },
50      "input":{"shape":"GetLifecyclePoliciesRequest"},
51      "output":{"shape":"GetLifecyclePoliciesResponse"},
52      "errors":[
53        {"shape":"ResourceNotFoundException"},
54        {"shape":"InvalidRequestException"},
55        {"shape":"InternalServerException"},
56        {"shape":"LimitExceededException"}
57      ]
58    },
59    "GetLifecyclePolicy":{
60      "name":"GetLifecyclePolicy",
61      "http":{
62        "method":"GET",
63        "requestUri":"/policies/{policyId}/"
64      },
65      "input":{"shape":"GetLifecyclePolicyRequest"},
66      "output":{"shape":"GetLifecyclePolicyResponse"},
67      "errors":[
68        {"shape":"ResourceNotFoundException"},
69        {"shape":"InternalServerException"},
70        {"shape":"LimitExceededException"}
71      ]
72    },
73    "UpdateLifecyclePolicy":{
74      "name":"UpdateLifecyclePolicy",
75      "http":{
76        "method":"PATCH",
77        "requestUri":"/policies/{policyId}"
78      },
79      "input":{"shape":"UpdateLifecyclePolicyRequest"},
80      "output":{"shape":"UpdateLifecyclePolicyResponse"},
81      "errors":[
82        {"shape":"ResourceNotFoundException"},
83        {"shape":"InvalidRequestException"},
84        {"shape":"InternalServerException"},
85        {"shape":"LimitExceededException"}
86      ]
87    }
88  },
89  "shapes":{
90    "CopyTags":{"type":"boolean"},
91    "Count":{
92      "type":"integer",
93      "max":1000,
94      "min":1
95    },
96    "CreateLifecyclePolicyRequest":{
97      "type":"structure",
98      "required":[
99        "ExecutionRoleArn",
100        "Description",
101        "State",
102        "PolicyDetails"
103      ],
104      "members":{
105        "ExecutionRoleArn":{"shape":"ExecutionRoleArn"},
106        "Description":{"shape":"PolicyDescription"},
107        "State":{"shape":"SettablePolicyStateValues"},
108        "PolicyDetails":{"shape":"PolicyDetails"}
109      }
110    },
111    "CreateLifecyclePolicyResponse":{
112      "type":"structure",
113      "members":{
114        "PolicyId":{"shape":"PolicyId"}
115      }
116    },
117    "CreateRule":{
118      "type":"structure",
119      "required":[
120        "Interval",
121        "IntervalUnit"
122      ],
123      "members":{
124        "Interval":{"shape":"Interval"},
125        "IntervalUnit":{"shape":"IntervalUnitValues"},
126        "Times":{"shape":"TimesList"}
127      }
128    },
129    "DeleteLifecyclePolicyRequest":{
130      "type":"structure",
131      "required":["PolicyId"],
132      "members":{
133        "PolicyId":{
134          "shape":"PolicyId",
135          "location":"uri",
136          "locationName":"policyId"
137        }
138      }
139    },
140    "DeleteLifecyclePolicyResponse":{
141      "type":"structure",
142      "members":{
143      }
144    },
145    "ErrorCode":{"type":"string"},
146    "ErrorMessage":{"type":"string"},
147    "ExecutionRoleArn":{"type":"string"},
148    "GetLifecyclePoliciesRequest":{
149      "type":"structure",
150      "members":{
151        "PolicyIds":{
152          "shape":"PolicyIdList",
153          "location":"querystring",
154          "locationName":"policyIds"
155        },
156        "State":{
157          "shape":"GettablePolicyStateValues",
158          "location":"querystring",
159          "locationName":"state"
160        },
161        "ResourceTypes":{
162          "shape":"ResourceTypeValuesList",
163          "location":"querystring",
164          "locationName":"resourceTypes"
165        },
166        "TargetTags":{
167          "shape":"TargetTagsFilterList",
168          "location":"querystring",
169          "locationName":"targetTags"
170        },
171        "TagsToAdd":{
172          "shape":"TagsToAddFilterList",
173          "location":"querystring",
174          "locationName":"tagsToAdd"
175        }
176      }
177    },
178    "GetLifecyclePoliciesResponse":{
179      "type":"structure",
180      "members":{
181        "Policies":{"shape":"LifecyclePolicySummaryList"}
182      }
183    },
184    "GetLifecyclePolicyRequest":{
185      "type":"structure",
186      "required":["PolicyId"],
187      "members":{
188        "PolicyId":{
189          "shape":"PolicyId",
190          "location":"uri",
191          "locationName":"policyId"
192        }
193      }
194    },
195    "GetLifecyclePolicyResponse":{
196      "type":"structure",
197      "members":{
198        "Policy":{"shape":"LifecyclePolicy"}
199      }
200    },
201    "GettablePolicyStateValues":{
202      "type":"string",
203      "enum":[
204        "ENABLED",
205        "DISABLED",
206        "ERROR"
207      ]
208    },
209    "InternalServerException":{
210      "type":"structure",
211      "members":{
212        "Message":{"shape":"ErrorMessage"},
213        "Code":{"shape":"ErrorCode"}
214      },
215      "error":{"httpStatusCode":500},
216      "exception":true
217    },
218    "Interval":{
219      "type":"integer",
220      "min":1
221    },
222    "IntervalUnitValues":{
223      "type":"string",
224      "enum":["HOURS"]
225    },
226    "InvalidRequestException":{
227      "type":"structure",
228      "members":{
229        "Message":{"shape":"ErrorMessage"},
230        "Code":{"shape":"ErrorCode"},
231        "RequiredParameters":{"shape":"ParameterList"},
232        "MutuallyExclusiveParameters":{"shape":"ParameterList"}
233      },
234      "error":{"httpStatusCode":400},
235      "exception":true
236    },
237    "LifecyclePolicy":{
238      "type":"structure",
239      "members":{
240        "PolicyId":{"shape":"PolicyId"},
241        "Description":{"shape":"PolicyDescription"},
242        "State":{"shape":"GettablePolicyStateValues"},
243        "ExecutionRoleArn":{"shape":"ExecutionRoleArn"},
244        "DateCreated":{"shape":"Timestamp"},
245        "DateModified":{"shape":"Timestamp"},
246        "PolicyDetails":{"shape":"PolicyDetails"}
247      }
248    },
249    "LifecyclePolicySummary":{
250      "type":"structure",
251      "members":{
252        "PolicyId":{"shape":"PolicyId"},
253        "Description":{"shape":"PolicyDescription"},
254        "State":{"shape":"GettablePolicyStateValues"}
255      }
256    },
257    "LifecyclePolicySummaryList":{
258      "type":"list",
259      "member":{"shape":"LifecyclePolicySummary"}
260    },
261    "LimitExceededException":{
262      "type":"structure",
263      "members":{
264        "Message":{"shape":"ErrorMessage"},
265        "Code":{"shape":"ErrorCode"},
266        "ResourceType":{"shape":"String"}
267      },
268      "error":{"httpStatusCode":429},
269      "exception":true
270    },
271    "Parameter":{"type":"string"},
272    "ParameterList":{
273      "type":"list",
274      "member":{"shape":"Parameter"}
275    },
276    "PolicyDescription":{
277      "type":"string",
278      "max":500,
279      "min":0
280    },
281    "PolicyDetails":{
282      "type":"structure",
283      "members":{
284        "ResourceTypes":{"shape":"ResourceTypeValuesList"},
285        "TargetTags":{"shape":"TargetTagList"},
286        "Schedules":{"shape":"ScheduleList"}
287      }
288    },
289    "PolicyId":{"type":"string"},
290    "PolicyIdList":{
291      "type":"list",
292      "member":{"shape":"PolicyId"}
293    },
294    "ResourceNotFoundException":{
295      "type":"structure",
296      "members":{
297        "Message":{"shape":"ErrorMessage"},
298        "Code":{"shape":"ErrorCode"},
299        "ResourceType":{"shape":"String"},
300        "ResourceIds":{"shape":"PolicyIdList"}
301      },
302      "error":{"httpStatusCode":404},
303      "exception":true
304    },
305    "ResourceTypeValues":{
306      "type":"string",
307      "enum":["VOLUME"]
308    },
309    "ResourceTypeValuesList":{
310      "type":"list",
311      "member":{"shape":"ResourceTypeValues"},
312      "max":1,
313      "min":1
314    },
315    "RetainRule":{
316      "type":"structure",
317      "required":["Count"],
318      "members":{
319        "Count":{"shape":"Count"}
320      }
321    },
322    "Schedule":{
323      "type":"structure",
324      "members":{
325        "Name":{"shape":"ScheduleName"},
326        "CopyTags":{"shape":"CopyTags"},
327        "TagsToAdd":{"shape":"TagsToAddList"},
328        "CreateRule":{"shape":"CreateRule"},
329        "RetainRule":{"shape":"RetainRule"}
330      }
331    },
332    "ScheduleList":{
333      "type":"list",
334      "member":{"shape":"Schedule"},
335      "max":1,
336      "min":1
337    },
338    "ScheduleName":{
339      "type":"string",
340      "max":500,
341      "min":0
342    },
343    "SettablePolicyStateValues":{
344      "type":"string",
345      "enum":[
346        "ENABLED",
347        "DISABLED"
348      ]
349    },
350    "String":{"type":"string"},
351    "Tag":{
352      "type":"structure",
353      "required":[
354        "Key",
355        "Value"
356      ],
357      "members":{
358        "Key":{"shape":"String"},
359        "Value":{"shape":"String"}
360      }
361    },
362    "TagFilter":{"type":"string"},
363    "TagsToAddFilterList":{
364      "type":"list",
365      "member":{"shape":"TagFilter"},
366      "max":50,
367      "min":0
368    },
369    "TagsToAddList":{
370      "type":"list",
371      "member":{"shape":"Tag"},
372      "max":50,
373      "min":0
374    },
375    "TargetTagList":{
376      "type":"list",
377      "member":{"shape":"Tag"},
378      "max":50,
379      "min":1
380    },
381    "TargetTagsFilterList":{
382      "type":"list",
383      "member":{"shape":"TagFilter"},
384      "max":50,
385      "min":1
386    },
387    "Time":{
388      "type":"string",
389      "pattern":"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$"
390    },
391    "TimesList":{
392      "type":"list",
393      "member":{"shape":"Time"},
394      "max":1
395    },
396    "Timestamp":{"type":"timestamp"},
397    "UpdateLifecyclePolicyRequest":{
398      "type":"structure",
399      "required":["PolicyId"],
400      "members":{
401        "PolicyId":{
402          "shape":"PolicyId",
403          "location":"uri",
404          "locationName":"policyId"
405        },
406        "ExecutionRoleArn":{"shape":"ExecutionRoleArn"},
407        "State":{"shape":"SettablePolicyStateValues"},
408        "Description":{"shape":"PolicyDescription"},
409        "PolicyDetails":{"shape":"PolicyDetails"}
410      }
411    },
412    "UpdateLifecyclePolicyResponse":{
413      "type":"structure",
414      "members":{
415      }
416    }
417  }
418}
419