src/main/java/com/digitalglobe/util/maven/plugin/CloudFormationDeployMavenPlugin.java
/**
     * Retrieves the effective region which is the deployment override region when it is specified.  Otherwise, it is the region
     * defined in the default credentials chain.
     *
     * @return The effective region to use.
     * @throws MojoExecutionException is called when the specified deployment override region doesn't exist.
     */
Retrieves the effective region which is the deployment override region when it is specified.  Otherwise, it is the region
defined in the default credentials chain.

@return The effective region to use.
@throws MojoExecutionException is called when the specified deployment override region doesn't exist.
Retrieves the effective region which is the deployment override region when it is specified . Otherwise it is the region defined in the default credentials chain . @return The effective region to use . @throws MojoExecutionException is called when the specified deployment override region doesn ' t exist .
private Region effectiveRegion() throws MojoExecutionException {
        Region currentRegion;
        if(deploymentRegionOverride == null) {
            DefaultAwsRegionProviderChain chain = new DefaultAwsRegionProviderChain();
            currentRegion = chain.getRegion();
            if(currentRegion == null) currentRegion = Region.US_EAST_1;
        } else {
            currentRegion = Region.of(deploymentRegionOverride);
            if(currentRegion == null) throw new MojoExecutionException("Invalid override region specified.");
        }
        return currentRegion;
    }
private Region effectiveRegion ( ) throws MojoExecutionException { Region currentRegion ; if ( deploymentRegionOverride == null ) { DefaultAwsRegionProviderChain chain = new DefaultAwsRegionProviderChain ( ) ; currentRegion = chain . getRegion ( ) ; if ( currentRegion == null ) currentRegion = Region . US_EAST_1 ; } else { currentRegion = Region . of ( deploymentRegionOverride ) ; if ( currentRegion == null ) throw new MojoExecutionException ( "Invalid override region specified." ) ; } return currentRegion ; }
Retrieves the effective region which is the deployment override region when it is specified.
Retrieves the effective region which is the deployment override region when it is specified .