code: @Override
      public RegisterEcsClusterResult registerEcsCluster(RegisterEcsClusterRequest request) {
          request = beforeClientExecution(request);
          return executeRegisterEcsCluster(request);
      }
docs: <p>
  Registers a specified Amazon ECS cluster with a stack. You can register only one cluster with a stack. A cluster
  can be registered with only one stack. For more information, see <a
  href="http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html"> Resource
  Management</a>.
  </p>
  <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="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html"> Managing User
  Permissions</a>.
  </p>
  
  @param registerEcsClusterRequest
  @return Result of the RegisterEcsCluster 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.RegisterEcsCluster
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterEcsCluster" target="_top">AWS
  API Documentation</a>