Skip to content

Commit

Permalink
feat(client-resource-explorer-2): Add GetManagedView, ListManagedView…
Browse files Browse the repository at this point in the history
…s APIs.
  • Loading branch information
awstools committed Nov 7, 2024
1 parent 289220f commit 362a7bd
Show file tree
Hide file tree
Showing 11 changed files with 882 additions and 4 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 @@ -302,6 +302,14 @@ GetIndex

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-explorer-2/command/GetIndexCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/GetIndexCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/GetIndexCommandOutput/)

</details>
<details>
<summary>
GetManagedView
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-explorer-2/command/GetManagedViewCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/GetManagedViewCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/GetManagedViewCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -326,6 +334,14 @@ ListIndexesForMembers

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-explorer-2/command/ListIndexesForMembersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/ListIndexesForMembersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/ListIndexesForMembersCommandOutput/)

</details>
<details>
<summary>
ListManagedViews
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-explorer-2/command/ListManagedViewsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/ListManagedViewsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-explorer-2/Interface/ListManagedViewsCommandOutput/)

</details>
<details>
<summary>
Expand Down
44 changes: 44 additions & 0 deletions clients/client-resource-explorer-2/src/ResourceExplorer2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,23 @@ import {
GetDefaultViewCommandOutput,
} from "./commands/GetDefaultViewCommand";
import { GetIndexCommand, GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
import {
GetManagedViewCommand,
GetManagedViewCommandInput,
GetManagedViewCommandOutput,
} from "./commands/GetManagedViewCommand";
import { GetViewCommand, GetViewCommandInput, GetViewCommandOutput } from "./commands/GetViewCommand";
import { ListIndexesCommand, ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
import {
ListIndexesForMembersCommand,
ListIndexesForMembersCommandInput,
ListIndexesForMembersCommandOutput,
} from "./commands/ListIndexesForMembersCommand";
import {
ListManagedViewsCommand,
ListManagedViewsCommandInput,
ListManagedViewsCommandOutput,
} from "./commands/ListManagedViewsCommand";
import {
ListResourcesCommand,
ListResourcesCommandInput,
Expand Down Expand Up @@ -81,9 +91,11 @@ const commands = {
GetAccountLevelServiceConfigurationCommand,
GetDefaultViewCommand,
GetIndexCommand,
GetManagedViewCommand,
GetViewCommand,
ListIndexesCommand,
ListIndexesForMembersCommand,
ListManagedViewsCommand,
ListResourcesCommand,
ListSupportedResourceTypesCommand,
ListTagsForResourceCommand,
Expand Down Expand Up @@ -233,6 +245,20 @@ export interface ResourceExplorer2 {
cb: (err: any, data?: GetIndexCommandOutput) => void
): void;

/**
* @see {@link GetManagedViewCommand}
*/
getManagedView(
args: GetManagedViewCommandInput,
options?: __HttpHandlerOptions
): Promise<GetManagedViewCommandOutput>;
getManagedView(args: GetManagedViewCommandInput, cb: (err: any, data?: GetManagedViewCommandOutput) => void): void;
getManagedView(
args: GetManagedViewCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetManagedViewCommandOutput) => void
): void;

/**
* @see {@link GetViewCommand}
*/
Expand Down Expand Up @@ -273,6 +299,24 @@ export interface ResourceExplorer2 {
cb: (err: any, data?: ListIndexesForMembersCommandOutput) => void
): void;

/**
* @see {@link ListManagedViewsCommand}
*/
listManagedViews(): Promise<ListManagedViewsCommandOutput>;
listManagedViews(
args: ListManagedViewsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListManagedViewsCommandOutput>;
listManagedViews(
args: ListManagedViewsCommandInput,
cb: (err: any, data?: ListManagedViewsCommandOutput) => void
): void;
listManagedViews(
args: ListManagedViewsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListManagedViewsCommandOutput) => void
): void;

/**
* @see {@link ListResourcesCommand}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ import {
} from "./commands/GetAccountLevelServiceConfigurationCommand";
import { GetDefaultViewCommandInput, GetDefaultViewCommandOutput } from "./commands/GetDefaultViewCommand";
import { GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
import { GetManagedViewCommandInput, GetManagedViewCommandOutput } from "./commands/GetManagedViewCommand";
import { GetViewCommandInput, GetViewCommandOutput } from "./commands/GetViewCommand";
import { ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
import {
ListIndexesForMembersCommandInput,
ListIndexesForMembersCommandOutput,
} from "./commands/ListIndexesForMembersCommand";
import { ListManagedViewsCommandInput, ListManagedViewsCommandOutput } from "./commands/ListManagedViewsCommand";
import { ListResourcesCommandInput, ListResourcesCommandOutput } from "./commands/ListResourcesCommand";
import {
ListSupportedResourceTypesCommandInput,
Expand Down Expand Up @@ -118,9 +120,11 @@ export type ServiceInputTypes =
| GetAccountLevelServiceConfigurationCommandInput
| GetDefaultViewCommandInput
| GetIndexCommandInput
| GetManagedViewCommandInput
| GetViewCommandInput
| ListIndexesCommandInput
| ListIndexesForMembersCommandInput
| ListManagedViewsCommandInput
| ListResourcesCommandInput
| ListSupportedResourceTypesCommandInput
| ListTagsForResourceCommandInput
Expand All @@ -145,9 +149,11 @@ export type ServiceOutputTypes =
| GetAccountLevelServiceConfigurationCommandOutput
| GetDefaultViewCommandOutput
| GetIndexCommandOutput
| GetManagedViewCommandOutput
| GetViewCommandOutput
| ListIndexesCommandOutput
| ListIndexesForMembersCommandOutput
| ListManagedViewsCommandOutput
| ListResourcesCommandOutput
| ListSupportedResourceTypesCommandOutput
| ListTagsForResourceCommandOutput
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { GetManagedViewInput, GetManagedViewOutput, GetManagedViewOutputFilterSensitiveLog } from "../models/models_0";
import { de_GetManagedViewCommand, se_GetManagedViewCommand } from "../protocols/Aws_restJson1";
import {
ResourceExplorer2ClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../ResourceExplorer2Client";

/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link GetManagedViewCommand}.
*/
export interface GetManagedViewCommandInput extends GetManagedViewInput {}
/**
* @public
*
* The output of {@link GetManagedViewCommand}.
*/
export interface GetManagedViewCommandOutput extends GetManagedViewOutput, __MetadataBearer {}

/**
* <p>Retrieves details of the specified <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/aws-managed-views.html">Amazon Web Services-managed view</a>. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { ResourceExplorer2Client, GetManagedViewCommand } from "@aws-sdk/client-resource-explorer-2"; // ES Modules import
* // const { ResourceExplorer2Client, GetManagedViewCommand } = require("@aws-sdk/client-resource-explorer-2"); // CommonJS import
* const client = new ResourceExplorer2Client(config);
* const input = { // GetManagedViewInput
* ManagedViewArn: "STRING_VALUE", // required
* };
* const command = new GetManagedViewCommand(input);
* const response = await client.send(command);
* // { // GetManagedViewOutput
* // ManagedView: { // ManagedView
* // ManagedViewArn: "STRING_VALUE",
* // ManagedViewName: "STRING_VALUE",
* // TrustedService: "STRING_VALUE",
* // LastUpdatedAt: new Date("TIMESTAMP"),
* // Owner: "STRING_VALUE",
* // Scope: "STRING_VALUE",
* // IncludedProperties: [ // IncludedPropertyList
* // { // IncludedProperty
* // Name: "STRING_VALUE", // required
* // },
* // ],
* // Filters: { // SearchFilter
* // FilterString: "STRING_VALUE", // required
* // },
* // ResourcePolicy: "STRING_VALUE",
* // Version: "STRING_VALUE",
* // },
* // };
*
* ```
*
* @param GetManagedViewCommandInput - {@link GetManagedViewCommandInput}
* @returns {@link GetManagedViewCommandOutput}
* @see {@link GetManagedViewCommandInput} for command's `input` shape.
* @see {@link GetManagedViewCommandOutput} for command's `response` shape.
* @see {@link ResourceExplorer2ClientResolvedConfig | config} for ResourceExplorer2Client's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>The credentials that you used to call this operation don't have the minimum required
* permissions.</p>
*
* @throws {@link InternalServerException} (server fault)
* <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/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>
*
* @throws {@link ValidationException} (client fault)
* <p>You provided an invalid value for one of the operation's parameters. Check the syntax
* for the operation, and try again.</p>
*
* @throws {@link ResourceExplorer2ServiceException}
* <p>Base exception class for all service exceptions from ResourceExplorer2 service.</p>
*
* @public
*/
export class GetManagedViewCommand extends $Command
.classBuilder<
GetManagedViewCommandInput,
GetManagedViewCommandOutput,
ResourceExplorer2ClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: ResourceExplorer2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
})
.s("ResourceExplorer", "GetManagedView", {})
.n("ResourceExplorer2Client", "GetManagedViewCommand")
.f(void 0, GetManagedViewOutputFilterSensitiveLog)
.ser(se_GetManagedViewCommand)
.de(de_GetManagedViewCommand)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
api: {
input: GetManagedViewInput;
output: GetManagedViewOutput;
};
sdk: {
input: GetManagedViewCommandInput;
output: GetManagedViewCommandOutput;
};
};
}
Loading

0 comments on commit 362a7bd

Please sign in to comment.