- 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.
GetTrafficPolicyInstanceCountCommand
Gets the number of traffic policy instances that are associated with the current Amazon Web Services account.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { Route53Client, GetTrafficPolicyInstanceCountCommand } from "@aws-sdk/client-route-53"; // ES Modules import
// const { Route53Client, GetTrafficPolicyInstanceCountCommand } = require("@aws-sdk/client-route-53"); // CommonJS import
const client = new Route53Client(config);
const input = {};
const command = new GetTrafficPolicyInstanceCountCommand(input);
const response = await client.send(command);
// { // GetTrafficPolicyInstanceCountResponse
// TrafficPolicyInstanceCount: Number("int"), // required
// };
GetTrafficPolicyInstanceCountCommand Input
See GetTrafficPolicyInstanceCountCommandInput for more details
GetTrafficPolicyInstanceCountCommandInput extends GetTrafficPolicyInstanceCountRequest
GetTrafficPolicyInstanceCountCommand Output
See GetTrafficPolicyInstanceCountCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
TrafficPolicyInstanceCount Required | number | undefined | The number of traffic policy instances that are associated with the current Amazon Web Services account. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
Route53ServiceException | Base exception class for all service exceptions from Route53 service. |