import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetSegmentVersionsRequest, GetSegmentVersionsResponse } from "../models/models_1"; import type { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetSegmentVersionsCommand}. */ export interface GetSegmentVersionsCommandInput extends GetSegmentVersionsRequest { } /** * @public * * The output of {@link GetSegmentVersionsCommand}. */ export interface GetSegmentVersionsCommandOutput extends GetSegmentVersionsResponse, __MetadataBearer { } declare const GetSegmentVersionsCommand_base: { new (input: GetSegmentVersionsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetSegmentVersionsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Retrieves information about the configuration, dimension, and other settings for all the versions of a specific segment that's associated with an application.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PinpointClient, GetSegmentVersionsCommand } from "@aws-sdk/client-pinpoint"; // ES Modules import * // const { PinpointClient, GetSegmentVersionsCommand } = require("@aws-sdk/client-pinpoint"); // CommonJS import * // import type { PinpointClientConfig } from "@aws-sdk/client-pinpoint"; * const config = {}; // type is PinpointClientConfig * const client = new PinpointClient(config); * const input = { // GetSegmentVersionsRequest * ApplicationId: "STRING_VALUE", // required * PageSize: "STRING_VALUE", * SegmentId: "STRING_VALUE", // required * Token: "STRING_VALUE", * }; * const command = new GetSegmentVersionsCommand(input); * const response = await client.send(command); * // { // GetSegmentVersionsResponse * // SegmentsResponse: { // SegmentsResponse * // Item: [ // ListOfSegmentResponse // required * // { // SegmentResponse * // ApplicationId: "STRING_VALUE", // required * // Arn: "STRING_VALUE", // required * // CreationDate: "STRING_VALUE", // required * // Dimensions: { // SegmentDimensions * // Attributes: { // MapOfAttributeDimension * // "": { // AttributeDimension * // AttributeType: "INCLUSIVE" || "EXCLUSIVE" || "CONTAINS" || "BEFORE" || "AFTER" || "ON" || "BETWEEN", * // Values: [ // ListOf__string // required * // "STRING_VALUE", * // ], * // }, * // }, * // Behavior: { // SegmentBehaviors * // Recency: { // RecencyDimension * // Duration: "HR_24" || "DAY_7" || "DAY_14" || "DAY_30", // required * // RecencyType: "ACTIVE" || "INACTIVE", // required * // }, * // }, * // Demographic: { // SegmentDemographics * // AppVersion: { // SetDimension * // DimensionType: "INCLUSIVE" || "EXCLUSIVE", * // Values: [ // required * // "STRING_VALUE", * // ], * // }, * // Channel: { * // DimensionType: "INCLUSIVE" || "EXCLUSIVE", * // Values: [ // required * // "STRING_VALUE", * // ], * // }, * // DeviceType: { * // DimensionType: "INCLUSIVE" || "EXCLUSIVE", * // Values: [ // required * // "STRING_VALUE", * // ], * // }, * // Make: { * // DimensionType: "INCLUSIVE" || "EXCLUSIVE", * // Values: [ // required * // "STRING_VALUE", * // ], * // }, * // Model: { * // DimensionType: "INCLUSIVE" || "EXCLUSIVE", * // Values: "", // required * // }, * // Platform: "", * // }, * // Location: { // SegmentLocation * // Country: "", * // GPSPoint: { // GPSPointDimension * // Coordinates: { // GPSCoordinates * // Latitude: Number("double"), // required * // Longitude: Number("double"), // required * // }, * // RangeInKilometers: Number("double"), * // }, * // }, * // Metrics: { // MapOfMetricDimension * // "": { // MetricDimension * // ComparisonOperator: "STRING_VALUE", // required * // Value: Number("double"), // required * // }, * // }, * // UserAttributes: { * // "": { * // AttributeType: "INCLUSIVE" || "EXCLUSIVE" || "CONTAINS" || "BEFORE" || "AFTER" || "ON" || "BETWEEN", * // Values: "", // required * // }, * // }, * // }, * // Id: "STRING_VALUE", // required * // ImportDefinition: { // SegmentImportResource * // ChannelCounts: { // MapOf__integer * // "": Number("int"), * // }, * // ExternalId: "STRING_VALUE", // required * // Format: "CSV" || "JSON", // required * // RoleArn: "STRING_VALUE", // required * // S3Url: "STRING_VALUE", // required * // Size: Number("int"), // required * // }, * // LastModifiedDate: "STRING_VALUE", * // Name: "STRING_VALUE", * // SegmentGroups: { // SegmentGroupList * // Groups: [ // ListOfSegmentGroup * // { // SegmentGroup * // Dimensions: [ // ListOfSegmentDimensions * // { * // Attributes: { * // "": { * // AttributeType: "INCLUSIVE" || "EXCLUSIVE" || "CONTAINS" || "BEFORE" || "AFTER" || "ON" || "BETWEEN", * // Values: "", // required * // }, * // }, * // Behavior: { * // Recency: { * // Duration: "HR_24" || "DAY_7" || "DAY_14" || "DAY_30", // required * // RecencyType: "ACTIVE" || "INACTIVE", // required * // }, * // }, * // Demographic: { * // AppVersion: "", * // Channel: "", * // DeviceType: "", * // Make: "", * // Model: "", * // Platform: "", * // }, * // Location: { * // Country: "", * // GPSPoint: { * // Coordinates: { * // Latitude: Number("double"), // required * // Longitude: Number("double"), // required * // }, * // RangeInKilometers: Number("double"), * // }, * // }, * // Metrics: { * // "": { * // ComparisonOperator: "STRING_VALUE", // required * // Value: Number("double"), // required * // }, * // }, * // UserAttributes: { * // "": { * // AttributeType: "INCLUSIVE" || "EXCLUSIVE" || "CONTAINS" || "BEFORE" || "AFTER" || "ON" || "BETWEEN", * // Values: "", // required * // }, * // }, * // }, * // ], * // SourceSegments: [ // ListOfSegmentReference * // { // SegmentReference * // Id: "STRING_VALUE", // required * // Version: Number("int"), * // }, * // ], * // SourceType: "ALL" || "ANY" || "NONE", * // Type: "ALL" || "ANY" || "NONE", * // }, * // ], * // Include: "ALL" || "ANY" || "NONE", * // }, * // SegmentType: "DIMENSIONAL" || "IMPORT", // required * // tags: { // MapOf__string * // "": "STRING_VALUE", * // }, * // Version: Number("int"), * // }, * // ], * // NextToken: "STRING_VALUE", * // }, * // }; * * ``` * * @param GetSegmentVersionsCommandInput - {@link GetSegmentVersionsCommandInput} * @returns {@link GetSegmentVersionsCommandOutput} * @see {@link GetSegmentVersionsCommandInput} for command's `input` shape. * @see {@link GetSegmentVersionsCommandOutput} for command's `response` shape. * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

* * @throws {@link PinpointServiceException} *

Base exception class for all service exceptions from Pinpoint service.

* * * @public */ export declare class GetSegmentVersionsCommand extends GetSegmentVersionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetSegmentVersionsRequest; output: GetSegmentVersionsResponse; }; sdk: { input: GetSegmentVersionsCommandInput; output: GetSegmentVersionsCommandOutput; }; }; }