@aws-sdk/client-rbin 3.315.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/Rbin.js +14 -140
- package/dist-es/Rbin.js +14 -140
- package/dist-types/Rbin.d.ts +30 -44
- package/dist-types/ts3.4/Rbin.d.ts +2 -1
- package/package.json +6 -6
package/dist-cjs/Rbin.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Rbin = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateRuleCommand_1 = require("./commands/CreateRuleCommand");
|
|
5
6
|
const DeleteRuleCommand_1 = require("./commands/DeleteRuleCommand");
|
|
6
7
|
const GetRuleCommand_1 = require("./commands/GetRuleCommand");
|
|
@@ -12,146 +13,19 @@ const UnlockRuleCommand_1 = require("./commands/UnlockRuleCommand");
|
|
|
12
13
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
13
14
|
const UpdateRuleCommand_1 = require("./commands/UpdateRuleCommand");
|
|
14
15
|
const RbinClient_1 = require("./RbinClient");
|
|
16
|
+
const commands = {
|
|
17
|
+
CreateRuleCommand: CreateRuleCommand_1.CreateRuleCommand,
|
|
18
|
+
DeleteRuleCommand: DeleteRuleCommand_1.DeleteRuleCommand,
|
|
19
|
+
GetRuleCommand: GetRuleCommand_1.GetRuleCommand,
|
|
20
|
+
ListRulesCommand: ListRulesCommand_1.ListRulesCommand,
|
|
21
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
22
|
+
LockRuleCommand: LockRuleCommand_1.LockRuleCommand,
|
|
23
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
24
|
+
UnlockRuleCommand: UnlockRuleCommand_1.UnlockRuleCommand,
|
|
25
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
26
|
+
UpdateRuleCommand: UpdateRuleCommand_1.UpdateRuleCommand,
|
|
27
|
+
};
|
|
15
28
|
class Rbin extends RbinClient_1.RbinClient {
|
|
16
|
-
createRule(args, optionsOrCb, cb) {
|
|
17
|
-
const command = new CreateRuleCommand_1.CreateRuleCommand(args);
|
|
18
|
-
if (typeof optionsOrCb === "function") {
|
|
19
|
-
this.send(command, optionsOrCb);
|
|
20
|
-
}
|
|
21
|
-
else if (typeof cb === "function") {
|
|
22
|
-
if (typeof optionsOrCb !== "object")
|
|
23
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
24
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
return this.send(command, optionsOrCb);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
deleteRule(args, optionsOrCb, cb) {
|
|
31
|
-
const command = new DeleteRuleCommand_1.DeleteRuleCommand(args);
|
|
32
|
-
if (typeof optionsOrCb === "function") {
|
|
33
|
-
this.send(command, optionsOrCb);
|
|
34
|
-
}
|
|
35
|
-
else if (typeof cb === "function") {
|
|
36
|
-
if (typeof optionsOrCb !== "object")
|
|
37
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
38
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
return this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
getRule(args, optionsOrCb, cb) {
|
|
45
|
-
const command = new GetRuleCommand_1.GetRuleCommand(args);
|
|
46
|
-
if (typeof optionsOrCb === "function") {
|
|
47
|
-
this.send(command, optionsOrCb);
|
|
48
|
-
}
|
|
49
|
-
else if (typeof cb === "function") {
|
|
50
|
-
if (typeof optionsOrCb !== "object")
|
|
51
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
52
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
listRules(args, optionsOrCb, cb) {
|
|
59
|
-
const command = new ListRulesCommand_1.ListRulesCommand(args);
|
|
60
|
-
if (typeof optionsOrCb === "function") {
|
|
61
|
-
this.send(command, optionsOrCb);
|
|
62
|
-
}
|
|
63
|
-
else if (typeof cb === "function") {
|
|
64
|
-
if (typeof optionsOrCb !== "object")
|
|
65
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
66
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
return this.send(command, optionsOrCb);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
73
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
74
|
-
if (typeof optionsOrCb === "function") {
|
|
75
|
-
this.send(command, optionsOrCb);
|
|
76
|
-
}
|
|
77
|
-
else if (typeof cb === "function") {
|
|
78
|
-
if (typeof optionsOrCb !== "object")
|
|
79
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
80
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
return this.send(command, optionsOrCb);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
lockRule(args, optionsOrCb, cb) {
|
|
87
|
-
const command = new LockRuleCommand_1.LockRuleCommand(args);
|
|
88
|
-
if (typeof optionsOrCb === "function") {
|
|
89
|
-
this.send(command, optionsOrCb);
|
|
90
|
-
}
|
|
91
|
-
else if (typeof cb === "function") {
|
|
92
|
-
if (typeof optionsOrCb !== "object")
|
|
93
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
94
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
return this.send(command, optionsOrCb);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
tagResource(args, optionsOrCb, cb) {
|
|
101
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
102
|
-
if (typeof optionsOrCb === "function") {
|
|
103
|
-
this.send(command, optionsOrCb);
|
|
104
|
-
}
|
|
105
|
-
else if (typeof cb === "function") {
|
|
106
|
-
if (typeof optionsOrCb !== "object")
|
|
107
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
108
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
return this.send(command, optionsOrCb);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
unlockRule(args, optionsOrCb, cb) {
|
|
115
|
-
const command = new UnlockRuleCommand_1.UnlockRuleCommand(args);
|
|
116
|
-
if (typeof optionsOrCb === "function") {
|
|
117
|
-
this.send(command, optionsOrCb);
|
|
118
|
-
}
|
|
119
|
-
else if (typeof cb === "function") {
|
|
120
|
-
if (typeof optionsOrCb !== "object")
|
|
121
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
122
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
return this.send(command, optionsOrCb);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
untagResource(args, optionsOrCb, cb) {
|
|
129
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
130
|
-
if (typeof optionsOrCb === "function") {
|
|
131
|
-
this.send(command, optionsOrCb);
|
|
132
|
-
}
|
|
133
|
-
else if (typeof cb === "function") {
|
|
134
|
-
if (typeof optionsOrCb !== "object")
|
|
135
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
136
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
return this.send(command, optionsOrCb);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
updateRule(args, optionsOrCb, cb) {
|
|
143
|
-
const command = new UpdateRuleCommand_1.UpdateRuleCommand(args);
|
|
144
|
-
if (typeof optionsOrCb === "function") {
|
|
145
|
-
this.send(command, optionsOrCb);
|
|
146
|
-
}
|
|
147
|
-
else if (typeof cb === "function") {
|
|
148
|
-
if (typeof optionsOrCb !== "object")
|
|
149
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
150
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
return this.send(command, optionsOrCb);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
29
|
}
|
|
157
30
|
exports.Rbin = Rbin;
|
|
31
|
+
(0, smithy_client_1.createAggregatedClient)(commands, Rbin);
|
package/dist-es/Rbin.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateRuleCommand } from "./commands/CreateRuleCommand";
|
|
2
3
|
import { DeleteRuleCommand } from "./commands/DeleteRuleCommand";
|
|
3
4
|
import { GetRuleCommand } from "./commands/GetRuleCommand";
|
|
@@ -9,145 +10,18 @@ import { UnlockRuleCommand } from "./commands/UnlockRuleCommand";
|
|
|
9
10
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
10
11
|
import { UpdateRuleCommand } from "./commands/UpdateRuleCommand";
|
|
11
12
|
import { RbinClient } from "./RbinClient";
|
|
13
|
+
const commands = {
|
|
14
|
+
CreateRuleCommand,
|
|
15
|
+
DeleteRuleCommand,
|
|
16
|
+
GetRuleCommand,
|
|
17
|
+
ListRulesCommand,
|
|
18
|
+
ListTagsForResourceCommand,
|
|
19
|
+
LockRuleCommand,
|
|
20
|
+
TagResourceCommand,
|
|
21
|
+
UnlockRuleCommand,
|
|
22
|
+
UntagResourceCommand,
|
|
23
|
+
UpdateRuleCommand,
|
|
24
|
+
};
|
|
12
25
|
export class Rbin extends RbinClient {
|
|
13
|
-
createRule(args, optionsOrCb, cb) {
|
|
14
|
-
const command = new CreateRuleCommand(args);
|
|
15
|
-
if (typeof optionsOrCb === "function") {
|
|
16
|
-
this.send(command, optionsOrCb);
|
|
17
|
-
}
|
|
18
|
-
else if (typeof cb === "function") {
|
|
19
|
-
if (typeof optionsOrCb !== "object")
|
|
20
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
21
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
return this.send(command, optionsOrCb);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
deleteRule(args, optionsOrCb, cb) {
|
|
28
|
-
const command = new DeleteRuleCommand(args);
|
|
29
|
-
if (typeof optionsOrCb === "function") {
|
|
30
|
-
this.send(command, optionsOrCb);
|
|
31
|
-
}
|
|
32
|
-
else if (typeof cb === "function") {
|
|
33
|
-
if (typeof optionsOrCb !== "object")
|
|
34
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
35
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
return this.send(command, optionsOrCb);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
getRule(args, optionsOrCb, cb) {
|
|
42
|
-
const command = new GetRuleCommand(args);
|
|
43
|
-
if (typeof optionsOrCb === "function") {
|
|
44
|
-
this.send(command, optionsOrCb);
|
|
45
|
-
}
|
|
46
|
-
else if (typeof cb === "function") {
|
|
47
|
-
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
49
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return this.send(command, optionsOrCb);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
listRules(args, optionsOrCb, cb) {
|
|
56
|
-
const command = new ListRulesCommand(args);
|
|
57
|
-
if (typeof optionsOrCb === "function") {
|
|
58
|
-
this.send(command, optionsOrCb);
|
|
59
|
-
}
|
|
60
|
-
else if (typeof cb === "function") {
|
|
61
|
-
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
63
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return this.send(command, optionsOrCb);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
70
|
-
const command = new ListTagsForResourceCommand(args);
|
|
71
|
-
if (typeof optionsOrCb === "function") {
|
|
72
|
-
this.send(command, optionsOrCb);
|
|
73
|
-
}
|
|
74
|
-
else if (typeof cb === "function") {
|
|
75
|
-
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
77
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
return this.send(command, optionsOrCb);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
lockRule(args, optionsOrCb, cb) {
|
|
84
|
-
const command = new LockRuleCommand(args);
|
|
85
|
-
if (typeof optionsOrCb === "function") {
|
|
86
|
-
this.send(command, optionsOrCb);
|
|
87
|
-
}
|
|
88
|
-
else if (typeof cb === "function") {
|
|
89
|
-
if (typeof optionsOrCb !== "object")
|
|
90
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
91
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
return this.send(command, optionsOrCb);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
tagResource(args, optionsOrCb, cb) {
|
|
98
|
-
const command = new TagResourceCommand(args);
|
|
99
|
-
if (typeof optionsOrCb === "function") {
|
|
100
|
-
this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
else if (typeof cb === "function") {
|
|
103
|
-
if (typeof optionsOrCb !== "object")
|
|
104
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
105
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
return this.send(command, optionsOrCb);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
unlockRule(args, optionsOrCb, cb) {
|
|
112
|
-
const command = new UnlockRuleCommand(args);
|
|
113
|
-
if (typeof optionsOrCb === "function") {
|
|
114
|
-
this.send(command, optionsOrCb);
|
|
115
|
-
}
|
|
116
|
-
else if (typeof cb === "function") {
|
|
117
|
-
if (typeof optionsOrCb !== "object")
|
|
118
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
119
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
return this.send(command, optionsOrCb);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
untagResource(args, optionsOrCb, cb) {
|
|
126
|
-
const command = new UntagResourceCommand(args);
|
|
127
|
-
if (typeof optionsOrCb === "function") {
|
|
128
|
-
this.send(command, optionsOrCb);
|
|
129
|
-
}
|
|
130
|
-
else if (typeof cb === "function") {
|
|
131
|
-
if (typeof optionsOrCb !== "object")
|
|
132
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
133
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
return this.send(command, optionsOrCb);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
updateRule(args, optionsOrCb, cb) {
|
|
140
|
-
const command = new UpdateRuleCommand(args);
|
|
141
|
-
if (typeof optionsOrCb === "function") {
|
|
142
|
-
this.send(command, optionsOrCb);
|
|
143
|
-
}
|
|
144
|
-
else if (typeof cb === "function") {
|
|
145
|
-
if (typeof optionsOrCb !== "object")
|
|
146
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
147
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
return this.send(command, optionsOrCb);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
26
|
}
|
|
27
|
+
createAggregatedClient(commands, Rbin);
|
package/dist-types/Rbin.d.ts
CHANGED
|
@@ -10,98 +10,84 @@ import { UnlockRuleCommandInput, UnlockRuleCommandOutput } from "./commands/Unlo
|
|
|
10
10
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
11
11
|
import { UpdateRuleCommandInput, UpdateRuleCommandOutput } from "./commands/UpdateRuleCommand";
|
|
12
12
|
import { RbinClient } from "./RbinClient";
|
|
13
|
-
|
|
14
|
-
* @public
|
|
15
|
-
* <p>This is the <i>Recycle Bin API Reference</i>. This documentation provides
|
|
16
|
-
* descriptions and syntax for each of the actions and data types in Recycle Bin.</p>
|
|
17
|
-
*
|
|
18
|
-
* <p>Recycle Bin is a resource recovery feature that enables you to restore accidentally
|
|
19
|
-
* deleted snapshots and EBS-backed AMIs. When using Recycle Bin, if your resources are
|
|
20
|
-
* deleted, they are retained in the Recycle Bin for a time period that you specify.</p>
|
|
21
|
-
*
|
|
22
|
-
* <p>You can restore a resource from the Recycle Bin at any time before its retention period
|
|
23
|
-
* expires. After you restore a resource from the Recycle Bin, the resource is removed from the
|
|
24
|
-
* Recycle Bin, and you can then use it in the same way you use any other resource of that type
|
|
25
|
-
* in your account. If the retention period expires and the resource is not restored, the resource
|
|
26
|
-
* is permanently deleted from the Recycle Bin and is no longer available for recovery. For more
|
|
27
|
-
* information about Recycle Bin, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-recycle-bin.html">
|
|
28
|
-
* Recycle Bin</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
29
|
-
*/
|
|
30
|
-
export declare class Rbin extends RbinClient {
|
|
13
|
+
export interface Rbin {
|
|
31
14
|
/**
|
|
32
|
-
* @
|
|
33
|
-
* <p>Creates a Recycle Bin retention rule. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-create-rule">
|
|
34
|
-
* Create Recycle Bin retention rules</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
15
|
+
* @see {@link CreateRuleCommand}
|
|
35
16
|
*/
|
|
36
17
|
createRule(args: CreateRuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateRuleCommandOutput>;
|
|
37
18
|
createRule(args: CreateRuleCommandInput, cb: (err: any, data?: CreateRuleCommandOutput) => void): void;
|
|
38
19
|
createRule(args: CreateRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRuleCommandOutput) => void): void;
|
|
39
20
|
/**
|
|
40
|
-
* @
|
|
41
|
-
* <p>Deletes a Recycle Bin retention rule. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-delete-rule">
|
|
42
|
-
* Delete Recycle Bin retention rules</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
21
|
+
* @see {@link DeleteRuleCommand}
|
|
43
22
|
*/
|
|
44
23
|
deleteRule(args: DeleteRuleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRuleCommandOutput>;
|
|
45
24
|
deleteRule(args: DeleteRuleCommandInput, cb: (err: any, data?: DeleteRuleCommandOutput) => void): void;
|
|
46
25
|
deleteRule(args: DeleteRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRuleCommandOutput) => void): void;
|
|
47
26
|
/**
|
|
48
|
-
* @
|
|
49
|
-
* <p>Gets information about a Recycle Bin retention rule.</p>
|
|
27
|
+
* @see {@link GetRuleCommand}
|
|
50
28
|
*/
|
|
51
29
|
getRule(args: GetRuleCommandInput, options?: __HttpHandlerOptions): Promise<GetRuleCommandOutput>;
|
|
52
30
|
getRule(args: GetRuleCommandInput, cb: (err: any, data?: GetRuleCommandOutput) => void): void;
|
|
53
31
|
getRule(args: GetRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRuleCommandOutput) => void): void;
|
|
54
32
|
/**
|
|
55
|
-
* @
|
|
56
|
-
* <p>Lists the Recycle Bin retention rules in the Region.</p>
|
|
33
|
+
* @see {@link ListRulesCommand}
|
|
57
34
|
*/
|
|
58
35
|
listRules(args: ListRulesCommandInput, options?: __HttpHandlerOptions): Promise<ListRulesCommandOutput>;
|
|
59
36
|
listRules(args: ListRulesCommandInput, cb: (err: any, data?: ListRulesCommandOutput) => void): void;
|
|
60
37
|
listRules(args: ListRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRulesCommandOutput) => void): void;
|
|
61
38
|
/**
|
|
62
|
-
* @
|
|
63
|
-
* <p>Lists the tags assigned to a retention rule.</p>
|
|
39
|
+
* @see {@link ListTagsForResourceCommand}
|
|
64
40
|
*/
|
|
65
41
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
66
42
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
67
43
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
68
44
|
/**
|
|
69
|
-
* @
|
|
70
|
-
* <p>Locks a retention rule. A locked retention rule can't be modified or deleted.</p>
|
|
45
|
+
* @see {@link LockRuleCommand}
|
|
71
46
|
*/
|
|
72
47
|
lockRule(args: LockRuleCommandInput, options?: __HttpHandlerOptions): Promise<LockRuleCommandOutput>;
|
|
73
48
|
lockRule(args: LockRuleCommandInput, cb: (err: any, data?: LockRuleCommandOutput) => void): void;
|
|
74
49
|
lockRule(args: LockRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LockRuleCommandOutput) => void): void;
|
|
75
50
|
/**
|
|
76
|
-
* @
|
|
77
|
-
* <p>Assigns tags to the specified retention rule.</p>
|
|
51
|
+
* @see {@link TagResourceCommand}
|
|
78
52
|
*/
|
|
79
53
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
80
54
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
81
55
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
82
56
|
/**
|
|
83
|
-
* @
|
|
84
|
-
* <p>Unlocks a retention rule. After a retention rule is unlocked, it can be modified or deleted
|
|
85
|
-
* only after the unlock delay period expires.</p>
|
|
57
|
+
* @see {@link UnlockRuleCommand}
|
|
86
58
|
*/
|
|
87
59
|
unlockRule(args: UnlockRuleCommandInput, options?: __HttpHandlerOptions): Promise<UnlockRuleCommandOutput>;
|
|
88
60
|
unlockRule(args: UnlockRuleCommandInput, cb: (err: any, data?: UnlockRuleCommandOutput) => void): void;
|
|
89
61
|
unlockRule(args: UnlockRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnlockRuleCommandOutput) => void): void;
|
|
90
62
|
/**
|
|
91
|
-
* @
|
|
92
|
-
* <p>Unassigns a tag from a retention rule.</p>
|
|
63
|
+
* @see {@link UntagResourceCommand}
|
|
93
64
|
*/
|
|
94
65
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
95
66
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
96
67
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
97
68
|
/**
|
|
98
|
-
* @
|
|
99
|
-
* <p>Updates an existing Recycle Bin retention rule. You can update a retention rule's description,
|
|
100
|
-
* resource tags, and retention period at any time after creation. You can't update a retention rule's
|
|
101
|
-
* resource type after creation. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-update-rule">
|
|
102
|
-
* Update Recycle Bin retention rules</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
69
|
+
* @see {@link UpdateRuleCommand}
|
|
103
70
|
*/
|
|
104
71
|
updateRule(args: UpdateRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRuleCommandOutput>;
|
|
105
72
|
updateRule(args: UpdateRuleCommandInput, cb: (err: any, data?: UpdateRuleCommandOutput) => void): void;
|
|
106
73
|
updateRule(args: UpdateRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRuleCommandOutput) => void): void;
|
|
107
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* @public
|
|
77
|
+
* <p>This is the <i>Recycle Bin API Reference</i>. This documentation provides
|
|
78
|
+
* descriptions and syntax for each of the actions and data types in Recycle Bin.</p>
|
|
79
|
+
*
|
|
80
|
+
* <p>Recycle Bin is a resource recovery feature that enables you to restore accidentally
|
|
81
|
+
* deleted snapshots and EBS-backed AMIs. When using Recycle Bin, if your resources are
|
|
82
|
+
* deleted, they are retained in the Recycle Bin for a time period that you specify.</p>
|
|
83
|
+
*
|
|
84
|
+
* <p>You can restore a resource from the Recycle Bin at any time before its retention period
|
|
85
|
+
* expires. After you restore a resource from the Recycle Bin, the resource is removed from the
|
|
86
|
+
* Recycle Bin, and you can then use it in the same way you use any other resource of that type
|
|
87
|
+
* in your account. If the retention period expires and the resource is not restored, the resource
|
|
88
|
+
* is permanently deleted from the Recycle Bin and is no longer available for recovery. For more
|
|
89
|
+
* information about Recycle Bin, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-recycle-bin.html">
|
|
90
|
+
* Recycle Bin</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
91
|
+
*/
|
|
92
|
+
export declare class Rbin extends RbinClient implements Rbin {
|
|
93
|
+
}
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
UpdateRuleCommandOutput,
|
|
41
41
|
} from "./commands/UpdateRuleCommand";
|
|
42
42
|
import { RbinClient } from "./RbinClient";
|
|
43
|
-
export
|
|
43
|
+
export interface Rbin {
|
|
44
44
|
createRule(
|
|
45
45
|
args: CreateRuleCommandInput,
|
|
46
46
|
options?: __HttpHandlerOptions
|
|
@@ -172,3 +172,4 @@ export declare class Rbin extends RbinClient {
|
|
|
172
172
|
cb: (err: any, data?: UpdateRuleCommandOutput) => void
|
|
173
173
|
): void;
|
|
174
174
|
}
|
|
175
|
+
export declare class Rbin extends RbinClient implements Rbin {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rbin",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rbin Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|