elb_modify_load_balancer_attributes: Modifies the attributes of the specified load balancer

Description Usage Arguments Value Request syntax Examples

View source: R/elb_operations.R

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

1
2
elb_modify_load_balancer_attributes(LoadBalancerName,
  LoadBalancerAttributes)

Arguments

LoadBalancerName

[required] The name of the load balancer.

LoadBalancerAttributes

[required] The attributes for the load balancer.

Value

A list with the following syntax:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## 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)

paws.networking documentation built on March 7, 2021, 5:08 p.m.