@aws-sdk/client-resource-explorer-2 3.450.0 → 3.451.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.
Files changed (65) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/ResourceExplorer2.js +4 -0
  3. package/dist-cjs/commands/CreateIndexCommand.js +2 -1
  4. package/dist-cjs/commands/GetAccountLevelServiceConfigurationCommand.js +50 -0
  5. package/dist-cjs/commands/GetIndexCommand.js +2 -1
  6. package/dist-cjs/commands/ListIndexesForMembersCommand.js +50 -0
  7. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -1
  8. package/dist-cjs/commands/TagResourceCommand.js +2 -1
  9. package/dist-cjs/commands/UntagResourceCommand.js +2 -1
  10. package/dist-cjs/commands/index.js +2 -0
  11. package/dist-cjs/models/models_0.js +32 -1
  12. package/dist-cjs/pagination/ListIndexesForMembersPaginator.js +29 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +134 -1
  15. package/dist-es/ResourceExplorer2.js +4 -0
  16. package/dist-es/commands/CreateIndexCommand.js +2 -1
  17. package/dist-es/commands/GetAccountLevelServiceConfigurationCommand.js +46 -0
  18. package/dist-es/commands/GetIndexCommand.js +2 -1
  19. package/dist-es/commands/ListIndexesForMembersCommand.js +46 -0
  20. package/dist-es/commands/ListTagsForResourceCommand.js +2 -1
  21. package/dist-es/commands/TagResourceCommand.js +2 -1
  22. package/dist-es/commands/UntagResourceCommand.js +2 -1
  23. package/dist-es/commands/index.js +2 -0
  24. package/dist-es/models/models_0.js +26 -0
  25. package/dist-es/pagination/ListIndexesForMembersPaginator.js +25 -0
  26. package/dist-es/pagination/index.js +1 -0
  27. package/dist-es/protocols/Aws_restJson1.js +129 -0
  28. package/dist-types/ResourceExplorer2.d.ts +14 -0
  29. package/dist-types/ResourceExplorer2Client.d.ts +4 -2
  30. package/dist-types/commands/AssociateDefaultViewCommand.d.ts +2 -2
  31. package/dist-types/commands/BatchGetViewCommand.d.ts +2 -2
  32. package/dist-types/commands/CreateIndexCommand.d.ts +7 -3
  33. package/dist-types/commands/CreateViewCommand.d.ts +8 -3
  34. package/dist-types/commands/DeleteIndexCommand.d.ts +2 -2
  35. package/dist-types/commands/DeleteViewCommand.d.ts +2 -2
  36. package/dist-types/commands/DisassociateDefaultViewCommand.d.ts +6 -2
  37. package/dist-types/commands/GetAccountLevelServiceConfigurationCommand.d.ts +94 -0
  38. package/dist-types/commands/GetDefaultViewCommand.d.ts +2 -2
  39. package/dist-types/commands/GetIndexCommand.d.ts +2 -2
  40. package/dist-types/commands/GetViewCommand.d.ts +2 -2
  41. package/dist-types/commands/ListIndexesCommand.d.ts +2 -2
  42. package/dist-types/commands/ListIndexesForMembersCommand.d.ts +105 -0
  43. package/dist-types/commands/ListSupportedResourceTypesCommand.d.ts +2 -2
  44. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  45. package/dist-types/commands/ListViewsCommand.d.ts +2 -2
  46. package/dist-types/commands/SearchCommand.d.ts +2 -2
  47. package/dist-types/commands/TagResourceCommand.d.ts +7 -3
  48. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  49. package/dist-types/commands/UpdateIndexTypeCommand.d.ts +7 -3
  50. package/dist-types/commands/UpdateViewCommand.d.ts +2 -2
  51. package/dist-types/commands/index.d.ts +2 -0
  52. package/dist-types/models/models_0.d.ts +190 -21
  53. package/dist-types/pagination/ListIndexesForMembersPaginator.d.ts +7 -0
  54. package/dist-types/pagination/index.d.ts +1 -0
  55. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  56. package/dist-types/ts3.4/ResourceExplorer2.d.ts +40 -0
  57. package/dist-types/ts3.4/ResourceExplorer2Client.d.ts +12 -0
  58. package/dist-types/ts3.4/commands/GetAccountLevelServiceConfigurationCommand.d.ts +38 -0
  59. package/dist-types/ts3.4/commands/ListIndexesForMembersCommand.d.ts +42 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  61. package/dist-types/ts3.4/models/models_0.d.ts +44 -0
  62. package/dist-types/ts3.4/pagination/ListIndexesForMembersPaginator.d.ts +11 -0
  63. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  64. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  65. package/package.json +35 -35
