# NOT RUN {
# This example enables deletion protection for the specified load
# balancer.
svc$modify_load_balancer_attributes(
Attributes = list(
list(
Key = "deletion_protection.enabled",
Value = "true"
)
),
LoadBalancerArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my..."
)
# This example changes the idle timeout value for the specified load
# balancer.
svc$modify_load_balancer_attributes(
Attributes = list(
list(
Key = "idle_timeout.timeout_seconds",
Value = "30"
)
),
LoadBalancerArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my..."
)
# This example enables access logs for the specified load balancer. Note
# that the S3 bucket must exist in the same region as the load balancer
# and must have a policy attached that grants access to the Elastic Load
# Balancing service.
svc$modify_load_balancer_attributes(
Attributes = list(
list(
Key = "access_logs.s3.enabled",
Value = "true"
),
list(
Key = "access_logs.s3.bucket",
Value = "my-loadbalancer-logs"
),
list(
Key = "access_logs.s3.prefix",
Value = "myapp"
)
),
LoadBalancerArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my..."
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab