@aws-sdk/client-resource-explorer-2 3.206.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/LICENSE +201 -0
- package/README.md +241 -0
- package/dist-cjs/ResourceExplorer2.js +292 -0
- package/dist-cjs/ResourceExplorer2Client.js +40 -0
- package/dist-cjs/commands/AssociateDefaultViewCommand.js +45 -0
- package/dist-cjs/commands/BatchGetViewCommand.js +45 -0
- package/dist-cjs/commands/CreateIndexCommand.js +45 -0
- package/dist-cjs/commands/CreateViewCommand.js +45 -0
- package/dist-cjs/commands/DeleteIndexCommand.js +45 -0
- package/dist-cjs/commands/DeleteViewCommand.js +45 -0
- package/dist-cjs/commands/DisassociateDefaultViewCommand.js +44 -0
- package/dist-cjs/commands/GetDefaultViewCommand.js +45 -0
- package/dist-cjs/commands/GetIndexCommand.js +45 -0
- package/dist-cjs/commands/GetViewCommand.js +45 -0
- package/dist-cjs/commands/ListIndexesCommand.js +45 -0
- package/dist-cjs/commands/ListSupportedResourceTypesCommand.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +45 -0
- package/dist-cjs/commands/ListViewsCommand.js +45 -0
- package/dist-cjs/commands/SearchCommand.js +45 -0
- package/dist-cjs/commands/TagResourceCommand.js +45 -0
- package/dist-cjs/commands/UntagResourceCommand.js +45 -0
- package/dist-cjs/commands/UpdateIndexTypeCommand.js +45 -0
- package/dist-cjs/commands/UpdateViewCommand.js +45 -0
- package/dist-cjs/commands/index.js +22 -0
- package/dist-cjs/endpoint/EndpointParameters.js +11 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +251 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/ResourceExplorer2ServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +318 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListIndexesPaginator.js +36 -0
- package/dist-cjs/pagination/ListSupportedResourceTypesPaginator.js +36 -0
- package/dist-cjs/pagination/ListViewsPaginator.js +36 -0
- package/dist-cjs/pagination/SearchPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1771 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/ResourceExplorer2.js +288 -0
- package/dist-es/ResourceExplorer2Client.js +36 -0
- package/dist-es/commands/AssociateDefaultViewCommand.js +41 -0
- package/dist-es/commands/BatchGetViewCommand.js +41 -0
- package/dist-es/commands/CreateIndexCommand.js +41 -0
- package/dist-es/commands/CreateViewCommand.js +41 -0
- package/dist-es/commands/DeleteIndexCommand.js +41 -0
- package/dist-es/commands/DeleteViewCommand.js +41 -0
- package/dist-es/commands/DisassociateDefaultViewCommand.js +40 -0
- package/dist-es/commands/GetDefaultViewCommand.js +41 -0
- package/dist-es/commands/GetIndexCommand.js +41 -0
- package/dist-es/commands/GetViewCommand.js +41 -0
- package/dist-es/commands/ListIndexesCommand.js +41 -0
- package/dist-es/commands/ListSupportedResourceTypesCommand.js +41 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +41 -0
- package/dist-es/commands/ListViewsCommand.js +41 -0
- package/dist-es/commands/SearchCommand.js +41 -0
- package/dist-es/commands/TagResourceCommand.js +41 -0
- package/dist-es/commands/UntagResourceCommand.js +41 -0
- package/dist-es/commands/UpdateIndexTypeCommand.js +41 -0
- package/dist-es/commands/UpdateViewCommand.js +41 -0
- package/dist-es/commands/index.js +19 -0
- package/dist-es/endpoint/EndpointParameters.js +7 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +248 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/ResourceExplorer2ServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +262 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListIndexesPaginator.js +32 -0
- package/dist-es/pagination/ListSupportedResourceTypesPaginator.js +32 -0
- package/dist-es/pagination/ListViewsPaginator.js +32 -0
- package/dist-es/pagination/SearchPaginator.js +32 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +1730 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/ResourceExplorer2.d.ts +336 -0
- package/dist-types/ResourceExplorer2Client.d.ts +196 -0
- package/dist-types/commands/AssociateDefaultViewCommand.d.ts +43 -0
- package/dist-types/commands/BatchGetViewCommand.d.ts +37 -0
- package/dist-types/commands/CreateIndexCommand.d.ts +90 -0
- package/dist-types/commands/CreateViewCommand.d.ts +44 -0
- package/dist-types/commands/DeleteIndexCommand.d.ts +42 -0
- package/dist-types/commands/DeleteViewCommand.d.ts +40 -0
- package/dist-types/commands/DisassociateDefaultViewCommand.d.ts +41 -0
- package/dist-types/commands/GetDefaultViewCommand.d.ts +38 -0
- package/dist-types/commands/GetIndexCommand.d.ts +38 -0
- package/dist-types/commands/GetViewCommand.d.ts +37 -0
- package/dist-types/commands/ListIndexesCommand.d.ts +38 -0
- package/dist-types/commands/ListSupportedResourceTypesCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/ListViewsCommand.d.ts +46 -0
- package/dist-types/commands/SearchCommand.d.ts +49 -0
- package/dist-types/commands/TagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateIndexTypeCommand.d.ts +93 -0
- package/dist-types/commands/UpdateViewCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +19 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +17 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/ResourceExplorer2ServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1080 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListIndexesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSupportedResourceTypesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListViewsPaginator.d.ts +4 -0
- package/dist-types/pagination/SearchPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +59 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +17 -0
- package/dist-types/ts3.4/ResourceExplorer2.d.ts +327 -0
- package/dist-types/ts3.4/ResourceExplorer2Client.d.ts +226 -0
- package/dist-types/ts3.4/commands/AssociateDefaultViewCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/BatchGetViewCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateViewCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteIndexCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteViewCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DisassociateDefaultViewCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetDefaultViewCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetIndexCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetViewCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListIndexesCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListSupportedResourceTypesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListViewsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/SearchCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateIndexTypeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateViewCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +19 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/ResourceExplorer2ServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +384 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListIndexesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSupportedResourceTypesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListViewsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +233 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/package.json +105 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceExplorer2 = void 0;
|
|
4
|
+
const AssociateDefaultViewCommand_1 = require("./commands/AssociateDefaultViewCommand");
|
|
5
|
+
const BatchGetViewCommand_1 = require("./commands/BatchGetViewCommand");
|
|
6
|
+
const CreateIndexCommand_1 = require("./commands/CreateIndexCommand");
|
|
7
|
+
const CreateViewCommand_1 = require("./commands/CreateViewCommand");
|
|
8
|
+
const DeleteIndexCommand_1 = require("./commands/DeleteIndexCommand");
|
|
9
|
+
const DeleteViewCommand_1 = require("./commands/DeleteViewCommand");
|
|
10
|
+
const DisassociateDefaultViewCommand_1 = require("./commands/DisassociateDefaultViewCommand");
|
|
11
|
+
const GetDefaultViewCommand_1 = require("./commands/GetDefaultViewCommand");
|
|
12
|
+
const GetIndexCommand_1 = require("./commands/GetIndexCommand");
|
|
13
|
+
const GetViewCommand_1 = require("./commands/GetViewCommand");
|
|
14
|
+
const ListIndexesCommand_1 = require("./commands/ListIndexesCommand");
|
|
15
|
+
const ListSupportedResourceTypesCommand_1 = require("./commands/ListSupportedResourceTypesCommand");
|
|
16
|
+
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
17
|
+
const ListViewsCommand_1 = require("./commands/ListViewsCommand");
|
|
18
|
+
const SearchCommand_1 = require("./commands/SearchCommand");
|
|
19
|
+
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
20
|
+
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
21
|
+
const UpdateIndexTypeCommand_1 = require("./commands/UpdateIndexTypeCommand");
|
|
22
|
+
const UpdateViewCommand_1 = require("./commands/UpdateViewCommand");
|
|
23
|
+
const ResourceExplorer2Client_1 = require("./ResourceExplorer2Client");
|
|
24
|
+
class ResourceExplorer2 extends ResourceExplorer2Client_1.ResourceExplorer2Client {
|
|
25
|
+
associateDefaultView(args, optionsOrCb, cb) {
|
|
26
|
+
const command = new AssociateDefaultViewCommand_1.AssociateDefaultViewCommand(args);
|
|
27
|
+
if (typeof optionsOrCb === "function") {
|
|
28
|
+
this.send(command, optionsOrCb);
|
|
29
|
+
}
|
|
30
|
+
else if (typeof cb === "function") {
|
|
31
|
+
if (typeof optionsOrCb !== "object")
|
|
32
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
return this.send(command, optionsOrCb);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
batchGetView(args, optionsOrCb, cb) {
|
|
40
|
+
const command = new BatchGetViewCommand_1.BatchGetViewCommand(args);
|
|
41
|
+
if (typeof optionsOrCb === "function") {
|
|
42
|
+
this.send(command, optionsOrCb);
|
|
43
|
+
}
|
|
44
|
+
else if (typeof cb === "function") {
|
|
45
|
+
if (typeof optionsOrCb !== "object")
|
|
46
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
return this.send(command, optionsOrCb);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
createIndex(args, optionsOrCb, cb) {
|
|
54
|
+
const command = new CreateIndexCommand_1.CreateIndexCommand(args);
|
|
55
|
+
if (typeof optionsOrCb === "function") {
|
|
56
|
+
this.send(command, optionsOrCb);
|
|
57
|
+
}
|
|
58
|
+
else if (typeof cb === "function") {
|
|
59
|
+
if (typeof optionsOrCb !== "object")
|
|
60
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
61
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
return this.send(command, optionsOrCb);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
createView(args, optionsOrCb, cb) {
|
|
68
|
+
const command = new CreateViewCommand_1.CreateViewCommand(args);
|
|
69
|
+
if (typeof optionsOrCb === "function") {
|
|
70
|
+
this.send(command, optionsOrCb);
|
|
71
|
+
}
|
|
72
|
+
else if (typeof cb === "function") {
|
|
73
|
+
if (typeof optionsOrCb !== "object")
|
|
74
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
75
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
return this.send(command, optionsOrCb);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
deleteIndex(args, optionsOrCb, cb) {
|
|
82
|
+
const command = new DeleteIndexCommand_1.DeleteIndexCommand(args);
|
|
83
|
+
if (typeof optionsOrCb === "function") {
|
|
84
|
+
this.send(command, optionsOrCb);
|
|
85
|
+
}
|
|
86
|
+
else if (typeof cb === "function") {
|
|
87
|
+
if (typeof optionsOrCb !== "object")
|
|
88
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
89
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
return this.send(command, optionsOrCb);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
deleteView(args, optionsOrCb, cb) {
|
|
96
|
+
const command = new DeleteViewCommand_1.DeleteViewCommand(args);
|
|
97
|
+
if (typeof optionsOrCb === "function") {
|
|
98
|
+
this.send(command, optionsOrCb);
|
|
99
|
+
}
|
|
100
|
+
else if (typeof cb === "function") {
|
|
101
|
+
if (typeof optionsOrCb !== "object")
|
|
102
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
103
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
return this.send(command, optionsOrCb);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
disassociateDefaultView(args, optionsOrCb, cb) {
|
|
110
|
+
const command = new DisassociateDefaultViewCommand_1.DisassociateDefaultViewCommand(args);
|
|
111
|
+
if (typeof optionsOrCb === "function") {
|
|
112
|
+
this.send(command, optionsOrCb);
|
|
113
|
+
}
|
|
114
|
+
else if (typeof cb === "function") {
|
|
115
|
+
if (typeof optionsOrCb !== "object")
|
|
116
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
117
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
return this.send(command, optionsOrCb);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
getDefaultView(args, optionsOrCb, cb) {
|
|
124
|
+
const command = new GetDefaultViewCommand_1.GetDefaultViewCommand(args);
|
|
125
|
+
if (typeof optionsOrCb === "function") {
|
|
126
|
+
this.send(command, optionsOrCb);
|
|
127
|
+
}
|
|
128
|
+
else if (typeof cb === "function") {
|
|
129
|
+
if (typeof optionsOrCb !== "object")
|
|
130
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
131
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
return this.send(command, optionsOrCb);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
getIndex(args, optionsOrCb, cb) {
|
|
138
|
+
const command = new GetIndexCommand_1.GetIndexCommand(args);
|
|
139
|
+
if (typeof optionsOrCb === "function") {
|
|
140
|
+
this.send(command, optionsOrCb);
|
|
141
|
+
}
|
|
142
|
+
else if (typeof cb === "function") {
|
|
143
|
+
if (typeof optionsOrCb !== "object")
|
|
144
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
145
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
return this.send(command, optionsOrCb);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
getView(args, optionsOrCb, cb) {
|
|
152
|
+
const command = new GetViewCommand_1.GetViewCommand(args);
|
|
153
|
+
if (typeof optionsOrCb === "function") {
|
|
154
|
+
this.send(command, optionsOrCb);
|
|
155
|
+
}
|
|
156
|
+
else if (typeof cb === "function") {
|
|
157
|
+
if (typeof optionsOrCb !== "object")
|
|
158
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
159
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
return this.send(command, optionsOrCb);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
listIndexes(args, optionsOrCb, cb) {
|
|
166
|
+
const command = new ListIndexesCommand_1.ListIndexesCommand(args);
|
|
167
|
+
if (typeof optionsOrCb === "function") {
|
|
168
|
+
this.send(command, optionsOrCb);
|
|
169
|
+
}
|
|
170
|
+
else if (typeof cb === "function") {
|
|
171
|
+
if (typeof optionsOrCb !== "object")
|
|
172
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
173
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
return this.send(command, optionsOrCb);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
listSupportedResourceTypes(args, optionsOrCb, cb) {
|
|
180
|
+
const command = new ListSupportedResourceTypesCommand_1.ListSupportedResourceTypesCommand(args);
|
|
181
|
+
if (typeof optionsOrCb === "function") {
|
|
182
|
+
this.send(command, optionsOrCb);
|
|
183
|
+
}
|
|
184
|
+
else if (typeof cb === "function") {
|
|
185
|
+
if (typeof optionsOrCb !== "object")
|
|
186
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
187
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
return this.send(command, optionsOrCb);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
194
|
+
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
195
|
+
if (typeof optionsOrCb === "function") {
|
|
196
|
+
this.send(command, optionsOrCb);
|
|
197
|
+
}
|
|
198
|
+
else if (typeof cb === "function") {
|
|
199
|
+
if (typeof optionsOrCb !== "object")
|
|
200
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
201
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
return this.send(command, optionsOrCb);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
listViews(args, optionsOrCb, cb) {
|
|
208
|
+
const command = new ListViewsCommand_1.ListViewsCommand(args);
|
|
209
|
+
if (typeof optionsOrCb === "function") {
|
|
210
|
+
this.send(command, optionsOrCb);
|
|
211
|
+
}
|
|
212
|
+
else if (typeof cb === "function") {
|
|
213
|
+
if (typeof optionsOrCb !== "object")
|
|
214
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
215
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
return this.send(command, optionsOrCb);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
search(args, optionsOrCb, cb) {
|
|
222
|
+
const command = new SearchCommand_1.SearchCommand(args);
|
|
223
|
+
if (typeof optionsOrCb === "function") {
|
|
224
|
+
this.send(command, optionsOrCb);
|
|
225
|
+
}
|
|
226
|
+
else if (typeof cb === "function") {
|
|
227
|
+
if (typeof optionsOrCb !== "object")
|
|
228
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
229
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
return this.send(command, optionsOrCb);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
tagResource(args, optionsOrCb, cb) {
|
|
236
|
+
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
237
|
+
if (typeof optionsOrCb === "function") {
|
|
238
|
+
this.send(command, optionsOrCb);
|
|
239
|
+
}
|
|
240
|
+
else if (typeof cb === "function") {
|
|
241
|
+
if (typeof optionsOrCb !== "object")
|
|
242
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
243
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
return this.send(command, optionsOrCb);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
untagResource(args, optionsOrCb, cb) {
|
|
250
|
+
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
251
|
+
if (typeof optionsOrCb === "function") {
|
|
252
|
+
this.send(command, optionsOrCb);
|
|
253
|
+
}
|
|
254
|
+
else if (typeof cb === "function") {
|
|
255
|
+
if (typeof optionsOrCb !== "object")
|
|
256
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
257
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
return this.send(command, optionsOrCb);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
updateIndexType(args, optionsOrCb, cb) {
|
|
264
|
+
const command = new UpdateIndexTypeCommand_1.UpdateIndexTypeCommand(args);
|
|
265
|
+
if (typeof optionsOrCb === "function") {
|
|
266
|
+
this.send(command, optionsOrCb);
|
|
267
|
+
}
|
|
268
|
+
else if (typeof cb === "function") {
|
|
269
|
+
if (typeof optionsOrCb !== "object")
|
|
270
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
271
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
return this.send(command, optionsOrCb);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
updateView(args, optionsOrCb, cb) {
|
|
278
|
+
const command = new UpdateViewCommand_1.UpdateViewCommand(args);
|
|
279
|
+
if (typeof optionsOrCb === "function") {
|
|
280
|
+
this.send(command, optionsOrCb);
|
|
281
|
+
}
|
|
282
|
+
else if (typeof cb === "function") {
|
|
283
|
+
if (typeof optionsOrCb !== "object")
|
|
284
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
285
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
return this.send(command, optionsOrCb);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
exports.ResourceExplorer2 = ResourceExplorer2;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceExplorer2Client = void 0;
|
|
4
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
|
+
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
6
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
7
|
+
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
8
|
+
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
9
|
+
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
12
|
+
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
13
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
14
|
+
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
15
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
16
|
+
class ResourceExplorer2Client extends smithy_client_1.Client {
|
|
17
|
+
constructor(configuration) {
|
|
18
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
19
|
+
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
20
|
+
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
|
21
|
+
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
22
|
+
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
|
|
23
|
+
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
24
|
+
const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
|
|
25
|
+
const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
|
|
26
|
+
super(_config_7);
|
|
27
|
+
this.config = _config_7;
|
|
28
|
+
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
29
|
+
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
30
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
31
|
+
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
32
|
+
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
33
|
+
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
34
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
35
|
+
}
|
|
36
|
+
destroy() {
|
|
37
|
+
super.destroy();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.ResourceExplorer2Client = ResourceExplorer2Client;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssociateDefaultViewCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class AssociateDefaultViewCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssociateDefaultViewCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "ResourceExplorer2Client";
|
|
27
|
+
const commandName = "AssociateDefaultViewCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: models_0_1.AssociateDefaultViewInputFilterSensitiveLog,
|
|
33
|
+
outputFilterSensitiveLog: models_0_1.AssociateDefaultViewOutputFilterSensitiveLog,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1AssociateDefaultViewCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1AssociateDefaultViewCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.AssociateDefaultViewCommand = AssociateDefaultViewCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchGetViewCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class BatchGetViewCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchGetViewCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "ResourceExplorer2Client";
|
|
27
|
+
const commandName = "BatchGetViewCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: models_0_1.BatchGetViewInputFilterSensitiveLog,
|
|
33
|
+
outputFilterSensitiveLog: models_0_1.BatchGetViewOutputFilterSensitiveLog,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1BatchGetViewCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1BatchGetViewCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.BatchGetViewCommand = BatchGetViewCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateIndexCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class CreateIndexCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateIndexCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "ResourceExplorer2Client";
|
|
27
|
+
const commandName = "CreateIndexCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: models_0_1.CreateIndexInputFilterSensitiveLog,
|
|
33
|
+
outputFilterSensitiveLog: models_0_1.CreateIndexOutputFilterSensitiveLog,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateIndexCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateIndexCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CreateIndexCommand = CreateIndexCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateViewCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class CreateViewCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateViewCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "ResourceExplorer2Client";
|
|
27
|
+
const commandName = "CreateViewCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: models_0_1.CreateViewInputFilterSensitiveLog,
|
|
33
|
+
outputFilterSensitiveLog: models_0_1.CreateViewOutputFilterSensitiveLog,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateViewCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateViewCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CreateViewCommand = CreateViewCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteIndexCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DeleteIndexCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteIndexCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "ResourceExplorer2Client";
|
|
27
|
+
const commandName = "DeleteIndexCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: models_0_1.DeleteIndexInputFilterSensitiveLog,
|
|
33
|
+
outputFilterSensitiveLog: models_0_1.DeleteIndexOutputFilterSensitiveLog,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteIndexCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteIndexCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.DeleteIndexCommand = DeleteIndexCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteViewCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DeleteViewCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteViewCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "ResourceExplorer2Client";
|
|
27
|
+
const commandName = "DeleteViewCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: models_0_1.DeleteViewInputFilterSensitiveLog,
|
|
33
|
+
outputFilterSensitiveLog: models_0_1.DeleteViewOutputFilterSensitiveLog,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteViewCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteViewCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.DeleteViewCommand = DeleteViewCommand;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisassociateDefaultViewCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DisassociateDefaultViewCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
static getEndpointParameterInstructions() {
|
|
14
|
+
return {
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DisassociateDefaultViewCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ResourceExplorer2Client";
|
|
26
|
+
const commandName = "DisassociateDefaultViewCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (input) => input,
|
|
32
|
+
outputFilterSensitiveLog: (output) => output,
|
|
33
|
+
};
|
|
34
|
+
const { requestHandler } = configuration;
|
|
35
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
36
|
+
}
|
|
37
|
+
serialize(input, context) {
|
|
38
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DisassociateDefaultViewCommand)(input, context);
|
|
39
|
+
}
|
|
40
|
+
deserialize(output, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DisassociateDefaultViewCommand)(output, context);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.DisassociateDefaultViewCommand = DisassociateDefaultViewCommand;
|