@@ -0,0 +1,46 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_GetAccountLevelServiceConfigurationCommand, se_GetAccountLevelServiceConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetAccountLevelServiceConfigurationCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetAccountLevelServiceConfigurationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ResourceExplorer2Client";
25
+ const commandName = "GetAccountLevelServiceConfigurationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ [SMITHY_CONTEXT_KEY]: {
33
+ service: "ResourceExplorer",
34
+ operation: "GetAccountLevelServiceConfiguration",
35
+ },
36
+ };
37
+ const { requestHandler } = configuration;
38
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
39
+ }
40
+ serialize(input, context) {
41
+ return se_GetAccountLevelServiceConfigurationCommand(input, context);
42
+ }
43
+ deserialize(output, context) {
44
+ return de_GetAccountLevelServiceConfigurationCommand(output, context);
45
+ }
46
+ }
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { GetIndexOutputFilterSensitiveLog } from "../models/models_0";
5
6
  import { de_GetIndexCommand, se_GetIndexCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class GetIndexCommand extends $Command {
@@ -28,7 +29,7 @@ export class GetIndexCommand extends $Command {
28
29
  clientName,
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
- outputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: GetIndexOutputFilterSensitiveLog,
32
33
  [SMITHY_CONTEXT_KEY]: {
33
34
  service: "ResourceExplorer",
34
35
  operation: "GetIndex",
@@ -0,0 +1,46 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_ListIndexesForMembersCommand, se_ListIndexesForMembersCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListIndexesForMembersCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListIndexesForMembersCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ResourceExplorer2Client";
25
+ const commandName = "ListIndexesForMembersCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ [SMITHY_CONTEXT_KEY]: {
33
+ service: "ResourceExplorer",
34
+ operation: "ListIndexesForMembers",
35
+ },
36
+ };
37
+ const { requestHandler } = configuration;
38
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
39
+ }
40
+ serialize(input, context) {
41
+ return se_ListIndexesForMembersCommand(input, context);
42
+ }
43
+ deserialize(output, context) {
44
+ return de_ListIndexesForMembersCommand(output, context);
45
+ }
46
+ }
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { ListTagsForResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class ListTagsForResourceCommand extends $Command {
@@ -28,7 +29,7 @@ export class ListTagsForResourceCommand extends $Command {
28
29
  clientName,
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
- outputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: ListTagsForResourceOutputFilterSensitiveLog,
32
33
  [SMITHY_CONTEXT_KEY]: {
33
34
  service: "ResourceExplorer",
34
35
  operation: "ListTagsForResource",
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { TagResourceInputFilterSensitiveLog } from "../models/models_0";
5
6
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class TagResourceCommand extends $Command {
@@ -27,7 +28,7 @@ export class TagResourceCommand extends $Command {
27
28
  logger,
28
29
  clientName,
29
30
  commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
+ inputFilterSensitiveLog: TagResourceInputFilterSensitiveLog,
31
32
  outputFilterSensitiveLog: (_) => _,
32
33
  [SMITHY_CONTEXT_KEY]: {
33
34
  service: "ResourceExplorer",
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { UntagResourceInputFilterSensitiveLog } from "../models/models_0";
5
6
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class UntagResourceCommand extends $Command {
@@ -27,7 +28,7 @@ export class UntagResourceCommand extends $Command {
27
28
  logger,
28
29
  clientName,
29
30
  commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
+ inputFilterSensitiveLog: UntagResourceInputFilterSensitiveLog,
31
32
  outputFilterSensitiveLog: (_) => _,
32
33
  [SMITHY_CONTEXT_KEY]: {
33
34
  service: "ResourceExplorer",
@@ -5,10 +5,12 @@ export * from "./CreateViewCommand";
5
5
  export * from "./DeleteIndexCommand";
6
6
  export * from "./DeleteViewCommand";
7
7
  export * from "./DisassociateDefaultViewCommand";
8
+ export * from "./GetAccountLevelServiceConfigurationCommand";
8
9
  export * from "./GetDefaultViewCommand";
9
10
  export * from "./GetIndexCommand";
10
11
  export * from "./GetViewCommand";
11
12
  export * from "./ListIndexesCommand";
13
+ export * from "./ListIndexesForMembersCommand";
12
14
  export * from "./ListSupportedResourceTypesCommand";
13
15
  export * from "./ListTagsForResourceCommand";
14
16
  export * from "./ListViewsCommand";
@@ -66,6 +66,10 @@ export class ValidationException extends __BaseException {
66
66
  this.FieldList = opts.FieldList;
67
67
  }
68
68
  }
69
+ export const AWSServiceAccessStatus = {
70
+ DISABLED: "DISABLED",
71
+ ENABLED: "ENABLED",
72
+ };
69
73
  export class UnauthorizedException extends __BaseException {
70
74
  constructor(opts) {
71
75
  super({
@@ -129,9 +133,14 @@ export const BatchGetViewOutputFilterSensitiveLog = (obj) => ({
129
133
  ...obj,
130
134
  ...(obj.Views && { Views: obj.Views.map((item) => ViewFilterSensitiveLog(item)) }),
131
135
  });
136
+ export const CreateIndexInputFilterSensitiveLog = (obj) => ({
137
+ ...obj,
138
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
139
+ });
132
140
  export const CreateViewInputFilterSensitiveLog = (obj) => ({
133
141
  ...obj,
134
142
  ...(obj.Filters && { Filters: SENSITIVE_STRING }),
143
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
135
144
  });
136
145
  export const CreateViewOutputFilterSensitiveLog = (obj) => ({
137
146
  ...obj,
@@ -140,6 +149,7 @@ export const CreateViewOutputFilterSensitiveLog = (obj) => ({
140
149
  export const GetViewOutputFilterSensitiveLog = (obj) => ({
141
150
  ...obj,
142
151
  ...(obj.View && { View: ViewFilterSensitiveLog(obj.View) }),
152
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
143
153
  });
144
154
  export const UpdateViewInputFilterSensitiveLog = (obj) => ({
145
155
  ...obj,
@@ -149,7 +159,23 @@ export const UpdateViewOutputFilterSensitiveLog = (obj) => ({
149
159
  ...obj,
150
160
  ...(obj.View && { View: ViewFilterSensitiveLog(obj.View) }),
151
161
  });
162
+ export const GetIndexOutputFilterSensitiveLog = (obj) => ({
163
+ ...obj,
164
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
165
+ });
166
+ export const ListTagsForResourceOutputFilterSensitiveLog = (obj) => ({
167
+ ...obj,
168
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
169
+ });
152
170
  export const SearchInputFilterSensitiveLog = (obj) => ({
153
171
  ...obj,
154
172
  ...(obj.QueryString && { QueryString: SENSITIVE_STRING }),
155
173
  });
174
+ export const TagResourceInputFilterSensitiveLog = (obj) => ({
175
+ ...obj,
176
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
177
+ });
178
+ export const UntagResourceInputFilterSensitiveLog = (obj) => ({
179
+ ...obj,
180
+ ...(obj.tagKeys && { tagKeys: SENSITIVE_STRING }),
181
+ });
@@ -0,0 +1,25 @@
1
+ import { ListIndexesForMembersCommand, } from "../commands/ListIndexesForMembersCommand";
2
+ import { ResourceExplorer2Client } from "../ResourceExplorer2Client";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListIndexesForMembersCommand(input), ...args);
5
+ };
6
+ export async function* paginateListIndexesForMembers(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof ResourceExplorer2Client) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./Interfaces";
2
+ export * from "./ListIndexesForMembersPaginator";
2
3
  export * from "./ListIndexesPaginator";
3
4
  export * from "./ListSupportedResourceTypesPaginator";
4
5
  export * from "./ListViewsPaginator";
@@ -75,6 +75,7 @@ export const se_CreateViewCommand = async (input, context) => {
75
75
  ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
76
76
  Filters: (_) => _json(_),
77
77
  IncludedProperties: (_) => _json(_),
78
+ Scope: [],
78
79
  Tags: (_) => _json(_),
79
80
  ViewName: [],
80
81
  }));
@@ -146,6 +147,24 @@ export const se_DisassociateDefaultViewCommand = async (input, context) => {
146
147
  body,
147
148
  });
148
149
  };
150
+ export const se_GetAccountLevelServiceConfigurationCommand = async (input, context) => {
151
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
152
+ const headers = {
153
+ "content-type": "application/json",
154
+ };
155
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetAccountLevelServiceConfiguration";
156
+ let body;
157
+ body = "";
158
+ return new __HttpRequest({
159
+ protocol,
160
+ hostname,
161
+ port,
162
+ method: "POST",
163
+ headers,
164
+ path: resolvedPath,
165
+ body,
166
+ });
167
+ };
149
168
  export const se_GetDefaultViewCommand = async (input, context) => {
150
169
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
151
170
  const headers = {
@@ -225,6 +244,28 @@ export const se_ListIndexesCommand = async (input, context) => {
225
244
  body,
226
245
  });
227
246
  };
247
+ export const se_ListIndexesForMembersCommand = async (input, context) => {
248
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
249
+ const headers = {
250
+ "content-type": "application/json",
251
+ };
252
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListIndexesForMembers";
253
+ let body;
254
+ body = JSON.stringify(take(input, {
255
+ AccountIdList: (_) => _json(_),
256
+ MaxResults: [],
257
+ NextToken: [],
258
+ }));
259
+ return new __HttpRequest({
260
+ protocol,
261
+ hostname,
262
+ port,
263
+ method: "POST",
264
+ headers,
265
+ path: resolvedPath,
266
+ body,
267
+ });
268
+ };
228
269
  export const se_ListSupportedResourceTypesCommand = async (input, context) => {
229
270
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
230
271
  const headers = {
@@ -700,6 +741,9 @@ const de_DisassociateDefaultViewCommandError = async (output, context) => {
700
741
  case "InternalServerException":
701
742
  case "com.amazonaws.resourceexplorer2#InternalServerException":
702
743
  throw await de_InternalServerExceptionRes(parsedOutput, context);
744
+ case "ResourceNotFoundException":
745
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
746
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
703
747
  case "ThrottlingException":
704
748
  case "com.amazonaws.resourceexplorer2#ThrottlingException":
705
749
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -715,6 +759,48 @@ const de_DisassociateDefaultViewCommandError = async (output, context) => {
715
759
  });
716
760
  }
717
761
  };
762
+ export const de_GetAccountLevelServiceConfigurationCommand = async (output, context) => {
763
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
764
+ return de_GetAccountLevelServiceConfigurationCommandError(output, context);
765
+ }
766
+ const contents = map({
767
+ $metadata: deserializeMetadata(output),
768
+ });
769
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
770
+ const doc = take(data, {
771
+ OrgConfiguration: _json,
772
+ });
773
+ Object.assign(contents, doc);
774
+ return contents;
775
+ };
776
+ const de_GetAccountLevelServiceConfigurationCommandError = async (output, context) => {
777
+ const parsedOutput = {
778
+ ...output,
779
+ body: await parseErrorBody(output.body, context),
780
+ };
781
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
782
+ switch (errorCode) {
783
+ case "AccessDeniedException":
784
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
785
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
786
+ case "InternalServerException":
787
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
788
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
789
+ case "ResourceNotFoundException":
790
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
791
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
792
+ case "ThrottlingException":
793
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
794
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
795
+ default:
796
+ const parsedBody = parsedOutput.body;
797
+ return throwDefaultError({
798
+ output,
799
+ parsedBody,
800
+ errorCode,
801
+ });
802
+ }
803
+ };
718
804
  export const de_GetDefaultViewCommand = async (output, context) => {
719
805
  if (output.statusCode !== 200 && output.statusCode >= 300) {
720
806
  return de_GetDefaultViewCommandError(output, context);
@@ -904,6 +990,49 @@ const de_ListIndexesCommandError = async (output, context) => {
904
990
  });
905
991
  }
906
992
  };
993
+ export const de_ListIndexesForMembersCommand = async (output, context) => {
994
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
995
+ return de_ListIndexesForMembersCommandError(output, context);
996
+ }
997
+ const contents = map({
998
+ $metadata: deserializeMetadata(output),
999
+ });
1000
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1001
+ const doc = take(data, {
1002
+ Indexes: _json,
1003
+ NextToken: __expectString,
1004
+ });
1005
+ Object.assign(contents, doc);
1006
+ return contents;
1007
+ };
1008
+ const de_ListIndexesForMembersCommandError = async (output, context) => {
1009
+ const parsedOutput = {
1010
+ ...output,
1011
+ body: await parseErrorBody(output.body, context),
1012
+ };
1013
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1014
+ switch (errorCode) {
1015
+ case "AccessDeniedException":
1016
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1017
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1018
+ case "InternalServerException":
1019
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1020
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1021
+ case "ThrottlingException":
1022
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1023
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1024
+ case "ValidationException":
1025
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1026
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1027
+ default:
1028
+ const parsedBody = parsedOutput.body;
1029
+ return throwDefaultError({
1030
+ output,
1031
+ parsedBody,
1032
+ errorCode,
1033
+ });
1034
+ }
1035
+ };
907
1036
  export const de_ListSupportedResourceTypesCommand = async (output, context) => {
908
1037
  if (output.statusCode !== 200 && output.statusCode >= 300) {
909
1038
  return de_ListSupportedResourceTypesCommandError(output, context);
@@ -6,10 +6,12 @@ import { CreateViewCommandInput, CreateViewCommandOutput } from "./commands/Crea
6
6
  import { DeleteIndexCommandInput, DeleteIndexCommandOutput } from "./commands/DeleteIndexCommand";
7
7
  import { DeleteViewCommandInput, DeleteViewCommandOutput } from "./commands/DeleteViewCommand";
8
8
  import { DisassociateDefaultViewCommandInput, DisassociateDefaultViewCommandOutput } from "./commands/DisassociateDefaultViewCommand";
9
+ import { GetAccountLevelServiceConfigurationCommandInput, GetAccountLevelServiceConfigurationCommandOutput } from "./commands/GetAccountLevelServiceConfigurationCommand";
9
10
  import { GetDefaultViewCommandInput, GetDefaultViewCommandOutput } from "./commands/GetDefaultViewCommand";
10
11
  import { GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
11
12
  import { GetViewCommandInput, GetViewCommandOutput } from "./commands/GetViewCommand";
12
13
  import { ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
14
+ import { ListIndexesForMembersCommandInput, ListIndexesForMembersCommandOutput } from "./commands/ListIndexesForMembersCommand";
13
15
  import { ListSupportedResourceTypesCommandInput, ListSupportedResourceTypesCommandOutput } from "./commands/ListSupportedResourceTypesCommand";
14
16
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
15
17
  import { ListViewsCommandInput, ListViewsCommandOutput } from "./commands/ListViewsCommand";
@@ -62,6 +64,12 @@ export interface ResourceExplorer2 {
62
64
  disassociateDefaultView(args: DisassociateDefaultViewCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateDefaultViewCommandOutput>;
63
65
  disassociateDefaultView(args: DisassociateDefaultViewCommandInput, cb: (err: any, data?: DisassociateDefaultViewCommandOutput) => void): void;
64
66
  disassociateDefaultView(args: DisassociateDefaultViewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateDefaultViewCommandOutput) => void): void;
67
+ /**
68
+ * @see {@link GetAccountLevelServiceConfigurationCommand}
69
+ */
70
+ getAccountLevelServiceConfiguration(args: GetAccountLevelServiceConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetAccountLevelServiceConfigurationCommandOutput>;
71
+ getAccountLevelServiceConfiguration(args: GetAccountLevelServiceConfigurationCommandInput, cb: (err: any, data?: GetAccountLevelServiceConfigurationCommandOutput) => void): void;
72
+ getAccountLevelServiceConfiguration(args: GetAccountLevelServiceConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccountLevelServiceConfigurationCommandOutput) => void): void;
65
73
  /**
66
74
  * @see {@link GetDefaultViewCommand}
67
75
  */
@@ -86,6 +94,12 @@ export interface ResourceExplorer2 {
86
94
  listIndexes(args: ListIndexesCommandInput, options?: __HttpHandlerOptions): Promise<ListIndexesCommandOutput>;
87
95
  listIndexes(args: ListIndexesCommandInput, cb: (err: any, data?: ListIndexesCommandOutput) => void): void;
88
96
  listIndexes(args: ListIndexesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIndexesCommandOutput) => void): void;
97
+ /**
98
+ * @see {@link ListIndexesForMembersCommand}
99
+ */
100
+ listIndexesForMembers(args: ListIndexesForMembersCommandInput, options?: __HttpHandlerOptions): Promise<ListIndexesForMembersCommandOutput>;
101
+ listIndexesForMembers(args: ListIndexesForMembersCommandInput, cb: (err: any, data?: ListIndexesForMembersCommandOutput) => void): void;
102
+ listIndexesForMembers(args: ListIndexesForMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIndexesForMembersCommandOutput) => void): void;
89
103
  /**
90
104
  * @see {@link ListSupportedResourceTypesCommand}
91
105
  */
@@ -15,10 +15,12 @@ import { CreateViewCommandInput, CreateViewCommandOutput } from "./commands/Crea
15
15
  import { DeleteIndexCommandInput, DeleteIndexCommandOutput } from "./commands/DeleteIndexCommand";
16
16
  import { DeleteViewCommandInput, DeleteViewCommandOutput } from "./commands/DeleteViewCommand";
17
17
  import { DisassociateDefaultViewCommandInput, DisassociateDefaultViewCommandOutput } from "./commands/DisassociateDefaultViewCommand";
18
+ import { GetAccountLevelServiceConfigurationCommandInput, GetAccountLevelServiceConfigurationCommandOutput } from "./commands/GetAccountLevelServiceConfigurationCommand";
18
19
  import { GetDefaultViewCommandInput, GetDefaultViewCommandOutput } from "./commands/GetDefaultViewCommand";
19
20
  import { GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
20
21
  import { GetViewCommandInput, GetViewCommandOutput } from "./commands/GetViewCommand";
21
22
  import { ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
23
+ import { ListIndexesForMembersCommandInput, ListIndexesForMembersCommandOutput } from "./commands/ListIndexesForMembersCommand";
22
24
  import { ListSupportedResourceTypesCommandInput, ListSupportedResourceTypesCommandOutput } from "./commands/ListSupportedResourceTypesCommand";
23
25
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
24
26
  import { ListViewsCommandInput, ListViewsCommandOutput } from "./commands/ListViewsCommand";
@@ -33,11 +35,11 @@ export { __Client };
33
35
  /**
34
36
  * @public
35
37
  */
36
- export type ServiceInputTypes = AssociateDefaultViewCommandInput | BatchGetViewCommandInput | CreateIndexCommandInput | CreateViewCommandInput | DeleteIndexCommandInput | DeleteViewCommandInput | DisassociateDefaultViewCommandInput | GetDefaultViewCommandInput | GetIndexCommandInput | GetViewCommandInput | ListIndexesCommandInput | ListSupportedResourceTypesCommandInput | ListTagsForResourceCommandInput | ListViewsCommandInput | SearchCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateIndexTypeCommandInput | UpdateViewCommandInput;
38
+ export type ServiceInputTypes = AssociateDefaultViewCommandInput | BatchGetViewCommandInput | CreateIndexCommandInput | CreateViewCommandInput | DeleteIndexCommandInput | DeleteViewCommandInput | DisassociateDefaultViewCommandInput | GetAccountLevelServiceConfigurationCommandInput | GetDefaultViewCommandInput | GetIndexCommandInput | GetViewCommandInput | ListIndexesCommandInput | ListIndexesForMembersCommandInput | ListSupportedResourceTypesCommandInput | ListTagsForResourceCommandInput | ListViewsCommandInput | SearchCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateIndexTypeCommandInput | UpdateViewCommandInput;
37
39
  /**
38
40
  * @public
39
41
  */
40
- export type ServiceOutputTypes = AssociateDefaultViewCommandOutput | BatchGetViewCommandOutput | CreateIndexCommandOutput | CreateViewCommandOutput | DeleteIndexCommandOutput | DeleteViewCommandOutput | DisassociateDefaultViewCommandOutput | GetDefaultViewCommandOutput | GetIndexCommandOutput | GetViewCommandOutput | ListIndexesCommandOutput | ListSupportedResourceTypesCommandOutput | ListTagsForResourceCommandOutput | ListViewsCommandOutput | SearchCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateIndexTypeCommandOutput | UpdateViewCommandOutput;
42
+ export type ServiceOutputTypes = AssociateDefaultViewCommandOutput | BatchGetViewCommandOutput | CreateIndexCommandOutput | CreateViewCommandOutput | DeleteIndexCommandOutput | DeleteViewCommandOutput | DisassociateDefaultViewCommandOutput | GetAccountLevelServiceConfigurationCommandOutput | GetDefaultViewCommandOutput | GetIndexCommandOutput | GetViewCommandOutput | ListIndexesCommandOutput | ListIndexesForMembersCommandOutput | ListSupportedResourceTypesCommandOutput | ListTagsForResourceCommandOutput | ListViewsCommandOutput | SearchCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateIndexTypeCommandOutput | UpdateViewCommandOutput;
41
43
  /**
42
44
  * @public
43
45
  */
@@ -67,8 +67,8 @@ export interface AssociateDefaultViewCommandOutput extends AssociateDefaultViewO
67
67
  *
68
68
  * @throws {@link ThrottlingException} (client fault)
69
69
  * <p>The request failed because you exceeded a rate limit for this operation. For more
70
- * information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
71
- * for Resource Explorer</a>.</p>
70
+ * information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
71
+ * Resource Explorer</a>.</p>
72
72
  *
73
73
  * @throws {@link ValidationException} (client fault)
74
74
  * <p>You provided an invalid value for one of the operation's parameters. Check the syntax
@@ -80,8 +80,8 @@ export interface BatchGetViewCommandOutput extends BatchGetViewOutput, __Metadat
80
80
  *
81
81
  * @throws {@link ThrottlingException} (client fault)
82
82
  * <p>The request failed because you exceeded a rate limit for this operation. For more
83
- * information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
84
- * for Resource Explorer</a>.</p>
83
+ * information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
84
+ * Resource Explorer</a>.</p>
85
85
  *
86
86
  * @throws {@link UnauthorizedException} (client fault)
87
87
  * <p>The principal making the request isn't permitted to perform the operation.</p>
@@ -107,9 +107,13 @@ export interface CreateIndexCommandOutput extends CreateIndexOutput, __MetadataB
107
107
  * permissions.</p>
108
108
  *
109
109
  * @throws {@link ConflictException} (client fault)
110
- * <p>The request failed because either you specified parameters that didn’t match the
110
+ * <p>If you attempted to create a view, then the request failed because either you specified parameters that didn’t match the
111
111
  * original request, or you attempted to create a view with a name that already exists in
112
112
  * this Amazon Web Services Region.</p>
113
+ * <p>If you attempted to create an index, then the request failed because either you specified parameters that didn't match
114
+ * the original request, or an index already exists in the current Amazon Web Services Region.</p>
115
+ * <p>If you attempted to update an index type to <code>AGGREGATOR</code>, then the request failed because you already
116
+ * have an <code>AGGREGATOR</code> index in a different Amazon Web Services Region.</p>
113
117
  *
114
118
  * @throws {@link InternalServerException} (server fault)
115
119
  * <p>The request failed because of internal service error. Try your request again
@@ -117,8 +121,8 @@ export interface CreateIndexCommandOutput extends CreateIndexOutput, __MetadataB
117
121
  *
118
122
  * @throws {@link ThrottlingException} (client fault)
119
123
  * <p>The request failed because you exceeded a rate limit for this operation. For more
120
- * information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
121
- * for Resource Explorer</a>.</p>
124
+ * information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
125
+ * Resource Explorer</a>.</p>
122
126
  *
123
127
  * @throws {@link ValidationException} (client fault)
124
128
  * <p>You provided an invalid value for one of the operation's parameters. Check the syntax
@@ -45,6 +45,7 @@ export interface CreateViewCommandOutput extends CreateViewOutput, __MetadataBea
45
45
  * Name: "STRING_VALUE", // required
46
46
  * },
47
47
  * ],
48
+ * Scope: "STRING_VALUE",
48
49
  * Filters: { // SearchFilter
49
50
  * FilterString: "STRING_VALUE", // required
50
51
  * },
@@ -84,9 +85,13 @@ export interface CreateViewCommandOutput extends CreateViewOutput, __MetadataBea
84
85
  * permissions.</p>
85
86
  *
86
87
  * @throws {@link ConflictException} (client fault)
87
- * <p>The request failed because either you specified parameters that didn’t match the
88
+ * <p>If you attempted to create a view, then the request failed because either you specified parameters that didn’t match the
88
89
  * original request, or you attempted to create a view with a name that already exists in
89
90
  * this Amazon Web Services Region.</p>
91
+ * <p>If you attempted to create an index, then the request failed because either you specified parameters that didn't match
92
+ * the original request, or an index already exists in the current Amazon Web Services Region.</p>
93
+ * <p>If you attempted to update an index type to <code>AGGREGATOR</code>, then the request failed because you already
94
+ * have an <code>AGGREGATOR</code> index in a different Amazon Web Services Region.</p>
90
95
  *
91
96
  * @throws {@link InternalServerException} (server fault)
92
97
  * <p>The request failed because of internal service error. Try your request again
@@ -97,8 +102,8 @@ export interface CreateViewCommandOutput extends CreateViewOutput, __MetadataBea
97
102
  *
98
103
  * @throws {@link ThrottlingException} (client fault)
99
104
  * <p>The request failed because you exceeded a rate limit for this operation. For more
100
- * information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
101
- * for Resource Explorer</a>.</p>
105
+ * information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
106
+ * Resource Explorer</a>.</p>
102
107
  *
103
108
  * @throws {@link UnauthorizedException} (client fault)
104
109
  * <p>The principal making the request isn't permitted to perform the operation.</p>
@@ -74,8 +74,8 @@ export interface DeleteIndexCommandOutput extends DeleteIndexOutput, __MetadataB
74
74
  *
75
75
  * @throws {@link ThrottlingException} (client fault)
76
76
  * <p>The request failed because you exceeded a rate limit for this operation. For more
77
- * information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
78
- * for Resource Explorer</a>.</p>
77
+ * information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
78
+ * Resource Explorer</a>.</p>
79
79
  *
80
80
  * @throws {@link ValidationException} (client fault)
81
81
  * <p>You provided an invalid value for one of the operation's parameters. Check the syntax
@@ -64,8 +64,8 @@ export interface DeleteViewCommandOutput extends DeleteViewOutput, __MetadataBea
64
64
  *
65
65
  * @throws {@link ThrottlingException} (client fault)
66
66
  * <p>The request failed because you exceeded a rate limit for this operation. For more
67
- * information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
68
- * for Resource Explorer</a>.</p>
67
+ * information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
68
+ * Resource Explorer</a>.</p>
69
69
  *
70
70
  * @throws {@link UnauthorizedException} (client fault)
71
71
  * <p>The principal making the request isn't permitted to perform the operation.</p>
@@ -55,10 +55,14 @@ export interface DisassociateDefaultViewCommandOutput extends __MetadataBearer {
55
55
  * <p>The request failed because of internal service error. Try your request again
56
56
  * later.</p>
57
57
  *
58
+ * @throws {@link ResourceNotFoundException} (client fault)
59
+ * <p>You specified a resource that doesn't exist. Check the ID or ARN that you used to
60
+ * identity the resource, and try again.</p>
61
+ *
58
62
  * @throws {@link ThrottlingException} (client fault)
59
63
  * <p>The request failed because you exceeded a rate limit for this operation. For more
60
- * information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
61
- * for Resource Explorer</a>.</p>
64
+ * information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
65
+ * Resource Explorer</a>.</p>
62
66
  *
63
67
  * @throws {@link ValidationException} (client fault)
64
68
  * <p>You provided an invalid value for one of the operation's parameters. Check the syntax