Struct aws_sdk_lightsail::operation::update_load_balancer_attribute::builders::UpdateLoadBalancerAttributeFluentBuilder
source · pub struct UpdateLoadBalancerAttributeFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateLoadBalancerAttribute
.
Updates the specified attribute for a load balancer. You can only update one attribute at a time.
The update load balancer attribute
operation supports tag-based access control via resource tags applied to the resource identified by load balancer name
. For more information, see the Amazon Lightsail Developer Guide.
Implementations§
source§impl UpdateLoadBalancerAttributeFluentBuilder
impl UpdateLoadBalancerAttributeFluentBuilder
sourcepub fn as_input(&self) -> &UpdateLoadBalancerAttributeInputBuilder
pub fn as_input(&self) -> &UpdateLoadBalancerAttributeInputBuilder
Access the UpdateLoadBalancerAttribute as a reference.
sourcepub async fn send(
self
) -> Result<UpdateLoadBalancerAttributeOutput, SdkError<UpdateLoadBalancerAttributeError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateLoadBalancerAttributeOutput, SdkError<UpdateLoadBalancerAttributeError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<UpdateLoadBalancerAttributeOutput, UpdateLoadBalancerAttributeError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateLoadBalancerAttributeOutput, UpdateLoadBalancerAttributeError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 that you want to modify (my-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 that you want to modify (my-load-balancer
.
sourcepub fn get_load_balancer_name(&self) -> &Option<String>
pub fn get_load_balancer_name(&self) -> &Option<String>
The name of the load balancer that you want to modify (my-load-balancer
.
sourcepub fn attribute_name(self, input: LoadBalancerAttributeName) -> Self
pub fn attribute_name(self, input: LoadBalancerAttributeName) -> Self
The name of the attribute you want to update.
sourcepub fn set_attribute_name(
self,
input: Option<LoadBalancerAttributeName>
) -> Self
pub fn set_attribute_name( self, input: Option<LoadBalancerAttributeName> ) -> Self
The name of the attribute you want to update.
sourcepub fn get_attribute_name(&self) -> &Option<LoadBalancerAttributeName>
pub fn get_attribute_name(&self) -> &Option<LoadBalancerAttributeName>
The name of the attribute you want to update.
sourcepub fn attribute_value(self, input: impl Into<String>) -> Self
pub fn attribute_value(self, input: impl Into<String>) -> Self
The value that you want to specify for the attribute name.
The following values are supported depending on what you specify for the attributeName
request parameter:
-
If you specify
HealthCheckPath
for theattributeName
request parameter, then theattributeValue
request parameter must be the path to ping on the target (for example,/weather/us/wa/seattle
). -
If you specify
SessionStickinessEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate session stickiness orfalse
to deactivate session stickiness. -
If you specify
SessionStickiness_LB_CookieDurationSeconds
for theattributeName
request parameter, then theattributeValue
request parameter must be an interger that represents the cookie duration in seconds. -
If you specify
HttpsRedirectionEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate HTTP to HTTPS redirection orfalse
to deactivate HTTP to HTTPS redirection. -
If you specify
TlsPolicyName
for theattributeName
request parameter, then theattributeValue
request parameter must be the name of the TLS policy.Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.
sourcepub fn set_attribute_value(self, input: Option<String>) -> Self
pub fn set_attribute_value(self, input: Option<String>) -> Self
The value that you want to specify for the attribute name.
The following values are supported depending on what you specify for the attributeName
request parameter:
-
If you specify
HealthCheckPath
for theattributeName
request parameter, then theattributeValue
request parameter must be the path to ping on the target (for example,/weather/us/wa/seattle
). -
If you specify
SessionStickinessEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate session stickiness orfalse
to deactivate session stickiness. -
If you specify
SessionStickiness_LB_CookieDurationSeconds
for theattributeName
request parameter, then theattributeValue
request parameter must be an interger that represents the cookie duration in seconds. -
If you specify
HttpsRedirectionEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate HTTP to HTTPS redirection orfalse
to deactivate HTTP to HTTPS redirection. -
If you specify
TlsPolicyName
for theattributeName
request parameter, then theattributeValue
request parameter must be the name of the TLS policy.Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.
sourcepub fn get_attribute_value(&self) -> &Option<String>
pub fn get_attribute_value(&self) -> &Option<String>
The value that you want to specify for the attribute name.
The following values are supported depending on what you specify for the attributeName
request parameter:
-
If you specify
HealthCheckPath
for theattributeName
request parameter, then theattributeValue
request parameter must be the path to ping on the target (for example,/weather/us/wa/seattle
). -
If you specify
SessionStickinessEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate session stickiness orfalse
to deactivate session stickiness. -
If you specify
SessionStickiness_LB_CookieDurationSeconds
for theattributeName
request parameter, then theattributeValue
request parameter must be an interger that represents the cookie duration in seconds. -
If you specify
HttpsRedirectionEnabled
for theattributeName
request parameter, then theattributeValue
request parameter must betrue
to activate HTTP to HTTPS redirection orfalse
to deactivate HTTP to HTTPS redirection. -
If you specify
TlsPolicyName
for theattributeName
request parameter, then theattributeValue
request parameter must be the name of the TLS policy.Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.
Trait Implementations§
source§impl Clone for UpdateLoadBalancerAttributeFluentBuilder
impl Clone for UpdateLoadBalancerAttributeFluentBuilder
source§fn clone(&self) -> UpdateLoadBalancerAttributeFluentBuilder
fn clone(&self) -> UpdateLoadBalancerAttributeFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateLoadBalancerAttributeFluentBuilder
impl !RefUnwindSafe for UpdateLoadBalancerAttributeFluentBuilder
impl Send for UpdateLoadBalancerAttributeFluentBuilder
impl Sync for UpdateLoadBalancerAttributeFluentBuilder
impl Unpin for UpdateLoadBalancerAttributeFluentBuilder
impl !UnwindSafe for UpdateLoadBalancerAttributeFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more