- 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.
ListProgressUpdateStreamsCommand
Lists progress update streams associated with the user account making this call.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { MigrationHubClient, ListProgressUpdateStreamsCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
// const { MigrationHubClient, ListProgressUpdateStreamsCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
const client = new MigrationHubClient(config);
const input = { // ListProgressUpdateStreamsRequest
NextToken: "STRING_VALUE",
MaxResults: Number("int"),
};
const command = new ListProgressUpdateStreamsCommand(input);
const response = await client.send(command);
// { // ListProgressUpdateStreamsResult
// ProgressUpdateStreamSummaryList: [ // ProgressUpdateStreamSummaryList
// { // ProgressUpdateStreamSummary
// ProgressUpdateStreamName: "STRING_VALUE",
// },
// ],
// NextToken: "STRING_VALUE",
// };
ListProgressUpdateStreamsCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
MaxResults | number | undefined | Filter to limit the maximum number of results to list per page. |
NextToken | string | undefined | If a |
ListProgressUpdateStreamsCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
NextToken | string | undefined | If there are more streams created than the max result, return the next token to be passed to the next call as a bookmark of where to start from. |
ProgressUpdateStreamSummaryList | ProgressUpdateStreamSummary[] | undefined | List of progress update streams up to the max number of results passed in the input. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | You do not have sufficient access to perform this action. |
HomeRegionNotSetException | client | The home region is not set. Set the home region to continue. |
InternalServerError | server | Exception raised when an internal, configuration, or dependency error is encountered. |
InvalidInputException | client | Exception raised when the provided input violates a policy constraint or is entered in the wrong format or data type. |
ServiceUnavailableException | server | Exception raised when there is an internal, configuration, or dependency error encountered. |
ThrottlingException | client | The request was denied due to request throttling. |
MigrationHubServiceException | Base exception class for all service exceptions from MigrationHub service. |