code: @Override
      public CreateAgentResult createAgent(CreateAgentRequest request) {
          request = beforeClientExecution(request);
          return executeCreateAgent(request);
      }
docs: <p>
  Activates an AWS DataSync agent that you have deployed on your host. The activation process associates your agent
  with your account. In the activation process, you specify information such as the AWS Region that you want to
  activate the agent in. You activate the agent in the AWS Region where your target locations (in Amazon S3 or
  Amazon EFS) reside. Your tasks are created in this AWS Region.
  </p>
  <p>
  You can use an agent for more than one location. If a task uses multiple agents, all of them need to have status
  AVAILABLE for the task to run. If you use multiple agents for a source location, the status of all the agents
  must be AVAILABLE for the task to run. For more information, see <a href=
  "https://docs.aws.amazon.com/sync-service/latest/userguide/working-with-sync-agents.html#activating-sync-agent"
  >Activating a Sync Agent</a> in the <i>AWS DataSync User Guide.</i>
  </p>
  <p>
  Agents are automatically updated by AWS on a regular basis, using a mechanism that ensures minimal interruption
  to your tasks.
  </p>
  <p/>
  
  @param createAgentRequest
  CreateAgentRequest
  @return Result of the CreateAgent operation returned by the service.
  @throws InvalidRequestException
  This exception is thrown when the client submits a malformed request.
  @sample AWSDataSync.CreateAgent
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateAgent" target="_top">AWS API
  Documentation</a>