function addApiVersionHeader(endpointRequest) {
  var api = endpointRequest.service.api;
  var apiVersion = api.apiVersion;
  if (apiVersion && !endpointRequest.httpRequest.headers['x-amz-api-version']) {
    endpointRequest.httpRequest.headers['x-amz-api-version'] = apiVersion;
  }
}
function addApiVersionHeader(endpointRequest) {
  var api = endpointRequest.service.api;
  var apiVersion = api.apiVersion;
  if (apiVersion && !endpointRequest.httpRequest.headers['x-amz-api-version']) {
    endpointRequest.httpRequest.headers['x-amz-api-version'] = apiVersion;
  }
}
function addApiVersionHeader ( endpointRequest ) { var api = endpointRequest . service . api ; var apiVersion = api . apiVersion ; if ( apiVersion && ! endpointRequest . httpRequest . headers [ 'x-amz-api-version' ] ) { endpointRequest . httpRequest . headers [ 'x-amz-api-version' ] = apiVersion ; } }
add api version header to endpoint operation
@api private
add api version header to endpoint operation
Add the x - amz - api - version header to the request if it doesn t already exist