Interface AwsAccountBean

  • All Known Implementing Classes:
    AwsAccountBeanImpl

    @ThreadSafe
    public interface AwsAccountBean
    Bean the encapsulates the Amazon Web Services account. Provides possibility for caching.
    • Method Detail

      • 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.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
        @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
        Checks 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 incorrect
        com.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 incorrect
        com.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