- 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.
DescribeRuntimeVersionsCommand
Returns a list of Synthetics canary runtime versions. For more information, see Canary Runtime Versions .
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { SyntheticsClient, DescribeRuntimeVersionsCommand } from "@aws-sdk/client-synthetics"; // ES Modules import
// const { SyntheticsClient, DescribeRuntimeVersionsCommand } = require("@aws-sdk/client-synthetics"); // CommonJS import
const client = new SyntheticsClient(config);
const input = { // DescribeRuntimeVersionsRequest
NextToken: "STRING_VALUE",
MaxResults: Number("int"),
};
const command = new DescribeRuntimeVersionsCommand(input);
const response = await client.send(command);
// { // DescribeRuntimeVersionsResponse
// RuntimeVersions: [ // RuntimeVersionList
// { // RuntimeVersion
// VersionName: "STRING_VALUE",
// Description: "STRING_VALUE",
// ReleaseDate: new Date("TIMESTAMP"),
// DeprecationDate: new Date("TIMESTAMP"),
// },
// ],
// NextToken: "STRING_VALUE",
// };
DescribeRuntimeVersionsCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
MaxResults | number | undefined | Specify this parameter to limit how many runs are returned each time you use the |
NextToken | string | undefined | A token that indicates that there is more data available. You can use this token in a subsequent |
DescribeRuntimeVersionsCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
NextToken | string | undefined | A token that indicates that there is more data available. You can use this token in a subsequent |
RuntimeVersions | RuntimeVersion[] | undefined | An array of objects that display the details about each Synthetics canary runtime version. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
InternalServerException | server | An unknown internal error occurred. |
ValidationException | client | A parameter could not be validated. |
SyntheticsServiceException | Base exception class for all service exceptions from Synthetics service. |