import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient"; import { UpdateVpcOriginRequest, UpdateVpcOriginResult } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateVpcOriginCommand}. */ export interface UpdateVpcOriginCommandInput extends UpdateVpcOriginRequest { } /** * @public * * The output of {@link UpdateVpcOriginCommand}. */ export interface UpdateVpcOriginCommandOutput extends UpdateVpcOriginResult, __MetadataBearer { } declare const UpdateVpcOriginCommand_base: { new (input: UpdateVpcOriginCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: UpdateVpcOriginCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Update an Amazon CloudFront VPC origin in your account.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, UpdateVpcOriginCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, UpdateVpcOriginCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import * const client = new CloudFrontClient(config); * const input = { // UpdateVpcOriginRequest * 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", * ], * }, * }, * Id: "STRING_VALUE", // required * IfMatch: "STRING_VALUE", // required * }; * const command = new UpdateVpcOriginCommand(input); * const response = await client.send(command); * // { // UpdateVpcOriginResult * // 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 UpdateVpcOriginCommandInput - {@link UpdateVpcOriginCommandInput} * @returns {@link UpdateVpcOriginCommandOutput} * @see {@link UpdateVpcOriginCommandInput} for command's `input` shape. * @see {@link UpdateVpcOriginCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link AccessDenied} (client fault) *

Access denied.

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

The entity cannot be updated while it is in use.

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

The entity already exists. You must provide a unique entity.

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

The entity limit has been exceeded.

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

The entity was not found.

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

The update contains modifications that are not allowed.

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

The value of Quantity and the size of Items don't match.

* * @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 update a VPC origin * ```javascript * // The following command updates a VPC origin: * const input = { * Id: "vo_BQwjxxQxjCaBcQLzJUFkDM", * IfMatch: "ETVPDKIKX0DER", * 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 * } * } * }; * const command = new UpdateVpcOriginCommand(input); * const response = await client.send(command); * /* response is * { * ETag: "E3UN6WX5RRO2AG", * VpcOrigin: { * Arn: "arn:aws:cloudfront::123456789012:vpcorigin/vo_BQwjxxQxjCaBcQLzJUFkDM", * CreatedTime: "2024-10-15T17:19:42.318Z", * Id: "vo_BQwjxxQxjCaBcQLzJUFkDM", * LastModifiedTime: "2024-10-15T17:47:08.133Z", * 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 UpdateVpcOriginCommand extends UpdateVpcOriginCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateVpcOriginRequest; output: UpdateVpcOriginResult; }; sdk: { input: UpdateVpcOriginCommandInput; output: UpdateVpcOriginCommandOutput; }; }; }