Class AwsAccountBeanImpl

    • Method Detail

      • getAwsAccount

        @NotNull
        public @NotNull com.atlassian.aws.AWSAccount getAwsAccount()
        Description copied from interface: AwsAccountBean
        Returns an AWSAccount object that you can access certain services on
        Specified by:
        getAwsAccount in interface AwsAccountBean
      • getAvailabilityZones

        @NotNull
        public @NotNull Map<String,​com.amazonaws.services.ec2.model.AvailabilityZone> getAvailabilityZones()
                                                                                                          throws com.atlassian.aws.AWSException
        Description copied from interface: AwsAccountBean
        Returns a list of availability zones and their status.
        Specified by:
        getAvailabilityZones in interface AwsAccountBean
        Returns:
        A map of zones and their availability keyed by zone name.
        Throws:
        com.atlassian.aws.AWSException
      • getAccountDetailsValidationError

        @Nullable
        public @Nullable String getAccountDetailsValidationError​(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region,
                                                                 String awsAccessID,
                                                                 String awsSecretKey)
                                                          throws com.atlassian.aws.AWSException
        Description copied from interface: AwsAccountBean
        Checks whether a basic command can be run using the supplied credentials
        Specified by:
        getAccountDetailsValidationError in interface AwsAccountBean
        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)
      • getAccountDetailsValidationError

        @Nullable
        public @Nullable String getAccountDetailsValidationError​(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region,
                                                                 com.atlassian.aws.credentials.AWSCredentials awsCredentials)
                                                          throws com.atlassian.aws.AWSException
        Description copied from interface: AwsAccountBean
        Checks whether a basic command can be run using the supplied credentials
        Specified by:
        getAccountDetailsValidationError in interface AwsAccountBean
        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
        public @NotNull com.atlassian.aws.ec2.SpotPrices getCurrentSpotPrices()
        This price list is cached and refreshed not more often than MAXIMUM_SPOT_PRICES_AGE.
        Specified by:
        getCurrentSpotPrices in interface AwsAccountBean
        Returns:
        spot price list
      • setMaximumEbsVolumeStatusAgeSeconds

        public void setMaximumEbsVolumeStatusAgeSeconds​(int maximumStatusAge)
      • setMaximumInstanceStatusAgeSeconds

        public void setMaximumInstanceStatusAgeSeconds​(int maximumStatusAge)
      • setMaximumSpotRequestStatusAgeSeconds

        public void setMaximumSpotRequestStatusAgeSeconds​(int maximumStatusAge)