com.atlassian.aws.ec2.awssdk
Class AwsSupportConstants

java.lang.Object
  extended by com.atlassian.aws.ec2.awssdk.AwsSupportConstants

public class AwsSupportConstants
extends Object

This class is meant to provide support for AWS SDK constants which are not defined in the SDK itself. These constants should be removed as soon as they are officially introduced in the API. For now, they will reside in this class only (as opposed to separate classes), to have a better overview of stuff we'd rather not have in our code.


Nested Class Summary
static class AwsSupportConstants.Architecture
          NOTE: These enums are persisted to the database.
static class AwsSupportConstants.InstanceAttribute
           
static class AwsSupportConstants.InstanceInitiatedShutdownBehaviour
           
static class AwsSupportConstants.InstanceStateName
          This enum extends AWS SDK's own enum by adding EBS states and spot request states (we want to treat spot requests like instances)
static interface AwsSupportConstants.NameProvider
           
static class AwsSupportConstants.Platform
          NOTE: These enums are persisted to the database.
static class AwsSupportConstants.Region
          NOTE: These enums are persisted to the database.
static class AwsSupportConstants.RootDeviceType
          NOTE: These enums are persisted to the database.
static class AwsSupportConstants.ServiceErrorCode
           
static class AwsSupportConstants.SpotInstanceRequestState
           
static class AwsSupportConstants.SpotInstanceRequestType
           
 
Field Summary
static String ADDRESS_DOMAIN_VPC
           
static com.google.common.collect.ImmutableMap<String,AwsSupportConstants.Region> LOCATION_CONSTRAINT_TO_REGION
           
 
Method Summary
static AwsSupportConstants.Region translateToRegion(String region)
          This will translate region code into region enum.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADDRESS_DOMAIN_VPC

public static final String ADDRESS_DOMAIN_VPC
See Also:
Constant Field Values

LOCATION_CONSTRAINT_TO_REGION

public static final com.google.common.collect.ImmutableMap<String,AwsSupportConstants.Region> LOCATION_CONSTRAINT_TO_REGION
Method Detail

translateToRegion

@NotNull
public static AwsSupportConstants.Region translateToRegion(@NotNull
                                                                   String region)
This will translate region code into region enum. Supported region codes: direct AWS S3 and normalised Bamboo codes.

Parameters:
region -
Returns:


Copyright © 2015 Atlassian. All rights reserved.