Skip to content

Commit

Permalink
feat(client-resource-explorer-2): Resource Explorer supports multi-ac…
Browse files Browse the repository at this point in the history
…count search. You can now use Resource Explorer to search and discover resources across AWS accounts within your organization or organizational unit.
  • Loading branch information
awstools committed Nov 14, 2023
1 parent 0627029 commit 806c94f
Show file tree
Hide file tree
Showing 30 changed files with 1,237 additions and 86 deletions.
16 changes: 16 additions & 0 deletions clients/client-resource-explorer-2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@ DisassociateDefaultView

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/classes/disassociatedefaultviewcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/disassociatedefaultviewcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/disassociatedefaultviewcommandoutput.html)

</details>
<details>
<summary>
GetAccountLevelServiceConfiguration
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/classes/getaccountlevelserviceconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/getaccountlevelserviceconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/getaccountlevelserviceconfigurationcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -310,6 +318,14 @@ ListIndexes

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/classes/listindexescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/listindexescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/listindexescommandoutput.html)

</details>
<details>
<summary>
ListIndexesForMembers
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/classes/listindexesformemberscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/listindexesformemberscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resource-explorer-2/interfaces/listindexesformemberscommandoutput.html)

</details>
<details>
<summary>
Expand Down
46 changes: 46 additions & 0 deletions clients/client-resource-explorer-2/src/ResourceExplorer2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ import {
DisassociateDefaultViewCommandInput,
DisassociateDefaultViewCommandOutput,
} from "./commands/DisassociateDefaultViewCommand";
import {
GetAccountLevelServiceConfigurationCommand,
GetAccountLevelServiceConfigurationCommandInput,
GetAccountLevelServiceConfigurationCommandOutput,
} from "./commands/GetAccountLevelServiceConfigurationCommand";
import {
GetDefaultViewCommand,
GetDefaultViewCommandInput,
Expand All @@ -29,6 +34,11 @@ import {
import { GetIndexCommand, GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
import { GetViewCommand, GetViewCommandInput, GetViewCommandOutput } from "./commands/GetViewCommand";
import { ListIndexesCommand, ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
import {
ListIndexesForMembersCommand,
ListIndexesForMembersCommandInput,
ListIndexesForMembersCommandOutput,
} from "./commands/ListIndexesForMembersCommand";
import {
ListSupportedResourceTypesCommand,
ListSupportedResourceTypesCommandInput,
Expand Down Expand Up @@ -63,10 +73,12 @@ const commands = {
DeleteIndexCommand,
DeleteViewCommand,
DisassociateDefaultViewCommand,
GetAccountLevelServiceConfigurationCommand,
GetDefaultViewCommand,
GetIndexCommand,
GetViewCommand,
ListIndexesCommand,
ListIndexesForMembersCommand,
ListSupportedResourceTypesCommand,
ListTagsForResourceCommand,
ListViewsCommand,
Expand Down Expand Up @@ -167,6 +179,23 @@ export interface ResourceExplorer2 {
cb: (err: any, data?: DisassociateDefaultViewCommandOutput) => void
): void;

/**
* @see {@link GetAccountLevelServiceConfigurationCommand}
*/
getAccountLevelServiceConfiguration(
args: GetAccountLevelServiceConfigurationCommandInput,
options?: __HttpHandlerOptions
): Promise<GetAccountLevelServiceConfigurationCommandOutput>;
getAccountLevelServiceConfiguration(
args: GetAccountLevelServiceConfigurationCommandInput,
cb: (err: any, data?: GetAccountLevelServiceConfigurationCommandOutput) => void
): void;
getAccountLevelServiceConfiguration(
args: GetAccountLevelServiceConfigurationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetAccountLevelServiceConfigurationCommandOutput) => void
): void;

/**
* @see {@link GetDefaultViewCommand}
*/
Expand Down Expand Up @@ -214,6 +243,23 @@ export interface ResourceExplorer2 {
cb: (err: any, data?: ListIndexesCommandOutput) => void
): void;

/**
* @see {@link ListIndexesForMembersCommand}
*/
listIndexesForMembers(
args: ListIndexesForMembersCommandInput,
options?: __HttpHandlerOptions
): Promise<ListIndexesForMembersCommandOutput>;
listIndexesForMembers(
args: ListIndexesForMembersCommandInput,
cb: (err: any, data?: ListIndexesForMembersCommandOutput) => void
): void;
listIndexesForMembers(
args: ListIndexesForMembersCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListIndexesForMembersCommandOutput) => void
): void;

/**
* @see {@link ListSupportedResourceTypesCommand}
*/
Expand Down
12 changes: 12 additions & 0 deletions clients/client-resource-explorer-2/src/ResourceExplorer2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,18 @@ import {
DisassociateDefaultViewCommandInput,
DisassociateDefaultViewCommandOutput,
} from "./commands/DisassociateDefaultViewCommand";
import {
GetAccountLevelServiceConfigurationCommandInput,
GetAccountLevelServiceConfigurationCommandOutput,
} from "./commands/GetAccountLevelServiceConfigurationCommand";
import { GetDefaultViewCommandInput, GetDefaultViewCommandOutput } from "./commands/GetDefaultViewCommand";
import { GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
import { GetViewCommandInput, GetViewCommandOutput } from "./commands/GetViewCommand";
import { ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
import {
ListIndexesForMembersCommandInput,
ListIndexesForMembersCommandOutput,
} from "./commands/ListIndexesForMembersCommand";
import {
ListSupportedResourceTypesCommandInput,
ListSupportedResourceTypesCommandOutput,
Expand Down Expand Up @@ -103,10 +111,12 @@ export type ServiceInputTypes =
| DeleteIndexCommandInput
| DeleteViewCommandInput
| DisassociateDefaultViewCommandInput
| GetAccountLevelServiceConfigurationCommandInput
| GetDefaultViewCommandInput
| GetIndexCommandInput
| GetViewCommandInput
| ListIndexesCommandInput
| ListIndexesForMembersCommandInput
| ListSupportedResourceTypesCommandInput
| ListTagsForResourceCommandInput
| ListViewsCommandInput
Expand All @@ -127,10 +137,12 @@ export type ServiceOutputTypes =
| DeleteIndexCommandOutput
| DeleteViewCommandOutput
| DisassociateDefaultViewCommandOutput
| GetAccountLevelServiceConfigurationCommandOutput
| GetDefaultViewCommandOutput
| GetIndexCommandOutput
| GetViewCommandOutput
| ListIndexesCommandOutput
| ListIndexesForMembersCommandOutput
| ListSupportedResourceTypesCommandOutput
| ListTagsForResourceCommandOutput
| ListViewsCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export interface AssociateDefaultViewCommandOutput extends AssociateDefaultViewO
*
* @throws {@link ThrottlingException} (client fault)
* <p>The request failed because you exceeded a rate limit for this operation. For more
* information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
* for Resource Explorer</a>.</p>
* information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
* Resource Explorer</a>.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>You provided an invalid value for one of the operation's parameters. Check the syntax
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export interface BatchGetViewCommandOutput extends BatchGetViewOutput, __Metadat
*
* @throws {@link ThrottlingException} (client fault)
* <p>The request failed because you exceeded a rate limit for this operation. For more
* information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
* for Resource Explorer</a>.</p>
* information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
* Resource Explorer</a>.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>The principal making the request isn't permitted to perform the operation.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
SMITHY_CONTEXT_KEY,
} from "@smithy/types";

import { CreateIndexInput, CreateIndexOutput } from "../models/models_0";
import { CreateIndexInput, CreateIndexInputFilterSensitiveLog, CreateIndexOutput } from "../models/models_0";
import { de_CreateIndexCommand, se_CreateIndexCommand } from "../protocols/Aws_restJson1";
import {
ResourceExplorer2ClientResolvedConfig,
Expand Down Expand Up @@ -125,18 +125,22 @@ export interface CreateIndexCommandOutput extends CreateIndexOutput, __MetadataB
* permissions.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>The request failed because either you specified parameters that didn’t match the
* <p>If you attempted to create a view, then the request failed because either you specified parameters that didn’t match the
* original request, or you attempted to create a view with a name that already exists in
* this Amazon Web Services Region.</p>
* <p>If you attempted to create an index, then the request failed because either you specified parameters that didn't match
* the original request, or an index already exists in the current Amazon Web Services Region.</p>
* <p>If you attempted to update an index type to <code>AGGREGATOR</code>, then the request failed because you already
* have an <code>AGGREGATOR</code> index in a different Amazon Web Services Region.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>The request failed because of internal service error. Try your request again
* later.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>The request failed because you exceeded a rate limit for this operation. For more
* information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
* for Resource Explorer</a>.</p>
* information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
* Resource Explorer</a>.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>You provided an invalid value for one of the operation's parameters. Check the syntax
Expand Down Expand Up @@ -186,7 +190,7 @@ export class CreateIndexCommand extends $Command<
logger,
clientName,
commandName,
inputFilterSensitiveLog: (_: any) => _,
inputFilterSensitiveLog: CreateIndexInputFilterSensitiveLog,
outputFilterSensitiveLog: (_: any) => _,
[SMITHY_CONTEXT_KEY]: {
service: "ResourceExplorer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export interface CreateViewCommandOutput extends CreateViewOutput, __MetadataBea
* Name: "STRING_VALUE", // required
* },
* ],
* Scope: "STRING_VALUE",
* Filters: { // SearchFilter
* FilterString: "STRING_VALUE", // required
* },
Expand Down Expand Up @@ -107,9 +108,13 @@ export interface CreateViewCommandOutput extends CreateViewOutput, __MetadataBea
* permissions.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>The request failed because either you specified parameters that didn’t match the
* <p>If you attempted to create a view, then the request failed because either you specified parameters that didn’t match the
* original request, or you attempted to create a view with a name that already exists in
* this Amazon Web Services Region.</p>
* <p>If you attempted to create an index, then the request failed because either you specified parameters that didn't match
* the original request, or an index already exists in the current Amazon Web Services Region.</p>
* <p>If you attempted to update an index type to <code>AGGREGATOR</code>, then the request failed because you already
* have an <code>AGGREGATOR</code> index in a different Amazon Web Services Region.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>The request failed because of internal service error. Try your request again
Expand All @@ -120,8 +125,8 @@ export interface CreateViewCommandOutput extends CreateViewOutput, __MetadataBea
*
* @throws {@link ThrottlingException} (client fault)
* <p>The request failed because you exceeded a rate limit for this operation. For more
* information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
* for Resource Explorer</a>.</p>
* information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
* Resource Explorer</a>.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>The principal making the request isn't permitted to perform the operation.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export interface DeleteIndexCommandOutput extends DeleteIndexOutput, __MetadataB
*
* @throws {@link ThrottlingException} (client fault)
* <p>The request failed because you exceeded a rate limit for this operation. For more
* information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
* for Resource Explorer</a>.</p>
* information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
* Resource Explorer</a>.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>You provided an invalid value for one of the operation's parameters. Check the syntax
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export interface DeleteViewCommandOutput extends DeleteViewOutput, __MetadataBea
*
* @throws {@link ThrottlingException} (client fault)
* <p>The request failed because you exceeded a rate limit for this operation. For more
* information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
* for Resource Explorer</a>.</p>
* information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
* Resource Explorer</a>.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>The principal making the request isn't permitted to perform the operation.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ export interface DisassociateDefaultViewCommandOutput extends __MetadataBearer {
* <p>The request failed because of internal service error. Try your request again
* later.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>You specified a resource that doesn't exist. Check the ID or ARN that you used to
* identity the resource, and try again.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>The request failed because you exceeded a rate limit for this operation. For more
* information, see <a href="https://docs.aws.amazon.com/arexug/mainline/quotas.html">Quotas
* for Resource Explorer</a>.</p>
* information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
* Resource Explorer</a>.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>You provided an invalid value for one of the operation's parameters. Check the syntax
Expand Down
Loading

0 comments on commit 806c94f

Please sign in to comment.