# NOT RUN {
# This example changes the default action for the specified listener.
# }
# NOT RUN {
svc$modify_listener(
DefaultActions = list(
list(
TargetGroupArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-n...",
Type = "forward"
)
),
ListenerArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-ba..."
)
# }
# NOT RUN {
# This example changes the server certificate for the specified HTTPS
# listener.
# }
# NOT RUN {
svc$modify_listener(
Certificates = list(
list(
CertificateArn = "arn:aws:iam::123456789012:server-certificate/my-new-server-cert"
)
),
ListenerArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-ba..."
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataCamp Workspace