import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient"; import { DeleteVpcOriginRequest, DeleteVpcOriginResult } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteVpcOriginCommand}. */ export interface DeleteVpcOriginCommandInput extends DeleteVpcOriginRequest { } /** * @public * * The output of {@link DeleteVpcOriginCommand}. */ export interface DeleteVpcOriginCommandOutput extends DeleteVpcOriginResult, __MetadataBearer { } declare const DeleteVpcOriginCommand_base: { new (input: DeleteVpcOriginCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteVpcOriginCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Delete an Amazon CloudFront VPC origin.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, DeleteVpcOriginCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, DeleteVpcOriginCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import * const client = new CloudFrontClient(config); * const input = { // DeleteVpcOriginRequest * Id: "STRING_VALUE", // required * IfMatch: "STRING_VALUE", // required * }; * const command = new DeleteVpcOriginCommand(input); * const response = await client.send(command); * // { // DeleteVpcOriginResult * // VpcOrigin: { // VpcOrigin * // Id: "STRING_VALUE", // required * // Arn: "STRING_VALUE", // required * // Status: "STRING_VALUE", // required * // CreatedTime: new Date("TIMESTAMP"), // required * // LastModifiedTime: new Date("TIMESTAMP"), // required * // VpcOriginEndpointConfig: { // VpcOriginEndpointConfig * // Name: "STRING_VALUE", // required * // Arn: "STRING_VALUE", // required * // HTTPPort: Number("int"), // required * // HTTPSPort: Number("int"), // required * // OriginProtocolPolicy: "http-only" || "match-viewer" || "https-only", // required * // OriginSslProtocols: { // OriginSslProtocols * // Quantity: Number("int"), // required * // Items: [ // SslProtocolsList // required * // "SSLv3" || "TLSv1" || "TLSv1.1" || "TLSv1.2", * // ], * // }, * // }, * // }, * // ETag: "STRING_VALUE", * // }; * * ``` * * @param DeleteVpcOriginCommandInput - {@link DeleteVpcOriginCommandInput} * @returns {@link DeleteVpcOriginCommandOutput} * @see {@link DeleteVpcOriginCommandInput} for command's `input` shape. * @see {@link DeleteVpcOriginCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link AccessDenied} (client fault) *

Access denied.

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

The entity cannot be deleted while it is in use.

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

The entity was not found.

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

Deletion is not allowed for this entity.

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

An argument is invalid.

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

The If-Match version is missing or not valid.

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

The precondition in one or more of the request fields evaluated to false.

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

This operation is not supported in this Amazon Web Services Region.

* * @throws {@link CloudFrontServiceException} *

Base exception class for all service exceptions from CloudFront service.

* * * @example To delete a VPC origin * ```javascript * // The following command deletes a VPC origin: * const input = { * Id: "vo_BQwjxxQxjCaBcQLzJUFkDM", * IfMatch: "E1F83G8C2ARO7P" * }; * const command = new DeleteVpcOriginCommand(input); * const response = await client.send(command); * /* response is * { * ETag: "E1PA6795UKMFR9", * VpcOrigin: { * Arn: "arn:aws:cloudfront::123456789012:vpcorigin/vo_BQwjxxQxjCaBcQLzJUFkDM", * CreatedTime: "2024-10-15T17:19:42.318Z", * Id: "vo_BQwjxxQxjCaBcQLzJUFkDM", * LastModifiedTime: "2024-10-15T17:57:08.965Z", * Status: "Deploying", * VpcOriginEndpointConfig: { * Arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d", * HTTPPort: 80, * HTTPSPort: 443, * Name: "my-vpcorigin-name", * OriginProtocolPolicy: "match-viewer", * OriginSslProtocols: { * Items: [ * "TLSv1.1", * "TLSv1.2" * ], * Quantity: 2 * } * } * } * } * *\/ * ``` * * @public */ export declare class DeleteVpcOriginCommand extends DeleteVpcOriginCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteVpcOriginRequest; output: DeleteVpcOriginResult; }; sdk: { input: DeleteVpcOriginCommandInput; output: DeleteVpcOriginCommandOutput; }; }; }