Example usage for com.amazonaws.services.codedeploy.model S3Location getVersion

List of usage examples for com.amazonaws.services.codedeploy.model S3Location getVersion

Introduction

In this page you can find the example usage for com.amazonaws.services.codedeploy.model S3Location getVersion.

Prototype


public String getVersion() 

Source Link

Document

A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision.

Usage

From source file:jetbrains.buildServer.runner.codedeploy.AWSClient.java

License:Apache License

private void doRegisterRevision(@NotNull RevisionLocation revisionLocation, @NotNull String applicationName) {
    final S3Location s3Location = revisionLocation.getS3Location();
    myListener.registerRevisionStarted(applicationName, s3Location.getBucket(), s3Location.getKey(),
            s3Location.getBundleType(), s3Location.getVersion(), s3Location.getETag());

    myCodeDeployClient.registerApplicationRevision(new RegisterApplicationRevisionRequest()
            .withRevision(revisionLocation).withApplicationName(applicationName)
            .withDescription(getDescription("Application revision registered by ", 100)));

    myListener.registerRevisionFinished(applicationName, s3Location.getBucket(), s3Location.getKey(),
            s3Location.getBundleType(), s3Location.getVersion(), s3Location.getETag());
}