packages/core/lib/patchers/aws_p.js
function captureAWS(awssdk) {
  if (!semver.gte(awssdk.VERSION, minVersion))
    throw new Error ('AWS SDK version ' + minVersion + ' or greater required.');

  for (var prop in awssdk) {
    if (awssdk[prop].serviceIdentifier) {
      var Service = awssdk[prop];
      Service.prototype.customizeRequests(captureAWSRequest);
    }
  }

  return awssdk;
}
function captureAWS(awssdk) {
  if (!semver.gte(awssdk.VERSION, minVersion))
    throw new Error ('AWS SDK version ' + minVersion + ' or greater required.');

  for (var prop in awssdk) {
    if (awssdk[prop].serviceIdentifier) {
      var Service = awssdk[prop];
      Service.prototype.customizeRequests(captureAWSRequest);
    }
  }

  return awssdk;
}
function captureAWS ( awssdk ) { if ( ! semver . gte ( awssdk . VERSION , minVersion ) ) throw new Error ( 'AWS SDK version ' + minVersion + ' or greater required.' ) ; for ( var prop in awssdk ) { if ( awssdk [ prop ] . serviceIdentifier ) { var Service = awssdk [ prop ] ; Service . prototype . customizeRequests ( captureAWSRequest ) ; } } return awssdk ; }
Configures the AWS SDK to automatically capture information for the segment.
All created clients will automatically be captured.  See 'captureAWSClient'
for additional details.
@param {AWS} awssdk - The Javascript AWS SDK.
@alias module:aws_p.captureAWS
@returns {AWS}
@see https://github.com/aws/aws-sdk-js
Configures the AWS SDK to automatically capture information for the segment . All created clients will automatically be captured . See captureAWSClient for additional details .