Example usage for com.amazonaws.services.codedeploy.model RevisionLocation getS3Location

List of usage examples for com.amazonaws.services.codedeploy.model RevisionLocation getS3Location

Introduction

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

Prototype


public S3Location getS3Location() 

Source Link

Document

Information about the location of a revision stored in Amazon S3.

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());
}