Modify Load Balancer Attributes
elb_modify_load_balancer_attributes | R Documentation |
Modifies the attributes of the specified load balancer¶
Description¶
Modifies the attributes of the specified load balancer.
You can modify the load balancer attributes, such as AccessLogs
,
ConnectionDraining
, and CrossZoneLoadBalancing
by either enabling or
disabling them. Or, you can modify the load balancer attribute
ConnectionSettings
by specifying an idle connection timeout value for
your load balancer.
For more information, see the following in the Classic Load Balancers Guide:
Usage¶
Arguments¶
LoadBalancerName
[required] The name of the load balancer.
LoadBalancerAttributes
[required] The attributes for the load balancer.
Value¶
A list with the following syntax:
list(
LoadBalancerName = "string",
LoadBalancerAttributes = list(
CrossZoneLoadBalancing = list(
Enabled = TRUE|FALSE
),
AccessLog = list(
Enabled = TRUE|FALSE,
S3BucketName = "string",
EmitInterval = 123,
S3BucketPrefix = "string"
),
ConnectionDraining = list(
Enabled = TRUE|FALSE,
Timeout = 123
),
ConnectionSettings = list(
IdleTimeout = 123
),
AdditionalAttributes = list(
list(
Key = "string",
Value = "string"
)
)
)
)
Request syntax¶
svc$modify_load_balancer_attributes(
LoadBalancerName = "string",
LoadBalancerAttributes = list(
CrossZoneLoadBalancing = list(
Enabled = TRUE|FALSE
),
AccessLog = list(
Enabled = TRUE|FALSE,
S3BucketName = "string",
EmitInterval = 123,
S3BucketPrefix = "string"
),
ConnectionDraining = list(
Enabled = TRUE|FALSE,
Timeout = 123
),
ConnectionSettings = list(
IdleTimeout = 123
),
AdditionalAttributes = list(
list(
Key = "string",
Value = "string"
)
)
)
)
Examples¶
## Not run:
# This example enables cross-zone load balancing for the specified load
# balancer.
svc$modify_load_balancer_attributes(
LoadBalancerAttributes = list(
CrossZoneLoadBalancing = list(
Enabled = TRUE
)
),
LoadBalancerName = "my-load-balancer"
)
# This example enables connection draining for the specified load
# balancer.
svc$modify_load_balancer_attributes(
LoadBalancerAttributes = list(
ConnectionDraining = list(
Enabled = TRUE,
Timeout = 300L
)
),
LoadBalancerName = "my-load-balancer"
)
## End(Not run)