in aws-codedeploy-common/src/main/java/jetbrains/buildServer/runner/codedeploy/AWSClient.java [174:179]
private RevisionLocation getRevisionLocation(@NotNull String s3BucketName, @NotNull String s3ObjectKey, @NotNull String bundleType, @Nullable String s3ObjectVersion, @Nullable String s3ObjectETag) {
final S3Location loc = new S3Location().withBucket(s3BucketName).withKey(s3ObjectKey).withBundleType(bundleType);
if (StringUtil.isNotEmpty(s3ObjectVersion)) loc.withVersion(s3ObjectVersion);
if (StringUtil.isNotEmpty(s3ObjectETag)) loc.withETag(s3ObjectETag);
return new RevisionLocation().withRevisionType(RevisionLocationType.S3).withS3Location(loc);
}