com.atlassian.bamboo.agent.elastic.aws
Interface AwsAccountBean

All Known Implementing Classes:
AwsAccountBeanImpl

@ThreadSafe
public interface AwsAccountBean

Bean the encapsulates the Amazon Web Services account. Provides possibility for caching.


Method Summary
 java.lang.String getAccountDetailsValidationError(java.lang.String awsAccessID, java.lang.String awsSecretKey)
          Checks whether a basic command can be run using the supplied credenials
 com.google.common.collect.ImmutableMap<java.lang.String,com.amazonaws.services.ec2.model.AvailabilityZone> getAvailabilityZones()
          Returns a list of availability zones and their status.
 com.atlassian.aws.AWSAccount getAwsAccount()
          Returns an AWSAccount object that you can access certain services on
 com.atlassian.aws.ec2.SpotPriceMatrix getCurrentSpotPrices()
          This method gives access to the spot price list.
 

Method Detail

getAwsAccount

@NotNull
com.atlassian.aws.AWSAccount getAwsAccount()
                                           throws com.atlassian.aws.AWSException
Returns an AWSAccount object that you can access certain services on

Returns:
Throws:
com.atlassian.aws.AWSException

getAvailabilityZones

@NotNull
com.google.common.collect.ImmutableMap<java.lang.String,com.amazonaws.services.ec2.model.AvailabilityZone> getAvailabilityZones()
                                                                                                                                throws com.atlassian.aws.AWSException
Returns a list of availability zones and their status.

Returns:
A map of zones and their availability keyed by zone name.
Throws:
com.atlassian.aws.AWSException

getAccountDetailsValidationError

@Nullable
java.lang.String getAccountDetailsValidationError(java.lang.String awsAccessID,
                                                           java.lang.String awsSecretKey)
                                                  throws com.atlassian.aws.AWSException
Checks whether a basic command can be run using the supplied credenials

Parameters:
awsAccessID -
awsSecretKey -
Returns:
null if everything went well, an error message otherwise
Throws:
com.atlassian.aws.AWSException - if a connection error occurred (not that the credentials were correct or incorrect)

getCurrentSpotPrices

@NotNull
com.atlassian.aws.ec2.SpotPriceMatrix getCurrentSpotPrices()
This method gives access to the spot price list.

Returns:
spot price list


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.