IsVpcPeeredCommand

Returns a Boolean value indicating whether your Lightsail VPC is peered.

Example Syntax

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

import { LightsailClient, IsVpcPeeredCommand } from "@aws-sdk/client-lightsail"; // ES Modules import
// const { LightsailClient, IsVpcPeeredCommand } = require("@aws-sdk/client-lightsail"); // CommonJS import
const client = new LightsailClient(config);
const input = {};
const command = new IsVpcPeeredCommand(input);
const response = await client.send(command);
// { // IsVpcPeeredResult
//   isPeered: true || false,
// };

IsVpcPeeredCommand Input

See IsVpcPeeredCommandInput for more details
IsVpcPeeredCommandInput extends IsVpcPeeredRequest 

IsVpcPeeredCommand Output

See IsVpcPeeredCommandOutput for details

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
isPeered
boolean | undefined

Returns true if the Lightsail VPC is peered; otherwise, false.

Throws

Name
Fault
Details
AccessDeniedException
client

Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.

AccountSetupInProgressException
client

Lightsail throws this exception when an account is still in the setup in progress state.

InvalidInputException
client

Lightsail throws this exception when user input does not conform to the validation rules of an input field.

Domain and distribution APIs are only available in the N. Virginia (us-east-1) Amazon Web Services Region. Please set your Amazon Web Services Region configuration to us-east-1 to create, view, or edit these resources.

NotFoundException
client

Lightsail throws this exception when it cannot find a resource.

OperationFailureException
client

Lightsail throws this exception when an operation fails to execute.

ServiceException
server

A general service exception.

UnauthenticatedException
client

Lightsail throws this exception when the user has not been authenticated.

LightsailServiceException
Base exception class for all service exceptions from Lightsail service.