如何通过使用java sdk.by获取aws预定义实例类型(flavors)方法调用我得到可用flavor的列表
答案 0 :(得分:1)
SDK提供了可用类型的枚举:
com.amazonaws.services.ec2.model.InstanceType
列表(SDK的1.8.8版):
T1Micro("t1.micro"),
M1Small("m1.small"),
M1Medium("m1.medium"),
M1Large("m1.large"),
M1Xlarge("m1.xlarge"),
M3Medium("m3.medium"),
M3Large("m3.large"),
M3Xlarge("m3.xlarge"),
M32xlarge("m3.2xlarge"),
T2Micro("t2.micro"),
T2Small("t2.small"),
T2Medium("t2.medium"),
M2Xlarge("m2.xlarge"),
M22xlarge("m2.2xlarge"),
M24xlarge("m2.4xlarge"),
Cr18xlarge("cr1.8xlarge"),
I2Xlarge("i2.xlarge"),
I22xlarge("i2.2xlarge"),
I24xlarge("i2.4xlarge"),
I28xlarge("i2.8xlarge"),
Hi14xlarge("hi1.4xlarge"),
Hs18xlarge("hs1.8xlarge"),
C1Medium("c1.medium"),
C1Xlarge("c1.xlarge"),
C3Large("c3.large"),
C3Xlarge("c3.xlarge"),
C32xlarge("c3.2xlarge"),
C34xlarge("c3.4xlarge"),
C38xlarge("c3.8xlarge"),
Cc14xlarge("cc1.4xlarge"),
Cc28xlarge("cc2.8xlarge"),
G22xlarge("g2.2xlarge"),
Cg14xlarge("cg1.4xlarge"),
R3Large("r3.large"),
R3Xlarge("r3.xlarge"),
R32xlarge("r3.2xlarge"),
R34xlarge("r3.4xlarge"),
R38xlarge("r3.8xlarge");