code: @Override
      public CreateSamplingRuleResult createSamplingRule(CreateSamplingRuleRequest request) {
          request = beforeClientExecution(request);
          return executeCreateSamplingRule(request);
      }
docs: <p>
  Creates a rule to control sampling behavior for instrumented applications. Services retrieve rules with
  <a>GetSamplingRules</a>, and evaluate each rule in ascending order of <i>priority</i> for each request. If a rule
  matches, the service records a trace, borrowing it from the reservoir size. After 10 seconds, the service reports
  back to X-Ray with <a>GetSamplingTargets</a> to get updated versions of each in-use rule. The updated rule
  contains a trace quota that the service can use instead of borrowing from the reservoir.
  </p>
  
  @param createSamplingRuleRequest
  @return Result of the CreateSamplingRule operation returned by the service.
  @throws InvalidRequestException
  The request is missing required parameters or has invalid parameters.
  @throws ThrottledException
  The request exceeds the maximum number of requests per second.
  @throws RuleLimitExceededException
  You have reached the maximum number of sampling rules.
  @sample AWSXRay.CreateSamplingRule
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/CreateSamplingRule" target="_top">AWS API
  Documentation</a>