Example usage for com.amazonaws.services.elasticbeanstalk.model UpdateEnvironmentResult getApplicationName

List of usage examples for com.amazonaws.services.elasticbeanstalk.model UpdateEnvironmentResult getApplicationName

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticbeanstalk.model UpdateEnvironmentResult getApplicationName.

Prototype


public String getApplicationName() 

Source Link

Document

The name of the application associated with this environment.

Usage

From source file:com.tracermedia.maven.plugins.CreateVersionMojo.java

License:Open Source License

protected void updateEnvironmentVersion(String environmentName, String versionLabel) {
    final UpdateEnvironmentRequest envRequest = new UpdateEnvironmentRequest()
            .withEnvironmentName(environmentName).withVersionLabel(versionLabel);

    final UpdateEnvironmentResult envResult = getBeanstalkClient().updateEnvironment(envRequest);

    System.out.println(String.format(
            "Updated environment [%s] with new version of %s (%s). Health: %s, status: %s, Endpoint: %s",
            envResult.getEnvironmentName(), envResult.getApplicationName(), versionLabel, envResult.getHealth(),
            envResult.getStatus(), envResult.getEndpointURL()));
}