Struct aws_sdk_elasticloadbalancing::client::fluent_builders::SetLoadBalancerPoliciesForBackendServer
source · pub struct SetLoadBalancerPoliciesForBackendServer { /* private fields */ }
Expand description
Fluent builder constructing a request to SetLoadBalancerPoliciesForBackendServer
.
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.
Implementations§
source§impl SetLoadBalancerPoliciesForBackendServer
impl SetLoadBalancerPoliciesForBackendServer
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<SetLoadBalancerPoliciesForBackendServer, AwsResponseRetryClassifier>, SdkError<SetLoadBalancerPoliciesForBackendServerError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<SetLoadBalancerPoliciesForBackendServer, AwsResponseRetryClassifier>, SdkError<SetLoadBalancerPoliciesForBackendServerError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<SetLoadBalancerPoliciesForBackendServerOutput, SdkError<SetLoadBalancerPoliciesForBackendServerError>>
pub async fn send(
self
) -> Result<SetLoadBalancerPoliciesForBackendServerOutput, SdkError<SetLoadBalancerPoliciesForBackendServerError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn load_balancer_name(self, input: impl Into<String>) -> Self
pub fn load_balancer_name(self, input: impl Into<String>) -> Self
The name of the load balancer.
sourcepub fn set_load_balancer_name(self, input: Option<String>) -> Self
pub fn set_load_balancer_name(self, input: Option<String>) -> Self
The name of the load balancer.
sourcepub fn instance_port(self, input: i32) -> Self
pub fn instance_port(self, input: i32) -> Self
The port number associated with the EC2 instance.
sourcepub fn set_instance_port(self, input: Option<i32>) -> Self
pub fn set_instance_port(self, input: Option<i32>) -> Self
The port number associated with the EC2 instance.
sourcepub fn policy_names(self, input: impl Into<String>) -> Self
pub fn policy_names(self, input: impl Into<String>) -> Self
Appends an item to PolicyNames
.
To override the contents of this collection use set_policy_names
.
The names of the policies. If the list is empty, then all current polices are removed from the EC2 instance.
sourcepub fn set_policy_names(self, input: Option<Vec<String>>) -> Self
pub fn set_policy_names(self, input: Option<Vec<String>>) -> Self
The names of the policies. If the list is empty, then all current polices are removed from the EC2 instance.
Trait Implementations§
source§impl Clone for SetLoadBalancerPoliciesForBackendServer
impl Clone for SetLoadBalancerPoliciesForBackendServer
source§fn clone(&self) -> SetLoadBalancerPoliciesForBackendServer
fn clone(&self) -> SetLoadBalancerPoliciesForBackendServer
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more