import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListHostedZonesByVPCRequest, ListHostedZonesByVPCResponse } from "../models/models_0"; import type { Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53Client"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListHostedZonesByVPCCommand}. */ export interface ListHostedZonesByVPCCommandInput extends ListHostedZonesByVPCRequest { } /** * @public * * The output of {@link ListHostedZonesByVPCCommand}. */ export interface ListHostedZonesByVPCCommandOutput extends ListHostedZonesByVPCResponse, __MetadataBearer { } declare const ListHostedZonesByVPCCommand_base: { new (input: ListHostedZonesByVPCCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ListHostedZonesByVPCCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Lists all the private hosted zones that a specified VPC is associated with, regardless * of which Amazon Web Services account or Amazon Web Services service owns the hosted zones. * The HostedZoneOwner structure in the response contains one of the following * values:

* *

* ListHostedZonesByVPC returns the hosted zones associated with the specified VPC and does not reflect the hosted zone * associations to VPCs via Route 53 Profiles. To get the associations to a Profile, call the ListProfileResourceAssociations API.

* *

When listing private hosted zones, the hosted zone and the Amazon VPC must * belong to the same partition where the hosted zones were created. A partition is a * group of Amazon Web Services Regions. Each Amazon Web Services account is scoped to * one partition.

*

The following are the supported partitions:

*
    *
  • *

    * aws - Amazon Web Services Regions

    *
  • *
  • *

    * aws-cn - China Regions

    *
  • *
  • *

    * aws-us-gov - Amazon Web Services GovCloud (US) Region

    *
  • *
*

For more information, see Access Management * in the Amazon Web Services General Reference.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { Route53Client, ListHostedZonesByVPCCommand } from "@aws-sdk/client-route-53"; // ES Modules import * // const { Route53Client, ListHostedZonesByVPCCommand } = require("@aws-sdk/client-route-53"); // CommonJS import * // import type { Route53ClientConfig } from "@aws-sdk/client-route-53"; * const config = {}; // type is Route53ClientConfig * const client = new Route53Client(config); * const input = { // ListHostedZonesByVPCRequest * VPCId: "STRING_VALUE", // required * VPCRegion: "us-east-1" || "us-east-2" || "us-west-1" || "us-west-2" || "eu-west-1" || "eu-west-2" || "eu-west-3" || "eu-central-1" || "eu-central-2" || "ap-east-1" || "me-south-1" || "us-gov-west-1" || "us-gov-east-1" || "us-iso-east-1" || "us-iso-west-1" || "us-isob-east-1" || "me-central-1" || "ap-southeast-1" || "ap-southeast-2" || "ap-southeast-3" || "ap-south-1" || "ap-south-2" || "ap-northeast-1" || "ap-northeast-2" || "ap-northeast-3" || "eu-north-1" || "sa-east-1" || "ca-central-1" || "cn-north-1" || "cn-northwest-1" || "af-south-1" || "eu-south-1" || "eu-south-2" || "ap-southeast-4" || "il-central-1" || "ca-west-1" || "ap-southeast-5" || "mx-central-1" || "us-isof-south-1" || "us-isof-east-1" || "ap-southeast-7" || "ap-east-2" || "eu-isoe-west-1" || "ap-southeast-6" || "us-isob-west-1" || "eusc-de-east-1", // required * MaxItems: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new ListHostedZonesByVPCCommand(input); * const response = await client.send(command); * // { // ListHostedZonesByVPCResponse * // HostedZoneSummaries: [ // HostedZoneSummaries // required * // { // HostedZoneSummary * // HostedZoneId: "STRING_VALUE", // required * // Name: "STRING_VALUE", // required * // Owner: { // HostedZoneOwner * // OwningAccount: "STRING_VALUE", * // OwningService: "STRING_VALUE", * // }, * // }, * // ], * // MaxItems: Number("int"), // required * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListHostedZonesByVPCCommandInput - {@link ListHostedZonesByVPCCommandInput} * @returns {@link ListHostedZonesByVPCCommandOutput} * @see {@link ListHostedZonesByVPCCommandInput} for command's `input` shape. * @see {@link ListHostedZonesByVPCCommandOutput} for command's `response` shape. * @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape. * * @throws {@link InvalidInput} (client fault) *

The input is not valid.

* * @throws {@link InvalidPaginationToken} (client fault) *

The value that you specified to get the second or subsequent page of results is * invalid.

* * @throws {@link Route53ServiceException} *

Base exception class for all service exceptions from Route53 service.

* * * @public */ export declare class ListHostedZonesByVPCCommand extends ListHostedZonesByVPCCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListHostedZonesByVPCRequest; output: ListHostedZonesByVPCResponse; }; sdk: { input: ListHostedZonesByVPCCommandInput; output: ListHostedZonesByVPCCommandOutput; }; }; }