|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AWSAccount
| Method Summary | |
|---|---|
com.atlassian.fugue.Pair<String,String> |
associateVpcAddress(String instanceId,
Collection<String> excludedAddresses)
|
void |
attachVolume(String volumeId,
String instanceId,
String device,
boolean deleteOnTermination)
|
void |
cancelSpotInstanceRequests(String... spotInstanceRequestIds)
|
void |
createTag(String resourceId,
String key,
String value)
|
String |
createVolume(String ebsSnapshotId,
String availabilityZone)
|
void |
deleteVolume(String volumeId)
Delete the volume with the given id. |
List<com.amazonaws.services.ec2.model.Address> |
describeAddresses(String... domains)
|
com.amazonaws.services.ec2.model.Image |
describeImage(String imageId)
|
List<com.amazonaws.services.ec2.model.Image> |
describeImages(String... imageIds)
|
Collection<com.amazonaws.services.ec2.model.Instance> |
describeInstances(String... instanceIds)
|
Collection<com.amazonaws.services.ec2.model.SpotInstanceRequest> |
describePendingSpotInstanceRequests(String... spotInstanceRequestId)
Returns a recently retrieved snapshot of pending ('open') spot instance requests optionally limiting them to the supplied list. |
Iterable<com.amazonaws.services.ec2.model.SecurityGroup> |
describeSecurityGroups()
|
Collection<com.amazonaws.services.ec2.model.SpotInstanceRequest> |
describeSpotInstanceRequests(String... spotInstanceRequestIds)
|
Collection<com.amazonaws.services.ec2.model.Subnet> |
describeSubnets(String... subnetIds)
Returns VPC subnets currently defined in EC2. |
Collection<com.amazonaws.services.ec2.model.Volume> |
describeVolumes()
Returns the list of all ebs volumes on this account. |
Map<com.amazonaws.services.ec2.model.Vpc,Collection<com.amazonaws.services.ec2.model.Subnet>> |
describeVpcs()
|
void |
ensureInboundTrafficIsAllowed(com.amazonaws.services.ec2.model.SecurityGroup group,
Protocol protocol,
String cidrIpRange,
int port)
|
com.google.common.collect.ImmutableMap<String,com.amazonaws.services.ec2.model.AccountAttribute> |
getAccountAttributes()
|
String |
getAccountValidationError()
Checks whether the credentials encapsulated by this object are valid. |
Collection<com.amazonaws.services.ec2.model.Instance> |
getAllInstances()
Returns the list of all instances on this account that are currently up. |
com.amazonaws.services.ec2.AmazonEC2Async |
getAmazonEc2()
|
com.google.common.collect.ImmutableMap<String,com.amazonaws.services.ec2.model.AvailabilityZone> |
getAvailabilityZones()
Returns a list of availability zones and their status. |
com.amazonaws.services.ec2.AmazonEC2AsyncClient |
getAwsClient()
Deprecated. since 5.9 use getAmazonEc2() instead |
String |
getConsoleOutput(String instanceId)
Returns the console logs returned from EC2. |
com.google.common.collect.ImmutableMap<String,com.amazonaws.services.ec2.model.KeyPairInfo> |
getEC2KeyPairDescriptions()
|
String |
getPassword(String keyFilePath,
String instanceIds)
Retrieves the generated password for instance. |
AwsSupportConstants.Region |
getRegion()
|
SpotPrices |
getSpotPrices()
|
SubnetCache |
getSubnetCache()
|
RemoteEC2Instance |
newEC2Instance(InstanceLaunchConfiguration instanceLaunchConfiguration,
EC2InstanceListener listener)
Place an order for a new EC2 instance. |
com.amazonaws.services.ec2.model.KeyPair |
newEC2KeyPair(String name)
|
com.amazonaws.services.ec2.model.SecurityGroup |
newSecurityGroup(String name,
String description,
VpcId vpcId)
|
void |
releaseAddresses(String... allocationIds)
|
void |
setMaximumEbsVolumeStatusAgeSeconds(int maximumStatusAgeSeconds)
|
void |
setMaximumInstanceStatusAgeSeconds(int maximumStatusAgeSeconds)
|
void |
setMaximumSpotRequestStatusAgeSeconds(int maximumStatusAgeSeconds)
|
void |
shutdownInstance(String instanceId)
Shutdown the elastic instance with the given id. |
| Method Detail |
|---|
@Nullable
String getAccountValidationError()
throws AWSException
Checks whether the credentials encapsulated by this object are valid.
null if the credentials are valid; String with error message otherwise.
AWSException - if a problem prevents the validity of the credentials from being determined.
@NotNull
RemoteEC2Instance newEC2Instance(InstanceLaunchConfiguration instanceLaunchConfiguration,
EC2InstanceListener listener)
Place an order for a new EC2 instance.
image - The EC2 image from which the instance should be booted.keyName - The name of the public key to be supplied to the instance, or null if none
should be supplied.securityGroupIds - A list of the security groups of which the instance should be a member.userData - An object that is to be serialised and passed to the instance as its user data.instanceType - The instance type.availabilityZone - The name of the availability zone to use, or null to use an arbitrary zone.timeoutSeconds - The time allowed for the instance to enter the running state.listener - A listener that receives notifications of instance events.
@NotNull
Iterable<com.amazonaws.services.ec2.model.SecurityGroup> describeSecurityGroups()
throws AWSException
AWSException
@NotNull
com.amazonaws.services.ec2.model.SecurityGroup newSecurityGroup(@NotNull
String name,
@NotNull
String description,
@Nullable
VpcId vpcId)
throws AWSException
AWSException
void ensureInboundTrafficIsAllowed(com.amazonaws.services.ec2.model.SecurityGroup group,
Protocol protocol,
String cidrIpRange,
int port)
@NotNull
com.google.common.collect.ImmutableMap<String,com.amazonaws.services.ec2.model.KeyPairInfo> getEC2KeyPairDescriptions()
throws AWSException
AWSException
@NotNull
com.amazonaws.services.ec2.model.KeyPair newEC2KeyPair(String name)
throws AWSException
AWSException
@NotNull
com.google.common.collect.ImmutableMap<String,com.amazonaws.services.ec2.model.AvailabilityZone> getAvailabilityZones()
throws AWSException
AWSException - When there's an error querying EC2 service@Nullable String getConsoleOutput(String instanceId)
instanceId -
@NotNull
Collection<com.amazonaws.services.ec2.model.Instance> getAllInstances()
throws AWSException
AWSException@NotNull Collection<com.amazonaws.services.ec2.model.SpotInstanceRequest> describePendingSpotInstanceRequests(String... spotInstanceRequestId)
Collection<com.amazonaws.services.ec2.model.Instance> describeInstances(String... instanceIds)
@Nullable
String getPassword(@NotNull
String keyFilePath,
@NotNull
String instanceIds)
com.amazonaws.services.ec2.model.Image describeImage(String imageId)
List<com.amazonaws.services.ec2.model.Image> describeImages(String... imageIds)
Collection<com.amazonaws.services.ec2.model.SpotInstanceRequest> describeSpotInstanceRequests(String... spotInstanceRequestIds)
@NotNull
Collection<com.amazonaws.services.ec2.model.Volume> describeVolumes()
throws AWSException
AWSException - when there is an error querying EC2 service.
String createVolume(@NotNull
String ebsSnapshotId,
@NotNull
String availabilityZone)
void attachVolume(@NotNull
String volumeId,
@NotNull
String instanceId,
@NotNull
String device,
boolean deleteOnTermination)
void shutdownInstance(String instanceId)
throws AWSException
instanceId -
AWSException - when there is an error shutting down EC2 instance.
void deleteVolume(String volumeId)
throws AWSException
volumeId -
AWSException - when there is an error deleting the volume.@NotNull SpotPrices getSpotPrices()
@Deprecated com.amazonaws.services.ec2.AmazonEC2AsyncClient getAwsClient()
getAmazonEc2() instead
com.amazonaws.services.ec2.AmazonEC2Async getAmazonEc2()
void setMaximumEbsVolumeStatusAgeSeconds(int maximumStatusAgeSeconds)
void setMaximumInstanceStatusAgeSeconds(int maximumStatusAgeSeconds)
void setMaximumSpotRequestStatusAgeSeconds(int maximumStatusAgeSeconds)
@NotNull
Map<com.amazonaws.services.ec2.model.Vpc,Collection<com.amazonaws.services.ec2.model.Subnet>> describeVpcs()
throws AWSException
AWSException@NotNull Collection<com.amazonaws.services.ec2.model.Subnet> describeSubnets(String... subnetIds)
subnetIds - No parameters = all subnets. Otherwise, subnet ids that should be returned.
@NotNull
com.atlassian.fugue.Pair<String,String> associateVpcAddress(@NotNull
String instanceId,
@Nullable
Collection<String> excludedAddresses)
@NotNull List<com.amazonaws.services.ec2.model.Address> describeAddresses(String... domains)
void releaseAddresses(String... allocationIds)
void createTag(@NotNull
String resourceId,
@NotNull
String key,
@NotNull
String value)
AwsSupportConstants.Region getRegion()
void cancelSpotInstanceRequests(String... spotInstanceRequestIds)
@NotNull com.google.common.collect.ImmutableMap<String,com.amazonaws.services.ec2.model.AccountAttribute> getAccountAttributes()
SubnetCache getSubnetCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||