@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,248 @@
|
|
|
1
|
+
export const ruleSet = {
|
|
2
|
+
version: "1.0",
|
|
3
|
+
parameters: {
|
|
4
|
+
Region: {
|
|
5
|
+
builtIn: "AWS::Region",
|
|
6
|
+
required: false,
|
|
7
|
+
documentation: "The AWS region used to dispatch the request.",
|
|
8
|
+
type: "String",
|
|
9
|
+
},
|
|
10
|
+
UseFIPS: {
|
|
11
|
+
builtIn: "AWS::UseFIPS",
|
|
12
|
+
required: true,
|
|
13
|
+
default: false,
|
|
14
|
+
documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
|
|
15
|
+
type: "Boolean",
|
|
16
|
+
},
|
|
17
|
+
Endpoint: {
|
|
18
|
+
builtIn: "SDK::Endpoint",
|
|
19
|
+
required: false,
|
|
20
|
+
documentation: "Override the endpoint used to send this request",
|
|
21
|
+
type: "String",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
rules: [
|
|
25
|
+
{
|
|
26
|
+
conditions: [
|
|
27
|
+
{
|
|
28
|
+
fn: "aws.partition",
|
|
29
|
+
argv: [
|
|
30
|
+
{
|
|
31
|
+
ref: "Region",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
assign: "PartitionResult",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
type: "tree",
|
|
38
|
+
rules: [
|
|
39
|
+
{
|
|
40
|
+
conditions: [
|
|
41
|
+
{
|
|
42
|
+
fn: "isSet",
|
|
43
|
+
argv: [
|
|
44
|
+
{
|
|
45
|
+
ref: "Endpoint",
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
fn: "parseURL",
|
|
51
|
+
argv: [
|
|
52
|
+
{
|
|
53
|
+
ref: "Endpoint",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
assign: "url",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
type: "tree",
|
|
60
|
+
rules: [
|
|
61
|
+
{
|
|
62
|
+
conditions: [
|
|
63
|
+
{
|
|
64
|
+
fn: "booleanEquals",
|
|
65
|
+
argv: [
|
|
66
|
+
{
|
|
67
|
+
ref: "UseFIPS",
|
|
68
|
+
},
|
|
69
|
+
true,
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
error: "Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
74
|
+
type: "error",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
conditions: [],
|
|
78
|
+
endpoint: {
|
|
79
|
+
url: {
|
|
80
|
+
ref: "Endpoint",
|
|
81
|
+
},
|
|
82
|
+
properties: {},
|
|
83
|
+
headers: {},
|
|
84
|
+
},
|
|
85
|
+
type: "endpoint",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
conditions: [],
|
|
91
|
+
type: "tree",
|
|
92
|
+
rules: [
|
|
93
|
+
{
|
|
94
|
+
conditions: [
|
|
95
|
+
{
|
|
96
|
+
fn: "booleanEquals",
|
|
97
|
+
argv: [
|
|
98
|
+
true,
|
|
99
|
+
{
|
|
100
|
+
fn: "getAttr",
|
|
101
|
+
argv: [
|
|
102
|
+
{
|
|
103
|
+
ref: "PartitionResult",
|
|
104
|
+
},
|
|
105
|
+
"supportsDualStack",
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
type: "tree",
|
|
112
|
+
rules: [
|
|
113
|
+
{
|
|
114
|
+
conditions: [
|
|
115
|
+
{
|
|
116
|
+
fn: "booleanEquals",
|
|
117
|
+
argv: [
|
|
118
|
+
{
|
|
119
|
+
ref: "UseFIPS",
|
|
120
|
+
},
|
|
121
|
+
true,
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
type: "tree",
|
|
126
|
+
rules: [
|
|
127
|
+
{
|
|
128
|
+
conditions: [
|
|
129
|
+
{
|
|
130
|
+
fn: "booleanEquals",
|
|
131
|
+
argv: [
|
|
132
|
+
true,
|
|
133
|
+
{
|
|
134
|
+
fn: "getAttr",
|
|
135
|
+
argv: [
|
|
136
|
+
{
|
|
137
|
+
ref: "PartitionResult",
|
|
138
|
+
},
|
|
139
|
+
"supportsFIPS",
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
type: "tree",
|
|
146
|
+
rules: [
|
|
147
|
+
{
|
|
148
|
+
conditions: [],
|
|
149
|
+
endpoint: {
|
|
150
|
+
url: "https://resource-explorer-2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
151
|
+
properties: {},
|
|
152
|
+
headers: {},
|
|
153
|
+
},
|
|
154
|
+
type: "endpoint",
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
conditions: [],
|
|
160
|
+
error: "FIPS is enabled but this partition does not support FIPS",
|
|
161
|
+
type: "error",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
conditions: [],
|
|
167
|
+
endpoint: {
|
|
168
|
+
url: "https://resource-explorer-2.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
169
|
+
properties: {},
|
|
170
|
+
headers: {},
|
|
171
|
+
},
|
|
172
|
+
type: "endpoint",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
conditions: [],
|
|
178
|
+
type: "tree",
|
|
179
|
+
rules: [
|
|
180
|
+
{
|
|
181
|
+
conditions: [
|
|
182
|
+
{
|
|
183
|
+
fn: "booleanEquals",
|
|
184
|
+
argv: [
|
|
185
|
+
{
|
|
186
|
+
ref: "UseFIPS",
|
|
187
|
+
},
|
|
188
|
+
true,
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
type: "tree",
|
|
193
|
+
rules: [
|
|
194
|
+
{
|
|
195
|
+
conditions: [
|
|
196
|
+
{
|
|
197
|
+
fn: "booleanEquals",
|
|
198
|
+
argv: [
|
|
199
|
+
true,
|
|
200
|
+
{
|
|
201
|
+
fn: "getAttr",
|
|
202
|
+
argv: [
|
|
203
|
+
{
|
|
204
|
+
ref: "PartitionResult",
|
|
205
|
+
},
|
|
206
|
+
"supportsFIPS",
|
|
207
|
+
],
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
type: "tree",
|
|
213
|
+
rules: [
|
|
214
|
+
{
|
|
215
|
+
conditions: [],
|
|
216
|
+
endpoint: {
|
|
217
|
+
url: "https://resource-explorer-2-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
218
|
+
properties: {},
|
|
219
|
+
headers: {},
|
|
220
|
+
},
|
|
221
|
+
type: "endpoint",
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
conditions: [],
|
|
227
|
+
error: "FIPS is enabled but this partition does not support FIPS",
|
|
228
|
+
type: "error",
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
conditions: [],
|
|
234
|
+
endpoint: {
|
|
235
|
+
url: "https://resource-explorer-2.{Region}.{PartitionResult#dnsSuffix}",
|
|
236
|
+
properties: {},
|
|
237
|
+
headers: {},
|
|
238
|
+
},
|
|
239
|
+
type: "endpoint",
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
+
export class ResourceExplorer2ServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, ResourceExplorer2ServiceException.prototype);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { ResourceExplorer2ServiceException as __BaseException } from "./ResourceExplorer2ServiceException";
|
|
3
|
+
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "AccessDeniedException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "AccessDeniedException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
this.Message = opts.Message;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class InternalServerException extends __BaseException {
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "InternalServerException",
|
|
20
|
+
$fault: "server",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
this.name = "InternalServerException";
|
|
24
|
+
this.$fault = "server";
|
|
25
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
26
|
+
this.Message = opts.Message;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
30
|
+
constructor(opts) {
|
|
31
|
+
super({
|
|
32
|
+
name: "ResourceNotFoundException",
|
|
33
|
+
$fault: "client",
|
|
34
|
+
...opts,
|
|
35
|
+
});
|
|
36
|
+
this.name = "ResourceNotFoundException";
|
|
37
|
+
this.$fault = "client";
|
|
38
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
39
|
+
this.Message = opts.Message;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export class ThrottlingException extends __BaseException {
|
|
43
|
+
constructor(opts) {
|
|
44
|
+
super({
|
|
45
|
+
name: "ThrottlingException",
|
|
46
|
+
$fault: "client",
|
|
47
|
+
...opts,
|
|
48
|
+
});
|
|
49
|
+
this.name = "ThrottlingException";
|
|
50
|
+
this.$fault = "client";
|
|
51
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
52
|
+
this.Message = opts.Message;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export class ValidationException extends __BaseException {
|
|
56
|
+
constructor(opts) {
|
|
57
|
+
super({
|
|
58
|
+
name: "ValidationException",
|
|
59
|
+
$fault: "client",
|
|
60
|
+
...opts,
|
|
61
|
+
});
|
|
62
|
+
this.name = "ValidationException";
|
|
63
|
+
this.$fault = "client";
|
|
64
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
65
|
+
this.Message = opts.Message;
|
|
66
|
+
this.FieldList = opts.FieldList;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export class UnauthorizedException extends __BaseException {
|
|
70
|
+
constructor(opts) {
|
|
71
|
+
super({
|
|
72
|
+
name: "UnauthorizedException",
|
|
73
|
+
$fault: "client",
|
|
74
|
+
...opts,
|
|
75
|
+
});
|
|
76
|
+
this.name = "UnauthorizedException";
|
|
77
|
+
this.$fault = "client";
|
|
78
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
79
|
+
this.Message = opts.Message;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export class ConflictException extends __BaseException {
|
|
83
|
+
constructor(opts) {
|
|
84
|
+
super({
|
|
85
|
+
name: "ConflictException",
|
|
86
|
+
$fault: "client",
|
|
87
|
+
...opts,
|
|
88
|
+
});
|
|
89
|
+
this.name = "ConflictException";
|
|
90
|
+
this.$fault = "client";
|
|
91
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
92
|
+
this.Message = opts.Message;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
export var IndexState;
|
|
96
|
+
(function (IndexState) {
|
|
97
|
+
IndexState["ACTIVE"] = "ACTIVE";
|
|
98
|
+
IndexState["CREATING"] = "CREATING";
|
|
99
|
+
IndexState["DELETED"] = "DELETED";
|
|
100
|
+
IndexState["DELETING"] = "DELETING";
|
|
101
|
+
IndexState["UPDATING"] = "UPDATING";
|
|
102
|
+
})(IndexState || (IndexState = {}));
|
|
103
|
+
export var IndexType;
|
|
104
|
+
(function (IndexType) {
|
|
105
|
+
IndexType["AGGREGATOR"] = "AGGREGATOR";
|
|
106
|
+
IndexType["LOCAL"] = "LOCAL";
|
|
107
|
+
})(IndexType || (IndexType = {}));
|
|
108
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
109
|
+
constructor(opts) {
|
|
110
|
+
super({
|
|
111
|
+
name: "ServiceQuotaExceededException",
|
|
112
|
+
$fault: "client",
|
|
113
|
+
...opts,
|
|
114
|
+
});
|
|
115
|
+
this.name = "ServiceQuotaExceededException";
|
|
116
|
+
this.$fault = "client";
|
|
117
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
118
|
+
this.Message = opts.Message;
|
|
119
|
+
this.Name = opts.Name;
|
|
120
|
+
this.Value = opts.Value;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
export const AssociateDefaultViewInputFilterSensitiveLog = (obj) => ({
|
|
124
|
+
...obj,
|
|
125
|
+
});
|
|
126
|
+
export const AssociateDefaultViewOutputFilterSensitiveLog = (obj) => ({
|
|
127
|
+
...obj,
|
|
128
|
+
});
|
|
129
|
+
export const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({
|
|
130
|
+
...obj,
|
|
131
|
+
});
|
|
132
|
+
export const BatchGetViewInputFilterSensitiveLog = (obj) => ({
|
|
133
|
+
...obj,
|
|
134
|
+
});
|
|
135
|
+
export const BatchGetViewErrorFilterSensitiveLog = (obj) => ({
|
|
136
|
+
...obj,
|
|
137
|
+
});
|
|
138
|
+
export const SearchFilterFilterSensitiveLog = (obj) => ({
|
|
139
|
+
...obj,
|
|
140
|
+
});
|
|
141
|
+
export const IncludedPropertyFilterSensitiveLog = (obj) => ({
|
|
142
|
+
...obj,
|
|
143
|
+
});
|
|
144
|
+
export const ViewFilterSensitiveLog = (obj) => ({
|
|
145
|
+
...obj,
|
|
146
|
+
...(obj.Filters && { Filters: SENSITIVE_STRING }),
|
|
147
|
+
});
|
|
148
|
+
export const BatchGetViewOutputFilterSensitiveLog = (obj) => ({
|
|
149
|
+
...obj,
|
|
150
|
+
...(obj.Views && { Views: obj.Views.map((item) => ViewFilterSensitiveLog(item)) }),
|
|
151
|
+
});
|
|
152
|
+
export const CreateIndexInputFilterSensitiveLog = (obj) => ({
|
|
153
|
+
...obj,
|
|
154
|
+
});
|
|
155
|
+
export const CreateIndexOutputFilterSensitiveLog = (obj) => ({
|
|
156
|
+
...obj,
|
|
157
|
+
});
|
|
158
|
+
export const DeleteIndexInputFilterSensitiveLog = (obj) => ({
|
|
159
|
+
...obj,
|
|
160
|
+
});
|
|
161
|
+
export const DeleteIndexOutputFilterSensitiveLog = (obj) => ({
|
|
162
|
+
...obj,
|
|
163
|
+
});
|
|
164
|
+
export const ListIndexesInputFilterSensitiveLog = (obj) => ({
|
|
165
|
+
...obj,
|
|
166
|
+
});
|
|
167
|
+
export const IndexFilterSensitiveLog = (obj) => ({
|
|
168
|
+
...obj,
|
|
169
|
+
});
|
|
170
|
+
export const ListIndexesOutputFilterSensitiveLog = (obj) => ({
|
|
171
|
+
...obj,
|
|
172
|
+
});
|
|
173
|
+
export const UpdateIndexTypeInputFilterSensitiveLog = (obj) => ({
|
|
174
|
+
...obj,
|
|
175
|
+
});
|
|
176
|
+
export const UpdateIndexTypeOutputFilterSensitiveLog = (obj) => ({
|
|
177
|
+
...obj,
|
|
178
|
+
});
|
|
179
|
+
export const CreateViewInputFilterSensitiveLog = (obj) => ({
|
|
180
|
+
...obj,
|
|
181
|
+
...(obj.Filters && { Filters: SENSITIVE_STRING }),
|
|
182
|
+
});
|
|
183
|
+
export const CreateViewOutputFilterSensitiveLog = (obj) => ({
|
|
184
|
+
...obj,
|
|
185
|
+
...(obj.View && { View: ViewFilterSensitiveLog(obj.View) }),
|
|
186
|
+
});
|
|
187
|
+
export const DeleteViewInputFilterSensitiveLog = (obj) => ({
|
|
188
|
+
...obj,
|
|
189
|
+
});
|
|
190
|
+
export const DeleteViewOutputFilterSensitiveLog = (obj) => ({
|
|
191
|
+
...obj,
|
|
192
|
+
});
|
|
193
|
+
export const GetViewInputFilterSensitiveLog = (obj) => ({
|
|
194
|
+
...obj,
|
|
195
|
+
});
|
|
196
|
+
export const GetViewOutputFilterSensitiveLog = (obj) => ({
|
|
197
|
+
...obj,
|
|
198
|
+
...(obj.View && { View: ViewFilterSensitiveLog(obj.View) }),
|
|
199
|
+
});
|
|
200
|
+
export const ListViewsInputFilterSensitiveLog = (obj) => ({
|
|
201
|
+
...obj,
|
|
202
|
+
});
|
|
203
|
+
export const ListViewsOutputFilterSensitiveLog = (obj) => ({
|
|
204
|
+
...obj,
|
|
205
|
+
});
|
|
206
|
+
export const UpdateViewInputFilterSensitiveLog = (obj) => ({
|
|
207
|
+
...obj,
|
|
208
|
+
...(obj.Filters && { Filters: SENSITIVE_STRING }),
|
|
209
|
+
});
|
|
210
|
+
export const UpdateViewOutputFilterSensitiveLog = (obj) => ({
|
|
211
|
+
...obj,
|
|
212
|
+
...(obj.View && { View: ViewFilterSensitiveLog(obj.View) }),
|
|
213
|
+
});
|
|
214
|
+
export const GetDefaultViewOutputFilterSensitiveLog = (obj) => ({
|
|
215
|
+
...obj,
|
|
216
|
+
});
|
|
217
|
+
export const GetIndexOutputFilterSensitiveLog = (obj) => ({
|
|
218
|
+
...obj,
|
|
219
|
+
});
|
|
220
|
+
export const ListSupportedResourceTypesInputFilterSensitiveLog = (obj) => ({
|
|
221
|
+
...obj,
|
|
222
|
+
});
|
|
223
|
+
export const SupportedResourceTypeFilterSensitiveLog = (obj) => ({
|
|
224
|
+
...obj,
|
|
225
|
+
});
|
|
226
|
+
export const ListSupportedResourceTypesOutputFilterSensitiveLog = (obj) => ({
|
|
227
|
+
...obj,
|
|
228
|
+
});
|
|
229
|
+
export const ListTagsForResourceInputFilterSensitiveLog = (obj) => ({
|
|
230
|
+
...obj,
|
|
231
|
+
});
|
|
232
|
+
export const ListTagsForResourceOutputFilterSensitiveLog = (obj) => ({
|
|
233
|
+
...obj,
|
|
234
|
+
});
|
|
235
|
+
export const ResourcePropertyFilterSensitiveLog = (obj) => ({
|
|
236
|
+
...obj,
|
|
237
|
+
});
|
|
238
|
+
export const ResourceFilterSensitiveLog = (obj) => ({
|
|
239
|
+
...obj,
|
|
240
|
+
});
|
|
241
|
+
export const ResourceCountFilterSensitiveLog = (obj) => ({
|
|
242
|
+
...obj,
|
|
243
|
+
});
|
|
244
|
+
export const SearchInputFilterSensitiveLog = (obj) => ({
|
|
245
|
+
...obj,
|
|
246
|
+
...(obj.QueryString && { QueryString: SENSITIVE_STRING }),
|
|
247
|
+
});
|
|
248
|
+
export const SearchOutputFilterSensitiveLog = (obj) => ({
|
|
249
|
+
...obj,
|
|
250
|
+
});
|
|
251
|
+
export const TagResourceInputFilterSensitiveLog = (obj) => ({
|
|
252
|
+
...obj,
|
|
253
|
+
});
|
|
254
|
+
export const TagResourceOutputFilterSensitiveLog = (obj) => ({
|
|
255
|
+
...obj,
|
|
256
|
+
});
|
|
257
|
+
export const UntagResourceInputFilterSensitiveLog = (obj) => ({
|
|
258
|
+
...obj,
|
|
259
|
+
});
|
|
260
|
+
export const UntagResourceOutputFilterSensitiveLog = (obj) => ({
|
|
261
|
+
...obj,
|
|
262
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListIndexesCommand } from "../commands/ListIndexesCommand";
|
|
2
|
+
import { ResourceExplorer2 } from "../ResourceExplorer2";
|
|
3
|
+
import { ResourceExplorer2Client } from "../ResourceExplorer2Client";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListIndexesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listIndexes(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListIndexes(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof ResourceExplorer2) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof ResourceExplorer2Client) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListSupportedResourceTypesCommand, } from "../commands/ListSupportedResourceTypesCommand";
|
|
2
|
+
import { ResourceExplorer2 } from "../ResourceExplorer2";
|
|
3
|
+
import { ResourceExplorer2Client } from "../ResourceExplorer2Client";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListSupportedResourceTypesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listSupportedResourceTypes(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListSupportedResourceTypes(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof ResourceExplorer2) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof ResourceExplorer2Client) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListViewsCommand } from "../commands/ListViewsCommand";
|
|
2
|
+
import { ResourceExplorer2 } from "../ResourceExplorer2";
|
|
3
|
+
import { ResourceExplorer2Client } from "../ResourceExplorer2Client";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListViewsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listViews(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListViews(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof ResourceExplorer2) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof ResourceExplorer2Client) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SearchCommand } from "../commands/SearchCommand";
|
|
2
|
+
import { ResourceExplorer2 } from "../ResourceExplorer2";
|
|
3
|
+
import { ResourceExplorer2Client } from "../ResourceExplorer2Client";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new SearchCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.search(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateSearch(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof ResourceExplorer2) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof ResourceExplorer2Client) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|