UpdateLoadBalancerAttributeRequest
¶
Source code in docs_src/capo_lightsail/types/update_load_balancer_attribute_request.py
attribute_name
instance-attribute
¶
attribute_name: LoadBalancerAttributeName
The name of the attribute you want to update.
attribute_value
instance-attribute
¶
attribute_value: StringMax256
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
HealthCheckPathfor theattributeNamerequest parameter, then theattributeValuerequest parameter must be the path to ping on the target (for example,/weather/us/wa/seattle). -
If you specify
SessionStickinessEnabledfor theattributeNamerequest parameter, then theattributeValuerequest parameter must betrueto activate session stickiness orfalseto deactivate session stickiness. -
If you specify
SessionStickiness_LB_CookieDurationSecondsfor theattributeNamerequest parameter, then theattributeValuerequest parameter must be an interger that represents the cookie duration in seconds. -
If you specify
HttpsRedirectionEnabledfor theattributeNamerequest parameter, then theattributeValuerequest parameter must betrueto activate HTTP to HTTPS redirection orfalseto deactivate HTTP to HTTPS redirection. -
If you specify
TlsPolicyNamefor theattributeNamerequest parameter, then theattributeValuerequest 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.
load_balancer_name
instance-attribute
¶
load_balancer_name: ResourceName
The name of the load balancer that you want to modify (my-load-balancer.