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

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

Introduction

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

Prototype


public String getBucket() 

Source Link

Document

The name of the Amazon S3 bucket where the application revision is stored.

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