code: @Override
      public RegisterOnPremisesInstanceResult registerOnPremisesInstance(RegisterOnPremisesInstanceRequest request) {
          request = beforeClientExecution(request);
          return executeRegisterOnPremisesInstance(request);
      }
docs: <p>
  Registers an on-premises instance.
  </p>
  <note>
  <p>
  Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the request. You cannot use both.
  </p>
  </note>
  
  @param registerOnPremisesInstanceRequest
  Represents the input of the register on-premises instance operation.
  @return Result of the RegisterOnPremisesInstance operation returned by the service.
  @throws InstanceNameAlreadyRegisteredException
  The specified on-premises instance name is already registered.
  @throws IamArnRequiredException
  No IAM ARN was included in the request. You must use an IAM session ARN or IAM user ARN in the request.
  @throws IamSessionArnAlreadyRegisteredException
  The request included an IAM session ARN that has already been used to register a different instance.
  @throws IamUserArnAlreadyRegisteredException
  The specified IAM user ARN is already registered with an on-premises instance.
  @throws InstanceNameRequiredException
  An on-premises instance name was not specified.
  @throws IamUserArnRequiredException
  An IAM user ARN was not specified.
  @throws InvalidInstanceNameException
  The on-premises instance name was specified in an invalid format.
  @throws InvalidIamSessionArnException
  The IAM session ARN was specified in an invalid format.
  @throws InvalidIamUserArnException
  The IAM user ARN was specified in an invalid format.
  @throws MultipleIamArnsProvidedException
  Both an IAM user ARN and an IAM session ARN were included in the request. Use only one ARN type.
  @sample AmazonCodeDeploy.RegisterOnPremisesInstance
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstance"
  target="_top">AWS API Documentation</a>