import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetSchemaInput, GetSchemaOutput } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, VerifiedPermissionsClientResolvedConfig } from "../VerifiedPermissionsClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetSchemaCommand}. */ export interface GetSchemaCommandInput extends GetSchemaInput { } /** * @public * * The output of {@link GetSchemaCommand}. */ export interface GetSchemaCommandOutput extends GetSchemaOutput, __MetadataBearer { } declare const GetSchemaCommand_base: { new (input: GetSchemaCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetSchemaCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Retrieve the details for the specified schema in the specified policy store.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { VerifiedPermissionsClient, GetSchemaCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import * // const { VerifiedPermissionsClient, GetSchemaCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import * // import type { VerifiedPermissionsClientConfig } from "@aws-sdk/client-verifiedpermissions"; * const config = {}; // type is VerifiedPermissionsClientConfig * const client = new VerifiedPermissionsClient(config); * const input = { // GetSchemaInput * policyStoreId: "STRING_VALUE", // required * }; * const command = new GetSchemaCommand(input); * const response = await client.send(command); * // { // GetSchemaOutput * // policyStoreId: "STRING_VALUE", // required * // schema: "STRING_VALUE", // required * // createdDate: new Date("TIMESTAMP"), // required * // lastUpdatedDate: new Date("TIMESTAMP"), // required * // namespaces: [ // NamespaceList * // "STRING_VALUE", * // ], * // }; * * ``` * * @param GetSchemaCommandInput - {@link GetSchemaCommandInput} * @returns {@link GetSchemaCommandOutput} * @see {@link GetSchemaCommandInput} for command's `input` shape. * @see {@link GetSchemaCommandOutput} for command's `response` shape. * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape. * * @throws {@link ResourceNotFoundException} (client fault) *

The request failed because it references a resource that doesn't exist.

* * @throws {@link AccessDeniedException} (client fault) *

You don't have sufficient access to perform this action.

* * @throws {@link InternalServerException} (server fault) *

The request failed because of an internal error. Try your request again later

* * @throws {@link ThrottlingException} (client fault) *

The request failed because it exceeded a throttling quota.

* * @throws {@link ValidationException} (client fault) *

The request failed because one or more input parameters don't satisfy their constraint requirements. The output is provided as a list of fields and a reason for each field that isn't valid.

The possible reasons include the following:

* * @throws {@link VerifiedPermissionsServiceException} *

Base exception class for all service exceptions from VerifiedPermissions service.

* * * @example GetSchema * ```javascript * // The following example retrieves the current schema stored in the specified policy store. * * Note * The JSON in the parameters of this operation are strings that can contain embedded quotation marks (") within the outermost quotation mark pair. This requires that you stringify the JSON object by preceding all embedded quotation marks with a backslash character ( \" ) and combining all lines into a single text line with no line breaks. * * Example strings might be displayed wrapped across multiple lines here for readability, but the operation requires the parameters be submitted as single line strings. * const input = { * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a" * }; * const command = new GetSchemaCommand(input); * const response = await client.send(command); * /* response is * { * createdDate: "2024-08-12T18:20:50.99Z", * lastUpdatedDate: "2024-08-12T18:20:50.99Z", * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a", * schema: `{ * "My::Application": { * "actions": { * "remoteAccess": { * "appliesTo": { * "principalTypes": ["Employee"] * } * } * }, * "entityTypes": { * "Employee": { * "shape": { * "attributes": { * "jobLevel": { "type": "Long" }, * "name": { "type":"String" } * }, * "type": "Record" * } * } * } * } * }` * } * *\/ * ``` * * @public */ export declare class GetSchemaCommand extends GetSchemaCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetSchemaInput; output: GetSchemaOutput; }; sdk: { input: GetSchemaCommandInput; output: GetSchemaCommandOutput; }; }; }