Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListVPCAssociationAuthorizationsCommandProtected

Gets a list of the VPCs that were created by other accounts and that can be associated with a specified hosted zone because you've submitted one or more CreateVPCAssociationAuthorization requests.

The response includes a VPCs element with a VPC child element for each VPC that can be associated with the hosted zone.

Example

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

import { Route53Client, ListVPCAssociationAuthorizationsCommand } from "@aws-sdk/client-route-53"; // ES Modules import
// const { Route53Client, ListVPCAssociationAuthorizationsCommand } = require("@aws-sdk/client-route-53"); // CommonJS import
const client = new Route53Client(config);
const input = { // ListVPCAssociationAuthorizationsRequest
HostedZoneId: "STRING_VALUE", // required
NextToken: "STRING_VALUE",
MaxResults: Number("int"),
};
const command = new ListVPCAssociationAuthorizationsCommand(input);
const response = await client.send(command);
// { // ListVPCAssociationAuthorizationsResponse
// HostedZoneId: "STRING_VALUE", // required
// NextToken: "STRING_VALUE",
// VPCs: [ // VPCs // required
// { // VPC
// 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" || "af-south-1" || "eu-south-1" || "eu-south-2" || "ap-southeast-4" || "il-central-1",
// VPCId: "STRING_VALUE",
// },
// ],
// };

Param

ListVPCAssociationAuthorizationsCommandInput

Returns

ListVPCAssociationAuthorizationsCommandOutput

See

Throws

InvalidInput (client fault)

The input is not valid.

Throws

InvalidPaginationToken (client fault)

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

Throws

NoSuchHostedZone (client fault)

No hosted zone exists with the ID that you specified.

Throws

Route53ServiceException

Base exception class for all service exceptions from Route53 service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods