import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EvidentlyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EvidentlyClient"; import type { ListSegmentsRequest, ListSegmentsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListSegmentsCommand}. */ export interface ListSegmentsCommandInput extends ListSegmentsRequest { } /** * @public * * The output of {@link ListSegmentsCommand}. */ export interface ListSegmentsCommandOutput extends ListSegmentsResponse, __MetadataBearer { } declare const ListSegmentsCommand_base: { new (input: ListSegmentsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ListSegmentsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns a list of audience segments that you have created in your account in this Region.

* * @deprecated AWS CloudWatch Evidently has been deprecated since 11/17/2025. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EvidentlyClient, ListSegmentsCommand } from "@aws-sdk/client-evidently"; // ES Modules import * // const { EvidentlyClient, ListSegmentsCommand } = require("@aws-sdk/client-evidently"); // CommonJS import * // import type { EvidentlyClientConfig } from "@aws-sdk/client-evidently"; * const config = {}; // type is EvidentlyClientConfig * const client = new EvidentlyClient(config); * const input = { // ListSegmentsRequest * maxResults: Number("int"), * nextToken: "STRING_VALUE", * }; * const command = new ListSegmentsCommand(input); * const response = await client.send(command); * // { // ListSegmentsResponse * // segments: [ // SegmentList * // { // Segment * // arn: "STRING_VALUE", // required * // name: "STRING_VALUE", // required * // pattern: "STRING_VALUE", // required * // createdTime: new Date("TIMESTAMP"), // required * // lastUpdatedTime: new Date("TIMESTAMP"), // required * // description: "STRING_VALUE", * // experimentCount: Number("long"), * // launchCount: Number("long"), * // tags: { // TagMap * // "": "STRING_VALUE", * // }, * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListSegmentsCommandInput - {@link ListSegmentsCommandInput} * @returns {@link ListSegmentsCommandOutput} * @see {@link ListSegmentsCommandInput} for command's `input` shape. * @see {@link ListSegmentsCommandOutput} for command's `response` shape. * @see {@link EvidentlyClientResolvedConfig | config} for EvidentlyClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient permissions to perform this action.

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

The request was denied because of request throttling. Retry the request.

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

The value of a parameter in the request caused an error.

* * @throws {@link EvidentlyServiceException} *

Base exception class for all service exceptions from Evidently service.

* * * @public */ export declare class ListSegmentsCommand extends ListSegmentsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListSegmentsRequest; output: ListSegmentsResponse; }; sdk: { input: ListSegmentsCommandInput; output: ListSegmentsCommandOutput; }; }; }