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
Modifier and TypeMethodDescription@Nullable String
getAccountDetailsValidationError
(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region, com.atlassian.aws.credentials.AWSCredentials awsCredentials) Checks whether a basic command can be run using the supplied credentials@Nullable String
getAccountDetailsValidationError
(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region, String awsAccessID, String awsSecretKey) Deprecated.Returns a list of availability zones and their status.@NotNull com.atlassian.aws.AWSAccount
Returns an AWSAccount object that you can access certain services on@NotNull com.atlassian.aws.ec2.SpotPrices
This method gives access to the spot price list.
-
Method Details
-
getAwsAccount
@NotNull @NotNull com.atlassian.aws.AWSAccount getAwsAccount()Returns an AWSAccount object that you can access certain services on -
getAvailabilityZones
@NotNull @NotNull Map<String,com.amazonaws.services.ec2.model.AvailabilityZone> getAvailabilityZones() throws com.atlassian.aws.AWSExceptionReturns 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 @Deprecated @Nullable String getAccountDetailsValidationError(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region, String awsAccessID, String awsSecretKey) throws com.atlassian.aws.AWSException, com.atlassian.aws.credentials.AWSCredentialsValidationException Deprecated.since 8.2 usegetAccountDetailsValidationError(AwsSupportConstants.Region, AWSCredentials)
insteadChecks whether a basic command can be run using the supplied credentials- Parameters:
awsAccessID
-awsSecretKey
-- Returns:
- null if everything went well, an error message otherwise
- Throws:
com.atlassian.aws.credentials.AWSCredentialsValidationException
- if credentials were incorrectcom.atlassian.aws.AWSException
- if a connection error occurred (not that the credentials were correct or incorrect)
-
getAccountDetailsValidationError
@Nullable @Nullable String getAccountDetailsValidationError(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region, com.atlassian.aws.credentials.AWSCredentials awsCredentials) throws com.atlassian.aws.AWSException, com.atlassian.aws.credentials.AWSCredentialsValidationException Checks whether a basic command can be run using the supplied credentials- Parameters:
awsCredentials
-- Returns:
- null if everything went well, an error message otherwise
- Throws:
com.atlassian.aws.credentials.AWSCredentialsValidationException
- if credentials were incorrectcom.atlassian.aws.AWSException
- if a connection error occurred (not that the credentials were correct or incorrect)
-
getCurrentSpotPrices
@NotNull @NotNull com.atlassian.aws.ec2.SpotPrices getCurrentSpotPrices()This method gives access to the spot price list.- Returns:
- spot price list
-
getAccountDetailsValidationError(AwsSupportConstants.Region, AWSCredentials)
instead