ListTrustStoresCommand

Retrieves a list of trust stores.

Example Syntax

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

import { WorkSpacesWebClient, ListTrustStoresCommand } from "@aws-sdk/client-workspaces-web"; // ES Modules import
// const { WorkSpacesWebClient, ListTrustStoresCommand } = require("@aws-sdk/client-workspaces-web"); // CommonJS import
const client = new WorkSpacesWebClient(config);
const input = { // ListTrustStoresRequest
  nextToken: "STRING_VALUE",
  maxResults: Number("int"),
};
const command = new ListTrustStoresCommand(input);
const response = await client.send(command);
// { // ListTrustStoresResponse
//   trustStores: [ // TrustStoreSummaryList
//     { // TrustStoreSummary
//       trustStoreArn: "STRING_VALUE",
//     },
//   ],
//   nextToken: "STRING_VALUE",
// };

ListTrustStoresCommand Input

See ListTrustStoresCommandInput for more details

Parameter
Type
Description
maxResults
number | undefined

The maximum number of results to be included in the next page.

nextToken
string | undefined

The pagination token used to retrieve the next page of results for this operation.

ListTrustStoresCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
nextToken
string | undefined

The pagination token used to retrieve the next page of results for this operation.

trustStores
TrustStoreSummary[] | undefined

The trust stores.

Throws

Name
Fault
Details
AccessDeniedException
client

Access is denied.

InternalServerException
server

There is an internal server error.

ThrottlingException
client

There is a throttling error.

ValidationException
client

There is a validation error.

WorkSpacesWebServiceException
Base exception class for all service exceptions from WorkSpacesWeb service.