-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-resource-explorer-2): Add GetManagedView, ListManagedView…
…s APIs.
- Loading branch information
awstools
committed
Nov 7, 2024
1 parent
289220f
commit 362a7bd
Showing
11 changed files
with
882 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
137 changes: 137 additions & 0 deletions
137
clients/client-resource-explorer-2/src/commands/GetManagedViewCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.