import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient"; import type { ListDomainsRequest, ListDomainsResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListDomainsCommand}. */ export interface ListDomainsCommandInput extends ListDomainsRequest { } /** * @public * * The output of {@link ListDomainsCommand}. */ export interface ListDomainsCommandOutput extends ListDomainsResult, __MetadataBearer { } declare const ListDomainsCommand_base: { new (input: ListDomainsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ListDomainsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns a list of DomainSummary objects for all domains owned by the Amazon Web Services account that makes * this call. Each returned DomainSummary object contains information about a * domain.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeartifactClient, ListDomainsCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import * // const { CodeartifactClient, ListDomainsCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import * // import type { CodeartifactClientConfig } from "@aws-sdk/client-codeartifact"; * const config = {}; // type is CodeartifactClientConfig * const client = new CodeartifactClient(config); * const input = { // ListDomainsRequest * maxResults: Number("int"), * nextToken: "STRING_VALUE", * }; * const command = new ListDomainsCommand(input); * const response = await client.send(command); * // { // ListDomainsResult * // domains: [ // DomainSummaryList * // { // DomainSummary * // name: "STRING_VALUE", * // owner: "STRING_VALUE", * // arn: "STRING_VALUE", * // status: "Active" || "Deleted", * // createdTime: new Date("TIMESTAMP"), * // encryptionKey: "STRING_VALUE", * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListDomainsCommandInput - {@link ListDomainsCommandInput} * @returns {@link ListDomainsCommandOutput} * @see {@link ListDomainsCommandInput} for command's `input` shape. * @see {@link ListDomainsCommandOutput} for command's `response` shape. * @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

* The operation did not succeed because of an unauthorized access attempt. *

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

The operation did not succeed because of an error that occurred inside CodeArtifact.

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

* The operation did not succeed because too many requests are sent to the service. *

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

* The operation did not succeed because a parameter in the request was sent with an invalid value. *

* * @throws {@link CodeartifactServiceException} *

Base exception class for all service exceptions from Codeartifact service.

* * * @public */ export declare class ListDomainsCommand extends ListDomainsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListDomainsRequest; output: ListDomainsResult; }; sdk: { input: ListDomainsCommandInput; output: ListDomainsCommandOutput; }; }; }