import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { SetLoadBalancerPoliciesForBackendServerInput, SetLoadBalancerPoliciesForBackendServerOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link SetLoadBalancerPoliciesForBackendServerCommand}. */ export interface SetLoadBalancerPoliciesForBackendServerCommandInput extends SetLoadBalancerPoliciesForBackendServerInput { } /** * @public * * The output of {@link SetLoadBalancerPoliciesForBackendServerCommand}. */ export interface SetLoadBalancerPoliciesForBackendServerCommandOutput extends SetLoadBalancerPoliciesForBackendServerOutput, __MetadataBearer { } declare const SetLoadBalancerPoliciesForBackendServerCommand_base: { new (input: SetLoadBalancerPoliciesForBackendServerCommandInput): import("@smithy/core/client").CommandImpl; new (input: SetLoadBalancerPoliciesForBackendServerCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Replaces the set of policies associated with the specified port on which the EC2 instance is listening with a new set of policies. * At this time, only the back-end server authentication policy type can be applied to the instance ports; this policy type is composed of multiple public key policies.

*

Each time you use SetLoadBalancerPoliciesForBackendServer to enable the policies, * use the PolicyNames parameter to list the policies that you want to enable.

*

You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify that the policy * is associated with the EC2 instance.

* *

For more information about enabling back-end instance authentication, see Configure Back-end Instance Authentication * in the Classic Load Balancers Guide. For more information about Proxy Protocol, see * Configure Proxy Protocol Support * in the Classic Load Balancers Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElasticLoadBalancingClient, SetLoadBalancerPoliciesForBackendServerCommand } from "@aws-sdk/client-elastic-load-balancing"; // ES Modules import * // const { ElasticLoadBalancingClient, SetLoadBalancerPoliciesForBackendServerCommand } = require("@aws-sdk/client-elastic-load-balancing"); // CommonJS import * // import type { ElasticLoadBalancingClientConfig } from "@aws-sdk/client-elastic-load-balancing"; * const config = {}; // type is ElasticLoadBalancingClientConfig * const client = new ElasticLoadBalancingClient(config); * const input = { // SetLoadBalancerPoliciesForBackendServerInput * LoadBalancerName: "STRING_VALUE", // required * InstancePort: Number("int"), // required * PolicyNames: [ // PolicyNames // required * "STRING_VALUE", * ], * }; * const command = new SetLoadBalancerPoliciesForBackendServerCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param SetLoadBalancerPoliciesForBackendServerCommandInput - {@link SetLoadBalancerPoliciesForBackendServerCommandInput} * @returns {@link SetLoadBalancerPoliciesForBackendServerCommandOutput} * @see {@link SetLoadBalancerPoliciesForBackendServerCommandInput} for command's `input` shape. * @see {@link SetLoadBalancerPoliciesForBackendServerCommandOutput} for command's `response` shape. * @see {@link ElasticLoadBalancingClientResolvedConfig | config} for ElasticLoadBalancingClient's `config` shape. * * @throws {@link AccessPointNotFoundException} (client fault) *

The specified load balancer does not exist.

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

The requested configuration change is not valid.

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

One or more of the specified policies do not exist.

* * @throws {@link ElasticLoadBalancingServiceException} *

Base exception class for all service exceptions from ElasticLoadBalancing service.

* * * @example To replace the policies associated with a port for a backend instance * ```javascript * // This example replaces the policies that are currently associated with the specified port. * const input = { * InstancePort: 80, * LoadBalancerName: "my-load-balancer", * PolicyNames: [ * "my-ProxyProtocol-policy" * ] * }; * const command = new SetLoadBalancerPoliciesForBackendServerCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class SetLoadBalancerPoliciesForBackendServerCommand extends SetLoadBalancerPoliciesForBackendServerCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: SetLoadBalancerPoliciesForBackendServerInput; output: {}; }; sdk: { input: SetLoadBalancerPoliciesForBackendServerCommandInput; output: SetLoadBalancerPoliciesForBackendServerCommandOutput; }; }; }