import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeviceFarmClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DeviceFarmClient"; import type { StopRemoteAccessSessionRequest, StopRemoteAccessSessionResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link StopRemoteAccessSessionCommand}. */ export interface StopRemoteAccessSessionCommandInput extends StopRemoteAccessSessionRequest { } /** * @public * * The output of {@link StopRemoteAccessSessionCommand}. */ export interface StopRemoteAccessSessionCommandOutput extends StopRemoteAccessSessionResult, __MetadataBearer { } declare const StopRemoteAccessSessionCommand_base: { new (input: StopRemoteAccessSessionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: StopRemoteAccessSessionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Ends a specified remote access session.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DeviceFarmClient, StopRemoteAccessSessionCommand } from "@aws-sdk/client-device-farm"; // ES Modules import * // const { DeviceFarmClient, StopRemoteAccessSessionCommand } = require("@aws-sdk/client-device-farm"); // CommonJS import * // import type { DeviceFarmClientConfig } from "@aws-sdk/client-device-farm"; * const config = {}; // type is DeviceFarmClientConfig * const client = new DeviceFarmClient(config); * const input = { // StopRemoteAccessSessionRequest * arn: "STRING_VALUE", // required * }; * const command = new StopRemoteAccessSessionCommand(input); * const response = await client.send(command); * // { // StopRemoteAccessSessionResult * // remoteAccessSession: { // RemoteAccessSession * // arn: "STRING_VALUE", * // name: "STRING_VALUE", * // created: new Date("TIMESTAMP"), * // status: "PENDING" || "PENDING_CONCURRENCY" || "PENDING_DEVICE" || "PROCESSING" || "SCHEDULING" || "PREPARING" || "RUNNING" || "COMPLETED" || "STOPPING", * // result: "PENDING" || "PASSED" || "WARNED" || "FAILED" || "SKIPPED" || "ERRORED" || "STOPPED", * // message: "STRING_VALUE", * // started: new Date("TIMESTAMP"), * // stopped: new Date("TIMESTAMP"), * // device: { // Device * // arn: "STRING_VALUE", * // name: "STRING_VALUE", * // manufacturer: "STRING_VALUE", * // model: "STRING_VALUE", * // modelId: "STRING_VALUE", * // formFactor: "PHONE" || "TABLET", * // platform: "ANDROID" || "IOS", * // os: "STRING_VALUE", * // cpu: { // CPU * // frequency: "STRING_VALUE", * // architecture: "STRING_VALUE", * // clock: Number("double"), * // }, * // resolution: { // Resolution * // width: Number("int"), * // height: Number("int"), * // }, * // heapSize: Number("long"), * // memory: Number("long"), * // image: "STRING_VALUE", * // carrier: "STRING_VALUE", * // radio: "STRING_VALUE", * // remoteAccessEnabled: true || false, * // remoteDebugEnabled: true || false, * // fleetType: "STRING_VALUE", * // fleetName: "STRING_VALUE", * // instances: [ // DeviceInstances * // { // DeviceInstance * // arn: "STRING_VALUE", * // deviceArn: "STRING_VALUE", * // labels: [ // InstanceLabels * // "STRING_VALUE", * // ], * // status: "IN_USE" || "PREPARING" || "AVAILABLE" || "NOT_AVAILABLE", * // udid: "STRING_VALUE", * // instanceProfile: { // InstanceProfile * // arn: "STRING_VALUE", * // packageCleanup: true || false, * // excludeAppPackagesFromCleanup: [ // PackageIds * // "STRING_VALUE", * // ], * // rebootAfterUse: true || false, * // name: "STRING_VALUE", * // description: "STRING_VALUE", * // }, * // }, * // ], * // availability: "TEMPORARY_NOT_AVAILABLE" || "BUSY" || "AVAILABLE" || "HIGHLY_AVAILABLE", * // }, * // instanceArn: "STRING_VALUE", * // billingMethod: "METERED" || "UNMETERED", * // deviceMinutes: { // DeviceMinutes * // total: Number("double"), * // metered: Number("double"), * // unmetered: Number("double"), * // }, * // endpoint: "STRING_VALUE", * // deviceUdid: "STRING_VALUE", * // interactionMode: "INTERACTIVE" || "NO_VIDEO" || "VIDEO_ONLY", * // skipAppResign: true || false, * // vpcConfig: { // VpcConfig * // securityGroupIds: [ // VpcSecurityGroupIds // required * // "STRING_VALUE", * // ], * // subnetIds: [ // VpcSubnetIds // required * // "STRING_VALUE", * // ], * // vpcId: "STRING_VALUE", // required * // }, * // deviceProxy: { // DeviceProxy * // host: "STRING_VALUE", // required * // port: Number("int"), // required * // }, * // appUpload: "STRING_VALUE", * // endpoints: { // RemoteAccessEndpoints * // remoteDriverEndpoint: "STRING_VALUE", * // interactiveEndpoint: "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param StopRemoteAccessSessionCommandInput - {@link StopRemoteAccessSessionCommandInput} * @returns {@link StopRemoteAccessSessionCommandOutput} * @see {@link StopRemoteAccessSessionCommandInput} for command's `input` shape. * @see {@link StopRemoteAccessSessionCommandOutput} for command's `response` shape. * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape. * * @throws {@link ArgumentException} (client fault) *

An invalid argument was specified.

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

A limit was exceeded.

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

The specified entity was not found.

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

There was a problem with the service account.

* * @throws {@link DeviceFarmServiceException} *

Base exception class for all service exceptions from DeviceFarm service.

* * * @public */ export declare class StopRemoteAccessSessionCommand extends StopRemoteAccessSessionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StopRemoteAccessSessionRequest; output: StopRemoteAccessSessionResult; }; sdk: { input: StopRemoteAccessSessionCommandInput; output: StopRemoteAccessSessionCommandOutput; }; }; }