AmazonS3SoapBindingStub s3SoapBinding = getSoapBinding();
Calendar timestamp = getTimeStamp( System.currentTimeMillis() );
String signature = ServiceUtils.signWithHmacSha1(getAWSSecretKey(),
Constants.SOAP_SERVICE_NAME + "SetBucketLoggingStatus" + convertDateToString(timestamp));
LoggingSettings loggingSettings = null;
if (status.isLoggingEnabled()) {
loggingSettings = new LoggingSettings(
status.getTargetBucketName(), status.getLogfilePrefix(), new Grant[] {});
}
s3SoapBinding.setBucketLoggingStatus(
bucketName, getAWSAccessKey(), timestamp, signature, null,