import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { RejectVpcPeeringConnectionRequest, RejectVpcPeeringConnectionResult } from "../models/models_7"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link RejectVpcPeeringConnectionCommand}. */ export interface RejectVpcPeeringConnectionCommandInput extends RejectVpcPeeringConnectionRequest { } /** * @public * * The output of {@link RejectVpcPeeringConnectionCommand}. */ export interface RejectVpcPeeringConnectionCommandOutput extends RejectVpcPeeringConnectionResult, __MetadataBearer { } declare const RejectVpcPeeringConnectionCommand_base: { new (input: RejectVpcPeeringConnectionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: RejectVpcPeeringConnectionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Rejects a VPC peering connection request. The VPC peering connection must be in the * pending-acceptance state. Use the DescribeVpcPeeringConnections request * to view your outstanding VPC peering connection requests. To delete an active VPC peering * connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, RejectVpcPeeringConnectionCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, RejectVpcPeeringConnectionCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // RejectVpcPeeringConnectionRequest * DryRun: true || false, * VpcPeeringConnectionId: "STRING_VALUE", // required * }; * const command = new RejectVpcPeeringConnectionCommand(input); * const response = await client.send(command); * // { // RejectVpcPeeringConnectionResult * // Return: true || false, * // }; * * ``` * * @param RejectVpcPeeringConnectionCommandInput - {@link RejectVpcPeeringConnectionCommandInput} * @returns {@link RejectVpcPeeringConnectionCommandOutput} * @see {@link RejectVpcPeeringConnectionCommandInput} for command's `input` shape. * @see {@link RejectVpcPeeringConnectionCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @public */ export declare class RejectVpcPeeringConnectionCommand extends RejectVpcPeeringConnectionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RejectVpcPeeringConnectionRequest; output: RejectVpcPeeringConnectionResult; }; sdk: { input: RejectVpcPeeringConnectionCommandInput; output: RejectVpcPeeringConnectionCommandOutput; }; }; }