import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetDelegationsRequest, GetDelegationsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetDelegationsCommand}. */ export interface GetDelegationsCommandInput extends GetDelegationsRequest { } /** * @public * * The output of {@link GetDelegationsCommand}. */ export interface GetDelegationsCommandOutput extends GetDelegationsResponse, __MetadataBearer { } declare const GetDelegationsCommand_base: { new (input: GetDelegationsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [GetDelegationsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Gets a list of delegations from an audit owner to a delegate.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AuditManagerClient, GetDelegationsCommand } from "@aws-sdk/client-auditmanager"; // ES Modules import * // const { AuditManagerClient, GetDelegationsCommand } = require("@aws-sdk/client-auditmanager"); // CommonJS import * // import type { AuditManagerClientConfig } from "@aws-sdk/client-auditmanager"; * const config = {}; // type is AuditManagerClientConfig * const client = new AuditManagerClient(config); * const input = { // GetDelegationsRequest * nextToken: "STRING_VALUE", * maxResults: Number("int"), * }; * const command = new GetDelegationsCommand(input); * const response = await client.send(command); * // { // GetDelegationsResponse * // delegations: [ // DelegationMetadataList * // { // DelegationMetadata * // id: "STRING_VALUE", * // assessmentName: "STRING_VALUE", * // assessmentId: "STRING_VALUE", * // status: "IN_PROGRESS" || "UNDER_REVIEW" || "COMPLETE", * // roleArn: "STRING_VALUE", * // creationTime: new Date("TIMESTAMP"), * // controlSetName: "STRING_VALUE", * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param GetDelegationsCommandInput - {@link GetDelegationsCommandInput} * @returns {@link GetDelegationsCommandOutput} * @see {@link GetDelegationsCommandInput} for command's `input` shape. * @see {@link GetDelegationsCommandOutput} for command's `response` shape. * @see {@link AuditManagerClientResolvedConfig | config} for AuditManagerClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

Your account isn't registered with Audit Manager. Check the delegated * administrator setup on the Audit Manager settings page, and try again.

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

An internal service error occurred during the processing of your request. Try again * later.

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

The request has invalid or missing parameters.

* * @throws {@link AuditManagerServiceException} *

Base exception class for all service exceptions from AuditManager service.

* * * @public */ export declare class GetDelegationsCommand extends GetDelegationsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetDelegationsRequest; output: GetDelegationsResponse; }; sdk: { input: GetDelegationsCommandInput; output: GetDelegationsCommandOutput; }; }; }