import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListGuardrailsRequest, ListGuardrailsResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListGuardrailsCommand}. */ export interface ListGuardrailsCommandInput extends ListGuardrailsRequest { } /** * @public * * The output of {@link ListGuardrailsCommand}. */ export interface ListGuardrailsCommandOutput extends ListGuardrailsResponse, __MetadataBearer { } declare const ListGuardrailsCommand_base: { new (input: ListGuardrailsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [ListGuardrailsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Lists details about all the guardrails in an account. To list the DRAFT version of all your guardrails, don't specify the guardrailIdentifier field. To list all versions of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier field.

You can set the maximum number of results to return in a response in the maxResults field. If there are more results than the number you set, the response returns a nextToken that you can send in another ListGuardrails request to see the next batch of results.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { BedrockClient, ListGuardrailsCommand } from "@aws-sdk/client-bedrock"; // ES Modules import * // const { BedrockClient, ListGuardrailsCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import * // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock"; * const config = {}; // type is BedrockClientConfig * const client = new BedrockClient(config); * const input = { // ListGuardrailsRequest * guardrailIdentifier: "STRING_VALUE", * maxResults: Number("int"), * nextToken: "STRING_VALUE", * }; * const command = new ListGuardrailsCommand(input); * const response = await client.send(command); * // { // ListGuardrailsResponse * // guardrails: [ // GuardrailSummaries // required * // { // GuardrailSummary * // id: "STRING_VALUE", // required * // arn: "STRING_VALUE", // required * // status: "CREATING" || "UPDATING" || "VERSIONING" || "READY" || "FAILED" || "DELETING", // required * // name: "STRING_VALUE", // required * // description: "STRING_VALUE", * // version: "STRING_VALUE", // required * // createdAt: new Date("TIMESTAMP"), // required * // updatedAt: new Date("TIMESTAMP"), // required * // crossRegionDetails: { // GuardrailCrossRegionDetails * // guardrailProfileId: "STRING_VALUE", * // guardrailProfileArn: "STRING_VALUE", * // }, * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListGuardrailsCommandInput - {@link ListGuardrailsCommandInput} * @returns {@link ListGuardrailsCommandOutput} * @see {@link ListGuardrailsCommandInput} for command's `input` shape. * @see {@link ListGuardrailsCommandOutput} for command's `response` shape. * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

The request is denied because of missing access permissions.

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

An internal server error occurred. Retry your request.

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

The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

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

The number of requests exceeds the limit. Resubmit your request later.

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

Input validation failed. Check your request parameters and retry the request.

* * @throws {@link BedrockServiceException} *

Base exception class for all service exceptions from Bedrock service.

* * * @public */ export declare class ListGuardrailsCommand extends ListGuardrailsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListGuardrailsRequest; output: ListGuardrailsResponse; }; sdk: { input: ListGuardrailsCommandInput; output: ListGuardrailsCommandOutput; }; }; }