String message = "You must declare either _EnvironmentId or _EnvironmentName or _EnvironmentCNamePrefix"
.replaceAll("_", kind);
throw new MojoExecutionException(message);
}
DescribeEnvironmentsRequest req = new DescribeEnvironmentsRequest()
.withApplicationName(applicationName);
DescribeEnvironmentsResult result = null;
if (bIdOrNameDefined) {
if (bIdDefined) {
req.setEnvironmentIds(Arrays.asList(environmentId));
} else if (bNameDefined) {
req.setEnvironmentNames(Arrays.asList(environmentName));
}
result = getService().describeEnvironments(req);
List<EnvironmentDescription> environments = result