Jump to Content

Class SearchDevicesCommandProtected

Searches for devices using the specified filters.

Example

Use a bare-bones client and the command you need to make an API call.

import { BraketClient, SearchDevicesCommand } from "@aws-sdk/client-braket"; // ES Modules import
// const { BraketClient, SearchDevicesCommand } = require("@aws-sdk/client-braket"); // CommonJS import
const client = new BraketClient(config);
const input = { // SearchDevicesRequest
nextToken: "STRING_VALUE",
maxResults: Number("int"),
filters: [ // SearchDevicesFilterList // required
{ // SearchDevicesFilter
name: "STRING_VALUE", // required
values: [ // String256List // required
"STRING_VALUE",
],
},
],
};
const command = new SearchDevicesCommand(input);
const response = await client.send(command);

Param

SearchDevicesCommandInput

Returns

SearchDevicesCommandOutput

See

Throws

AccessDeniedException (client fault)

You do not have sufficient access to perform this action.

Throws

InternalServiceException (server fault)

The request processing has failed because of an unknown error, exception, or failure.

Throws

ThrottlingException (client fault)

The throttling rate limit is met.

Throws

ValidationException (client fault)

The input fails to satisfy the constraints specified by an AWS service.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<SearchDevicesCommandInput, SearchDevicesCommandOutput>

Methods