@Override
    public AttachElasticLoadBalancerResult attachElasticLoadBalancer(AttachElasticLoadBalancerRequest request) {
        request = beforeClientExecution(request);
        return executeAttachElasticLoadBalancer(request);
    }
<p>
Attaches an Elastic Load Balancing load balancer to a specified layer. OpsWorks Stacks does not support
Application Load Balancer. You can only use Classic Load Balancer with OpsWorks Stacks. For more information, see
<a href="https://docs.aws.amazon.com/opsworks/latest/userguide/layers-elb.html">Elastic Load Balancing</a>.
</p>
<note>
<p>
You must create the Elastic Load Balancing instance separately, by using the Elastic Load Balancing console, API,
or CLI. For more information, see the <a
href="https://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/Welcome.html">Elastic Load Balancing
Developer Guide</a>.
</p>
</note>
<p>
<b>Required Permissions</b>: To use this action, an IAM user must have a Manage permissions level for the stack,
or an attached policy that explicitly grants permissions. For more information on user permissions, see <a
href="https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User
Permissions</a>.
</p>

@param attachElasticLoadBalancerRequest
@return Result of the AttachElasticLoadBalancer operation returned by the service.
@throws ValidationException
        Indicates that a request was not valid.
@throws ResourceNotFoundException
        Indicates that a resource was not found.
@sample AWSOpsWorks.AttachElasticLoadBalancer
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AttachElasticLoadBalancer"
     target="_top">AWS API Documentation</a>
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/AWSOpsWorksClient.java