public interface Ec2Dao
| Modifier and Type | Method and Description |
|---|---|
List<String> |
addSecurityGroupsToEc2Instance(String ec2InstanceId,
List<String> securityGroups,
AwsParamsDto awsParams) |
List<com.amazonaws.services.ec2.model.AvailabilityZone> |
getAvailabilityZonesForSubnetIds(Collection<com.amazonaws.services.ec2.model.Subnet> subnets,
AwsParamsDto awsParamsDto)
Returns a list of availability zones that contains the given collections of subnets.
|
com.amazonaws.services.ec2.AmazonEC2Client |
getEc2Client(AwsParamsDto awsParamsDto) |
List<com.amazonaws.services.ec2.model.SpotPrice> |
getLatestSpotPrices(String availabilityZone,
Collection<String> instanceTypes,
Collection<String> productDescriptions,
AwsParamsDto awsParamsDto)
Returns the latest spot prices for each of the instance types specified in the given AZ.
|
List<com.amazonaws.services.ec2.model.Subnet> |
getSubnets(Collection<String> subnetIds,
AwsParamsDto awsParamsDto)
Returns a list of subnets by their subnet IDs.
|
List<String> addSecurityGroupsToEc2Instance(String ec2InstanceId, List<String> securityGroups, AwsParamsDto awsParams)
com.amazonaws.services.ec2.AmazonEC2Client getEc2Client(AwsParamsDto awsParamsDto)
List<com.amazonaws.services.ec2.model.SpotPrice> getLatestSpotPrices(String availabilityZone, Collection<String> instanceTypes, Collection<String> productDescriptions, AwsParamsDto awsParamsDto)
availabilityZone - The AZ which the spot prices belong in.instanceTypes - The instance types of the spot prices.productDescriptions - The product descriptions to filter by. Empty collection will be ignored.awsParamsDto - AWS connection parameters.List<com.amazonaws.services.ec2.model.AvailabilityZone> getAvailabilityZonesForSubnetIds(Collection<com.amazonaws.services.ec2.model.Subnet> subnets, AwsParamsDto awsParamsDto)
subnets - The subnets which belong to the returned AZsawsParamsDto - AWS connection parameters.List<com.amazonaws.services.ec2.model.Subnet> getSubnets(Collection<String> subnetIds, AwsParamsDto awsParamsDto)
subnetIds - List of subnet IDs.awsParamsDto - AWS connection parameters.Copyright © 2019. All rights reserved.