paws.networking (version 0.1.6)

elbv2_modify_load_balancer_attributes: Modifies the specified attributes of the specified Application Load Balancer or Network Load Balancer

Description

Modifies the specified attributes of the specified Application Load Balancer or Network Load Balancer.

Usage

elbv2_modify_load_balancer_attributes(LoadBalancerArn, Attributes)

Arguments

LoadBalancerArn

[required] The Amazon Resource Name (ARN) of the load balancer.

Attributes

[required] The load balancer attributes.

Request syntax

svc$modify_load_balancer_attributes(
  LoadBalancerArn = "string",
  Attributes = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Details

If any of the specified attributes can\'t be modified as requested, the call fails. Any existing attributes that you do not modify retain their current values.

Examples

Run this code
# NOT RUN {
# This example enables deletion protection for the specified load
# balancer.
# }
# NOT RUN {
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..."
)
# }
# NOT RUN {
# This example changes the idle timeout value for the specified load
# balancer.
# }
# NOT RUN {
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..."
)
# }
# NOT RUN {
# 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.
# }
# NOT RUN {
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