Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListCidrBlocksCommandProtected

Returns a paginated list of location objects and their CIDR blocks.

Example

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

import { Route53Client, ListCidrBlocksCommand } from "@aws-sdk/client-route-53"; // ES Modules import
// const { Route53Client, ListCidrBlocksCommand } = require("@aws-sdk/client-route-53"); // CommonJS import
const client = new Route53Client(config);
const input = { // ListCidrBlocksRequest
CollectionId: "STRING_VALUE", // required
LocationName: "STRING_VALUE",
NextToken: "STRING_VALUE",
MaxResults: Number("int"),
};
const command = new ListCidrBlocksCommand(input);
const response = await client.send(command);
// { // ListCidrBlocksResponse
// NextToken: "STRING_VALUE",
// CidrBlocks: [ // CidrBlockSummaries
// { // CidrBlockSummary
// CidrBlock: "STRING_VALUE",
// LocationName: "STRING_VALUE",
// },
// ],
// };

Param

ListCidrBlocksCommandInput

Returns

ListCidrBlocksCommandOutput

See

Throws

InvalidInput (client fault)

The input is not valid.

Throws

NoSuchCidrCollectionException (client fault)

The CIDR collection you specified, doesn't exist.

Throws

NoSuchCidrLocationException (client fault)

The CIDR collection location doesn't match any locations in your account.

Throws

Route53ServiceException

Base exception class for all service exceptions from Route53 service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods