@aws-sdk/client-dlm 3.312.0 → 3.316.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/DLM.js +12 -112
- package/dist-cjs/protocols/Aws_restJson1.js +91 -759
- package/dist-es/DLM.js +12 -112
- package/dist-es/protocols/Aws_restJson1.js +78 -746
- package/dist-types/DLM.d.ts +21 -34
- package/dist-types/ts3.4/DLM.d.ts +2 -1
- package/package.json +6 -6
package/dist-cjs/DLM.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DLM = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateLifecyclePolicyCommand_1 = require("./commands/CreateLifecyclePolicyCommand");
|
|
5
6
|
const DeleteLifecyclePolicyCommand_1 = require("./commands/DeleteLifecyclePolicyCommand");
|
|
6
7
|
const GetLifecyclePoliciesCommand_1 = require("./commands/GetLifecyclePoliciesCommand");
|
|
@@ -10,118 +11,17 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
|
10
11
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
11
12
|
const UpdateLifecyclePolicyCommand_1 = require("./commands/UpdateLifecyclePolicyCommand");
|
|
12
13
|
const DLMClient_1 = require("./DLMClient");
|
|
14
|
+
const commands = {
|
|
15
|
+
CreateLifecyclePolicyCommand: CreateLifecyclePolicyCommand_1.CreateLifecyclePolicyCommand,
|
|
16
|
+
DeleteLifecyclePolicyCommand: DeleteLifecyclePolicyCommand_1.DeleteLifecyclePolicyCommand,
|
|
17
|
+
GetLifecyclePoliciesCommand: GetLifecyclePoliciesCommand_1.GetLifecyclePoliciesCommand,
|
|
18
|
+
GetLifecyclePolicyCommand: GetLifecyclePolicyCommand_1.GetLifecyclePolicyCommand,
|
|
19
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
20
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
21
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
22
|
+
UpdateLifecyclePolicyCommand: UpdateLifecyclePolicyCommand_1.UpdateLifecyclePolicyCommand,
|
|
23
|
+
};
|
|
13
24
|
class DLM extends DLMClient_1.DLMClient {
|
|
14
|
-
createLifecyclePolicy(args, optionsOrCb, cb) {
|
|
15
|
-
const command = new CreateLifecyclePolicyCommand_1.CreateLifecyclePolicyCommand(args);
|
|
16
|
-
if (typeof optionsOrCb === "function") {
|
|
17
|
-
this.send(command, optionsOrCb);
|
|
18
|
-
}
|
|
19
|
-
else if (typeof cb === "function") {
|
|
20
|
-
if (typeof optionsOrCb !== "object")
|
|
21
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
22
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
return this.send(command, optionsOrCb);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
deleteLifecyclePolicy(args, optionsOrCb, cb) {
|
|
29
|
-
const command = new DeleteLifecyclePolicyCommand_1.DeleteLifecyclePolicyCommand(args);
|
|
30
|
-
if (typeof optionsOrCb === "function") {
|
|
31
|
-
this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
else if (typeof cb === "function") {
|
|
34
|
-
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
36
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
getLifecyclePolicies(args, optionsOrCb, cb) {
|
|
43
|
-
const command = new GetLifecyclePoliciesCommand_1.GetLifecyclePoliciesCommand(args);
|
|
44
|
-
if (typeof optionsOrCb === "function") {
|
|
45
|
-
this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
else if (typeof cb === "function") {
|
|
48
|
-
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
50
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
getLifecyclePolicy(args, optionsOrCb, cb) {
|
|
57
|
-
const command = new GetLifecyclePolicyCommand_1.GetLifecyclePolicyCommand(args);
|
|
58
|
-
if (typeof optionsOrCb === "function") {
|
|
59
|
-
this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
else if (typeof cb === "function") {
|
|
62
|
-
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
64
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
71
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
72
|
-
if (typeof optionsOrCb === "function") {
|
|
73
|
-
this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
else if (typeof cb === "function") {
|
|
76
|
-
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
78
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return this.send(command, optionsOrCb);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
tagResource(args, optionsOrCb, cb) {
|
|
85
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
86
|
-
if (typeof optionsOrCb === "function") {
|
|
87
|
-
this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
else if (typeof cb === "function") {
|
|
90
|
-
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
92
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
return this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
untagResource(args, optionsOrCb, cb) {
|
|
99
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
100
|
-
if (typeof optionsOrCb === "function") {
|
|
101
|
-
this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
else if (typeof cb === "function") {
|
|
104
|
-
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
106
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
return this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
updateLifecyclePolicy(args, optionsOrCb, cb) {
|
|
113
|
-
const command = new UpdateLifecyclePolicyCommand_1.UpdateLifecyclePolicyCommand(args);
|
|
114
|
-
if (typeof optionsOrCb === "function") {
|
|
115
|
-
this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
else if (typeof cb === "function") {
|
|
118
|
-
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
120
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
return this.send(command, optionsOrCb);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
25
|
}
|
|
127
26
|
exports.DLM = DLM;
|
|
27
|
+
(0, smithy_client_1.createAggregatedClient)(commands, DLM);
|