@ThreadSafe public class AwsAccountBeanImpl extends Object implements AwsAccountBean
Constructor and Description |
---|
AwsAccountBeanImpl(ElasticAccountBean elasticAccountBean,
com.atlassian.aws.AWSManager awsManager) |
Modifier and Type | Method and Description |
---|---|
String |
getAccountDetailsValidationError(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region,
String awsAccessID,
String awsSecretKey)
Checks whether a basic command can be run using the supplied credenials
|
String |
getAccountDetailsValidationError(String awsAccessID,
String awsSecretKey) |
Map<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.SpotPrices |
getCurrentSpotPrices()
This price list is cached and refreshed not more often than MAXIMUM_SPOT_PRICES_AGE.
|
void |
onElasticConfigUpdatedEvent(ElasticConfigUpdatedEvent event) |
void |
setMaximumEbsVolumeStatusAgeSeconds(int maximumStatusAge) |
void |
setMaximumInstanceStatusAgeSeconds(int maximumStatusAge) |
void |
setMaximumSpotRequestStatusAgeSeconds(int maximumStatusAge) |
public AwsAccountBeanImpl(ElasticAccountBean elasticAccountBean, com.atlassian.aws.AWSManager awsManager)
@NotNull public com.atlassian.aws.AWSAccount getAwsAccount()
AwsAccountBean
getAwsAccount
in interface AwsAccountBean
@NotNull public Map<String,com.amazonaws.services.ec2.model.AvailabilityZone> getAvailabilityZones() throws com.atlassian.aws.AWSException
AwsAccountBean
getAvailabilityZones
in interface AwsAccountBean
com.atlassian.aws.AWSException
@Nullable public String getAccountDetailsValidationError(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region, String awsAccessID, String awsSecretKey) throws com.atlassian.aws.AWSException
AwsAccountBean
getAccountDetailsValidationError
in interface AwsAccountBean
com.atlassian.aws.AWSException
- if a connection error occurred (not that the credentials were correct or incorrect)@Nullable public String getAccountDetailsValidationError(String awsAccessID, String awsSecretKey) throws com.atlassian.aws.AWSException
getAccountDetailsValidationError
in interface AwsAccountBean
com.atlassian.aws.AWSException
@EventListener public void onElasticConfigUpdatedEvent(ElasticConfigUpdatedEvent event)
@NotNull public com.atlassian.aws.ec2.SpotPrices getCurrentSpotPrices()
getCurrentSpotPrices
in interface AwsAccountBean
public void setMaximumEbsVolumeStatusAgeSeconds(int maximumStatusAge)
public void setMaximumInstanceStatusAgeSeconds(int maximumStatusAge)
public void setMaximumSpotRequestStatusAgeSeconds(int maximumStatusAge)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.