|
| 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