UNPKG

@aws-sdk/client-route-53

Version:

AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native

90 lines (89 loc) 3.59 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { ListCidrBlocksRequest, ListCidrBlocksResponse } from "../models/models_0"; import { Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53Client"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListCidrBlocksCommand}. */ export interface ListCidrBlocksCommandInput extends ListCidrBlocksRequest { } /** * @public * * The output of {@link ListCidrBlocksCommand}. */ export interface ListCidrBlocksCommandOutput extends ListCidrBlocksResponse, __MetadataBearer { } declare const ListCidrBlocksCommand_base: { new (input: ListCidrBlocksCommandInput): import("@smithy/smithy-client").CommandImpl<ListCidrBlocksCommandInput, ListCidrBlocksCommandOutput, Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (__0_0: ListCidrBlocksCommandInput): import("@smithy/smithy-client").CommandImpl<ListCidrBlocksCommandInput, ListCidrBlocksCommandOutput, Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <p>Returns a paginated list of location objects and their CIDR blocks.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * 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 - {@link ListCidrBlocksCommandInput} * @returns {@link ListCidrBlocksCommandOutput} * @see {@link ListCidrBlocksCommandInput} for command's `input` shape. * @see {@link ListCidrBlocksCommandOutput} for command's `response` shape. * @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape. * * @throws {@link InvalidInput} (client fault) * <p>The input is not valid.</p> * * @throws {@link NoSuchCidrCollectionException} (client fault) * <p>The CIDR collection you specified, doesn't exist.</p> * * @throws {@link NoSuchCidrLocationException} (client fault) * <p>The CIDR collection location doesn't match any locations in your account.</p> * * @throws {@link Route53ServiceException} * <p>Base exception class for all service exceptions from Route53 service.</p> * * @public */ export declare class ListCidrBlocksCommand extends ListCidrBlocksCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListCidrBlocksRequest; output: ListCidrBlocksResponse; }; sdk: { input: ListCidrBlocksCommandInput; output: ListCidrBlocksCommandOutput; }; }; }