- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
ListApplicationsCommand
Lists applications owned by the requester.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { ServerlessApplicationRepositoryClient, ListApplicationsCommand } from "@aws-sdk/client-serverlessapplicationrepository"; // ES Modules import
// const { ServerlessApplicationRepositoryClient, ListApplicationsCommand } = require("@aws-sdk/client-serverlessapplicationrepository"); // CommonJS import
const client = new ServerlessApplicationRepositoryClient(config);
const input = { // ListApplicationsRequest
MaxItems: Number("int"),
NextToken: "STRING_VALUE",
};
const command = new ListApplicationsCommand(input);
const response = await client.send(command);
// { // ListApplicationsResponse
// Applications: [ // __listOfApplicationSummary
// { // ApplicationSummary
// ApplicationId: "STRING_VALUE", // required
// Author: "STRING_VALUE", // required
// CreationTime: "STRING_VALUE",
// Description: "STRING_VALUE", // required
// HomePageUrl: "STRING_VALUE",
// Labels: [ // __listOf__string
// "STRING_VALUE",
// ],
// Name: "STRING_VALUE", // required
// SpdxLicenseId: "STRING_VALUE",
// },
// ],
// NextToken: "STRING_VALUE",
// };
ListApplicationsCommand Input
See ListApplicationsCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
MaxItems | number | undefined | The total number of items to return. |
NextToken | string | undefined | A token to specify where to start paginating. |
ListApplicationsCommand Output
See ListApplicationsCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Applications | ApplicationSummary[] | undefined | An array of application summaries. |
NextToken | string | undefined | The token to request the next page of results. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
BadRequestException | client | One of the parameters in the request is invalid. |
ForbiddenException | client | The client is not authenticated. |
InternalServerErrorException | server | The AWS Serverless Application Repository service encountered an internal error. |
NotFoundException | client | The resource (for example, an access policy statement) specified in the request doesn't exist. |
ServerlessApplicationRepositoryServiceException | Base exception class for all service exceptions from ServerlessApplicationRepository service. |