@ThreadSafe public class AwsAccountBeanImpl extends Object implements AwsAccountBean
Constructor and Description |
---|
AwsAccountBeanImpl(ElasticAccountBean elasticAccountBean,
com.atlassian.aws.AWSManager awsManager,
SecretEncryptionService secretEncryptionService) |
Modifier and Type | Method and Description |
---|---|
@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)
Checks whether a basic command can be run using the supplied credentials
|
@NotNull Map<String,com.amazonaws.services.ec2.model.AvailabilityZone> |
getAvailabilityZones()
Returns a list of availability zones and their status.
|
@NotNull com.atlassian.aws.AWSAccount |
getAwsAccount()
Returns an AWSAccount object that you can access certain services on
|
@NotNull 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, SecretEncryptionService secretEncryptionService)
@NotNull public @NotNull com.atlassian.aws.AWSAccount getAwsAccount()
AwsAccountBean
getAwsAccount
in interface AwsAccountBean
@NotNull public @NotNull 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 @Nullable 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 @Nullable String getAccountDetailsValidationError(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region, com.atlassian.aws.credentials.AWSCredentials awsCredentials) 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)@EventListener public void onElasticConfigUpdatedEvent(ElasticConfigUpdatedEvent event)
@NotNull public @NotNull 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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences