paws.networking (version 0.1.6)

elb_modify_load_balancer_attributes: Modifies the attributes of the specified load balancer

Description

Modifies the attributes of the specified load balancer.

Usage

elb_modify_load_balancer_attributes(LoadBalancerName,
  LoadBalancerAttributes)

Arguments

LoadBalancerName

[required] The name of the load balancer.

LoadBalancerAttributes

[required] The attributes for the load balancer.

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"
      )
    )
  )
)

Details

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:

Examples

Run this code
# NOT RUN {
# This example enables cross-zone load balancing for the specified load
# balancer.
# }
# NOT RUN {
svc$modify_load_balancer_attributes(
  LoadBalancerAttributes = list(
    CrossZoneLoadBalancing = list(
      Enabled = TRUE
    )
  ),
  LoadBalancerName = "my-load-balancer"
)
# }
# NOT RUN {
# This example enables connection draining for the specified load
# balancer.
# }
# NOT RUN {
svc$modify_load_balancer_attributes(
  LoadBalancerAttributes = list(
    ConnectionDraining = list(
      Enabled = TRUE,
      Timeout = 300L
    )
  ),
  LoadBalancerName = "my-load-balancer"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace