Skip to content

Commit 362a7bd

Browse files
author
awstools
committed
feat(client-resource-explorer-2): Add GetManagedView, ListManagedViews APIs.
1 parent 289220f commit 362a7bd

File tree

11 files changed

+882
-4
lines changed

11 files changed

+882
-4
lines changed

clients/client-resource-explorer-2/README.md

+16
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,14 @@ GetIndex
302302

303303
[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/)
304304

305+
</details>
306+
<details>
307+
<summary>
308+
GetManagedView
309+
</summary>
310+
311+
[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/)
312+
305313
</details>
306314
<details>
307315
<summary>
@@ -326,6 +334,14 @@ ListIndexesForMembers
326334

327335
[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/)
328336

337+
</details>
338+
<details>
339+
<summary>
340+
ListManagedViews
341+
</summary>
342+
343+
[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/)
344+
329345
</details>
330346
<details>
331347
<summary>

clients/client-resource-explorer-2/src/ResourceExplorer2.ts

+44
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,23 @@ import {
3232
GetDefaultViewCommandOutput,
3333
} from "./commands/GetDefaultViewCommand";
3434
import { GetIndexCommand, GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
35+
import {
36+
GetManagedViewCommand,
37+
GetManagedViewCommandInput,
38+
GetManagedViewCommandOutput,
39+
} from "./commands/GetManagedViewCommand";
3540
import { GetViewCommand, GetViewCommandInput, GetViewCommandOutput } from "./commands/GetViewCommand";
3641
import { ListIndexesCommand, ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
3742
import {
3843
ListIndexesForMembersCommand,
3944
ListIndexesForMembersCommandInput,
4045
ListIndexesForMembersCommandOutput,
4146
} from "./commands/ListIndexesForMembersCommand";
47+
import {
48+
ListManagedViewsCommand,
49+
ListManagedViewsCommandInput,
50+
ListManagedViewsCommandOutput,
51+
} from "./commands/ListManagedViewsCommand";
4252
import {
4353
ListResourcesCommand,
4454
ListResourcesCommandInput,
@@ -81,9 +91,11 @@ const commands = {
8191
GetAccountLevelServiceConfigurationCommand,
8292
GetDefaultViewCommand,
8393
GetIndexCommand,
94+
GetManagedViewCommand,
8495
GetViewCommand,
8596
ListIndexesCommand,
8697
ListIndexesForMembersCommand,
98+
ListManagedViewsCommand,
8799
ListResourcesCommand,
88100
ListSupportedResourceTypesCommand,
89101
ListTagsForResourceCommand,
@@ -233,6 +245,20 @@ export interface ResourceExplorer2 {
233245
cb: (err: any, data?: GetIndexCommandOutput) => void
234246
): void;
235247

248+
/**
249+
* @see {@link GetManagedViewCommand}
250+
*/
251+
getManagedView(
252+
args: GetManagedViewCommandInput,
253+
options?: __HttpHandlerOptions
254+
): Promise<GetManagedViewCommandOutput>;
255+
getManagedView(args: GetManagedViewCommandInput, cb: (err: any, data?: GetManagedViewCommandOutput) => void): void;
256+
getManagedView(
257+
args: GetManagedViewCommandInput,
258+
options: __HttpHandlerOptions,
259+
cb: (err: any, data?: GetManagedViewCommandOutput) => void
260+
): void;
261+
236262
/**
237263
* @see {@link GetViewCommand}
238264
*/
@@ -273,6 +299,24 @@ export interface ResourceExplorer2 {
273299
cb: (err: any, data?: ListIndexesForMembersCommandOutput) => void
274300
): void;
275301

302+
/**
303+
* @see {@link ListManagedViewsCommand}
304+
*/
305+
listManagedViews(): Promise<ListManagedViewsCommandOutput>;
306+
listManagedViews(
307+
args: ListManagedViewsCommandInput,
308+
options?: __HttpHandlerOptions
309+
): Promise<ListManagedViewsCommandOutput>;
310+
listManagedViews(
311+
args: ListManagedViewsCommandInput,
312+
cb: (err: any, data?: ListManagedViewsCommandOutput) => void
313+
): void;
314+
listManagedViews(
315+
args: ListManagedViewsCommandInput,
316+
options: __HttpHandlerOptions,
317+
cb: (err: any, data?: ListManagedViewsCommandOutput) => void
318+
): void;
319+
276320
/**
277321
* @see {@link ListResourcesCommand}
278322
*/

clients/client-resource-explorer-2/src/ResourceExplorer2Client.ts

+6
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,14 @@ import {
7272
} from "./commands/GetAccountLevelServiceConfigurationCommand";
7373
import { GetDefaultViewCommandInput, GetDefaultViewCommandOutput } from "./commands/GetDefaultViewCommand";
7474
import { GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
75+
import { GetManagedViewCommandInput, GetManagedViewCommandOutput } from "./commands/GetManagedViewCommand";
7576
import { GetViewCommandInput, GetViewCommandOutput } from "./commands/GetViewCommand";
7677
import { ListIndexesCommandInput, ListIndexesCommandOutput } from "./commands/ListIndexesCommand";
7778
import {
7879
ListIndexesForMembersCommandInput,
7980
ListIndexesForMembersCommandOutput,
8081
} from "./commands/ListIndexesForMembersCommand";
82+
import { ListManagedViewsCommandInput, ListManagedViewsCommandOutput } from "./commands/ListManagedViewsCommand";
8183
import { ListResourcesCommandInput, ListResourcesCommandOutput } from "./commands/ListResourcesCommand";
8284
import {
8385
ListSupportedResourceTypesCommandInput,
@@ -118,9 +120,11 @@ export type ServiceInputTypes =
118120
| GetAccountLevelServiceConfigurationCommandInput
119121
| GetDefaultViewCommandInput
120122
| GetIndexCommandInput
123+
| GetManagedViewCommandInput
121124
| GetViewCommandInput
122125
| ListIndexesCommandInput
123126
| ListIndexesForMembersCommandInput
127+
| ListManagedViewsCommandInput
124128
| ListResourcesCommandInput
125129
| ListSupportedResourceTypesCommandInput
126130
| ListTagsForResourceCommandInput
@@ -145,9 +149,11 @@ export type ServiceOutputTypes =
145149
| GetAccountLevelServiceConfigurationCommandOutput
146150
| GetDefaultViewCommandOutput
147151
| GetIndexCommandOutput
152+
| GetManagedViewCommandOutput
148153
| GetViewCommandOutput
149154
| ListIndexesCommandOutput
150155
| ListIndexesForMembersCommandOutput
156+
| ListManagedViewsCommandOutput
151157
| ListResourcesCommandOutput
152158
| ListSupportedResourceTypesCommandOutput
153159
| ListTagsForResourceCommandOutput
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import { commonParams } from "../endpoint/EndpointParameters";
8+
import { GetManagedViewInput, GetManagedViewOutput, GetManagedViewOutputFilterSensitiveLog } from "../models/models_0";
9+
import { de_GetManagedViewCommand, se_GetManagedViewCommand } from "../protocols/Aws_restJson1";
10+
import {
11+
ResourceExplorer2ClientResolvedConfig,
12+
ServiceInputTypes,
13+
ServiceOutputTypes,
14+
} from "../ResourceExplorer2Client";
15+
16+
/**
17+
* @public
18+
*/
19+
export type { __MetadataBearer };
20+
export { $Command };
21+
/**
22+
* @public
23+
*
24+
* The input for {@link GetManagedViewCommand}.
25+
*/
26+
export interface GetManagedViewCommandInput extends GetManagedViewInput {}
27+
/**
28+
* @public
29+
*
30+
* The output of {@link GetManagedViewCommand}.
31+
*/
32+
export interface GetManagedViewCommandOutput extends GetManagedViewOutput, __MetadataBearer {}
33+
34+
/**
35+
* <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>
36+
* @example
37+
* Use a bare-bones client and the command you need to make an API call.
38+
* ```javascript
39+
* import { ResourceExplorer2Client, GetManagedViewCommand } from "@aws-sdk/client-resource-explorer-2"; // ES Modules import
40+
* // const { ResourceExplorer2Client, GetManagedViewCommand } = require("@aws-sdk/client-resource-explorer-2"); // CommonJS import
41+
* const client = new ResourceExplorer2Client(config);
42+
* const input = { // GetManagedViewInput
43+
* ManagedViewArn: "STRING_VALUE", // required
44+
* };
45+
* const command = new GetManagedViewCommand(input);
46+
* const response = await client.send(command);
47+
* // { // GetManagedViewOutput
48+
* // ManagedView: { // ManagedView
49+
* // ManagedViewArn: "STRING_VALUE",
50+
* // ManagedViewName: "STRING_VALUE",
51+
* // TrustedService: "STRING_VALUE",
52+
* // LastUpdatedAt: new Date("TIMESTAMP"),
53+
* // Owner: "STRING_VALUE",
54+
* // Scope: "STRING_VALUE",
55+
* // IncludedProperties: [ // IncludedPropertyList
56+
* // { // IncludedProperty
57+
* // Name: "STRING_VALUE", // required
58+
* // },
59+
* // ],
60+
* // Filters: { // SearchFilter
61+
* // FilterString: "STRING_VALUE", // required
62+
* // },
63+
* // ResourcePolicy: "STRING_VALUE",
64+
* // Version: "STRING_VALUE",
65+
* // },
66+
* // };
67+
*
68+
* ```
69+
*
70+
* @param GetManagedViewCommandInput - {@link GetManagedViewCommandInput}
71+
* @returns {@link GetManagedViewCommandOutput}
72+
* @see {@link GetManagedViewCommandInput} for command's `input` shape.
73+
* @see {@link GetManagedViewCommandOutput} for command's `response` shape.
74+
* @see {@link ResourceExplorer2ClientResolvedConfig | config} for ResourceExplorer2Client's `config` shape.
75+
*
76+
* @throws {@link AccessDeniedException} (client fault)
77+
* <p>The credentials that you used to call this operation don't have the minimum required
78+
* permissions.</p>
79+
*
80+
* @throws {@link InternalServerException} (server fault)
81+
* <p>The request failed because of internal service error. Try your request again
82+
* later.</p>
83+
*
84+
* @throws {@link ResourceNotFoundException} (client fault)
85+
* <p>You specified a resource that doesn't exist. Check the ID or ARN that you used to
86+
* identity the resource, and try again.</p>
87+
*
88+
* @throws {@link ThrottlingException} (client fault)
89+
* <p>The request failed because you exceeded a rate limit for this operation. For more
90+
* information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for
91+
* Resource Explorer</a>.</p>
92+
*
93+
* @throws {@link UnauthorizedException} (client fault)
94+
* <p>The principal making the request isn't permitted to perform the operation.</p>
95+
*
96+
* @throws {@link ValidationException} (client fault)
97+
* <p>You provided an invalid value for one of the operation's parameters. Check the syntax
98+
* for the operation, and try again.</p>
99+
*
100+
* @throws {@link ResourceExplorer2ServiceException}
101+
* <p>Base exception class for all service exceptions from ResourceExplorer2 service.</p>
102+
*
103+
* @public
104+
*/
105+
export class GetManagedViewCommand extends $Command
106+
.classBuilder<
107+
GetManagedViewCommandInput,
108+
GetManagedViewCommandOutput,
109+
ResourceExplorer2ClientResolvedConfig,
110+
ServiceInputTypes,
111+
ServiceOutputTypes
112+
>()
113+
.ep(commonParams)
114+
.m(function (this: any, Command: any, cs: any, config: ResourceExplorer2ClientResolvedConfig, o: any) {
115+
return [
116+
getSerdePlugin(config, this.serialize, this.deserialize),
117+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
118+
];
119+
})
120+
.s("ResourceExplorer", "GetManagedView", {})
121+
.n("ResourceExplorer2Client", "GetManagedViewCommand")
122+
.f(void 0, GetManagedViewOutputFilterSensitiveLog)
123+
.ser(se_GetManagedViewCommand)
124+
.de(de_GetManagedViewCommand)
125+
.build() {
126+
/** @internal type navigation helper, not in runtime. */
127+
protected declare static __types: {
128+
api: {
129+
input: GetManagedViewInput;
130+
output: GetManagedViewOutput;
131+
};
132+
sdk: {
133+
input: GetManagedViewCommandInput;
134+
output: GetManagedViewCommandOutput;
135+
};
136+
};
137+
}

0 commit comments

Comments
 (0)